/* Kryven Technologies Website Styles */

/* ===== Variables ===== */
:root {
    --color-primary: #0A84FF;
    --color-primary-dark: #409CFF;
    --color-primary-light: rgba(10, 132, 255, 0.15);
    --color-text: #f5f5f7;
    --color-text-secondary: #a1a1a6;
    --color-bg: #000000;
    --color-bg-alt: #111111;
    --color-border: #2c2c2e;
    --color-card-bg: #1c1c1e;
    --font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --container-width: 1080px;
    --border-radius: 14px;
    --shadow-glow: 0 8px 32px rgba(10, 132, 255, 0.18);
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; background: #000; }

body {
    font-family: var(--font-family);
    font-size: 15px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--color-primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--color-primary-dark); }

ul, ol { padding-left: 1.25rem; }
li { margin-bottom: 0.4rem; }

/* ===== Typography ===== */
h1 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: var(--color-text);
    margin-bottom: 1.25rem;
}

h2 {
    font-size: clamp(1.5rem, 2.5vw, 1.875rem);
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.15;
    color: var(--color-text);
    margin-bottom: 1rem;
}

h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

p {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

p:last-child { margin-bottom: 0; }

/* ===== Layout ===== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===== Nav ===== */
.nav {
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--color-border);
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav .container {
    position: relative;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    letter-spacing: -0.01em;
}

.nav-brand:hover { color: var(--color-text); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    list-style: none;
}

.nav-links a {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

.nav-links a:hover { color: var(--color-text); }

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.6875rem 1.375rem;
    border-radius: 980px;
    font-size: 0.9375rem;
    font-weight: 600;
    transition: all 0.2s;
    text-decoration: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
    border: none;
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    color: #fff;
    box-shadow: 0 4px 20px rgba(10, 132, 255, 0.35);
}

.btn-secondary {
    background: transparent;
    color: var(--color-primary);
    border: 1.5px solid rgba(10, 132, 255, 0.5);
}

.btn-secondary:hover {
    background: var(--color-primary-light);
    color: var(--color-primary-dark);
}

/* ===== Hero ===== */
.hero {
    padding: 3rem 0 2.5rem;
    text-align: center;
}

.eyebrow {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-primary);
    margin-bottom: 1.25rem;
}

.hero h1 {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-subtitle {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.hero-cta {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== Sections ===== */
section { padding: 3rem 0; }

.section-label {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
}

.section-intro {
    color: var(--color-text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.section-header { margin-bottom: 2rem; }

/* ===== Services ===== */
.services { background: var(--color-bg-alt); }

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.service-card {
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 1.75rem;
    transition: border-color 0.25s, transform 0.25s;
}

.service-card:hover {
    border-color: rgba(10, 132, 255, 0.4);
    transform: translateY(-3px);
}

.service-icon {
    width: 1.75rem;
    height: 1.75rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.service-icon svg {
    width: 1.75rem;
    height: 1.75rem;
    display: block;
}

.benefit-icon {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    line-height: 0;
    color: var(--color-primary);
    vertical-align: -0.125em;
    margin-right: 0.4rem;
}

.benefit-icon svg {
    width: 1rem;
    height: 1rem;
    display: block;
}

.service-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.service-card p {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.tag {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.625rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--color-text-secondary);
    border: 1px solid var(--color-border);
}

/* ===== Products ===== */
.products { background: var(--color-bg); }

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.product-card {
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.product-card:hover {
    border-color: rgba(10, 132, 255, 0.5);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.product-card.placeholder {
    border-style: dashed;
    border-color: #2c2c2e;
}

.product-card.placeholder:hover {
    transform: none;
    box-shadow: none;
    border-color: #3a3a3c;
}

.product-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--color-border);
    background: #0b0b0d;
    padding: 3px;
    flex-shrink: 0;
}

.product-header {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 0.75rem;
}

.product-header h3 {
    margin: 0;
}

.product-icon-dim {
    opacity: 0.45;
}

.product-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.product-card p {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    flex: 1;
    margin-bottom: 1.5rem;
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-bottom: 1.5rem;
}

.product-tag {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.625rem;
    border-radius: 20px;
    background: var(--color-primary-light);
    color: var(--color-primary);
    border: 1px solid rgba(10, 132, 255, 0.25);
}

.placeholder-label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #48484a;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: auto;
}

.coming-soon-icon {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    line-height: 1;
    opacity: 0.4;
}

/* ===== Legal pages (privacy.html, terms.html) ===== */
.page {
    padding: 3rem 0 4rem;
}

.page h1 {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}

.updated {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
}

.card {
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.card h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.2;
    letter-spacing: -0.015em;
    color: var(--color-text);
}

.card h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-text);
    margin-top: 1.25rem;
    margin-bottom: 0.4rem;
    letter-spacing: -0.01em;
}

.card p, .card li {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.card ul {
    margin: 0.5rem 0 0 1.2rem;
}

/* ===== Footer ===== */
.footer {
    padding: 2rem 0;
    border-top: 1px solid var(--color-border);
    background: var(--color-bg);
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    margin-bottom: 0.75rem;
}

.footer-sep {
    color: #48484a;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.footer p {
    font-size: 0.8125rem;
    color: #48484a;
}

.footer-links {
    display: flex;
    gap: 1.25rem;
}

.footer a {
    font-size: 0.8125rem;
    color: #636366;
}

.footer a:hover { color: var(--color-text-secondary); }

/* ===== Mobile nav toggle ===== */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 101;
}

.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--color-text);
    border-radius: 1px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
    content: '';
    position: absolute;
    left: 0;
    width: 18px;
}

.nav-toggle-icon::before { top: -6px; }
.nav-toggle-icon::after { top: 6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-icon {
    background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after {
    top: 0;
    transform: rotate(-45deg);
}

/* ===== Responsive ===== */
@media (max-width: 1100px) {
    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .services-grid .service-card:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    section { padding: 2.5rem 0; }
    .hero { padding: 2.5rem 0 2rem; }
    .services-grid { grid-template-columns: 1fr; }
    .services-grid .service-card:last-child { grid-column: auto; }
    .products-grid { grid-template-columns: 1fr; }
    
    .nav-toggle {
        display: block;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 1rem 1.5rem;
        gap: 0;
        list-style: none;
        border-bottom: 1px solid var(--color-border);
    }
    
    .nav-links.open {
        display: flex;
    }
    
    .nav-links li {
        margin: 0;
    }
    
    .nav-links a {
        display: block;
        padding: 0.75rem 0;
        font-size: 0.9375rem;
        color: var(--color-text);
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }
    
    .nav-links li:last-child a {
        border-bottom: none;
    }
    
    .footer-inner { flex-direction: column; align-items: center; }
    .footer-nav { flex-wrap: wrap; justify-content: center; gap: 0.375rem 1.25rem; }
    .footer-sep { display: none; }
}

@media (max-width: 480px) {
    .container { padding: 0 1rem; }
    .hero-cta { flex-direction: column; align-items: center; }
    
    .footer-nav {
        display: grid;
        grid-template-columns: repeat(2, auto);
        justify-content: center;
        gap: 0.5rem 1.5rem;
    }
    
    .footer-nav a {
        text-align: center;
    }
}

/* ===== Scroll Reveal ===== */
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Ecosystem note */
.ecosystem-note {
    margin-top: 2.5rem;
    padding: 1.25rem 1.5rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    text-align: center;
    font-size: 0.875rem;
    color: var(--color-text-secondary, #a1a1a6);
    line-height: 1.7;
    font-style: italic;
}

.ecosystem-note strong {
    font-weight: 400;
    font-style: italic;
    color: inherit;
}
