/* ==========================================================================
   AGE-TGI-2S3 + QEC — Main Stylesheet
   Dark avant-garde quantum-themed design
   ========================================================================== */

/* ── Design Tokens ─────────────────────────────────────────────────────── */
:root {
    /* Colors */
    --c-bg:             #050816;
    --c-bg-alt:         #0a0e27;
    --c-bg-glass:       rgba(10, 14, 39, 0.85);
    --c-surface:        #0f1332;
    --c-surface-hover:  #151a42;
    --c-border:         rgba(255, 255, 255, 0.08);
    --c-border-hover:   rgba(255, 255, 255, 0.15);

    --c-primary:        #00e5ff;
    --c-primary-dim:    rgba(0, 229, 255, 0.12);
    --c-primary-rgb:    0, 229, 255;

    --c-secondary:      #7c4dff;
    --c-secondary-dim:  rgba(124, 77, 255, 0.12);
    --c-secondary-rgb:  124, 77, 255;

    --c-accent:         #ff4081;
    --c-accent-dim:     rgba(255, 64, 129, 0.12);
    --c-accent-rgb:     255, 64, 129;

    --c-success:        #00e676;
    --c-warning:        #ffc107;
    --c-danger:         #ff5252;

    --c-text:           #e0e0e0;
    --c-text-muted:     #8a8fa8;
    --c-text-bright:    #ffffff;

    /* Fonts */
    --f-heading:  'Space Grotesk', sans-serif;
    --f-body:     'Inter', sans-serif;
    --f-code:     'JetBrains Mono', monospace;

    /* Font weights */
    --fw-light:     300;
    --fw-regular:   400;
    --fw-medium:    500;
    --fw-semibold:  600;
    --fw-bold:      700;

    /* Spacing */
    --sp-xs:   0.25rem;
    --sp-sm:   0.5rem;
    --sp-md:   1rem;
    --sp-lg:   1.5rem;
    --sp-xl:   2.5rem;
    --sp-2xl:  4rem;
    --sp-3xl:  6rem;

    /* Shadows */
    --shadow-sm:   0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md:   0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg:   0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow-primary:   0 0 20px rgba(var(--c-primary-rgb), 0.3);
    --shadow-glow-secondary: 0 0 20px rgba(var(--c-secondary-rgb), 0.3);
    --shadow-glow-accent:    0 0 20px rgba(var(--c-accent-rgb), 0.3);
        
        /* ── Shadows ── */
  --shadow2-sm:             0 1px 3px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow2-md:             0 4px 12px rgba(0, 0, 0, 0.4), 0 2px 4px rgba(0, 0, 0, 0.2);
  --shadow2-lg:             0 10px 30px rgba(0, 0, 0, 0.5), 0 4px 10px rgba(0, 0, 0, 0.25);
  --shadow2-xl:             0 20px 60px rgba(0, 0, 0, 0.6), 0 8px 20px rgba(0, 0, 0, 0.3);
  --shadow2-glow-primary:   0 0 20px rgba(0, 229, 255, 0.15), 0 0 40px rgba(0, 229, 255, 0.05);
  --shadow2-glow-secondary: 0 0 20px rgba(124, 77, 255, 0.15), 0 0 40px rgba(124, 77, 255, 0.05);
  --shadow2-glow-accent:    0 0 20px rgba(255, 64, 129, 0.15), 0 0 40px rgba(255, 64, 129, 0.05);


    /* Transitions */
    --duration-fast:   150ms;
    --duration-base:   250ms;
    --duration-slow:   400ms;
    --ease-out:        cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out:     cubic-bezier(0.65, 0, 0.35, 1);

    /* Border radius */
    --radius-sm:  6px;
    --radius-md:  10px;
    --radius-lg:  16px;
    --radius-xl:  24px;
    --radius-full: 9999px;

    /* Z-index layers */
    --z-header:    100;
    --z-megamenu:  200;
    --z-overlay:   300;
    --z-hamburger: 400;
    --z-modal:     500;
    --z-top:       9999;
        
        
     /* ── Color Palette ── */
  --color-bg:              #050816;
  --color-bg-elevated:     #0a0f24;
  --color-bg-surface:      #0d1229;
  --color-bg-glass:        rgba(13, 18, 41, 0.65);
  --color-bg-glass-hover:  rgba(13, 18, 41, 0.80);

  --color-primary:         #00e5ff;
  --color-primary-dim:     rgba(0, 229, 255, 0.15);
  --color-primary-ghost:   rgba(0, 229, 255, 0.06);
  --color-primary-glow:    rgba(0, 229, 255, 0.35);

  --color-secondary:       #7c4dff;
  --color-secondary-dim:   rgba(124, 77, 255, 0.15);
  --color-secondary-ghost: rgba(124, 77, 255, 0.06);

  --color-accent:          #ff4081;
  --color-accent-dim:      rgba(255, 64, 129, 0.15);
  --color-accent-ghost:    rgba(255, 64, 129, 0.06);

  --color-success:         #00e676;
  --color-success-dim:     rgba(0, 230, 118, 0.12);
  --color-warning:         #ffc107;
  --color-error:           #ff5252;
  --color-error-dim:       rgba(255, 82, 82, 0.12);

  --color-text:            #e2e8f0;
  --color-text-secondary:  #94a3b8;
  --color-text-muted:      #64748b;
  --color-text-inverse:    #050816;

  --color-border:          rgba(148, 163, 184, 0.12);
  --color-border-hover:    rgba(148, 163, 184, 0.25);
  --color-divider:         rgba(148, 163, 184, 0.08);

  /* ── Gradients ── */
  --gradient-primary:      linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  --gradient-accent:       linear-gradient(135deg, var(--color-secondary), var(--color-accent));
  --gradient-hero:         radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0, 229, 255, 0.12) 0%, transparent 60%),
                           radial-gradient(ellipse 60% 40% at 80% 50%, rgba(124, 77, 255, 0.06) 0%, transparent 50%),
                           radial-gradient(ellipse 60% 40% at 20% 60%, rgba(255, 64, 129, 0.04) 0%, transparent 50%);
  --gradient-section-alt:  linear-gradient(180deg, rgba(124, 77, 255, 0.03) 0%, transparent 100%);
  --gradient-glass:        linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 100%);
  --gradient-card-top:     linear-gradient(90deg, var(--color-primary), var(--color-secondary), var(--color-accent));

  /* ── Typography ── */
  --font-display:          'Space Grotesk', 'Inter', system-ui, -apple-system, sans-serif;
  --font-body:             'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:             'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;

  --text-xs:               0.75rem;    /* 12px */
  --text-sm:               0.875rem;   /* 14px */
  --text-base:             1rem;       /* 16px */
  --text-lg:               1.125rem;   /* 18px */
  --text-xl:               1.25rem;    /* 20px */
  --text-2xl:              1.5rem;     /* 24px */
  --text-3xl:              1.875rem;   /* 30px */
  --text-4xl:              2.25rem;    /* 36px */
  --text-5xl:              3rem;       /* 48px */
  --text-6xl:              3.75rem;    /* 60px */
  --text-7xl:              4.5rem;     /* 72px */

  --leading-tight:         1.2;
  --leading-snug:          1.35;
  --leading-normal:        1.6;
  --leading-relaxed:       1.75;

  --tracking-tight:        -0.02em;
  --tracking-normal:       0;
  --tracking-wide:         0.02em;
  --tracking-wider:        0.05em;

  --weight-regular:        400;
  --weight-medium:         500;
  --weight-semibold:       600;
  --weight-bold:           700;
  --weight-extrabold:      800;

  /* ── Spacing Scale ── */
  --space-1:               0.25rem;    /* 4px */
  --space-2:               0.5rem;     /* 8px */
  --space-3:               0.75rem;    /* 12px */
  --space-4:               1rem;       /* 16px */
  --space-5:               1.25rem;    /* 20px */
  --space-6:               1.5rem;     /* 24px */
  --space-8:               2rem;       /* 32px */
  --space-10:              2.5rem;     /* 40px */
  --space-12:              3rem;       /* 48px */
  --space-16:              4rem;       /* 64px */
  --space-20:              5rem;       /* 80px */
  --space-24:              6rem;       /* 96px */

  /* ── Layout ── */
  --container-max:         1280px;
  --container-padding:     1.5rem;
  --header-height:         4.5rem;
  --top-bar-height:        2.25rem;

  /* ── Borders ── */
  --radius-sm:             0.375rem;
  --radius-md:             0.625rem;
  --radius-lg:             1rem;
  --radius-xl:             1.5rem;
  --radius-full:           9999px;

  
  /* ── Transitions ── */
  --ease-out:              cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:           cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring:           cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast:         150ms;
  --duration-base:         250ms;
  --duration-slow:         400ms;
  --duration-slower:       600ms;

  /* ── Z-Index Scale ── */
  --z-base:                1;
  --z-dropdown:            100;
  --z-sticky:              200;
  --z-overlay:             300;
  --z-modal:               400;
  --z-toast:               500;
        
}


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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: var(--f-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--c-text);
    background-color: var(--c-bg);
    background-image:
        radial-gradient(ellipse at 20% 50%, rgba(var(--c-primary-rgb), 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(var(--c-secondary-rgb), 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(var(--c-accent-rgb), 0.03) 0%, transparent 50%);
    background-attachment: fixed;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

a {
    color: var(--c-primary);
    text-decoration: none;
    transition: color var(--duration-fast);
}

a:hover {
    color: var(--c-text-bright);
}

ul, ol {
    list-style: none;
}

button {
    font: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

input, select, textarea {
    font: inherit;
    color: inherit;
}

table {
    border-collapse: collapse;
    width: 100%;
}


/* ── Skip Link ──────────────────────────────────────────────────────────── */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--c-primary);
    color: var(--c-bg);
    padding: var(--sp-sm) var(--sp-lg);
    border-radius: var(--radius-md);
    font-weight: var(--fw-bold);
    z-index: var(--z-top);
    transition: top var(--duration-fast);
}

.skip-link:focus {
    top: var(--sp-md);
}


/* ── Typography ─────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--f-heading);
    font-weight: var(--fw-bold);
    line-height: 1.2;
    color: var(--c-text-bright);
}

h1 {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    background: linear-gradient(135deg, var(--c-primary), var(--c-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1.35rem, 3vw, 1.75rem);
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1.1rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: var(--sp-md);
}

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

code {
    font-family: var(--f-code);
    font-size: 0.9em;
    background: var(--c-primary-dim);
    color: var(--c-primary);
    padding: 0.15em 0.4em;
    border-radius: var(--radius-sm);
}

strong {
    font-weight: var(--fw-semibold);
    color: var(--c-text-bright);
}


/* ── Layout ─────────────────────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--sp-lg);
}

.container--narrow {
    max-width: 800px;
}

.section {
    padding: var(--sp-3xl) 0;
}

.section--alt {
    background: var(--c-bg-alt);
}

.section--glass {
    background: linear-gradient(135deg, rgba(var(--c-primary-rgb), 0.05), rgba(var(--c-secondary-rgb), 0.05));
    border-top: 1px solid var(--c-border);
    border-bottom: 1px solid var(--c-border);
}

.section--hero {
    padding: var(--sp-2xl) 0;
    background: linear-gradient(180deg, rgba(var(--c-primary-rgb), 0.06) 0%, transparent 100%);
    text-align: center;
}

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

.section__badge {
    display: inline-block;
    font-family: var(--f-code);
    font-size: 0.75rem;
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--c-primary);
    background: var(--c-primary-dim);
    border: 1px solid rgba(var(--c-primary-rgb), 0.25);
    padding: var(--sp-xs) var(--sp-md);
    border-radius: var(--radius-full);
    margin-bottom: var(--sp-md);
        border-color:rgba(255,64,129,0.3);
}

.section__title {
    margin-bottom: var(--sp-sm);
}

.section__subtitle {
    color: var(--c-text-muted);
    font-size: 1.1rem;
    max-width: 640px;
    margin: 0 auto;
}

.grid {
    display: grid;
    gap: var(--sp-lg);
}

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

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-2xl);
    align-items: start;
}


/* ── Top Bar ────────────────────────────────────────────────────────────── */
.top-bar {
    background: var(--c-bg-alt);
    border-bottom: 1px solid var(--c-border);
    font-size: 0.8rem;
    color: var(--c-text-muted);
    padding: var(--sp-xs) 0;
}

.top-bar__inner {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: var(--sp-lg);
}

.top-bar__item {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-xs);
}

.top-bar__item a {
    color: var(--c-text-muted);
    transition: color var(--duration-fast);
}

.top-bar__item a:hover {
    color: var(--c-primary);
}

.top-bar__lang {
    gap: var(--sp-xs);
}

.top-bar__lang a {
    color: var(--c-text-muted);
    font-weight: var(--fw-medium);
    transition: color var(--duration-fast);
}


/* ── Header ─────────────────────────────────────────────────────────────── */
.header {
    position: sticky;
    top: 0;
    z-index: var(--z-header);
    background: var(--c-bg-glass);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--c-border);
    transition: background var(--duration-base), box-shadow var(--duration-base);
}

.header.scrolled {
    background: rgba(5, 8, 22, 0.95);
    box-shadow: var(--shadow-md);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.header__logo {
    display: flex;
    align-items: center;
    gap: var(--sp-sm);
    text-decoration: none;
    flex-shrink: 0;
}

.logo-icon svg {
    display: block;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-text__main {
    font-family: var(--f-heading);
    font-weight: var(--fw-bold);
    font-size: 1.15rem;
    color: var(--c-text-bright);
}

.logo-text__sub {
    font-family: var(--f-code);
    font-size: 0.7rem;
    color: var(--c-primary);
    letter-spacing: 0.05em;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    gap: 5px;
    z-index: var(--z-hamburger);
}

.hamburger__line {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--c-text-bright);
    border-radius: 2px;
    transition: transform var(--duration-base) var(--ease-out), opacity var(--duration-fast);
}


/* ── Breadcrumb ─────────────────────────────────────────────────────────── */
.breadcrumb {
    padding: var(--sp-sm) 0;
    background: var(--c-bg-alt);
    border-bottom: 1px solid var(--c-border);
    font-size: 0.8rem;
}

.breadcrumb__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--sp-xs);
}

.breadcrumb__item {
    display: flex;
    align-items: center;
    gap: var(--sp-xs);
}

.breadcrumb__item + .breadcrumb__item::before {
    content: '›';
    color: var(--c-text-muted);
    opacity: 0.5;
}

.breadcrumb__item a {
    color: var(--c-text-muted);
}

.breadcrumb__item:last-child a {
    color: var(--c-primary);
    pointer-events: none;
}


/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero .particles-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-2xl);
    align-items: center;
    min-height: 85vh;
    padding: var(--sp-2xl) 0;
}

.hero__badge {
    display: inline-block;
    font-family: var(--f-code);
    font-size: 0.75rem;
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--c-accent);
    background: var(--c-accent-dim);
    border: 1px solid rgba(var(--c-accent-rgb), 0.3);
    padding: var(--sp-xs) var(--sp-md);
    border-radius: var(--radius-full);
    margin-bottom: var(--sp-lg);
}

.hero__title {
    font-size: clamp(2.5rem, 5.5vw, 4rem);
    margin-bottom: var(--sp-lg);
    line-height: 1.1;
}

.hero__subtitle {
    font-size: 1.15rem;
    color: var(--c-text-muted);
    margin-bottom: var(--sp-xl);
    max-width: 540px;
}

.hero__cta {
    display: flex;
    gap: var(--sp-md);
    flex-wrap: wrap;
}

/* Quantum Orb */
.hero__visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero__quantum-orb {
    position: relative;
    width: 380px;
    height: 380px;
}

.orb-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, var(--c-primary), var(--c-secondary));
    border-radius: 50%;
    box-shadow: var(--shadow-glow-primary), var(--shadow-glow-secondary);
}

.orb-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    border: 1.5px solid;
    animation: orb-pulse 4s ease-in-out infinite;
}

.orb-ring:nth-child(1) {
    width: 160px;
    height: 160px;
    margin-top: -80px;
    margin-left: -80px;
    border-color: rgba(var(--c-primary-rgb), 0.35);
    animation-delay: 0s;
}

.orb-ring:nth-child(2) {
    width: 260px;
    height: 260px;
    margin-top: -130px;
    margin-left: -130px;
    border-color: rgba(var(--c-secondary-rgb), 0.25);
    animation-delay: 0.8s;
}

.orb-ring:nth-child(3) {
    width: 360px;
    height: 360px;
    margin-top: -180px;
    margin-left: -180px;
    border-color: rgba(var(--c-accent-rgb), 0.15);
    animation-delay: 1.6s;
}

/* Floating Metrics */
.hero__metric {
    position: absolute;
    font-family: var(--f-code);
    font-size: 0.85rem;
    color: var(--c-text-bright);
    background: var(--c-bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--c-border);
    padding: var(--sp-sm) var(--sp-md);
    border-radius: var(--radius-md);
    animation: float-metric 6s ease-in-out infinite;
    white-space: nowrap;
}

.hero__metric--1 {
    top: 8%;
    right: -10%;
    animation-delay: 0s;
    border-color: rgba(var(--c-primary-rgb), 0.3);
}

.hero__metric--2 {
    bottom: 20%;
    right: -20%;
    animation-delay: 2s;
    border-color: rgba(var(--c-secondary-rgb), 0.3);
}

.hero__metric--3 {
    bottom: 5%;
    left: -5%;
    animation-delay: 4s;
    border-color: rgba(var(--c-accent-rgb), 0.3);
}


/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-xs);
    font-family: var(--f-heading);
    font-weight: var(--fw-semibold);
    font-size: 0.95rem;
    line-height: 1;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    transition:
        transform var(--duration-fast) var(--ease-out),
        box-shadow var(--duration-base),
        background var(--duration-base),
        border-color var(--duration-base),
        color var(--duration-base);
    text-decoration: none;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

/* Variants */
.btn--primary {
    background: linear-gradient(135deg, var(--c-primary), #00b8d4);
    color: var(--c-bg);
    border-color: transparent;
}

.btn--primary:hover {
    box-shadow: var(--shadow-glow-primary);
    color: var(--c-bg);
}

.btn--accent {
    background: linear-gradient(135deg, var(--c-accent), #e91e63);
    color: var(--c-text-bright);
    border-color: transparent;
}

.btn--accent:hover {
    box-shadow: var(--shadow-glow-accent);
    color: var(--c-text-bright);
}

.btn--outline {
    background: transparent;
    color: var(--c-primary);
    border-color: var(--c-primary);
}

.btn--outline:hover {
    background: var(--c-primary-dim);
    box-shadow: var(--shadow-glow-primary);
    color: var(--c-primary);
}

.btn--ghost {
    background: transparent;
    color: var(--c-text-muted);
    border-color: var(--c-border);
}

.btn--ghost:hover {
    border-color: var(--c-text-muted);
    color: var(--c-text-bright);
    background: var(--c-surface);
}

/* Sizes */
.btn--sm {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
}

.btn--lg {
    font-size: 1.05rem;
    padding: 1rem 2rem;
}


/* ── Cards ──────────────────────────────────────────────────────────────── */
.card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    padding: var(--sp-xl);
    transition:
        border-color var(--duration-base),
        box-shadow var(--duration-base),
        transform var(--duration-base) var(--ease-out);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--c-primary), var(--c-secondary), var(--c-accent));
    opacity: 0;
    transition: opacity var(--duration-base);
}

.card:hover {
    border-color: var(--c-border-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.card:hover::before {
    opacity: 1;
}

.card__title {
    margin-bottom: var(--sp-sm);
    color: var(--c-text-bright);
}

.card__text {
    color: var(--c-text-muted);
    font-size: 0.95rem;
}

.card__link {
    display: inline-block;
    margin-top: var(--sp-md);
    color: var(--c-primary);
    font-weight: var(--fw-medium);
    font-size: 0.9rem;
    transition: color var(--duration-fast);
}

.card__link:hover {
    color: var(--c-text-bright);
}

/* Metric Card */
.metric-card {
    text-align: center;
    padding: var(--sp-xl) var(--sp-lg);
}

.metric-card__value {
    font-family: var(--f-heading);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: var(--fw-bold);
    background: linear-gradient(135deg, var(--c-primary), var(--c-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: var(--sp-sm);
}

.metric-card__label {
    font-size: 0.85rem;
    color: var(--c-text-muted);
    font-family: var(--f-code);
}


/* ── Tables ─────────────────────────────────────────────────────────────── */
.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--c-border);
    background: var(--c-surface);
    -webkit-overflow-scrolling: touch;
}

.table-wrapper table {
    min-width: 500px;
}

.table-wrapper thead {
    background: var(--c-bg-alt);
}

.table-wrapper th {
    font-family: var(--f-heading);
    font-size: 0.8rem;
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--c-text-muted);
    padding: var(--sp-md) var(--sp-lg);
    text-align: left;
    position: sticky;
    top: 0;
    z-index: 2;
    border-bottom: 1px solid var(--c-border);
}

.table-wrapper td {
    padding: var(--sp-sm) var(--sp-lg);
    border-bottom: 1px solid var(--c-border);
    font-size: 0.9rem;
    color: var(--c-text);
}

.table-wrapper tbody tr {
    transition: background var(--duration-fast);
}

.table-wrapper tbody tr:hover {
    background: var(--c-surface-hover);
}

.table-wrapper td.highlight,
.table-wrapper tr.highlight td {
    color: var(--c-primary);
    font-weight: var(--fw-semibold);
}

.table-wrapper td.highlight a {
    color: var(--c-primary);
}


/* ── Form Elements ──────────────────────────────────────────────────────── */
.form-group {
    margin-bottom: var(--sp-lg);
}

.form-group label {
    display: block;
    font-weight: var(--fw-medium);
    font-size: 0.9rem;
    margin-bottom: var(--sp-xs);
    color: var(--c-text-bright);
}

.form-group label span {
    color: var(--c-accent);
}

.form-input,
.form-group input,
.form-group select,
.form-group textarea,
.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    color: var(--c-text-bright);
    font-size: 0.95rem;
    transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px var(--c-primary-dim);
}

.form-group input::placeholder,
.form-group textarea::placeholder,
.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--c-text-muted);
    opacity: 0.6;
}

.form-group select,
.contact-form select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%238a8fa8' viewBox='0 0 16 16'%3E%3Cpath d='M8 12L2 6h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-error {
    color: var(--c-danger);
    font-size: 0.8rem;
    margin-top: var(--sp-xs);
    display: none;
}

.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
    border-color: var(--c-danger);
    box-shadow: 0 0 0 3px rgba(255, 82, 82, 0.15);
}

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


/* ── CTA Section ────────────────────────────────────────────────────────── */
.cta-section {
    padding: var(--sp-3xl) 0;
    background: linear-gradient(135deg, rgba(var(--c-primary-rgb), 0.08), rgba(var(--c-secondary-rgb), 0.08));
    border-top: 1px solid var(--c-border);
}

.cta-section__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-xl);
    flex-wrap: wrap;
}

.cta-section__text h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: var(--sp-sm);
}

.cta-section__text p {
    color: var(--c-text-muted);
    margin: 0;
}


/* ── Footer ─────────────────────────────────────────────────────────────── */
.footer {
    padding: var(--sp-3xl) 0 var(--sp-xl);
    background: var(--c-bg-alt);
    border-top: 1px solid var(--c-border);
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: var(--sp-2xl);
    margin-bottom: var(--sp-2xl);
}

.footer__heading {
    font-family: var(--f-heading);
    font-size: 1rem;
    font-weight: var(--fw-semibold);
    color: var(--c-text-bright);
    margin-bottom: var(--sp-lg);
}

.footer p {
    color: var(--c-text-muted);
    font-size: 0.9rem;
}

.footer__links li {
    margin-bottom: var(--sp-sm);
}

.footer__links a {
    color: var(--c-text-muted);
    font-size: 0.9rem;
    transition: color var(--duration-fast);
}

.footer__links a:hover {
    color: var(--c-primary);
}

.footer__social {
    display: flex;
    gap: var(--sp-md);
    margin-top: var(--sp-lg);
}

.footer__social a {
    color: var(--c-text-muted);
    transition: color var(--duration-fast), transform var(--duration-fast);
}

.footer__social a:hover {
    color: var(--c-primary);
    transform: translateY(-2px);
}

.footer__newsletter-field {
    display: flex;
    gap: var(--sp-sm);
}

.footer__newsletter input {
    flex: 1;
    min-width: 0;
    padding: 0.6rem 1rem;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    color: var(--c-text-bright);
    font-size: 0.85rem;
    transition: border-color var(--duration-fast);
}

.footer__newsletter input:focus {
    outline: none;
    border-color: var(--c-primary);
}

.footer__newsletter input::placeholder {
    color: var(--c-text-muted);
    opacity: 0.6;
}

.footer__divider {
    border: none;
    border-top: 1px solid var(--c-border);
    margin-bottom: var(--sp-lg);
}

.footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--sp-md);
    font-size: 0.8rem;
    color: var(--c-text-muted);
}

.footer__bottom-links {
    display: flex;
    gap: var(--sp-lg);
}

.footer__bottom-links a {
    color: var(--c-text-muted);
    transition: color var(--duration-fast);
}

.footer__bottom-links a:hover {
    color: var(--c-primary);
}


/* ── Back to Top ────────────────────────────────────────────────────────── */
.back-to-top {
    position: fixed;
    bottom: var(--sp-xl);
    right: var(--sp-xl);
    width: 48px;
    height: 48px;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-primary);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition:
        opacity var(--duration-base),
        visibility var(--duration-base),
        transform var(--duration-base) var(--ease-out),
        background var(--duration-fast),
        box-shadow var(--duration-fast);
    z-index: var(--z-header);
    cursor: pointer;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--c-primary-dim);
    box-shadow: var(--shadow-glow-primary);
}


/* ── Content Page Styles ────────────────────────────────────────────────── */
.page-hero {
    padding: var(--sp-3xl) 0;
    text-align: center;
    background: linear-gradient(180deg, rgba(var(--c-primary-rgb), 0.06) 0%, transparent 100%);
}

.formula-block {
    position: relative;
    font-family: var(--f-code);
    font-size: 0.9rem;
    background: var(--c-surface);
    border-left: 3px solid var(--c-primary);
    padding: var(--sp-md) var(--sp-lg);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: var(--sp-lg) 0;
    overflow-x: auto;
    color: var(--c-text);
}

.formula-block code {
    background: none;
    color: inherit;
    padding: 0;
    font-size: inherit;
}

.info-box {
    background: var(--c-primary-dim);
    border: 1px solid rgba(var(--c-primary-rgb), 0.25);
    border-radius: var(--radius-md);
    padding: var(--sp-lg);
    color: var(--c-text);
    font-size: 0.95rem;
}

.info-box--success {
    background: rgba(0, 230, 118, 0.1);
    border-color: rgba(0, 230, 118, 0.3);
    color: var(--c-success);
}

.info-box--error {
    background: rgba(255, 82, 82, 0.1);
    border-color: rgba(255, 82, 82, 0.3);
    color: var(--c-danger);
}

.platform-badge {
    display: inline-block;
    font-family: var(--f-code);
    font-size: 0.7rem;
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.2em 0.7em;
    border-radius: var(--radius-full);
    border: 1px solid;
}

.platform-badge--si {
    color: var(--c-primary);
    background: var(--c-primary-dim);
    border-color: rgba(var(--c-primary-rgb), 0.3);
}

.platform-badge--sin {
    color: var(--c-secondary);
    background: var(--c-secondary-dim);
    border-color: rgba(var(--c-secondary-rgb), 0.3);
}


/* ── Responsive: 1200px ─────────────────────────────────────────────────── */
@media (max-width: 1200px) {
    .grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero__quantum-orb {
        width: 300px;
        height: 300px;
    }
}


/* ── Responsive: 992px ─────────────────────────────────────────────────── */
@media (max-width: 992px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: var(--sp-xl);
    }

    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--sp-xl);
    }

    .hero__inner {
        grid-template-columns: 1fr;
        text-align: center;
        min-height: auto;
        padding: var(--sp-2xl) 0;
    }

    .hero__subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero__cta {
        justify-content: center;
    }

    .hero__visual {
        order: -1;
    }

    .hero__quantum-orb {
        width: 250px;
        height: 250px;
    }

    .orb-ring:nth-child(1) {
        width: 110px;
        height: 110px;
        margin-top: -55px;
        margin-left: -55px;
    }

    .orb-ring:nth-child(2) {
        width: 180px;
        height: 180px;
        margin-top: -90px;
        margin-left: -90px;
    }

    .orb-ring:nth-child(3) {
        width: 240px;
        height: 240px;
        margin-top: -120px;
        margin-left: -120px;
    }
}


/* ── Responsive: 768px ─────────────────────────────────────────────────── */
@media (max-width: 768px) {
    :root {
        --sp-3xl: 4rem;
        --sp-2xl: 2.5rem;
    }

    .hamburger {
        display: flex;
    }

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

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

    .cta-section__inner {
        flex-direction: column;
        text-align: center;
    }

    .hero__visual {
        display: none;
    }

    .hero {
        min-height: auto;
        padding: var(--sp-2xl) 0;
    }

    .hero__inner {
        min-height: auto;
    }

    .top-bar__inner {
        justify-content: center;
        gap: var(--sp-md);
        font-size: 0.75rem;
    }

    .section__subtitle {
        font-size: 1rem;
    }
}


/* ── Responsive: 480px ─────────────────────────────────────────────────── */
@media (max-width: 480px) {
    :root {
        --sp-3xl: 3rem;
        --sp-2xl: 2rem;
    }

    .container {
        padding: 0 var(--sp-md);
    }

    .hero__title {
        font-size: 2rem;
    }

    .hero__cta {
        flex-direction: column;
    }

    .hero__cta .btn {
        width: 100%;
    }

    .btn--lg {
        padding: 0.85rem 1.5rem;
    }

    .footer__newsletter-field {
        flex-direction: column;
    }

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

    .table-wrapper td,
    .table-wrapper th {
        padding: var(--sp-sm);
        font-size: 0.8rem;
    }
}





/* ============================================================
   18. INVENTOR SECTION
   ============================================================ */
.inventor-section {
  overflow: hidden;
  padding: var(--space-24) 0;
  position: relative;
}

/* Grid background pattern */
.inventor__grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 20%, transparent 70%);
  pointer-events: none;
}

.inventor__header {
  text-align: center;
  margin-bottom: var(--space-16);
  position: relative;
  z-index: 1;
}

/* Override section__title for this section to allow HTML inside */
.inventor__title {
  -webkit-text-fill-color: initial;
  background: none;
}

/* Gradient text utility */
.gradient-text-cyan {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Content wrapper */
.inventor__content {
  max-width: 900px;
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

/* Layout: photo + bio */
.inventor__layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-10);
}

@media (min-width: 768px) {
  .inventor__layout {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--space-12);
  }
}

/* Photo wrapper */
.inventor__photo-wrap {
  flex-shrink: 0;
}

/* Photo frame with gradient border and glow */
.inventor__photo-frame {
  position: relative;
  width: 224px;
  height: 288px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(0, 229, 255, 0.2);
  background: var(--color-bg-elevated);
  transition: all var(--duration-slow) var(--ease-out);
}

.inventor__photo-frame:hover {
  border-color: rgba(0, 229, 255, 0.4);
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.12),
              0 0 60px rgba(0, 229, 255, 0.06),
              var(--shadow-lg);
  transform: translateY(-4px);
}

@media (min-width: 640px) {
  .inventor__photo-frame {
    width: 260px;
    height: 330px;
  }
}

/* Glow effect behind photo */
.inventor__photo-glow {
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--radius-xl) + 2px);
  background: linear-gradient(180deg, rgba(0, 229, 255, 0.2) 0%, transparent 60%);
  z-index: 0;
  pointer-events: none;
}

/* Photo image */
.inventor__photo {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* Decorative corner accents */
.inventor__corner {
  position: absolute;
  width: 20px;
  height: 20px;
  z-index: 2;
  pointer-events: none;
}

.inventor__corner--tl {
  top: 8px;
  left: 8px;
  border-top: 2px solid var(--color-primary);
  border-left: 2px solid var(--color-primary);
  border-radius: 2px 0 0 0;
  opacity: 0.5;
}

.inventor__corner--br {
  bottom: 8px;
  right: 8px;
  border-bottom: 2px solid var(--color-secondary);
  border-right: 2px solid var(--color-secondary);
  border-radius: 0 0 2px 0;
  opacity: 0.5;
}

/* Bio section */
.inventor__bio {
  text-align: center;
}

@media (min-width: 768px) {
  .inventor__bio {
    text-align: left;
  }
}

.inventor__name {
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  color: var(--color-text);
  margin-bottom: var(--space-1);
  line-height: var(--leading-tight);
}

.inventor__role {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: rgba(0, 229, 255, 0.6);
  margin-bottom: var(--space-6);
  letter-spacing: var(--tracking-wide);
}

.inventor__text {
  margin-bottom: var(--space-6);
}

.inventor__text p {
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
  font-size: var(--text-base);
}

/* Contact links */
.inventor__contact {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

@media (min-width: 640px) {
  .inventor__contact {
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--space-4);
  }

  .inventor__bio:not(.inventor__contact) .inventor__contact {
    justify-content: center;
  }
}

@media (min-width: 768px) {
  .inventor__contact {
    justify-content: flex-start;
  }
}

.inventor__contact-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  transition: color var(--duration-fast) var(--ease-out);
}

.inventor__contact-link svg {
  flex-shrink: 0;
}

.inventor__contact-link--email {
  color: rgba(0, 229, 255, 0.8);
}

.inventor__contact-link--email:hover {
  color: var(--color-primary);
}

.inventor__contact-link--location {
  color: var(--color-text-muted);
}

/* Reveal animations */
.reveal--scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity var(--duration-slower) var(--ease-out),
              transform var(--duration-slower) var(--ease-out);
}

.reveal--scale.is-visible {
  opacity: 1;
  transform: scale(1);
}

.reveal--right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity var(--duration-slower) var(--ease-out),
              transform var(--duration-slower) var(--ease-out);
}

.reveal--right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* USPTO badge */
.inventor__patent-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--color-primary-ghost);
  border: 1px solid rgba(0, 229, 255, 0.12);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-primary);
  margin-top: var(--space-4);
}


/* ============================================================
   19. SCROLL REVEAL ANIMATIONS (Base)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal--left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal--left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* Fix back-to-top to use .is-visible class as well */
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}


/* ============================================================
   20. MOBILE NAV (Hamburger)
   ============================================================ */
@media (max-width: 900px) {
  .header__nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(5, 8, 22, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-left: 1px solid var(--color-border);
    padding: calc(var(--header-height) + var(--space-6)) var(--space-6) var(--space-6);
    transition: right var(--duration-slow) var(--ease-out);
    z-index: var(--z-overlay);
    overflow-y: auto;
  }

  .header__nav.is-open {
    right: 0;
  }

  .header__menu {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-1);
  }

  .header__item--mega .megamenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    box-shadow: none;
    border: none;
    background: var(--color-bg-surface);
    border-radius: var(--radius-md);
    margin-top: var(--space-2);
    padding: var(--space-4);
  }

  .megamenu__inner {
    grid-template-columns: 1fr !important;
  }

  .megamenu__col--featured {
    display: none;
  }

  .header__link {
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-base);
  }

  .header__link::after {
    display: none;
  }

  .header__hamburger {
    display: flex;
  }

  body.menu-open::after {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: var(--z-overlay) - 1;
    pointer-events: none;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

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


/* ============================================================
   21. INVENTOR SECTION RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .inventor-section {
    padding: var(--space-16) 0;
  }

  .inventor__photo-frame {
    width: 180px;
    height: 240px;
  }

  .inventor__name {
    font-size: var(--text-2xl);
  }

  .inventor__role {
    font-size: var(--text-xs);
  }

  .inventor__text p {
    font-size: var(--text-sm);
  }
}

@media (max-width: 480px) {
  .inventor__photo-frame {
    width: 160px;
    height: 210px;
  }

  .inventor__contact {
    flex-direction: column;
    gap: var(--space-3);
  }

  .inventor__contact-link {
    font-size: var(--text-xs);
  }

  .inventor__patent-badge {
    font-size: 0.65rem;
  }
}


/* ==========================================================================
   ENHANCED QUANTUM DESIGN SYSTEM — Next-Level Upgrades
   ========================================================================== */


/* ── 1. Enhanced Background Effects ─────────────────────────────────────── */

/* Animated gradient mesh — subtle moving color blobs */
@keyframes gradient-mesh-shift {
    0%   { background-position: 0% 50%, 100% 50%, 50% 0%; }
    25%  { background-position: 50% 0%, 50% 100%, 0% 50%; }
    50%  { background-position: 100% 50%, 0% 50%, 50% 100%; }
    75%  { background-position: 50% 100%, 50% 0%, 100% 50%; }
    100% { background-position: 0% 50%, 100% 50%, 50% 0%; }
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(ellipse 80% 60% at 20% 30%, rgba(var(--c-primary-rgb), 0.06) 0%, transparent 60%),
        radial-gradient(ellipse 70% 50% at 80% 60%, rgba(var(--c-secondary-rgb), 0.05) 0%, transparent 55%),
        radial-gradient(ellipse 60% 40% at 50% 90%, rgba(var(--c-accent-rgb), 0.04) 0%, transparent 50%);
    background-size: 200% 200%, 200% 200%, 200% 200%;
    animation: gradient-mesh-shift 20s ease-in-out infinite;
    pointer-events: none;
}

/* Scientific grid-paper overlay */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(var(--c-primary-rgb), 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--c-primary-rgb), 0.025) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 30%, transparent 70%);
    pointer-events: none;
}

/* Noise texture pseudo-element on .section for depth */
.section--enhanced-noise::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image: 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.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
    background-size: 256px 256px;
    pointer-events: none;
    z-index: 0;
}


/* ── 2. Glassmorphism Enhancement ───────────────────────────────────────── */

/* Animated gradient border wrapper — apply via .glass-border on parent */
.glass-border {
    position: relative;
    background: var(--c-bg-glass);
    backdrop-filter: blur(24px) saturate(200%) brightness(1.05);
    -webkit-backdrop-filter: blur(24px) saturate(200%) brightness(1.05);
    border: 1px solid transparent;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.glass-border::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(
        135deg,
        rgba(var(--c-primary-rgb), 0.4),
        rgba(var(--c-secondary-rgb), 0.2),
        rgba(var(--c-accent-rgb), 0.4),
        rgba(var(--c-primary-rgb), 0.2)
    );
    background-size: 300% 300%;
    animation: gradient-border-rotate 6s ease infinite;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

@keyframes gradient-border-rotate {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Enhanced card glassmorphism */
.card {
    background: rgba(15, 19, 50, 0.75);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
}

.hero__metric {
    background: rgba(10, 14, 39, 0.7);
    backdrop-filter: blur(20px) saturate(200%);
    -webkit-backdrop-filter: blur(20px) saturate(200%);
}


/* ── 3. Better Card Designs ─────────────────────────────────────────────── */

/* Holographic / iridescent top border that shifts on hover */
.card::before {
    height: 3px;
    background: linear-gradient(
        90deg,
        var(--c-primary),
        var(--c-secondary),
        var(--c-accent),
        var(--c-secondary),
        var(--c-primary)
    );
    background-size: 200% 100%;
    opacity: 0;
    transition: opacity var(--duration-base), background-position var(--duration-slow);
}

.card:hover::before {
    opacity: 1;
    background-position: 100% 0;
    animation: holographic-shift 3s linear infinite;
}

@keyframes holographic-shift {
    0%   { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* Glow pulse on cards */
.card::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: radial-gradient(
        ellipse at var(--card-mouse-x, 50%) var(--card-mouse-y, 50%),
        rgba(var(--c-primary-rgb), 0.08) 0%,
        transparent 60%
    );
    opacity: 0;
    transition: opacity var(--duration-slow);
    pointer-events: none;
    z-index: -1;
}

.card:hover::after {
    opacity: 1;
}

/* Enhanced hover: 3D tilt illusion + glow */
.card:hover {
    border-color: rgba(var(--c-primary-rgb), 0.2);
    transform: translateY(-4px) rotateX(1deg) rotateY(-0.5deg);
    box-shadow:
        var(--shadow-lg),
        0 0 30px rgba(var(--c-primary-rgb), 0.08),
        0 0 60px rgba(var(--c-secondary-rgb), 0.04);
}

.card {
    transform-style: preserve-3d;
    perspective: 1000px;
}

/* Inner shimmer effect for cards on hover */
.card__shimmer {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        transparent 40%,
        rgba(255, 255, 255, 0.03) 45%,
        rgba(255, 255, 255, 0.05) 50%,
        rgba(255, 255, 255, 0.03) 55%,
        transparent 60%
    );
    background-size: 200% 100%;
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--duration-base);
}

.card:hover .card__shimmer {
    opacity: 1;
    animation: shimmer-slide 1.5s ease forwards;
}

@keyframes shimmer-slide {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}


/* ── 4. Improved Hero Section ───────────────────────────────────────────── */

.hero {
    background:
        radial-gradient(ellipse 120% 80% at 50% -30%, rgba(var(--c-primary-rgb), 0.1) 0%, transparent 60%),
        radial-gradient(ellipse 80% 60% at 80% 50%, rgba(var(--c-secondary-rgb), 0.06) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 20% 80%, rgba(var(--c-accent-rgb), 0.04) 0%, transparent 40%);
}

/* Enhanced orb core with breathing animation */
.orb-core {
    animation: orb-core-breathe 3s ease-in-out infinite;
    box-shadow:
        var(--shadow-glow-primary),
        var(--shadow-glow-secondary),
        0 0 40px rgba(var(--c-primary-rgb), 0.2),
        0 0 80px rgba(var(--c-secondary-rgb), 0.1),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
}

@keyframes orb-core-breathe {
    0%, 100% { transform: translate(-50%, -50%) scale(1); filter: brightness(1); }
    50%      { transform: translate(-50%, -50%) scale(1.15); filter: brightness(1.3); }
}

/* Orbital rings with rotation + 3D tilt */
.orb-ring {
    border-style: dashed;
    animation: orb-pulse 4s ease-in-out infinite, orb-rotate 20s linear infinite;
}

.orb-ring:nth-child(1) {
    border-color: rgba(var(--c-primary-rgb), 0.4);
    animation: orb-pulse 4s ease-in-out infinite, orb-rotate 15s linear infinite;
    transform: rotateX(65deg) rotateZ(0deg);
}

.orb-ring:nth-child(2) {
    border-color: rgba(var(--c-secondary-rgb), 0.3);
    animation: orb-pulse 4s ease-in-out infinite 0.8s, orb-rotate-reverse 25s linear infinite;
    transform: rotateX(70deg) rotateZ(60deg);
}

.orb-ring:nth-child(3) {
    border-color: rgba(var(--c-accent-rgb), 0.2);
    animation: orb-pulse 4s ease-in-out infinite 1.6s, orb-rotate 35s linear infinite;
    transform: rotateX(75deg) rotateZ(120deg);
}

@keyframes orb-rotate {
    0%   { transform: rotateX(65deg) rotateZ(0deg); }
    100% { transform: rotateX(65deg) rotateZ(360deg); }
}

@keyframes orb-rotate-reverse {
    0%   { transform: rotateX(70deg) rotateZ(60deg); }
    100% { transform: rotateX(70deg) rotateZ(-300deg); }
}

/* Quantum circuit trace lines in hero background */
.hero__circuit-traces {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.04;
    background-image:
        /* Horizontal traces */
        linear-gradient(0deg, transparent 49.5%, var(--c-primary) 49.5%, var(--c-primary) 50.5%, transparent 50.5%),
        /* Vertical traces */
        linear-gradient(90deg, transparent 49.5%, var(--c-primary) 49.5%, var(--c-primary) 50.5%, transparent 50.5%);
    background-size: 120px 120px, 120px 120px;
    mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black 20%, transparent 70%);
}

/* Hero badge pulse */
.hero__badge {
    animation: badge-pulse 3s ease-in-out infinite;
}

@keyframes badge-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(var(--c-accent-rgb), 0.2); }
    50%      { box-shadow: 0 0 12px 2px rgba(var(--c-accent-rgb), 0.15); }
}

/* Hero title shimmer */
.hero__title {
    background: linear-gradient(
        135deg,
        var(--c-primary) 0%,
        var(--c-secondary) 25%,
        var(--c-accent) 50%,
        var(--c-secondary) 75%,
        var(--c-primary) 100%
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: hero-title-shimmer 8s ease-in-out infinite;
}

@keyframes hero-title-shimmer {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}


/* ── 5. Section Dividers ────────────────────────────────────────────────── */

.section-divider {
    position: relative;
    height: 80px;
    overflow: hidden;
    margin: -1px 0;
    pointer-events: none;
}

.section-divider svg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    fill: none;
}

.section-divider--wave svg path {
    fill: var(--c-bg-alt);
    stroke: rgba(var(--c-primary-rgb), 0.08);
    stroke-width: 1;
}

.section-divider--quantum svg path {
    stroke: rgba(var(--c-primary-rgb), 0.12);
    stroke-width: 1.5;
    stroke-dasharray: 8 4;
    fill: none;
}

.section-divider--glow {
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(var(--c-primary-rgb), 0.08) 20%,
        rgba(var(--c-secondary-rgb), 0.1) 50%,
        rgba(var(--c-primary-rgb), 0.08) 80%,
        transparent 100%
    );
    height: 1px;
    margin: 0 auto;
    max-width: 600px;
    position: relative;
}

.section-divider--glow::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: var(--c-primary);
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(var(--c-primary-rgb), 0.6), 0 0 24px rgba(var(--c-primary-rgb), 0.3);
}


/* ── 6. Enhanced Tables ─────────────────────────────────────────────────── */

/* Gradient header */
.table-wrapper thead {
    background: linear-gradient(
        135deg,
        rgba(var(--c-primary-rgb), 0.08),
        rgba(var(--c-secondary-rgb), 0.06)
    );
}

.table-wrapper th {
    color: var(--c-primary);
    border-bottom: 1px solid rgba(var(--c-primary-rgb), 0.15);
    padding: var(--sp-md) var(--sp-lg);
}

/* Alternating row highlights */
.table-wrapper tbody tr:nth-child(even) {
    background: rgba(var(--c-primary-rgb), 0.02);
}

.table-wrapper tbody tr:nth-child(odd) {
    background: transparent;
}

/* Better cell padding */
.table-wrapper td {
    padding: var(--sp-md) var(--sp-lg);
    transition:
        background var(--duration-fast),
        color var(--duration-fast),
        transform var(--duration-fast);
}

/* Animated row hover with glow */
.table-wrapper tbody tr:hover {
    background: rgba(var(--c-primary-rgb), 0.06);
    box-shadow: inset 3px 0 0 var(--c-primary);
    transform: scale(1.002);
}

.table-wrapper tbody tr:hover td {
    color: var(--c-text-bright);
}

/* Table row reveal animation */
.table-wrapper tbody tr {
    opacity: 0;
    transform: translateX(-8px);
    animation: table-row-reveal 0.4s ease forwards;
}

.table-wrapper tbody tr:nth-child(1) { animation-delay: 0.05s; }
.table-wrapper tbody tr:nth-child(2) { animation-delay: 0.1s; }
.table-wrapper tbody tr:nth-child(3) { animation-delay: 0.15s; }
.table-wrapper tbody tr:nth-child(4) { animation-delay: 0.2s; }
.table-wrapper tbody tr:nth-child(5) { animation-delay: 0.25s; }
.table-wrapper tbody tr:nth-child(6) { animation-delay: 0.3s; }
.table-wrapper tbody tr:nth-child(7) { animation-delay: 0.35s; }
.table-wrapper tbody tr:nth-child(8) { animation-delay: 0.4s; }
.table-wrapper tbody tr:nth-child(9) { animation-delay: 0.45s; }
.table-wrapper tbody tr:nth-child(10) { animation-delay: 0.5s; }

@keyframes table-row-reveal {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}


/* ── 7. Badge Improvements ──────────────────────────────────────────────── */

.section__badge {
    background: linear-gradient(135deg, var(--c-primary-dim), var(--c-accent-dim));
    border-color: rgba(var(--c-accent-rgb), 0.3);
    animation: badge-glow 3s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.section__badge::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(var(--c-primary-rgb), 0.1), rgba(var(--c-accent-rgb), 0.1));
    opacity: 0;
    animation: badge-shimmer 4s ease-in-out infinite;
}

@keyframes badge-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(var(--c-accent-rgb), 0.15); }
    50%      { box-shadow: 0 0 16px 2px rgba(var(--c-accent-rgb), 0.1); }
}

@keyframes badge-shimmer {
    0%, 100% { opacity: 0; }
    50%      { opacity: 1; }
}

.platform-badge {
    animation: platform-badge-pulse 4s ease-in-out infinite;
}

@keyframes platform-badge-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(var(--c-primary-rgb), 0); }
    50%      { box-shadow: 0 0 8px 1px rgba(var(--c-primary-rgb), 0.12); }
}

.platform-badge--si {
    background: linear-gradient(135deg, var(--c-primary-dim), rgba(var(--c-primary-rgb), 0.2));
}

.platform-badge--sin {
    background: linear-gradient(135deg, var(--c-secondary-dim), rgba(var(--c-secondary-rgb), 0.2));
    animation-name: platform-badge-pulse-secondary;
}

@keyframes platform-badge-pulse-secondary {
    0%, 100% { box-shadow: 0 0 0 0 rgba(var(--c-secondary-rgb), 0); }
    50%      { box-shadow: 0 0 8px 1px rgba(var(--c-secondary-rgb), 0.12); }
}


/* ── 8. Formula Blocks ──────────────────────────────────────────────────── */

.formula-block {
    border-left: 3px solid var(--c-primary);
    background: linear-gradient(
        135deg,
        rgba(var(--c-primary-rgb), 0.04) 0%,
        var(--c-surface) 100%
    );
    position: relative;
    padding-left: calc(var(--sp-lg) + 2.5rem);
    animation: formula-glow-pulse 4s ease-in-out infinite;
}

@keyframes formula-glow-pulse {
    0%, 100% {
        border-left-color: var(--c-primary);
        box-shadow: -3px 0 12px rgba(var(--c-primary-rgb), 0.05);
    }
    50% {
        border-left-color: var(--c-secondary);
        box-shadow: -3px 0 20px rgba(var(--c-secondary-rgb), 0.12);
    }
}

/* Line numbers — code editor feel */
.formula-block::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2.5rem;
    background: rgba(var(--c-primary-rgb), 0.04);
    border-right: 1px solid rgba(var(--c-primary-rgb), 0.08);
    border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.formula-block::after {
    counter-reset: line;
    content: '1  2  3  4  5  6  7  8  9  10  11  12  13  14  15';
    position: absolute;
    left: 0;
    top: 0;
    width: 2.5rem;
    padding: var(--sp-md) 0;
    font-family: var(--f-code);
    font-size: 0.7rem;
    line-height: 1.7;
    color: rgba(var(--c-primary-rgb), 0.25);
    text-align: right;
    overflow: hidden;
    pointer-events: none;
}


/* ── 9. Metric Cards ────────────────────────────────────────────────────── */

.metric-card {
    position: relative;
    overflow: hidden;
    transition: all var(--duration-base) var(--ease-out);
}

/* Radial gradient background on hover */
.metric-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at var(--metric-x, 50%) var(--metric-y, 50%),
        rgba(var(--c-primary-rgb), 0.1) 0%,
        transparent 70%
    );
    opacity: 0;
    transition: opacity var(--duration-base);
    pointer-events: none;
}

.metric-card:hover::before {
    opacity: 1;
}

.metric-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow:
        var(--shadow-glow-primary),
        0 8px 32px rgba(0, 0, 0, 0.3);
    border-color: rgba(var(--c-primary-rgb), 0.2);
}

/* Floating particle dots around metric value */
.metric-card__value {
    position: relative;
    display: inline-block;
}

.metric-card__value::after {
    content: '· · ·';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.5rem;
    letter-spacing: 0.3em;
    color: rgba(var(--c-primary-rgb), 0.3);
    animation: particle-float 3s ease-in-out infinite;
}

@keyframes particle-float {
    0%, 100% { opacity: 0.3; transform: translateX(-50%) translateY(0); }
    50%      { opacity: 0.7; transform: translateX(-50%) translateY(-4px); }
}


/* ── 10. Scroll Animations ──────────────────────────────────────────────── */

.reveal {
    transition:
        opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal--left {
    transition:
        opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal--left.is-visible {
    transform: translateX(0) scale(1);
}

/* Parallax scroll effect utility */
.parallax-slow {
    will-change: transform;
    transition: transform 0.1s linear;
}

.parallax-medium {
    will-change: transform;
    transition: transform 0.1s linear;
}

/* More dramatic reveal transforms */
.reveal--dramatic {
    opacity: 0;
    transform: translateY(60px) scale(0.95);
    transition:
        opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal--flip {
    opacity: 0;
    transform: perspective(600px) rotateX(8deg) translateY(30px);
    transition:
        opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal--flip.is-visible {
    opacity: 1;
    transform: perspective(600px) rotateX(0) translateY(0);
}

.reveal--glow-in {
    opacity: 0;
    transform: scale(0.9);
    filter: blur(8px);
    transition:
        opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        filter 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal--glow-in.is-visible {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
}


/* ── 11. Footer Enhancement ─────────────────────────────────────────────── */

.footer {
    position: relative;
    border-top: none;
}

/* Animated gradient top border */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(
        90deg,
        var(--c-primary),
        var(--c-secondary),
        var(--c-accent),
        var(--c-secondary),
        var(--c-primary)
    );
    background-size: 200% 100%;
    animation: footer-gradient-flow 6s linear infinite;
}

@keyframes footer-gradient-flow {
    0%   { background-position: 0% 0; }
    100% { background-position: 200% 0; }
}

/* Social icon glow on hover */
.footer__social a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    transition:
        color var(--duration-fast),
        transform var(--duration-fast) var(--ease-out),
        background var(--duration-fast),
        box-shadow var(--duration-base);
}

.footer__social a:hover {
    color: var(--c-primary);
    background: var(--c-primary-dim);
    transform: translateY(-3px);
    box-shadow: 0 0 16px rgba(var(--c-primary-rgb), 0.2);
}

.footer__social a:focus-visible {
    outline: 2px solid var(--c-primary);
    outline-offset: 2px;
}

/* Footer divider subtle gradient */
.footer__divider {
    background: linear-gradient(
        90deg,
        transparent,
        rgba(var(--c-primary-rgb), 0.1),
        rgba(var(--c-secondary-rgb), 0.1),
        rgba(var(--c-primary-rgb), 0.1),
        transparent
    );
}


/* ── 12. Section — Neural Variant ───────────────────────────────────────── */

.section--neural {
    position: relative;
    background: var(--c-bg-alt);
    overflow: hidden;
}

.section--neural::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.035;
    pointer-events: none;
    background-image:
        /* Neural network nodes */
        radial-gradient(circle 2px at 15% 25%, var(--c-primary) 100%, transparent 100%),
        radial-gradient(circle 2px at 35% 60%, var(--c-secondary) 100%, transparent 100%),
        radial-gradient(circle 2px at 55% 30%, var(--c-primary) 100%, transparent 100%),
        radial-gradient(circle 2px at 75% 70%, var(--c-accent) 100%, transparent 100%),
        radial-gradient(circle 2px at 90% 20%, var(--c-secondary) 100%, transparent 100%),
        radial-gradient(circle 2px at 25% 85%, var(--c-primary) 100%, transparent 100%),
        radial-gradient(circle 2px at 65% 90%, var(--c-accent) 100%, transparent 100%),
        radial-gradient(circle 2px at 85% 45%, var(--c-primary) 100%, transparent 100%),
        /* Connecting lines */
        linear-gradient(168deg, transparent 49.5%, var(--c-primary) 49.5%, var(--c-primary) 50.5%, transparent 50.5%),
        linear-gradient(195deg, transparent 49.5%, var(--c-secondary) 49.5%, var(--c-secondary) 50.5%, transparent 50.5%),
        linear-gradient(155deg, transparent 49.5%, var(--c-primary) 49.5%, var(--c-primary) 50.5%, transparent 50.5%),
        linear-gradient(175deg, transparent 49.5%, var(--c-accent) 49.5%, var(--c-accent) 50.5%, transparent 50.5%);
    background-size:
        200px 200px, 200px 200px, 200px 200px, 200px 200px,
        200px 200px, 200px 200px, 200px 200px, 200px 200px,
        200px 200px, 200px 200px, 200px 200px, 200px 200px;
}

.section--neural::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        radial-gradient(circle 3px at 10% 50%, rgba(var(--c-primary-rgb), 0.15) 0%, transparent 100%),
        radial-gradient(circle 3px at 45% 15%, rgba(var(--c-secondary-rgb), 0.12) 0%, transparent 100%),
        radial-gradient(circle 3px at 80% 80%, rgba(var(--c-accent-rgb), 0.1) 0%, transparent 100%);
    background-size: 300px 300px;
    animation: neural-drift 25s ease-in-out infinite alternate;
}

@keyframes neural-drift {
    0%   { background-position: 0% 0%, 100% 100%, 50% 50%; }
    100% { background-position: 100% 100%, 0% 0%, 80% 20%; }
}

.section--neural > .container {
    position: relative;
    z-index: 1;
}


/* ── 13. Interactive Elements ────────────────────────────────────────────── */

/* Button ripple effect */
.btn {
    position: relative;
    overflow: hidden;
}

.btn-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    transform: scale(0);
    animation: btn-ripple-expand 0.6s ease-out forwards;
    pointer-events: none;
}

@keyframes btn-ripple-expand {
    0%   { transform: scale(0); opacity: 0.5; }
    100% { transform: scale(4); opacity: 0; }
}

/* Enhanced button hover with glow sweep */
.btn--primary::after,
.btn--accent::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transition: left 0.5s ease;
    pointer-events: none;
}

.btn--primary:hover::after,
.btn--accent:hover::after {
    left: 100%;
}

/* Improved focus states for accessibility */
.btn:focus-visible {
    outline: 2px solid var(--c-primary);
    outline-offset: 3px;
    box-shadow: 0 0 0 4px rgba(var(--c-primary-rgb), 0.15);
}

.btn--outline:focus-visible {
    outline-color: var(--c-primary);
}

.btn--accent:focus-visible {
    outline-color: var(--c-accent);
    box-shadow: 0 0 0 4px rgba(var(--c-accent-rgb), 0.15);
}

a:focus-visible {
    outline: 2px solid var(--c-primary);
    outline-offset: 2px;
    border-radius: 2px;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: none;
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(var(--c-primary-rgb), 0.15), 0 0 12px rgba(var(--c-primary-rgb), 0.08);
}

/* Active press effect */
.btn:active {
    transform: translateY(0) scale(0.98);
}

.btn--primary:hover,
.btn--accent:hover {
    transform: translateY(-2px);
    box-shadow:
        var(--shadow-glow-primary),
        0 4px 16px rgba(0, 0, 0, 0.2);
}

.btn--primary:active,
.btn--accent:active {
    box-shadow:
        0 0 8px rgba(var(--c-primary-rgb), 0.2),
        0 2px 8px rgba(0, 0, 0, 0.2);
}


/* ── 14. Enhanced Keyframe Animations ────────────────────────────────────── */

@keyframes orb-pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.5; }
}

@keyframes float-metric {
    0%, 100% { transform: translateY(0px); }
    33%      { transform: translateY(-8px); }
    66%      { transform: translateY(4px); }
}

/* Ambient floating particles — subtle background decoration */
@keyframes ambient-float {
    0%   { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10%  { opacity: 0.6; }
    90%  { opacity: 0.6; }
    100% { transform: translateY(-10vh) rotate(360deg); opacity: 0; }
}

.ambient-particle {
    position: fixed;
    width: 3px;
    height: 3px;
    background: var(--c-primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    opacity: 0;
    animation: ambient-float linear infinite;
}

.ambient-particle:nth-child(2n) {
    background: var(--c-secondary);
}

.ambient-particle:nth-child(3n) {
    background: var(--c-accent);
}


/* ── 15. CTA Section Enhancement ────────────────────────────────────────── */

.cta-section {
    position: relative;
    border-top: none;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(var(--c-primary-rgb), 0.3),
        rgba(var(--c-secondary-rgb), 0.3),
        rgba(var(--c-primary-rgb), 0.3),
        transparent
    );
}

.cta-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 30% 50%, rgba(var(--c-primary-rgb), 0.04), transparent),
        radial-gradient(ellipse 60% 50% at 70% 50%, rgba(var(--c-secondary-rgb), 0.04), transparent);
    pointer-events: none;
}


/* ── 16. Page Hero Enhancement ──────────────────────────────────────────── */

.page-hero {
    position: relative;
    overflow: hidden;
}

.page-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(0deg, var(--c-bg) 0%, transparent 100%);
    pointer-events: none;
}


/* ── 17. Info Box Enhancement ───────────────────────────────────────────── */

.info-box {
    position: relative;
    border-left: 3px solid var(--c-primary);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.info-box--success {
    border-left-color: var(--c-success);
}

.info-box--error {
    border-left-color: var(--c-danger);
}


/* ── 18. Back to Top Enhancement ────────────────────────────────────────── */

.back-to-top {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.back-to-top:hover {
    background: rgba(var(--c-primary-rgb), 0.1);
    box-shadow:
        var(--shadow-glow-primary),
        0 0 30px rgba(var(--c-primary-rgb), 0.1);
    transform: translateY(-3px);
}


/* ── 19. Header Enhancement ─────────────────────────────────────────────── */

.header.scrolled {
    box-shadow:
        var(--shadow-md),
        0 1px 0 rgba(var(--c-primary-rgb), 0.05);
}

.header.scrolled::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(var(--c-primary-rgb), 0.2),
        rgba(var(--c-secondary-rgb), 0.15),
        rgba(var(--c-primary-rgb), 0.2),
        transparent
    );
}


/* ── 20. Responsive Enhancements for New Styles ────────────────────────── */

@media (max-width: 768px) {
    .hero__title {
        animation: none;
        background: linear-gradient(135deg, var(--c-primary), var(--c-secondary));
        -webkit-background-clip: text;
        background-clip: text;
    }

    .card:hover {
        transform: translateY(-2px);
    }

    .metric-card:hover {
        transform: translateY(-2px) scale(1.01);
    }

    .section--neural::before,
    .section--neural::after {
        display: none;
    }

    .formula-block {
        padding-left: var(--sp-lg);
    }

    .formula-block::before,
    .formula-block::after {
        display: none;
    }

    .footer__social a:hover {
        transform: translateY(-2px);
    }
}

@media (max-width: 480px) {
    .hero__badge {
        animation: none;
    }

    .section__badge {
        animation: none;
    }
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .card:hover {
        transform: none;
    }

    .metric-card:hover {
        transform: none;
    }
}
