/* ============================================
   CSS Variables & Reset
   ============================================ */
@font-face {
    font-family: 'IBM Plex Sans';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../assets/fonts/ibm-plex-sans-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'IBM Plex Sans';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../assets/fonts/ibm-plex-sans-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    /* Colors */
    --color-bg-primary: #0a0a0f;
    --color-bg-secondary: #12121a;
    --color-bg-card: #1a1a25;

    --color-text-primary: #f0f0f5;
    --color-text-secondary: #a0a0b0;
    --color-text-muted: #6a6a7a;
    --color-accent: #7c8aff;
    --color-accent-hover: #9aa4ff;
    --color-border: #2a2a3a;

    /* Typography */
    --font-heading: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Spacing */
    --section-padding: 120px 0;
    --container-width: 1200px;
    --container-padding: 0 40px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s ease;

    /* Accent RGB (for rgba() usage) */
    --accent-rgb: 124, 138, 255;

    /* Gradients */
    --color-title-gradient: linear-gradient(135deg, #f0f0ff 0%, #ffffff 45%, #dde0ff 100%);
    --color-metrics-gradient: linear-gradient(180deg, #ffffff 30%, #b8bfff 100%);

    /* Shared card tokens */
    --border-accent: 1px solid rgba(var(--accent-rgb), 0.14);
    --gradient-border-hover: linear-gradient(135deg, rgba(var(--accent-rgb), 0.4) 0%, rgba(160, 170, 255, 0.15) 50%, rgba(var(--accent-rgb), 0.4) 100%);
    --shadow-card: 0 18px 60px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.035);
    --shadow-card-hover: 0 24px 70px rgba(0, 0, 0, 0.3), 0 8px 32px rgba(var(--accent-rgb), 0.08), 0 0 0 1px rgba(var(--accent-rgb), 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

html[data-theme="dark-blue"] {
    --color-bg-primary: #080c13;
    --color-bg-secondary: #0f1621;
    --color-bg-card: #151d2a;
    --color-border: #273446;
    --color-accent: #5ba3d9;
    --color-accent-hover: #7bbde6;
    --accent-rgb: 91, 163, 217;
    --color-title-gradient: linear-gradient(135deg, #f1f6ff 0%, #ffffff 45%, #dce8ff 100%);
    --color-metrics-gradient: linear-gradient(180deg, #ffffff 30%, #b7d0e0 100%);
    --gradient-border-hover: linear-gradient(135deg, rgba(var(--accent-rgb), 0.34) 0%, rgba(91, 163, 217, 0.12) 50%, rgba(var(--accent-rgb), 0.34) 100%);
    --shadow-card: 0 18px 60px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.03);
    --shadow-card-hover: 0 24px 70px rgba(0, 0, 0, 0.32), 0 8px 32px rgba(var(--accent-rgb), 0.06), 0 0 0 1px rgba(var(--accent-rgb), 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

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

::selection {
    background: rgba(var(--accent-rgb), 0.3);
    color: #fff;
}

.sr-offscreen {
    position: absolute;
    left: -9999px;
}

:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
}

html {
    scroll-padding-top: 40px;
    font-size: 16px;
}

html.smooth-scroll {
    scroll-behavior: smooth;
}

#testimonials, #security, #metrics, #contact {
    scroll-margin-top: 80px;
}

#features {
    scroll-margin-top: 0;
}

#use-cases {
    scroll-margin-top: 40px;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-primary);
    color: var(--color-text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

/* Ensure all content sits above the overlays */
body > *:not(script):not(#modal-root):not(#cookie-root):not(#nav) {
    position: relative;
    z-index: 1;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: var(--container-padding);
    position: relative;
    z-index: 3;
}

.hero,
.demo,
.metrics,
.features,
.use-cases,
.testimonials,
.security,
.cta,
.team-page,
.footer {
    isolation: isolate;
}

.hero::after,
.demo::before,
.metrics::before,
.features::before,
.use-cases::before,
.testimonials::before,
.security::before,
.cta::after,
.team-page::before,
.footer::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.9;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='180'%3E%3Cg stroke='white' stroke-width='0.5' opacity='0.24' stroke-dasharray='1 6'%3E%3Cline x1='60' y1='0' x2='60' y2='180'/%3E%3Cline x1='120' y1='0' x2='120' y2='180'/%3E%3Cline x1='180' y1='0' x2='180' y2='180'/%3E%3Cline x1='0' y1='45' x2='240' y2='45'/%3E%3Cline x1='0' y1='90' x2='240' y2='90'/%3E%3Cline x1='0' y1='135' x2='240' y2='135'/%3E%3C/g%3E%3Cg stroke='white' stroke-width='0.5' opacity='0.28' stroke-dasharray='4 6'%3E%3Cline x1='0' y1='0' x2='240' y2='0'/%3E%3Cline x1='0' y1='0' x2='0' y2='180'/%3E%3C/g%3E%3C/svg%3E") center top 80px / 240px 180px,
        url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.58' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.14'/%3E%3C/svg%3E") center / 150px 150px;
    mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
}

img, video {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ============================================
   Navigation
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: background-color var(--transition-medium), padding var(--transition-medium);
}

.nav--scrolled {
    background-color: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(12px);
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
}

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

.nav__logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav__logo img {
    height: 28px;
    width: auto;
    filter: invert(1);
}

.nav__wordmark {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.nav__links {
    display: flex;
    gap: 32px;
}

.nav__link {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    transition: color var(--transition-fast);
    position: relative;
    padding-bottom: 4px;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1.5px;
    background: var(--color-accent);
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav__link:hover {
    color: var(--color-text-primary);
}

.nav__link:hover::after {
    width: 100%;
    left: 0;
}

/* Button base */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all var(--transition-fast);
    font-family: var(--font-body);
}

.btn--primary {
    background: linear-gradient(180deg, #8d99ff 0%, #7c8aff 50%, #6b7aef 100%);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow:
        0 0 16px rgba(var(--accent-rgb), 0.15),
        0 1px 3px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn--primary:hover {
    background: linear-gradient(180deg, #9aa4ff 0%, #8d99ff 50%, #7c8aff 100%);
    transform: translateY(-2px);
    box-shadow:
        0 0 24px rgba(var(--accent-rgb), 0.25),
        0 4px 12px rgba(var(--accent-rgb), 0.15),
        0 1px 3px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn--primary:active {
    transform: translateY(0);
    box-shadow:
        0 0 12px rgba(var(--accent-rgb), 0.1),
        0 1px 2px rgba(0, 0, 0, 0.4),
        inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

html[data-theme="dark-blue"] .btn--primary {
    background: linear-gradient(180deg, #6db0de 0%, #4a94c8 52%, #3a7aaf 100%);
    border-color: rgba(190, 220, 238, 0.16);
    box-shadow:
        0 0 16px rgba(var(--accent-rgb), 0.14),
        0 1px 3px rgba(0, 0, 0, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

html[data-theme="dark-blue"] .btn--primary:hover {
    background: linear-gradient(180deg, #82c4ea 0%, #5ba3d9 52%, #4a94c8 100%);
    box-shadow:
        0 0 22px rgba(var(--accent-rgb), 0.2),
        0 4px 12px rgba(var(--accent-rgb), 0.12),
        0 1px 3px rgba(0, 0, 0, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

html[data-theme="dark-blue"] .btn--primary:active {
    box-shadow:
        0 0 12px rgba(var(--accent-rgb), 0.1),
        0 1px 2px rgba(0, 0, 0, 0.4),
        inset 0 1px 2px rgba(0, 0, 0, 0.12);
}

/* Mobile toggle — hidden on desktop */
.nav__mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav__mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-text-primary);
    transition: all var(--transition-fast);
}

/* ============================================
   Hero
   ============================================ */
.hero {
    position: relative;
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 140px 0 48px;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 92% 58% at 50% 68%, rgba(120, 100, 255, 0.18) 0%, rgba(74, 96, 210, 0.1) 36%, transparent 68%),
        radial-gradient(ellipse 90% 60% at 12% 68%, rgba(120, 100, 255, 0.08) 0%, transparent 58%),
        radial-gradient(ellipse 90% 60% at 88% 68%, rgba(100, 140, 255, 0.08) 0%, transparent 58%),
        var(--color-bg-primary);
    z-index: 0;
}

.hero__bg::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 58%;
    width: min(1240px, 112vw);
    height: 360px;
    background: radial-gradient(ellipse at center, rgba(245, 250, 255, 0.36) 0%, rgba(184, 208, 255, 0.22) 24%, rgba(var(--accent-rgb), 0.12) 48%, transparent 72%);
    transform: translate(-50%, -50%) rotate(-5deg);
    transform-origin: center;
    pointer-events: none;
}

html[data-theme="dark-blue"] .hero__bg {
    background:
        radial-gradient(ellipse 92% 58% at 50% 68%, rgba(128, 170, 220, 0.13) 0%, rgba(36, 70, 110, 0.085) 36%, transparent 68%),
        radial-gradient(ellipse 90% 60% at 12% 68%, rgba(48, 92, 136, 0.055) 0%, transparent 58%),
        radial-gradient(ellipse 90% 60% at 88% 68%, rgba(76, 118, 178, 0.055) 0%, transparent 58%),
        var(--color-bg-primary);
}

html[data-theme="dark-blue"] .hero__bg::before {
    background: radial-gradient(ellipse at center, rgba(236, 248, 255, 0.28) 0%, rgba(150, 190, 230, 0.16) 24%, rgba(var(--accent-rgb), 0.08) 48%, transparent 72%);
}

.hero__content {
    position: relative;
    z-index: 1;
    max-width: 820px;
}

.hero__title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    background: var(--color-title-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--color-text-secondary);
    margin-bottom: 40px;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.btn--large {
    padding: 14px 32px;
    font-size: 1rem;
}

/* Hero entrance animation */
@keyframes heroJuniorReveal {
    from {
        opacity: 0;
        transform: translateY(var(--hero-y, 20px)) scale(1.04);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.hero-anim {
    opacity: 0;
    transform: translateY(var(--hero-y, 20px)) scale(1.04);
    animation: heroJuniorReveal var(--hero-duration, 0.8s) cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: calc(var(--anim-order) * 0.09s);
    will-change: opacity, transform;
}

@keyframes demoJuniorReveal {
    from {
        opacity: 0;
        transform: translateY(80px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Nav entrance animation */
@keyframes navFadeDown {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav--entrance {
    opacity: 0;
    transform: translateY(-12px);
    animation: navFadeDown 0.45s cubic-bezier(0.16, 1, 0.3, 1) 0.05s forwards;
}

/* ============================================
   Demo Video
   ============================================ */
.demo {
    padding: 0 0 80px;
    position: relative;
    z-index: 1;
}

.demo__video-wrapper {
    aspect-ratio: 32 / 15;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(var(--accent-rgb), 0.15);
    background-color: transparent;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 80px rgba(var(--accent-rgb), 0.06),
        0 0 0 1px rgba(var(--accent-rgb), 0.12);
    position: relative;
}

.demo-anim {
    opacity: 0;
    transform: translateY(80px);
    animation: demoJuniorReveal 1.35s cubic-bezier(0.16, 1, 0.3, 1) 0.08s forwards;
    will-change: opacity, transform;
}

.demo__video {
    width: 100%;
    height: 100%;
    display: block;
    filter: brightness(0.85);
    object-fit: cover;
}

/* ============================================
   Metrics
   ============================================ */
.metrics {
    padding: var(--section-padding);
    background: linear-gradient(180deg, var(--color-bg-primary) 0%, #10101c 50%, var(--color-bg-primary) 100%);
}

html[data-theme="dark-blue"] .metrics {
    background: linear-gradient(180deg, var(--color-bg-primary) 0%, #0b111b 50%, var(--color-bg-primary) 100%);
}

.metrics__header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 56px;
}

.metrics__eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent);
    margin-bottom: 16px;
}

.metrics__intro {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--color-text-secondary);
    line-height: 1.65;
}

.metrics__intro em {
    color: var(--color-accent);
    font-style: italic;
}

.metrics__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 72px;
    max-width: 1040px;
    margin: 0 auto;
    text-align: center;
}

.metrics__item {
    position: relative;
}

.metrics__number {
    display: block;
    position: relative;
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    line-height: 1;
    font-weight: 700;
    background: var(--color-metrics-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.metrics__item:not(:last-child) .metrics__number::before {
    content: '';
    position: absolute;
    top: 50%;
    left: calc(100% + 20px);
    width: 34px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(184, 191, 255, 0.34));
    transform: translate(-100%, -50%);
}

.metrics__item:not(:last-child) .metrics__number::after {
    content: '';
    position: absolute;
    top: 50%;
    left: calc(100% + 20px);
    width: 8px;
    height: 8px;
    border-top: 1px solid rgba(184, 191, 255, 0.42);
    border-right: 1px solid rgba(184, 191, 255, 0.42);
    transform: translate(-50%, -50%) rotate(45deg);
}

html[data-theme="dark-blue"] .metrics__item:not(:last-child) .metrics__number::before {
    background: linear-gradient(90deg, transparent, rgba(91, 163, 217, 0.34));
}

html[data-theme="dark-blue"] .metrics__item:not(:last-child) .metrics__number::after {
    border-top-color: rgba(91, 163, 217, 0.42);
    border-right-color: rgba(91, 163, 217, 0.42);
}

.metrics__label {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
}

/* ============================================
   Section shared styles
   ============================================ */
.section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent);
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    max-width: 600px;
}

/* ============================================
   Shared Card Styles
   ============================================ */
.card-elevated {
    position: relative;
    background: var(--card-bg, var(--color-bg-card));
    border: var(--card-border, var(--border-accent));
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow, none);
    transition: border-color var(--transition-medium),
                transform var(--transition-medium),
                box-shadow var(--transition-medium);
}

.card-elevated::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 13px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0) 0%, rgba(var(--accent-rgb), 0) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    transition: background var(--transition-medium);
    z-index: 2;
}

.card-elevated:hover {
    border-color: transparent;
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover, var(--card-shadow, none));
}

.card-elevated:hover::before {
    background: var(--gradient-border-hover);
}

/* ============================================
   Features
   ============================================ */
.features {
    padding: var(--section-padding);
    position: relative;
    background:
        radial-gradient(ellipse 82% 52% at 92% 34%, rgba(245, 250, 255, 0.17) 0%, rgba(190, 205, 255, 0.085) 36%, transparent 74%),
        radial-gradient(ellipse 100% 50% at 80% 90%, rgba(90, 110, 255, 0.1) 0%, transparent 55%),
        radial-gradient(ellipse 80% 40% at 10% 60%, rgba(120, 100, 255, 0.06) 0%, transparent 50%),
        var(--color-bg-primary);
}

html[data-theme="dark-blue"] .features {
    background:
        radial-gradient(ellipse 82% 52% at 92% 34%, rgba(236, 248, 255, 0.11) 0%, rgba(145, 182, 220, 0.05) 36%, transparent 74%),
        radial-gradient(ellipse 100% 50% at 80% 90%, rgba(58, 96, 144, 0.08) 0%, transparent 55%),
        radial-gradient(ellipse 80% 40% at 10% 60%, rgba(38, 76, 118, 0.045) 0%, transparent 50%),
        var(--color-bg-primary);
}

.features__header {
    text-align: center;
    margin-bottom: 64px;
}

.features__header .section-title {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.features__header .section-subtitle {
    max-width: 860px;
    margin: 0 auto;
    line-height: 1.7;
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.features__card {
    --card-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 34%), var(--color-bg-card);
    --card-shadow: var(--shadow-card);
    --card-shadow-hover: var(--shadow-card-hover);
}

.features__card-content {
    padding: 32px 32px 28px;
}

.features__card--featured {
    --content-col: minmax(400px, 0.38fr);
    --gap-col: minmax(52px, 0.05fr);
    --video-col: minmax(0, 1.22fr);

    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: var(--content-col) var(--gap-col) var(--video-col);
    align-items: stretch;
    overflow: visible;
    border: none;
    background: transparent;
    box-shadow: none;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.features__card--featured::before {
    display: none;
}

.features__card--featured:hover {
    border-color: transparent;
    transform: none;
    box-shadow: none;
}

.features__connector {
    position: relative;
    grid-column: 2;
    grid-row: 1;
    align-self: stretch;
    overflow: visible;
    pointer-events: none;
    z-index: 1;
}

.features__connector::before,
.features__connector span {
    display: none;
}

.features__card--featured .features__card-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-self: center;
    justify-content: flex-start;
    margin: 40px 0 40px 40px;
    padding: 28px;
    max-width: 440px;
    border: 1px solid rgba(var(--accent-rgb), 0.13);
    border-radius: 12px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)),
        rgba(16, 16, 27, 0.58);
    box-shadow:
        0 18px 44px rgba(0, 0, 0, 0.2),
        44px 0 86px rgba(var(--accent-rgb), 0.075),
        inset 0 1px 0 rgba(255, 255, 255, 0.035);
    z-index: 2;
}

html[data-theme="dark-blue"] .features__card--featured .features__card-content {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.008)),
        rgba(13, 19, 30, 0.72);
    border-color: rgba(var(--accent-rgb), 0.11);
    box-shadow:
        0 18px 44px rgba(0, 0, 0, 0.22),
        44px 0 86px rgba(91, 163, 217, 0.055),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.features__card--featured .features__card-content::after {
    content: '';
    position: absolute;
    top: 52%;
    right: -118px;
    width: 170px;
    height: 76%;
    background:
        radial-gradient(ellipse 58% 50% at 0% 50%, rgba(184, 191, 255, 0.2), rgba(var(--accent-rgb), 0.095) 42%, transparent 78%),
        linear-gradient(104deg, rgba(var(--accent-rgb), 0.095), rgba(var(--accent-rgb), 0.035) 58%, transparent);
    filter: blur(22px);
    opacity: 0.76;
    pointer-events: none;
    transform: translateY(-50%) skewX(-7deg);
    z-index: -1;
}

html[data-theme="dark-blue"] .features__card--featured .features__card-content::after {
    background:
        radial-gradient(ellipse 58% 50% at 0% 50%, rgba(158, 190, 230, 0.14), rgba(var(--accent-rgb), 0.06) 42%, transparent 78%),
        linear-gradient(104deg, rgba(var(--accent-rgb), 0.055), rgba(100, 170, 220, 0.028) 58%, transparent);
    opacity: 0.62;
}

.features__card--featured .features__card-video {
    position: relative;
    grid-column: 3;
    grid-row: 1;
    display: flex;
    align-items: center;
    min-width: 0;
    padding: 0;
    border-top: none;
    border-left: none;
    z-index: 2;
}

.features__card--featured .features__card-vid {
    height: 100%;
    max-height: 720px;
    object-fit: contain;
    background-color: transparent;
}

.features__card--compact-video {
    --content-col: minmax(400px, 0.42fr);
    --gap-col: minmax(52px, 0.06fr);
    --video-col: minmax(0, 0.95fr);
    margin-left: 60px;
}

.features__card--compact-video .features__card-vid {
    width: 80%;
    height: auto;
    max-height: 680px;
}

.features__card--featured-reverse {
    grid-template-columns: var(--video-col) var(--gap-col) var(--content-col);
}

.features__card--featured-reverse .features__card-content {
    grid-column: 3;
    grid-row: 1;
    margin: 40px 40px 40px 0;
}

.features__card--featured-reverse .features__card-content::after {
    right: auto;
    left: -118px;
    background:
        radial-gradient(ellipse 58% 50% at 100% 50%, rgba(184, 191, 255, 0.2), rgba(var(--accent-rgb), 0.095) 42%, transparent 78%),
        linear-gradient(256deg, rgba(var(--accent-rgb), 0.095), rgba(var(--accent-rgb), 0.035) 58%, transparent);
    transform: translateY(-50%) skewX(7deg);
}

html[data-theme="dark-blue"] .features__card--featured-reverse .features__card-content::after {
    background:
        radial-gradient(ellipse 58% 50% at 100% 50%, rgba(158, 190, 230, 0.14), rgba(var(--accent-rgb), 0.06) 42%, transparent 78%),
        linear-gradient(256deg, rgba(var(--accent-rgb), 0.055), rgba(100, 170, 220, 0.028) 58%, transparent);
}

.features__card--featured-reverse .features__card-video {
    grid-column: 1;
}

.features__card--review-video {
    --video-col: minmax(0, 1.2fr);
    --gap-col: minmax(32px, 0.03fr);
    --content-col: minmax(340px, 0.35fr);
}

.features__card--review-video .features__card-content {
    max-width: 390px;
}

.features__card--review-video .features__card-video {
    align-self: center;
    display: flex;
    justify-content: flex-end;
    padding: 0;
    background: transparent;
}

.features__card--review-video .features__card-vid {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 554px;
}

.features__icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background:
        linear-gradient(180deg, rgba(var(--accent-rgb), 0.18), rgba(var(--accent-rgb), 0.08));
    color: var(--color-accent);
    margin-bottom: 22px;
    border: 1px solid rgba(var(--accent-rgb), 0.16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

html[data-theme="dark-blue"] .features__icon,
html[data-theme="dark-blue"] .security__item-icon {
    background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.14), rgba(var(--accent-rgb), 0.055));
    border-color: rgba(var(--accent-rgb), 0.14);
    color: #7bbde6;
}

.features__icon svg {
    width: 26px;
    height: 26px;
}

.features__card-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.features__card-hook {
    font-size: 0.95rem;
    color: var(--color-accent);
    font-weight: 500;
    margin-bottom: 12px;
}

.features__card-desc {
    font-size: 0.9rem;
    color: #b0b0bd;
    line-height: 1.6;
}

.features__card-video {
    padding: 0;
    border-top: none;
    background: transparent;
}

.features__card-vid {
    width: 100%;
    display: block;
    border: 1px solid rgba(var(--accent-rgb), 0.14);
    border-radius: 8px;
    filter: brightness(0.85);
}

/* ============================================
   Use Cases
   ============================================ */
.use-cases {
    position: relative;
    padding: var(--section-padding);
    overflow: hidden;
    background:
        radial-gradient(ellipse 70% 48% at 18% 44%, rgba(245, 250, 255, 0.1) 0%, rgba(190, 205, 255, 0.045) 36%, transparent 74%),
        radial-gradient(ellipse 76% 56% at 88% 58%, rgba(var(--accent-rgb), 0.12) 0%, transparent 62%),
        linear-gradient(180deg, var(--color-bg-primary) 0%, #0d0d18 100%);
}

html[data-theme="dark-blue"] .use-cases {
    background:
        radial-gradient(ellipse 70% 48% at 18% 44%, rgba(236, 248, 255, 0.075) 0%, rgba(145, 182, 220, 0.035) 36%, transparent 74%),
        radial-gradient(ellipse 76% 56% at 88% 58%, rgba(var(--accent-rgb), 0.075) 0%, transparent 62%),
        linear-gradient(180deg, var(--color-bg-primary) 0%, #0a1019 100%);
}

.use-cases__container {
    display: grid;
    grid-template-columns: minmax(0, 0.78fr) minmax(440px, 1fr);
    gap: 72px;
    align-items: center;
}

.use-cases__copy .section-title {
    max-width: 520px;
    margin-bottom: 20px;
}

.use-cases__intro {
    max-width: 560px;
    color: var(--color-text-secondary);
    font-size: clamp(1rem, 2vw, 1.15rem);
    line-height: 1.7;
}

.use-cases__list {
    position: relative;
    display: grid;
    gap: 18px;
    margin-top: 40px;
}

.use-cases__badge {
    position: absolute;
    top: -34px;
    right: 5px;
    z-index: 3;
    font-size: 0.7rem;
    font-weight: 500;
    font-style: italic;
    color: #fff;
    border: none;
    border-radius: 99px;
    padding: 4px 14px;
    background-color: var(--color-accent);
}

.use-cases__item {
    position: relative;
    padding: 0 0 0 24px;
}

.use-cases__item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: var(--color-accent);
    box-shadow: 0 0 18px rgba(var(--accent-rgb), 0.45);
}

html[data-theme="dark-blue"] .use-cases__badge {
    background-color: #4a94c8;
}

html[data-theme="dark-blue"] .use-cases__item::before {
    background-color: #7bbde6;
    box-shadow: 0 0 16px rgba(var(--accent-rgb), 0.32);
}

.use-cases__item h3 {
    font-family: var(--font-heading);
    font-size: 1.02rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.use-cases__item p {
    max-width: 520px;
    color: #b0b0bd;
    font-size: 0.95rem;
    line-height: 1.65;
}

.use-cases__visual {
    position: relative;
    min-width: 0;
    max-width: 100%;
}

.use-cases__visual::before {
    content: '';
    position: absolute;
    inset: 9% 8% 9% auto;
    width: 72%;
    border-radius: 999px;
    background: radial-gradient(ellipse at center, rgba(245, 250, 255, 0.12), rgba(var(--accent-rgb), 0.06) 44%, transparent 72%);
    filter: blur(26px);
    pointer-events: none;
}

html[data-theme="dark-blue"] .use-cases__visual::before {
    background: radial-gradient(ellipse at center, rgba(236, 248, 255, 0.09), rgba(var(--accent-rgb), 0.045) 44%, transparent 72%);
}

.use-cases__track {
    position: relative;
    max-width: 100%;
    height: min(640px, 70vh);
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
}

.use-cases__track::-webkit-scrollbar {
    display: none;
}

/* Auto mode keeps native vertical scrolling so users can manually browse slides. */
.use-cases__track--auto {
    overflow-x: hidden;
    overflow-y: auto;
}

.use-cases__rail {
    display: grid;
    gap: 24px;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    will-change: transform;
}

.use-cases__slide {
    position: relative;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    overflow: hidden;
    background-color: #f4f5f8;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow:
        0 22px 70px rgba(0, 0, 0, 0.42),
        0 0 0 1px rgba(var(--accent-rgb), 0.08);
    transition: opacity 0.45s ease, filter 0.45s ease, transform 0.45s ease;
}

.use-cases__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.use-cases__track--auto .use-cases__slide {
    opacity: 0.5;
    filter: blur(1.1px) brightness(0.78);
    transform: scale(0.965);
}

.use-cases__track--auto .use-cases__slide--active {
    opacity: 1;
    filter: none;
    transform: scale(1);
}

/* ============================================
   Testimonials
   ============================================ */
.testimonials {
    padding: var(--section-padding);
    overflow: hidden;
    background:
        radial-gradient(ellipse 72% 52% at 22% 48%, rgba(245, 250, 255, 0.08) 0%, rgba(190, 205, 255, 0.04) 38%, transparent 78%),
        radial-gradient(ellipse 100% 60% at 50% 100%, rgba(90, 110, 255, 0.12) 0%, transparent 55%),
        linear-gradient(180deg, var(--color-bg-primary) 0%, #0e0e1a 100%);
}

html[data-theme="dark-blue"] .testimonials {
    background:
        radial-gradient(ellipse 72% 52% at 22% 48%, rgba(236, 248, 255, 0.055) 0%, rgba(145, 182, 220, 0.028) 38%, transparent 78%),
        radial-gradient(ellipse 100% 60% at 50% 100%, rgba(58, 96, 144, 0.08) 0%, transparent 55%),
        linear-gradient(180deg, var(--color-bg-primary) 0%, #0a111c 100%);
}

.testimonials__header {
    text-align: center;
    margin-bottom: 48px;
}

/* Base state is the no-JS / reduced-motion manual scroll fallback. */
.testimonials__track {
    display: flex;
    gap: 24px;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 16px;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
    mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
}

.testimonials__track::-webkit-scrollbar {
    display: none;
}

/* Auto mode uses a transform rail to avoid native-scroll startup jitter. */
.testimonials__track--auto {
    display: block;
    overflow-x: hidden;
    overflow-y: hidden;
    scroll-snap-type: none;
}

.testimonials__rail {
    display: flex;
    gap: 24px;
    width: max-content;
    will-change: transform;
}

.testimonials__card {
    flex: 0 0 340px;
    scroll-snap-align: start;
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: opacity 0.45s ease, filter 0.45s ease, transform 0.45s ease, border-color 0.45s ease;
}

.testimonials__track--auto .testimonials__card {
    opacity: 0.52;
    filter: blur(1.1px);
    transform: scale(0.985);
}

.testimonials__track--auto .testimonials__card--active {
    opacity: 1;
    filter: none;
    transform: scale(1);
    border-color: rgba(var(--accent-rgb), 0.18);
}

.testimonials__quote-icon {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    color: var(--color-accent);
    opacity: 0.7;
}

.testimonials__quote {
    font-size: 1.08rem;
    color: var(--color-text-primary);
    line-height: 1.62;
    flex-grow: 1;
}

.testimonials__role {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    font-weight: 500;
}

/* ============================================
   Security
   ============================================ */
.security {
    padding: var(--section-padding);
    background:
        radial-gradient(ellipse 80% 50% at 50% 20%, rgba(90, 110, 255, 0.14) 0%, transparent 55%),
        linear-gradient(180deg, #0e0e1a 0%, #0c0c18 100%);
}

html[data-theme="dark-blue"] .security {
    background:
        radial-gradient(ellipse 80% 50% at 50% 20%, rgba(58, 96, 144, 0.09) 0%, transparent 55%),
        linear-gradient(180deg, #0a111c 0%, #090f18 100%);
}

.security__header {
    text-align: center;
    margin-bottom: 56px;
    scroll-margin-top: 96px;
}

.security__header .section-title {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.security__intro {
    max-width: 680px;
    margin: 0 auto;
    color: var(--color-text-secondary);
    font-size: clamp(1rem, 2vw, 1.15rem);
    line-height: 1.65;
}

.security__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    max-width: 980px;
    margin: 0 auto;
}

.security__item {
    --card-border: 1px solid var(--color-border);
    --card-shadow-hover: 0 8px 32px rgba(var(--accent-rgb), 0.06), 0 0 0 1px rgba(var(--accent-rgb), 0.15);
    padding: 32px;
    text-align: left;
}

.security__item-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.15) 0%, rgba(var(--accent-rgb), 0.05) 100%);
    color: var(--color-accent);
    margin-bottom: 20px;
    border: 1px solid rgba(var(--accent-rgb), 0.2);
}

.security__item-title {
    font-family: var(--font-heading);
    font-size: 1.08rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.security__item-desc {
    font-size: 0.96rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.security__item--certs {
    position: relative;
}

.security__cert-badges {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.security__cert-logo {
    height: 51px;
    width: 51px;
    object-fit: cover;
    border-radius: 50%;
}

.security__cert-logo--lg {
    height: 60px;
    width: 60px;
}

/* ============================================
   Closing CTA
   ============================================ */
.cta {
    position: relative;
    padding: 160px 0;
    text-align: center;
    overflow: hidden;
}

.cta__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 120% 70% at 50% 110%, rgba(90, 110, 255, 0.24) 0%, transparent 50%),
        radial-gradient(ellipse 80% 50% at 30% 80%, rgba(120, 100, 255, 0.13) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 70% 90%, rgba(100, 140, 255, 0.1) 0%, transparent 50%),
        #0c0c18;
    z-index: 0;
}

html[data-theme="dark-blue"] .cta__bg {
    background:
        radial-gradient(ellipse 120% 70% at 50% 110%, rgba(58, 96, 144, 0.14) 0%, transparent 50%),
        radial-gradient(ellipse 80% 50% at 30% 80%, rgba(38, 76, 118, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 70% 90%, rgba(88, 128, 176, 0.065) 0%, transparent 50%),
        #090f18;
}

.cta__content {
    position: relative;
    z-index: 1;
}

.cta__title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.cta__title::before {
    content: '';
    display: block;
    width: 60px;
    height: 1.5px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
    margin: 0 auto 24px;
}

html[data-theme="dark-blue"] .cta__title::before,
html[data-theme="dark-blue"] .nav__link::after {
    background: linear-gradient(90deg, transparent, #7bbde6, transparent);
}

html[data-theme="dark-blue"] .nav__link::after {
    background: #7bbde6;
}

.cta__subtitle {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--color-text-secondary);
    margin-bottom: 40px;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    padding: 56px 0 32px;
    border-top: 1px solid var(--color-border);
}

html[data-theme="dark-blue"] .footer {
    background-color: #080c13;
}

.footer__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.footer__brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer__brand img {
    height: 28px;
    width: auto;
    filter: invert(1);
}

.footer__wordmark {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text-primary);
}

.footer__links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.footer__link {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    transition: color var(--transition-fast);
}

.footer__link:hover {
    color: var(--color-text-primary);
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
}

.footer__copyright {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.footer__legal {
    display: flex;
    gap: 24px;
}

.footer__legal-link {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    transition: color var(--transition-fast);
}

.footer__legal-link:hover {
    color: var(--color-text-secondary);
}

/* ============================================
   Team / Contact page
   ============================================ */
.team-page {
    position: relative;
    z-index: 1;
    padding: 88px 0 112px;
    min-height: 100vh;
    overflow: hidden;
    background:
        radial-gradient(ellipse 72% 44% at 50% 8%, rgba(236, 248, 255, 0.08), transparent 64%),
        radial-gradient(ellipse 46% 40% at 12% 74%, rgba(var(--accent-rgb), 0.07), transparent 70%),
        linear-gradient(180deg, var(--color-bg-primary) 0%, #0a111c 100%);
}

.team-page::after {
    content: '';
    position: absolute;
    inset: auto 8% 4% auto;
    width: min(520px, 42vw);
    height: min(520px, 42vw);
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(circle, rgba(236, 248, 255, 0.055), transparent 68%);
    filter: blur(8px);
}

.team-page__container {
    max-width: 1120px;
}

.team-page__back {
    display: inline-flex;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 16px;
    transition: color var(--transition-fast);
}

.team-page__back:hover {
    color: var(--color-text-primary);
}

.team-page__header {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 32px;
}

.team-page__header h1 {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--color-text-primary);
}

.team-page__intro {
    margin-top: 20px;
    font-size: 1.12rem;
    color: var(--color-text-secondary);
    line-height: 1.65;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.team-page__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
    align-items: stretch;
}

.team-founder {
    overflow: hidden;
    padding: 12px;
    text-align: left;
    border: 1px solid rgba(var(--accent-rgb), 0.14);
    border-radius: 14px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)),
        rgba(15, 22, 33, 0.78);
    box-shadow: var(--shadow-card);
}

.team-founder__image-wrap {
    position: relative;
    height: clamp(360px, 40vw, 520px);
    overflow: hidden;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.035);
}

.team-founder__image-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, transparent 58%, rgba(8, 13, 21, 0.28) 100%),
        linear-gradient(90deg, rgba(var(--accent-rgb), 0.1), transparent 32%, transparent 68%, rgba(255, 255, 255, 0.05));
}

.team-founder__photo {
    width: 100%;
    height: 100%;
    border-radius: 0;
    object-fit: cover;
    margin: 0;
    border: 0;
}

.team-founder--zhong .team-founder__photo {
    object-position: center 18%;
}

.team-founder--misha .team-founder__photo {
    object-position: center 16%;
}

.team-founder__content {
    padding: 28px 24px 24px;
}

.team-founder__heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.team-founder__name {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 2.2vw, 2rem);
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 6px;
}

.team-founder__role {
    font-size: 0.9rem;
    color: var(--color-accent);
    font-weight: 500;
    margin-bottom: 0;
}

.team-founder__bio {
    font-size: 1rem;
    color: #c1c7d2;
    line-height: 1.7;
    margin-bottom: 20px;
}

.team-founder__email-label {
    font-size: 0.9rem;
    color: var(--color-accent);
    margin: 0;
}

.team-founder__email {
    display: inline-flex;
    align-items: center;
    padding: 9px 13px;
    border: 1px solid rgba(var(--accent-rgb), 0.16);
    border-radius: 999px;
    background: rgba(var(--accent-rgb), 0.07);
    color: var(--color-accent);
    font-size: 0.9rem;
    transition:
        border-color var(--transition-fast),
        background-color var(--transition-fast),
        color var(--transition-fast);
}

.team-founder__email:hover {
    border-color: rgba(var(--accent-rgb), 0.32);
    background: rgba(var(--accent-rgb), 0.12);
    color: var(--color-accent-hover);
}

.team-founder__linkedin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(var(--accent-rgb), 0.18);
    border-radius: 50%;
    background: rgba(var(--accent-rgb), 0.08);
    color: var(--color-accent);
    transition:
        border-color var(--transition-fast),
        background-color var(--transition-fast),
        color var(--transition-fast),
        transform var(--transition-fast);
}

.team-founder__linkedin:hover {
    border-color: rgba(var(--accent-rgb), 0.35);
    background: rgba(var(--accent-rgb), 0.14);
    color: var(--color-accent-hover);
    transform: translateY(-1px);
}

/* ============================================
   Legal pages
   ============================================ */
.legal-page {
    position: relative;
    z-index: 1;
    padding: 88px 0 112px;
    min-height: 100vh;
}

.legal-page__container {
    max-width: 980px;
}

.legal-page__back {
    display: inline-flex;
    align-items: center;
    margin-bottom: 48px;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    transition: color var(--transition-fast);
}

.legal-page__back:hover {
    color: var(--color-text-primary);
}

.legal-page__header {
    text-align: left;
    margin-bottom: 40px;
}

.legal-page__header h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.15rem, 4vw, 3.25rem);
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: 0;
    color: var(--color-text-primary);
}

.legal-page__updated {
    margin-top: 14px;
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

.legal-page__content {
    padding: clamp(28px, 5vw, 64px);
    border: 1px solid rgba(var(--accent-rgb), 0.12);
    border-radius: 12px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)),
        rgba(16, 16, 27, 0.72);
    box-shadow:
        0 24px 80px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.legal-page__content h2 {
    margin: 40px 0 16px;
    font-family: var(--font-heading);
    font-size: clamp(1.35rem, 2vw, 1.85rem);
    line-height: 1.18;
    color: var(--color-text-primary);
}

.legal-page__content h2:first-child,
.legal-page__content .legal__updated + h2 {
    margin-top: 0;
}

.legal-page__content h3 {
    margin: 28px 0 10px;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    line-height: 1.35;
    color: var(--color-text-primary);
}

.legal-page__content p {
    margin: 0 0 16px;
    font-size: 0.98rem;
    line-height: 1.75;
    color: var(--color-text-secondary);
}

.legal-page__content strong {
    color: var(--color-text-primary);
    font-weight: 600;
}

.legal-page__notice {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    border: 1px solid rgba(var(--accent-rgb), 0.16);
    border-radius: 8px;
    background: rgba(var(--accent-rgb), 0.06);
}

.legal-page__content .legal-list {
    margin: 0 0 20px 1.25rem;
    padding-left: 1.25rem;
    color: var(--color-text-secondary);
}

.legal-page__content .legal-list .legal-list {
    margin-top: 12px;
    margin-bottom: 12px;
}

.legal-page__content li {
    margin-bottom: 12px;
    padding-left: 0.25rem;
    font-size: 0.98rem;
    line-height: 1.75;
}

.legal-list--decimal {
    list-style-type: decimal;
}

.legal-list--lower-alpha {
    list-style-type: lower-alpha;
}

.legal-list--lower-roman {
    list-style-type: lower-roman;
}

.legal-list--bullet {
    list-style-type: disc;
}

.legal-page__content li::marker {
    color: var(--color-accent);
    font-weight: 600;
}

.legal-page__content .legal__updated {
    margin-bottom: 28px;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.legal-page__content .legal__toc-item {
    margin-bottom: 8px;
    color: var(--color-text-primary);
}

/* ============================================
   Modal
   ============================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    padding: 40px 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-medium), visibility var(--transition-medium);
}

.modal-overlay--active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 520px;
    position: relative;
    transform: translateY(20px);
    transition: transform var(--transition-medium);
}

.modal-overlay--active .modal {
    transform: translateY(0);
}

.modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    padding: 4px;
    transition: color var(--transition-fast);
}

.modal__close:hover {
    color: var(--color-text-primary);
}

.modal__title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.modal__subtitle {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    margin-bottom: 32px;
}

.modal__field {
    margin-bottom: 20px;
}

.modal__label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    margin-bottom: 6px;
}

.modal__input {
    width: 100%;
    padding: 12px 16px;
    background-color: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    color: var(--color-text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: border-color var(--transition-fast);
}

.modal__input::placeholder {
    color: var(--color-text-muted);
}

.modal__input:focus {
    outline: none;
    border-color: var(--color-accent);
}

.modal__textarea {
    resize: vertical;
    min-height: 100px;
}

.modal__row {
    display: flex;
    gap: 16px;
}

.modal__row .modal__field {
    flex: 1;
}

.modal__select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23888' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    cursor: pointer;
}

.modal__select option {
    background-color: var(--color-bg-secondary);
    color: var(--color-text-primary);
}

.modal__fieldset {
    border: none;
    padding: 0;
    margin: 0 0 20px;
}

.modal__fieldset .modal__label {
    margin-bottom: 12px;
}

.modal__radio {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.modal__radio:hover {
    border-color: rgba(var(--accent-rgb), 0.3);
    background-color: rgba(var(--accent-rgb), 0.04);
}

.modal__radio input[type="radio"] {
    margin-top: 3px;
    accent-color: var(--color-accent);
    flex-shrink: 0;
}

.modal__radio-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.modal__radio-content strong {
    font-size: 0.9rem;
    color: var(--color-text-primary);
}

.modal__radio-desc {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    line-height: 1.4;
}

.modal__consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    line-height: 1.5;
    cursor: pointer;
}

.modal__consent input[type="checkbox"] {
    margin-top: 3px;
    accent-color: var(--color-accent);
    flex-shrink: 0;
}

.modal__consent a {
    color: var(--color-accent);
    text-decoration: underline;
}

.modal__consent a:hover {
    color: var(--color-accent-hover);
}

.modal__status {
    min-height: 20px;
    margin: -4px 0 12px;
    color: var(--color-text-secondary);
    font-size: 0.85rem;
    line-height: 1.4;
}

.modal__status--error {
    color: #ff9f9f;
}

.modal__status--success {
    color: #b8ffce;
}

.btn--full {
    width: 100%;
}

.btn--full:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ============================================
   Cookie Consent
   ============================================ */

/* Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px 40px;
    background-color: var(--color-bg-card);
    border: 1px solid rgba(var(--accent-rgb), 0.14);
    border-radius: 0;
    border-top: 1px solid rgba(var(--accent-rgb), 0.14);
    border-left: none;
    border-right: none;
    border-bottom: none;
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.4);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transform: translateY(100%);
    transition: opacity var(--transition-medium), visibility var(--transition-medium), transform var(--transition-medium);
}

.cookie-banner--visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.cookie-banner__title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.cookie-banner__desc {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 0;
}

.cookie-banner__inner {
    display: flex;
    align-items: center;
    gap: 32px;
    max-width: var(--container-width);
    margin: 0 auto;
}

.cookie-banner__text {
    flex: 1;
}

.cookie-banner__actions {
    display: flex;
    flex-direction: row;
    gap: 8px;
    flex-shrink: 0;
}

.cookie-banner__btn {
    padding: 10px 20px;
    font-size: 0.85rem;
    white-space: nowrap;
}

.cookie-banner__btn--secondary {
    background-color: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text-primary);
}

.cookie-banner__btn--secondary:hover {
    border-color: rgba(var(--accent-rgb), 0.3);
    background-color: rgba(var(--accent-rgb), 0.06);
}

.cookie-banner__btn--link {
    background: none;
    border: none;
    color: var(--color-text-secondary);
    padding: 6px 0;
    font-size: 0.85rem;
}

.cookie-banner__btn--link:hover {
    color: var(--color-accent);
}

/* Modal overlay */
.cookie-overlay {
    position: fixed;
    inset: 0;
    z-index: 1500;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-medium), visibility var(--transition-medium);
}

.cookie-overlay--active {
    opacity: 1;
    visibility: visible;
}

/* Modal */
.cookie-modal {
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    width: 100%;
    max-width: 520px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    transform: translateY(20px);
    transition: transform var(--transition-medium);
}

.cookie-overlay--active .cookie-modal {
    transform: translateY(0);
}

.cookie-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 0;
}

.cookie-modal__title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
}

.cookie-modal__close {
    background: none;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    padding: 4px;
    transition: color var(--transition-fast);
}

.cookie-modal__close:hover {
    color: var(--color-text-primary);
}

/* Tabs */
.cookie-modal__tabs {
    display: flex;
    border-bottom: 1px solid var(--color-border);
    padding: 0 24px;
    margin-top: 16px;
    justify-content: center;
}

.cookie-modal__tab {
    flex: 1;
    text-align: center;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 10px 16px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: color var(--transition-fast), border-color var(--transition-fast);
}

.cookie-modal__tab:hover {
    color: var(--color-text-secondary);
}

.cookie-modal__tab--active {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
}

/* Panels */
.cookie-modal__panels {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
    min-height: 160px;
}

.cookie-modal__panel {
    display: none;
}

.cookie-modal__panel--active {
    display: block;
}

.cookie-modal__panel p {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 12px;
}

.cookie-modal__panel p:last-child {
    margin-bottom: 0;
}

.cookie-modal__panel a {
    color: var(--color-accent);
    text-decoration: underline;
}

.cookie-modal__panel a:hover {
    color: var(--color-accent-hover);
}

/* Cookie categories */
.cookie-category {
    padding: 16px;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    margin-bottom: 12px;
}

.cookie-category:last-child {
    margin-bottom: 0;
}

.cookie-category__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.cookie-category__label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cookie-category__name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-primary);
}

.cookie-category__count {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--color-text-muted);
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--color-border);
    border-radius: 99px;
    padding: 1px 7px;
    line-height: 1.4;
}

.cookie-category__cookies {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    font-family: monospace;
    margin: 6px 0 0;
}

.cookie-category--empty {
    opacity: 0.6;
}

.cookie-category--empty .cookie-category__header {
    margin-bottom: 6px;
}

.cookie-category__desc {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    line-height: 1.5;
    margin: 0;
}

/* Toggle switch */
.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
    flex-shrink: 0;
    cursor: pointer;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-toggle__slider {
    position: absolute;
    inset: 0;
    background-color: var(--color-border);
    border-radius: 22px;
    transition: background-color var(--transition-fast);
}

.cookie-toggle__slider::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    left: 3px;
    bottom: 3px;
    background-color: var(--color-text-primary);
    border-radius: 50%;
    transition: transform var(--transition-fast);
}

.cookie-toggle input:checked + .cookie-toggle__slider {
    background-color: var(--color-accent);
}

.cookie-toggle input:checked + .cookie-toggle__slider::before {
    transform: translateX(18px);
}

.cookie-toggle--locked {
    opacity: 0.5;
    cursor: not-allowed;
}

.cookie-category__provider {
    font-size: 0.78rem;
    color: var(--color-text-muted);
    margin: 8px 0 0;
}

.cookie-category__provider a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.cookie-category__provider a:hover {
    color: var(--color-accent-hover);
    text-decoration: underline;
}

/* Cookie detail cards */
.cookie-detail {
    margin-top: 12px;
    padding: 16px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.015);
}

.cookie-detail + .cookie-detail {
    margin-top: 8px;
}

.cookie-detail__name {
    display: block;
    font-family: monospace;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 8px;
}

.cookie-detail__desc {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin: 0;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-border);
}

.cookie-detail__meta {
    display: flex;
    padding-top: 10px;
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    margin: 0;
    white-space: nowrap;
}

.cookie-detail__meta span {
    flex: 1;
}

.cookie-detail__meta strong {
    color: var(--color-text-primary);
    font-weight: 600;
}

/* Footer */
.cookie-modal__footer {
    display: flex;
    gap: 8px;
    padding: 16px 24px;
    border-top: 1px solid var(--color-border);
}

.cookie-modal__footer .cookie-banner__btn {
    flex: 1;
    padding: 10px 12px;
    font-size: 0.8rem;
}

/* ============================================
   Scroll Animations
   ============================================ */
/* Only hide elements when JS is active — prevents invisible content */
.js-loaded .fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: calc(var(--stagger, 0) * 0.1s);
}

.js-loaded .fade-in--visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    body,
    .nav--entrance,
    .hero-anim,
    .demo-anim,
    .js-loaded .fade-in,
    .use-cases__rail,
    .testimonials__rail {
        opacity: 1;
        filter: none;
        transform: none;
        animation: none;
        transition: none;
        transition-delay: 0s;
    }

    .testimonials__track--auto {
        overflow-x: auto;
    }

    .use-cases__track--auto {
        overflow-y: auto;
    }

    .use-cases__track--auto .use-cases__slide,
    .testimonials__track--auto .testimonials__card {
        opacity: 1;
        filter: none;
        transform: none;
    }
}

/* ============================================
   Responsive
   ============================================ */

/* Tablet */
@media (max-width: 768px) {
    :root {
        --section-padding: 80px 0;
        --container-padding: 0 24px;
    }

    .nav__links {
        display: none;
    }

    .nav__cta {
        display: none;
    }

    .nav__mobile-toggle {
        display: flex;
    }

    /* Mobile menu */
    .nav__links--open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 1000;
        background-color: var(--color-bg-primary);
        padding: 24px 40px;
        gap: 20px;
        border-bottom: 1px solid var(--color-border);
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
    }

    .metrics__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    .metrics__item::before,
    .metrics__item::after,
    .metrics__number::before,
    .metrics__number::after {
        display: none;
    }

    .features__grid {
        grid-template-columns: 1fr;
    }

    .features__card--featured {
        grid-template-columns: 1fr;
        background: var(--color-bg-card);
        border: 1px solid rgba(var(--accent-rgb), 0.14);
        overflow: hidden;
        box-shadow: var(--shadow-card);
        max-width: none;
        margin-left: 0;
        margin-right: 0;
    }

    .features__connector {
        display: none;
    }

    .features__card--featured .features__card-content {
        grid-column: 1;
        grid-row: auto;
        margin: 0;
        padding: 32px 32px 28px;
        max-width: none;
    }

    .features__card--featured .features__card-video {
        grid-column: 1;
        grid-row: auto;
        padding: 0;
        border-top: none;
        border-left: none;
    }

    .features__card--featured .features__card-vid {
        width: 100%;
        height: auto;
        max-height: none;
    }

    .use-cases__container {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .use-cases__copy .section-title,
    .use-cases__intro {
        max-width: none;
    }

    .use-cases__track {
        height: 560px;
    }

    .use-cases__slide {
        min-height: 0;
    }

    .security__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer__top {
        flex-direction: column;
        gap: 32px;
    }

    .footer__links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 18px 28px;
    }

    .footer__bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .modal {
        margin: 16px;
        padding: 24px;
    }

    .modal__row {
        flex-direction: column;
        gap: 0;
    }

    .modal-overlay {
        align-items: flex-start;
        padding: 16px;
    }

    .modal {
        max-height: calc(100dvh - 32px);
        overflow-y: auto;
    }

    .team-page {
        padding: 76px 0 80px;
    }

    .team-page__header {
        margin-bottom: 40px;
    }

    .legal-page {
        padding: 76px 0 80px;
    }

    .team-page__grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .team-founder__image-wrap {
        height: min(520px, 110vw);
    }

    .team-founder__content {
        padding: 24px 20px 22px;
    }

    .cookie-banner {
        padding: 20px 24px;
    }

    .cookie-banner__inner {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }

    .cookie-banner__actions {
        flex-wrap: wrap;
    }

    .cookie-modal__footer {
        flex-wrap: wrap;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    :root {
        --container-padding: 0 16px;
    }

    .metrics__grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .hero__title {
        font-size: clamp(2.15rem, 11vw, 2.75rem);
    }

    .features__header .section-title {
        font-size: clamp(1.8rem, 9vw, 2.25rem);
    }

    .security__grid {
        grid-template-columns: 1fr;
    }

    .security__item {
        padding: 28px 24px;
    }

    .use-cases__track {
        height: 480px;
    }

    .use-cases__slide {
        min-height: 0;
    }

    .testimonials__card {
        flex: 0 0 280px;
    }

    .cta {
        padding: 100px 0;
    }
}
