/* ============================================================
   LAYER 1: DESIGN TOKENS (Variables)
   ============================================================ */
:root {
    --color-void: #0c0c12;
    --color-void-elevated: #121218;
    --color-void-surface: #1a1a24;

    --color-accent-cyan: #6ec8d4;
    --color-accent-purple: #a88bd7;
    --color-accent-magenta: #d488aa;
    --color-accent-blue: #6a9fe4;
    --color-accent-teal: #6ac8ae;

    --color-glass-fill: rgba(255, 255, 255, 0.05);
    --color-glass-stroke: rgba(255, 255, 255, 0.12);
    --color-glass-highlight: rgba(255, 255, 255, 0.18);

    --color-text-primary: rgba(255, 255, 255, 0.95);
    --color-text-secondary: rgba(255, 255, 255, 0.65);
    --color-text-tertiary: rgba(255, 255, 255, 0.4);

    --blur-subtle: 8px;
    --blur-medium: 20px;
    --blur-heavy: 40px;
    --blur-extreme: 80px;

    --shadow-ambient: 0 0 80px rgba(94, 184, 196, 0.04);
    --shadow-elevated:
        0 4px 24px rgba(0, 0, 0, 0.4),
        0 12px 48px rgba(0, 0, 0, 0.3);
    --shadow-floating:
        0 8px 32px rgba(0, 0, 0, 0.5),
        0 24px 80px rgba(0, 0, 0, 0.4);
    --shadow-glow-cyan: 0 0 40px rgba(94, 184, 196, 0.2);
    --shadow-glow-purple: 0 0 40px rgba(154, 123, 199, 0.2);

    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-decelerate: cubic-bezier(0, 0, 0.2, 1);
    --duration-fast: 150ms;
    --duration-normal: 300ms;
    --duration-slow: 500ms;
    --duration-drift: 20s;

    --font-display: -apple-system, 'SF Pro Display', 'Helvetica Neue', sans-serif;
    --font-body: -apple-system, 'SF Pro Text', 'Helvetica Neue', sans-serif;
    --font-mono: 'SF Mono', 'Fira Code', monospace;

    --text-hero: clamp(3rem, 12vw, 8rem);
    --text-display: clamp(2rem, 6vw, 4rem);
    --text-heading: clamp(1.5rem, 3vw, 2.5rem);
    --text-subheading: clamp(1.1rem, 2vw, 1.5rem);
    --text-body: 1rem;
    --text-caption: 0.875rem;

    --tracking-tight: -0.03em;
    --tracking-normal: 0;
    --tracking-wide: 0.05em;

    --radius-small: 12px;
    --radius-medium: 20px;
    --radius-large: 28px;
    --radius-pill: 9999px;

    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;

    --container-max: 1400px;
    --container-narrow: 900px;
}


/* ============================================================
   LAYER 2: CSS RESET & BASE
   ============================================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    color: var(--color-text-primary);
    background: var(--color-void);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

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

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

button, input, textarea, select {
    font: inherit;
    color: inherit;
    background: none;
    border: none;
    outline: none;
}

ul, ol {
    list-style: none;
}


/* ============================================================
   LAYER 3: AMBIENT BACKGROUND SYSTEM
   ============================================================ */
.ambient-canvas {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    background: var(--color-void);
}

.ambient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(var(--blur-extreme));
    opacity: 0.5;
    will-change: transform, opacity;
    transform-origin: center center;
    --mouse-x: 0px;
    --mouse-y: 0px;
    transform: translate(var(--mouse-x), var(--mouse-y));
    transition: opacity 0.3s ease;
}

.ambient-orb--cyan {
    width: 60vmax;
    height: 60vmax;
    background: radial-gradient(circle, var(--color-accent-cyan) 0%, transparent 70%);
    top: -20%;
    left: -10%;
    animation: drift-cyan 15s ease-in-out infinite;
}

.ambient-orb--purple {
    width: 50vmax;
    height: 50vmax;
    background: radial-gradient(circle, var(--color-accent-purple) 0%, transparent 70%);
    top: 40%;
    right: -15%;
    animation: drift-purple 18s ease-in-out infinite;
}

.ambient-orb--magenta {
    width: 45vmax;
    height: 45vmax;
    background: radial-gradient(circle, var(--color-accent-magenta) 0%, transparent 70%);
    bottom: -20%;
    left: 30%;
    animation: drift-magenta 20s ease-in-out infinite;
}

.ambient-orb--blue {
    width: 40vmax;
    height: 40vmax;
    background: radial-gradient(circle, var(--color-accent-blue) 0%, transparent 70%);
    top: 60%;
    left: -5%;
    animation: drift-blue 22s ease-in-out infinite;
}

@keyframes drift-cyan {
    0%, 100% {
        transform: translate(var(--mouse-x), var(--mouse-y)) scale(1);
        opacity: 0.5;
    }

    25% {
        transform: translate(calc(15vw + var(--mouse-x)), calc(10vh + var(--mouse-y))) scale(1.15);
        opacity: 0.6;
    }

    50% {
        transform: translate(calc(25vw + var(--mouse-x)), calc(-5vh + var(--mouse-y))) scale(1.05);
        opacity: 0.45;
    }

    75% {
        transform: translate(calc(10vw + var(--mouse-x)), calc(-15vh + var(--mouse-y))) scale(1.1);
        opacity: 0.55;
    }
}

@keyframes drift-purple {
    0%, 100% {
        transform: translate(var(--mouse-x), var(--mouse-y)) scale(1);
        opacity: 0.5;
    }

    25% {
        transform: translate(calc(-20vw + var(--mouse-x)), calc(15vh + var(--mouse-y))) scale(1.2);
        opacity: 0.6;
    }

    50% {
        transform: translate(calc(-10vw + var(--mouse-x)), calc(25vh + var(--mouse-y))) scale(0.95);
        opacity: 0.4;
    }

    75% {
        transform: translate(calc(-25vw + var(--mouse-x)), calc(5vh + var(--mouse-y))) scale(1.1);
        opacity: 0.55;
    }
}

@keyframes drift-magenta {
    0%, 100% {
        transform: translate(var(--mouse-x), var(--mouse-y)) scale(1);
        opacity: 0.5;
    }

    25% {
        transform: translate(calc(20vw + var(--mouse-x)), calc(-10vh + var(--mouse-y))) scale(1.1);
        opacity: 0.55;
    }

    50% {
        transform: translate(calc(-15vw + var(--mouse-x)), calc(-5vh + var(--mouse-y))) scale(1.2);
        opacity: 0.6;
    }

    75% {
        transform: translate(calc(-25vw + var(--mouse-x)), calc(10vh + var(--mouse-y))) scale(0.9);
        opacity: 0.45;
    }
}

@keyframes drift-blue {
    0%, 100% {
        transform: translate(var(--mouse-x), var(--mouse-y)) scale(1);
        opacity: 0.5;
    }

    25% {
        transform: translate(calc(10vw + var(--mouse-x)), calc(-25vh + var(--mouse-y))) scale(1.15);
        opacity: 0.6;
    }

    50% {
        transform: translate(calc(20vw + var(--mouse-x)), calc(-10vh + var(--mouse-y))) scale(1.05);
        opacity: 0.5;
    }

    75% {
        transform: translate(calc(5vw + var(--mouse-x)), calc(-30vh + var(--mouse-y))) scale(1.2);
        opacity: 0.55;
    }
}


/* ============================================================
   LAYER 4: BASE OBJECTS
   ============================================================ */

.glass-surface {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(var(--blur-medium)) saturate(130%);
    -webkit-backdrop-filter: blur(var(--blur-medium)) saturate(130%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-large);
    position: relative;

    /* 液态玻璃光影 */
    box-shadow:
        inset 0 1px 0 0 rgba(255, 255, 255, 0.15),
        inset 0 -2px 8px 0 rgba(0, 0, 0, 0.08),
        0 8px 32px -4px rgba(0, 0, 0, 0.3);
}

.glass-surface::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.2) 0%,
            transparent 40%,
            transparent 60%,
            rgba(255, 255, 255, 0.05) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.spatial-container {
    box-shadow:
        inset 0 1px 0 0 rgba(255, 255, 255, 0.1),
        0 8px 32px -4px rgba(0, 0, 0, 0.3);
    transition:
        transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
        box-shadow 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.spatial-container:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow:
        inset 0 1px 1px 0 rgba(255, 255, 255, 0.15),
        0 0 20px 2px rgba(255, 255, 255, 0.05),
        0 16px 48px -8px rgba(0, 0, 0, 0.35);
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.container--narrow {
    max-width: var(--container-narrow);
}


/* ============================================================
   LAYER 5: NAVIGATION DOCK
   ============================================================ */
.nav-dock {
    position: fixed;
    bottom: var(--space-md);
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;

    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-sm);

    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(var(--blur-heavy)) saturate(180%);
    -webkit-backdrop-filter: blur(var(--blur-heavy)) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-pill);
    box-shadow:
        var(--shadow-floating),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 0 1px rgba(0, 0, 0, 0.1);
}

.nav-dock__link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xs) var(--space-sm);
    border-radius: 9999px;
    font-size: var(--text-caption);
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    background: transparent !important;
    border: 1px solid transparent;
    box-shadow: none;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s ease, z-index 0s;
    isolation: isolate;
    z-index: 1;
}

.nav-dock__link::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 9999px;
    z-index: -1;
    background: rgba(255, 255, 255, 0.05);
    opacity: 0;
    transform: scale(0.8);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    box-shadow: none;
    transition:
        opacity 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
        transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
        background 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
        backdrop-filter 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
        -webkit-backdrop-filter 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
        box-shadow 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.nav-dock__link span {
    position: relative;
    z-index: 1;
    display: inline-block;
    transition:
        transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
        filter 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
        text-shadow 0.4s ease;
}

.nav-dock__link:hover,
.nav-dock__link--active {
    z-index: 10;
    color: rgba(255, 255, 255, 0.95);
}

.nav-dock__link:hover::before,
.nav-dock__link--active::before {
    opacity: 1;
    transform: scale(1.25);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    box-shadow:
        inset 0 1px 0 0 rgba(255, 255, 255, 0.4),
        inset 0 0 8px 2px rgba(255, 255, 255, 0.05),
        inset 0 -2px 8px 0 rgba(0, 0, 0, 0.12),
        0 8px 16px -5px rgba(0, 0, 0, 0.3);
}

.nav-dock__link:hover span,
.nav-dock__link--active span {
    transform: scale(1.15, 1.2);
    filter: blur(0.3px);
    text-shadow:
        -0.5px 0 0 rgba(255, 200, 200, 0.3),
        0.5px 0 0 rgba(200, 200, 255, 0.3),
        0 0 8px rgba(255, 255, 255, 0.15);
}

.nav-dock__link--active::before {
    background: rgba(255, 255, 255, 0.04);
    transform: scale(1.25);
}

.nav-dock__link--active {
    color: rgba(255, 255, 255, 1);
}

.nav-dock:hover .nav-dock__link--active:not(:hover)::before {
    opacity: 0;
    transform: scale(0.8);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    box-shadow: none;
    transition:
        opacity 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
        transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
        backdrop-filter 0.3s ease,
        -webkit-backdrop-filter 0.3s ease,
        box-shadow 0.3s ease;
}

.nav-dock:hover .nav-dock__link--active:not(:hover) {
    color: rgba(255, 255, 255, 0.6);
}

.nav-dock:hover .nav-dock__link--active:not(:hover) span {
    transform: scale(1);
}

.nav-dock__link:hover::before {
    opacity: 1 !important;
    transform: scale(1.4) !important;
    background: radial-gradient(ellipse at center,
            rgba(255, 255, 255, 0.02) 0%,
            rgba(255, 255, 255, 0.06) 50%,
            rgba(255, 255, 255, 0.02) 100%) !important;
    backdrop-filter: blur(14px) saturate(130%) !important;
    -webkit-backdrop-filter: blur(14px) saturate(130%) !important;
    box-shadow:
        inset 0 1px 2px 0 rgba(255, 255, 255, 0.5),
        inset 0 0 10px 1px rgba(255, 255, 255, 0.08),
        inset 0 -3px 8px 0 rgba(0, 0, 0, 0.15),
        0 0 12px 1px rgba(255, 255, 255, 0.1),
        0 10px 24px -6px rgba(0, 0, 0, 0.35) !important;
}

.nav-dock__link:hover {
    color: rgba(255, 255, 255, 1) !important;
    z-index: 10 !important;
}

.nav-dock__link:hover span {
    transform: scale(1.18, 1.25) !important;
    filter: blur(0.4px) !important;
    text-shadow:
        -0.6px 0 0 rgba(255, 180, 180, 0.35),
        0.6px 0 0 rgba(180, 180, 255, 0.35),
        0 0 10px rgba(255, 255, 255, 0.2) !important;
}

.nav-dock__link--active:hover::before {
    transform: scale(1.5) !important;
    background: radial-gradient(ellipse at center,
            rgba(255, 255, 255, 0.03) 0%,
            rgba(255, 255, 255, 0.08) 50%,
            rgba(255, 255, 255, 0.03) 100%) !important;

    box-shadow:
        inset 0 1px 3px 0 rgba(255, 255, 255, 0.6),
        inset 0 0 12px 2px rgba(255, 255, 255, 0.1),
        inset 0 -4px 10px 0 rgba(0, 0, 0, 0.18),
        0 0 15px 1px rgba(255, 255, 255, 0.12),
        0 12px 28px -6px rgba(0, 0, 0, 0.4) !important;
}

.nav-dock__link--active:hover span {
    transform: scale(1.22, 1.3) !important;
    filter: blur(0.5px) !important;
    text-shadow:
        -0.8px 0 0 rgba(255, 160, 160, 0.4),
        0.8px 0 0 rgba(160, 160, 255, 0.4),
        0 0 12px rgba(255, 255, 255, 0.25) !important;
}

.nav-dock__link:active::before {
    opacity: 1;
    transform: scale(1.1);
    box-shadow:
        inset 0 2px 3px 0 rgba(255, 255, 255, 0.4),
        inset 0 0 6px 1px rgba(255, 255, 255, 0.06),
        inset 0 -1px 5px 0 rgba(0, 0, 0, 0.15),
        0 0 8px 0 rgba(255, 255, 255, 0.08),
        0 4px 12px -3px rgba(0, 0, 0, 0.3);
}

.nav-dock__link:active span {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .nav-dock {
        bottom: var(--space-sm);
        padding: var(--space-xs);
        gap: 2px;
        max-width: calc(100vw - var(--space-md) * 2);
        overflow-x: auto;
    }

    .nav-dock__link {
        padding: var(--space-xs);
        font-size: 0.75rem;
    }

    .nav-dock__link:hover::before,
    .nav-dock__link--active::before {
        transform: scale(1.15);
    }

    .nav-dock__link--active:hover::before {
        transform: scale(1.2);
    }
}

/* ============================================================
   LAYER 6: COMPONENT - CARD
   ============================================================ */
.ai-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-large);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 4px 20px -4px rgba(0, 0, 0, 0.2);

    padding: var(--space-lg);
    position: relative;
    overflow: hidden;

    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.ai-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(ellipse 120% 80% at 50% -20%,
            rgba(255, 255, 255, 0.1) 0%,
            transparent 50%);
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    pointer-events: none;
}

.ai-card:hover {
    transform: translateY(-8px) scale(1.02);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(110, 200, 212, 0.2);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 12px 40px -10px rgba(110, 200, 212, 0.3),
        0 25px 50px -20px rgba(110, 200, 212, 0.2),
        0 0 80px -25px rgba(110, 200, 212, 0.35);
}

.ai-card:hover::before {
    opacity: 1;
    transform: scale(1);
}

.ai-card__icon {
    width: 64px;
    height: 64px;
    margin-bottom: var(--space-md);
    background: linear-gradient(135deg, var(--color-accent-cyan), var(--color-accent-purple));
    border-radius: var(--radius-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--color-void);
}

.ai-card__icon .spatial-icon {
    width: 32px;
    height: 32px;
    stroke-width: 1.75;
    transition: transform var(--duration-normal) var(--ease-spring);
}

.ai-card:hover .ai-card__icon .spatial-icon {
    transform: scale(1.1);
}

.ai-card__title {
    font-family: var(--font-display);
    font-size: var(--text-subheading);
    font-weight: 600;
    letter-spacing: var(--tracking-tight);
    margin-bottom: var(--space-xs);
}

.ai-card__description {
    color: var(--color-text-secondary);
    font-size: var(--text-body);
    line-height: 1.7;
}

.ai-card__tag {
    display: inline-block;
    margin-top: var(--space-sm);
    padding: var(--space-xs) var(--space-sm);
    background: rgba(0, 245, 255, 0.1);
    border: 1px solid rgba(0, 245, 255, 0.2);
    border-radius: var(--radius-pill);
    font-size: var(--text-caption);
    color: var(--color-accent-cyan);
}


/* ============================================================
   LAYER 7: COMPONENT - BUTTONS
   ============================================================ */

.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: var(--text-body);
    cursor: pointer;
    overflow: visible;
    isolation: isolate;
    background: transparent;
    border: 1px solid transparent;
    transition:
        color 0.3s ease,
        transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
        z-index 0s;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    z-index: -1;
    opacity: 1;
    transform: scale(1);
    transition:
        opacity 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
        transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
        background 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
        backdrop-filter 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
        -webkit-backdrop-filter 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
        box-shadow 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn:hover {
    z-index: 10;
}

.btn:hover::before {
    transform: scale(1.08);
}

.btn:active::before {
    transform: scale(0.98);
}

.btn-primary {
    color: var(--color-void);
}

.btn-primary::before {
    background: linear-gradient(135deg,
            rgba(110, 200, 212, 0.85) 0%,
            rgba(106, 159, 228, 0.85) 100%);
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);

    box-shadow:
        inset 0 1px 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 0 12px 2px rgba(255, 255, 255, 0.15),
        inset 0 -2px 8px 0 rgba(0, 0, 0, 0.15),
        0 4px 20px -2px rgba(110, 200, 212, 0.4);
}

.btn-primary:hover::before {
    transform: scale(1.1);
    background: linear-gradient(135deg,
            rgba(110, 200, 212, 0.9) 0%,
            rgba(106, 159, 228, 0.9) 100%);

    box-shadow:
        inset 0 1px 2px 0 rgba(255, 255, 255, 0.6),
        inset 0 0 15px 3px rgba(255, 255, 255, 0.2),
        inset 0 -3px 10px 0 rgba(0, 0, 0, 0.15),
        0 0 15px 2px rgba(110, 200, 212, 0.3),
        0 8px 30px -4px rgba(110, 200, 212, 0.5);
}

.btn-secondary {
    color: var(--color-text-primary);
}

.btn-secondary::before {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px) saturate(130%);
    -webkit-backdrop-filter: blur(12px) saturate(130%);
    border: 1px solid rgba(255, 255, 255, 0.12);

    box-shadow:
        inset 0 1px 0 0 rgba(255, 255, 255, 0.3),
        inset 0 0 8px 1px rgba(255, 255, 255, 0.05),
        inset 0 -2px 6px 0 rgba(0, 0, 0, 0.1),
        0 4px 12px -3px rgba(0, 0, 0, 0.25);
}

.btn-secondary:hover::before {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);

    box-shadow:
        inset 0 1px 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 0 12px 2px rgba(255, 255, 255, 0.08),
        inset 0 -3px 8px 0 rgba(0, 0, 0, 0.12),
        0 0 10px 1px rgba(255, 255, 255, 0.08),
        0 8px 20px -4px rgba(0, 0, 0, 0.3);
}

.btn-ghost {
    color: var(--color-text-secondary);
}

.btn-ghost::before {
    background: transparent;
    opacity: 0;
    transform: scale(0.9);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    box-shadow: none;
}

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

.btn-ghost:hover::before {
    opacity: 1;
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px) saturate(120%);
    -webkit-backdrop-filter: blur(10px) saturate(120%);

    box-shadow:
        inset 0 1px 0 0 rgba(255, 255, 255, 0.25),
        inset 0 0 6px 1px rgba(255, 255, 255, 0.04),
        inset 0 -2px 5px 0 rgba(0, 0, 0, 0.08),
        0 6px 15px -4px rgba(0, 0, 0, 0.2);
}

.btn-lens-text:hover>* {
    display: inline-block;
    transform: scale(1.05, 1.08);
    filter: blur(0.2px);
    text-shadow:
        -0.3px 0 0 rgba(255, 200, 200, 0.2),
        0.3px 0 0 rgba(200, 200, 255, 0.2);
    transition:
        transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
        filter 0.3s ease,
        text-shadow 0.3s ease;
}


/* ============================================================
   LAYER 8: GRID SYSTEM
   ============================================================ */
.grid-system {
    display: grid;
    gap: var(--space-md);
}

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

.grid-system--3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-system--4 {
    grid-template-columns: repeat(4, 1fr);
}

.grid-system--auto {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

@media (max-width: 1024px) {

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

@media (max-width: 640px) {

    .grid-system--2,
    .grid-system--3,
    .grid-system--4 {
        grid-template-columns: 1fr;
    }
}


/* ============================================================
   LAYER 9: HERO SECTION
   ============================================================ */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-2xl) var(--space-md);
    position: relative;
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-sm);
    background: var(--color-glass-fill);
    backdrop-filter: blur(var(--blur-subtle));
    border: 1px solid var(--color-glass-stroke);
    border-radius: var(--radius-pill);
    font-size: var(--text-caption);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-lg);
}

.hero__eyebrow-dot {
    width: 8px;
    height: 8px;
    background: var(--color-accent-cyan);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

.hero__title {
    font-family: var(--font-display);
    font-size: var(--text-hero);
    font-weight: 700;
    letter-spacing: var(--tracking-tight);
    line-height: 1.15;
    padding-bottom: 0.1em;
    margin-bottom: var(--space-md);

    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.95) 0%,
            rgba(255, 255, 255, 0.85) 40%,
            var(--color-accent-cyan) 60%,
            var(--color-accent-purple) 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-shift 8s ease infinite;
    text-shadow:
        0 0 40px rgba(110, 200, 212, 0.3),
        0 0 80px rgba(168, 139, 215, 0.2),
        0 4px 12px rgba(0, 0, 0, 0.15);
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.1));
    transition: text-shadow 0.5s ease, filter 0.5s ease;
}

@keyframes gradient-shift {
    0%, 100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.hero__subtitle {
    font-size: var(--text-subheading);
    color: var(--color-text-secondary);
    max-width: 600px;
    margin-bottom: var(--space-xl);
    line-height: 1.7;
}

.hero__actions {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
    justify-content: center;
}


/* ============================================================
   LAYER 10: PAGE SECTIONS
   ============================================================ */
.section {
    padding: var(--space-2xl) 0;
}

.section__header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.section__eyebrow {
    font-size: var(--text-caption);
    color: var(--color-accent-cyan);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    margin-bottom: var(--space-xs);
}

.section__title {
    font-family: var(--font-display);
    font-size: var(--text-display);
    font-weight: 700;
    letter-spacing: var(--tracking-tight);
}

.section__description {
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: var(--space-sm) auto 0;
}


/* ============================================================
   LAYER 11: FORM COMPONENTS
   ============================================================ */
.form-modal {
    background: var(--color-glass-fill);
    backdrop-filter: blur(var(--blur-heavy));
    -webkit-backdrop-filter: blur(var(--blur-heavy));
    border: 1px solid var(--color-glass-stroke);
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-floating);
    padding: var(--space-xl);
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
    position: relative;
}

.form-modal::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg,
            var(--color-glass-highlight) 0%,
            transparent 30%,
            transparent 70%,
            rgba(255, 255, 255, 0.05) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-label {
    display: block;
    font-size: var(--text-caption);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-xs);
    font-weight: 500;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: var(--space-sm);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(8px) saturate(120%);
    -webkit-backdrop-filter: blur(8px) saturate(120%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-small);
    color: var(--color-text-primary);
    font-size: var(--text-body);
    box-shadow:
        inset 0 1px 0 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 3px 0 rgba(0, 0, 0, 0.1),
        0 2px 8px -2px rgba(0, 0, 0, 0.2);

    transition:
        background 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
        transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.form-input:hover,
.form-select:hover,
.form-textarea:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(110, 200, 212, 0.5);
    box-shadow:
        inset 0 1px 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 4px 0 rgba(0, 0, 0, 0.1),
        0 0 0 3px rgba(110, 200, 212, 0.1),
        0 0 20px -2px rgba(110, 200, 212, 0.2),
        0 4px 12px -2px rgba(0, 0, 0, 0.25);

    transform: translateY(-1px);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--color-text-tertiary);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.5)' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--space-sm) center;
    padding-right: var(--space-xl);
}

.form-select option {
    background: var(--color-void-surface);
    color: var(--color-text-primary);
}

.form-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    cursor: pointer;
}

.form-checkbox input {
    width: 20px;
    height: 20px;
    appearance: none;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    cursor: pointer;
    position: relative;

    box-shadow:
        inset 0 1px 0 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 2px 0 rgba(0, 0, 0, 0.1);

    transition:
        all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.form-checkbox input:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

.form-checkbox input:checked {
    background: linear-gradient(135deg, rgba(110, 200, 212, 0.8), rgba(106, 159, 228, 0.8));
    border-color: rgba(110, 200, 212, 0.6);

    box-shadow:
        inset 0 1px 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 2px 0 rgba(0, 0, 0, 0.15),
        0 0 10px -1px rgba(110, 200, 212, 0.4);
}

.form-checkbox input:checked::after {
    content: '✓';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-void);
    font-size: 12px;
    font-weight: 700;
}

.form-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.form-radio {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    cursor: pointer;
    flex-shrink: 0;
}

.form-radio input {
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    flex-shrink: 0;
    appearance: none;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-glass-stroke);
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    transition: all var(--duration-fast) var(--ease-smooth);
}

.form-radio input:checked {
    border-color: var(--color-accent-cyan);
    border-width: 6px;
}

.form-error {
    color: var(--color-accent-magenta);
    font-size: var(--text-caption);
    margin-top: var(--space-xs);
    display: none;
}

.form-group.has-error .form-input,
.form-group.has-error .form-select,
.form-group.has-error .form-textarea {
    border-color: var(--color-accent-magenta);
}

.form-group.has-error .form-error {
    display: block;
}


/* ============================================================
   LAYER 12: SUCCESS PAGE
   ============================================================ */
.success-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl);
}

.success-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-large);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 15px 50px -10px rgba(110, 200, 212, 0.2),
        0 30px 80px -20px rgba(110, 200, 212, 0.15),
        0 0 100px -30px rgba(110, 200, 212, 0.25);
    padding: var(--space-2xl);
    text-align: center;
    max-width: 500px;
    position: relative;
}

.success-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(ellipse 150% 100% at 50% -30%,
            rgba(110, 200, 212, 0.08) 0%,
            transparent 50%);
    pointer-events: none;
}

.success-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto var(--space-lg);
    background: linear-gradient(135deg, var(--color-accent-cyan), var(--color-accent-teal));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--color-void);
    animation: success-bounce 0.6s var(--ease-spring);
}

.success-icon .spatial-icon {
    width: 56px;
    height: 56px;
    stroke-width: 2.5;
}

@keyframes success-bounce {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-title {
    font-family: var(--font-display);
    font-size: var(--text-heading);
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.success-message {
    color: var(--color-text-secondary);
    margin-bottom: var(--space-lg);
}


/* ============================================================
   LAYER 13: FEATURE GRID
   ============================================================ */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.feature-grid--3col {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1024px) {
    .feature-grid--3col {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {

    .feature-grid,
    .feature-grid--3col {
        grid-template-columns: 1fr;
    }
}

.feature-item {
    position: relative;
    padding: var(--space-lg);
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(16px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-large);
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 120% 80% at 50% -20%,
            rgba(255, 255, 255, 0.08) 0%,
            transparent 50%);
    border-radius: inherit;
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    pointer-events: none;
}

.feature-item:hover {
    transform: translateY(-6px) scale(1.02);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(110, 200, 212, 0.2);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 8px 32px -8px rgba(110, 200, 212, 0.25),
        0 20px 40px -15px rgba(110, 200, 212, 0.15),
        0 0 60px -20px rgba(110, 200, 212, 0.3);
}

.feature-item:hover::before {
    opacity: 1;
    transform: scale(1);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-sm);
    color: var(--color-accent-cyan);
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.feature-icon .spatial-icon {
    width: 40px;
    height: 40px;
    stroke-width: 1.5;
    transition: all var(--duration-normal) var(--ease-spring);
    filter: drop-shadow(0 0 8px rgba(110, 200, 212, 0.3));
}

.feature-item:hover .feature-icon .spatial-icon {
    transform: scale(1.15) rotate(-5deg);
    filter: drop-shadow(0 0 12px rgba(110, 200, 212, 0.5));
}

.spatial-icon {
    transition: all var(--duration-normal) var(--ease-spring);
}

.spatial-icon--animated {
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.85;
    }
}

.feature-title {
    font-weight: 600;
    font-size: var(--text-subheading);
    margin-bottom: var(--space-xs);
}

.feature-text {
    color: var(--color-text-secondary);
    font-size: var(--text-body);
    line-height: 1.7;
}


/* ============================================================
   LAYER 13.5: STATISTICS SECTION
   ============================================================ */
.stats-container {
    padding: var(--space-xl);
    text-align: center;
    overflow: hidden;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
}

.stat-item {
    padding: var(--space-sm);
}

.stat-value {
    font-size: clamp(1.8rem, 6vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    white-space: nowrap;
    display: inline-block;
    transition: transform 0.1s ease-out;
}

.stat-value[data-counter] {
    will-change: transform, opacity;
}

.stat-value.counter-animating {
    animation: counterGlow 0.8s ease-in-out infinite alternate;
}

.stat-value.counter-complete {
    animation: counterBounce 0.5s var(--ease-spring);
}

@keyframes counterGlow {
    from {
        text-shadow: 0 0 15px rgba(110, 200, 212, 0.2);
    }

    to {
        text-shadow: 0 0 25px rgba(168, 139, 215, 0.35);
    }
}

@keyframes counterBounce {
    0% {
        transform: scale(1);
    }

    30% {
        transform: scale(1.12);
    }

    60% {
        transform: scale(0.95);
    }

    80% {
        transform: scale(1.03);
    }

    100% {
        transform: scale(1);
    }
}

.stat-label {
    margin-top: var(--space-sm);
    color: var(--color-text-secondary);
    font-size: var(--text-caption);
    line-height: 1.5;
}


/* ============================================================
   LAYER 14: TIMELINE (History Page)
   ============================================================ */
.timeline {
    position: relative;
    padding-left: var(--space-xl);
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom,
            var(--color-accent-cyan),
            var(--color-accent-purple),
            var(--color-accent-magenta));
}

.timeline-item {
    position: relative;
    padding-bottom: var(--space-xl);
    padding-left: var(--space-md);
    padding-right: var(--space-md);
    padding-top: var(--space-sm);
    margin-left: calc(-1 * var(--space-md));
    border-radius: var(--radius-medium);
    background: transparent;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.timeline-item:hover {
    background: rgba(255, 255, 255, 0.03);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 8px 24px -8px rgba(110, 200, 212, 0.15),
        0 0 40px -15px rgba(110, 200, 212, 0.2);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: calc(-1 * var(--space-xl) - 7px);
    top: 0;
    width: 16px;
    height: 16px;
    background: var(--color-accent-cyan);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--color-accent-cyan);
}

.timeline-year {
    font-size: var(--text-caption);
    color: var(--color-accent-cyan);
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.timeline-title {
    font-size: var(--text-subheading);
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.timeline-description {
    color: var(--color-text-secondary);
}


/* ============================================================
   LAYER 15: ANIMATION UTILITIES
   ============================================================ */
.anim-fade-up {
    animation: fadeUp 0.8s var(--ease-decelerate) forwards;
    opacity: 0;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.anim-delay-1 {
    animation-delay: 0.1s;
}

.anim-delay-2 {
    animation-delay: 0.2s;
}

.anim-delay-3 {
    animation-delay: 0.3s;
}

.anim-delay-4 {
    animation-delay: 0.4s;
}

.anim-delay-5 {
    animation-delay: 0.5s;
}

.anim-scale-in {
    animation: scaleIn 0.5s var(--ease-spring) forwards;
    opacity: 0;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}


/* ============================================================
   LAYER 16: UTILITY CLASSES
   ============================================================ */
.text-center {
    text-align: center;
}

.text-gradient {
    background: linear-gradient(135deg, var(--color-accent-cyan), var(--color-accent-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mt-sm {
    margin-top: var(--space-sm);
}

.mt-md {
    margin-top: var(--space-md);
}

.mt-lg {
    margin-top: var(--space-lg);
}

.mt-xl {
    margin-top: var(--space-xl);
}

.mb-sm {
    margin-bottom: var(--space-sm);
}

.mb-md {
    margin-bottom: var(--space-md);
}

.mb-lg {
    margin-bottom: var(--space-lg);
}

.mb-xl {
    margin-bottom: var(--space-xl);
}

.pb-dock {
    padding-bottom: 100px;
}


/* ============================================================
   LAYER 17: PAGE HEADER
   ============================================================ */
.page-header {
    padding: var(--space-2xl) 0 var(--space-xl);
    text-align: center;
}

.page-header__title {
    font-family: var(--font-display);
    font-size: var(--text-display);
    font-weight: 700;
    letter-spacing: var(--tracking-tight);
    margin-bottom: var(--space-sm);
}

.page-header__description {
    color: var(--color-text-secondary);
    font-size: var(--text-subheading);
    max-width: 600px;
    margin: 0 auto;
}


/* ============================================================
   LAYER 18: FOOTER
   ============================================================ */
.footer {
    padding: var(--space-xl) 0;
    text-align: center;
    color: var(--color-text-tertiary);
    font-size: var(--text-caption);
    margin-bottom: 80px;
}

.footer a {
    color: var(--color-accent-cyan);
    transition: color var(--duration-fast);
}

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