/* ============================================
   Qaulium AI - Deep Technology Website
   ============================================ */

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

:root {
    --color-primary: #F5F5F5;
    --color-bg: #060709;
    --color-accent: #3D7FFF;
    --color-glow: rgba(61, 127, 255, 0.18);
    --color-text: #E5E5E5;
    --color-text-secondary: #9CA3AF;
    --color-text-tertiary: #6B7280;
    --color-border: #1E2430;
    --color-border-light: #141821;
    --color-surface: #0D1117;
    --color-surface-veil: rgba(13, 17, 23, 0.58);
    --color-card-veil: rgba(14, 18, 26, 0.52);
    --color-card-veil-hover: rgba(18, 23, 33, 0.68);
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    --font-body: 'IBM Plex Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    --font-mono: 'IBM Plex Mono', 'Menlo', 'Monaco', monospace;
    --container-max: 1200px;
    --section-spacing: 80px;
    --header-height: 72px;
    --header-height-scrolled: 72px;
    --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height-scrolled) + 24px);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    position: relative;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
}

.ambient-glow {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 60% 40% at 15% 0%, rgba(61, 127, 255, 0.10) 0%, transparent 60%),
        radial-gradient(ellipse 55% 45% at 100% 30%, rgba(61, 127, 255, 0.07) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 50% 100%, rgba(61, 127, 255, 0.06) 0%, transparent 65%);
}

/* ============================================
   Starfield — parallax scroll, non-home pages
   ============================================ */

.starfield {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.star-layer {
    position: absolute;
    left: 0;
    width: 100%;
    height: 220vh;
    top: -10vh;
    will-change: transform;
    background-repeat: repeat;
}

.star-layer-1 {
    background-image:
        radial-gradient(rgba(255, 255, 255, 0.9) 0.6px, transparent 1.2px),
        radial-gradient(rgba(180, 205, 255, 0.6) 0.6px, transparent 1.2px);
    background-size: 180px 180px, 240px 240px;
    background-position: 0 0, 90px 120px;
    opacity: 0.5;
}

.star-layer-2 {
    background-image:
        radial-gradient(rgba(255, 255, 255, 0.75) 1px, transparent 1.6px),
        radial-gradient(rgba(120, 160, 255, 0.5) 1px, transparent 1.6px);
    background-size: 260px 260px, 320px 320px;
    background-position: 40px 60px, 200px 10px;
    opacity: 0.55;
}

.star-layer-3 {
    background-image:
        radial-gradient(rgba(255, 255, 255, 0.95) 1.3px, transparent 2px),
        radial-gradient(rgba(61, 127, 255, 0.55) 1.3px, transparent 2px);
    background-size: 380px 380px, 460px 460px;
    background-position: 120px 30px, 20px 220px;
    opacity: 0.65;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
img, svg { max-width: 100%; }

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 32px;
}

#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.35;
}

.site-header,
main,
.site-footer {
    position: relative;
    z-index: 1;
}

/* ============================================
   Navigation
   ============================================ */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.32s var(--ease-out), box-shadow 0.32s var(--ease-out), background 0.32s var(--ease-out), backdrop-filter 0.32s var(--ease-out);
}

.site-header.scrolled {
    background: rgba(10,10,10,0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.nav-container {
    max-width: none;
    margin: 0;
    padding: 0 28px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    column-gap: 24px;
    height: var(--header-height);
    overflow: visible;
}

.nav-logo {
    display: flex;
    align-items: center;
    justify-self: start;
    flex-shrink: 0;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 18px;
    color: var(--color-primary);
    letter-spacing: -0.02em;
    overflow: visible;
}

.logo-mark {
    flex-shrink: 0;
    filter: invert(0);
}

.site-header .logo-mark {
    height: 42px;
    width: auto;
    will-change: height;
    transition: height 0.3s var(--ease-smooth);
}

.site-header.scrolled .logo-mark {
    height: 34px;
}


.nav-links {
    display: flex;
    align-items: center;
    justify-self: center;
    gap: 28px;
    padding: 10px 30px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: border-color 0.25s var(--ease-out), background 0.25s var(--ease-out);
}

.nav-links:hover {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
}

.nav-links a {
    font-family: var(--font-heading);
    font-size: 12.5px;
    font-weight: 500;
    color: var(--color-text-secondary);
    transition: color 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

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

.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    font-family: var(--font-heading);
    font-size: 12.5px;
    font-weight: 500;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    background: none;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
}

.nav-dropdown-toggle:hover {
    color: var(--color-primary);
}

.dropdown-caret {
    display: inline-block;
    margin-left: 4px;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    transition: transform 0.2s var(--ease-out);
    vertical-align: middle;
}

.nav-dropdown:hover .dropdown-caret {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 0px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 420px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 12px;
    z-index: 200;
}

.dropdown-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.dropdown-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.dropdown-column-title {
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-tertiary);
    padding: 8px 12px 4px;
    margin-bottom: 4px;
}

.nav-dropdown:hover .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-menu a {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-secondary);
    padding: 10px 12px;
    border-radius: 8px;
}

.nav-dropdown-menu a:hover {
    color: var(--color-primary);
    background: var(--color-surface);
}

.nav-cta {
    justify-self: end;
    background: #FFFFFF;
    color: #0A0A0A !important;
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    transition: background 0.2s var(--ease-out), transform 0.2s var(--ease-out) !important;
}

.nav-cta:hover {
    background: #E5E5E5 !important;
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 32px;
    height: 32px;
    position: relative;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-primary);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.active span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle.active span:last-child { transform: translateY(-4px) rotate(-45deg); }

.mobile-nav {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-bg);
    z-index: 99;
    padding: 24px 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, top 0.34s var(--ease-smooth);
    overflow-y: auto;
}

.site-header.scrolled + .mobile-nav {
    top: var(--header-height-scrolled);
}

.mobile-nav.open { opacity: 1; pointer-events: all; }

.mobile-nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-links > li {
    border-bottom: 1px solid var(--color-border);
}

.mobile-nav-links a,
.mobile-nav-accordion-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    color: var(--color-primary);
    padding: 18px 32px;
    letter-spacing: -0.02em;
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
}

.mobile-nav-accordion-toggle .dropdown-caret {
    transition: transform 0.25s ease;
}

.mobile-nav-accordion-toggle.open .dropdown-caret {
    transform: rotate(180deg);
}

.mobile-nav-submenu {
    display: none;
    padding: 0 0 8px;
    background: var(--color-surface);
}

.mobile-nav-submenu.open {
    display: block;
}

.mobile-nav-submenu-title {
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-tertiary);
    padding: 12px 32px 4px;
}

.mobile-nav-submenu a {
    font-size: 15px !important;
    font-weight: 500 !important;
    color: var(--color-text-secondary) !important;
    padding: 10px 32px !important;
    border-bottom: none !important;
    justify-content: flex-start !important;
}

.mobile-nav-submenu a:hover {
    color: var(--color-primary) !important;
}

.mobile-nav-cta {
    padding: 24px 32px 0;
}

.mobile-nav-cta a {
    display: block;
    text-align: center;
    background: var(--color-primary);
    color: #fff !important;
    padding: 14px 24px;
    border-radius: 100px;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    border-bottom: none !important;
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
    padding-top: 120px;
    padding-bottom: 100px;
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

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

.hero-qc-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: radial-gradient(ellipse at 50% 55%, rgba(10,10,14,0.55) 0%, rgba(10,10,14,0.3) 45%, rgba(10,10,14,0) 80%);
}

.hero-video {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    background: #000;
}

.hero-video-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 50% 40%, rgba(20, 40, 90, 0.25) 0%, rgba(5, 8, 20, 0.35) 45%, rgba(5, 6, 12, 0.85) 85%),
        linear-gradient(to bottom, rgba(5,6,12,0.65) 0%, rgba(5,6,12,0.15) 30%, rgba(5,6,12,0.25) 70%, rgba(5,6,12,0.95) 100%);
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-content {
    max-width: 560px;
}

.hero-content-centered {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.hero-content-centered .hero-sub {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-content-centered .hero-actions {
    justify-content: center;
}

.hero-eyebrow {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-accent);
    text-shadow: 0 0 18px var(--color-glow);
    margin-bottom: 24px;
}

.hero-headline {
    font-family: var(--font-heading);
    font-size: clamp(44px, 6vw, 96px);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.045em;
    text-transform: uppercase;
    background: linear-gradient(to bottom, #FFFFFF, #FFFFFF 40%, #A3A3A3);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    margin-bottom: 28px;
}

.hero-sub {
    font-size: 18px;
    line-height: 1.7;
    color: var(--color-text-secondary);
    max-width: 480px;
    margin-bottom: 48px;
    font-weight: 400;
}

.hero-divider {
    height: 1px;
    width: 160px;
    margin: 8px 0 32px;
    background: linear-gradient(to right, transparent, var(--color-accent), transparent);
    box-shadow: 0 0 12px var(--color-glow);
}
.hero-content-centered .hero-divider { margin-left: auto; margin-right: auto; }

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 500;
    padding: 16px 32px;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    transition: background 0.2s var(--ease-out), color 0.2s var(--ease-out), border-color 0.2s var(--ease-out), transform 0.2s var(--ease-out);
    letter-spacing: -0.01em;
}

.btn-icon {
    font-size: 16px;
    transition: transform 0.2s var(--ease-out);
}

.btn:hover .btn-icon { transform: translateX(3px); }

.btn-primary {
    background: #FFFFFF;
    color: #0A0A0A;
}

.btn-primary:hover {
    background: #E5E5E5;
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--color-text-secondary);
    border: 1px solid rgba(255,255,255,0.12);
}

.btn-secondary:hover {
    color: #FFFFFF;
    border-color: rgba(255,255,255,0.24);
    background: rgba(255,255,255,0.04);
    transform: translateY(-1px);
}

.btn-light {
    background: #1A1A1A;
    color: #F5F5F5;
}

.btn-light:hover {
    background: #222222;
    transform: translateY(-1px);
}

.btn-full { width: 100%; }

/* ============================================
   Hero Visual - Quantum Circuit Animation
   ============================================ */

.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.qc-circuit {
    position: relative;
    width: 520px;
    padding: 0;
    animation: heroDrift 7s var(--ease-smooth) infinite;
    will-change: transform;
}

@keyframes heroDrift {
    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }
    50% {
        transform: translate3d(0, -8px, 0);
    }
}

.qc-grid {
    display: grid;
    grid-template-columns: 36px repeat(var(--qc-cols), 1fr);
    row-gap: 0;
    width: 100%;
}

.qc-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 64px;
    position: relative;
}

.qc-cell:not(.qc-label-cell)::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: var(--color-border);
    z-index: 0;
}

.qc-label-cell {
    justify-content: flex-end;
    padding-right: 8px;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--color-text-tertiary);
    opacity: 0;
}

.qc-label-cell.qc-pop {
    animation: qcLabelFade 0.4s ease forwards;
}

.qc-gate {
    width: 44px;
    height: 44px;
    border: 1.5px solid var(--color-accent);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 15px;
    font-weight: 600;
    color: var(--color-accent);
    background: var(--color-bg);
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: scale(0.4);
    transition: none;
    will-change: transform, opacity;
    backface-visibility: hidden;
}

.qc-gate.qc-pop {
    animation: qcGatePop 0.35s var(--ease-out) forwards;
}

.qc-ctrl {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-accent);
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: scale(0.4);
    will-change: transform, opacity;
    backface-visibility: hidden;
}

.qc-ctrl.qc-pop {
    animation: qcGatePop 0.35s var(--ease-out) forwards;
}

.qc-tgt {
    width: 36px;
    height: 36px;
    border: 2px solid var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--color-accent);
    background: var(--color-bg);
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: scale(0.4);
    will-change: transform, opacity;
    backface-visibility: hidden;
}

.qc-tgt.qc-pop {
    animation: qcGatePop 0.35s var(--ease-out) forwards;
}

.qc-meter {
    width: 44px;
    height: 44px;
    border: 1.5px solid var(--color-text-tertiary);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-tertiary);
    background: var(--color-bg);
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: scale(0.4);
    will-change: transform, opacity;
    backface-visibility: hidden;
}

.qc-meter.qc-pop {
    animation: qcGatePop 0.35s var(--ease-out) forwards;
}

.qc-vline {
    position: absolute;
    width: 2px;
    background: var(--color-accent);
    z-index: 1;
    opacity: 0;
    transform: scaleY(0);
    transform-origin: top;
    will-change: transform, opacity;
    backface-visibility: hidden;
}

.qc-vline.qc-pop {
    animation: qcVLinePop 0.3s var(--ease-out) forwards;
}

@keyframes qcGatePop {
    from { opacity: 0; transform: scale(0.4); }
    to   { opacity: 1; transform: scale(1); }
}

@keyframes qcVLinePop {
    from { opacity: 0; transform: scaleY(0); }
    to   { opacity: 0.6; transform: scaleY(1); }
}

@keyframes qcFadeOut {
    from { opacity: 1; transform: scale(1); }
    to   { opacity: 0; transform: scale(0.7); }
}

@keyframes qcLabelFade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ============================================
   Sections Common
   ============================================ */

.section {
    padding: var(--section-spacing) 0;
}

.section-label {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 24px;
}

.section-heading {
    font-family: var(--font-heading);
    font-size: clamp(32px, 4vw, 56px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.035em;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.section-intro {
    font-size: 18px;
    line-height: 1.65;
    color: var(--color-text-secondary);
    max-width: 620px;
    margin-bottom: 72px;
}

.section-capabilities .section-intro,
.section-developer .section-intro,
.section-research .section-intro {
    margin-bottom: 32px;
}

/* ============================================
   Architecture Section
   ============================================ */

.section-architecture {
    background: var(--color-surface-veil);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-top: 1px solid var(--color-border-light);
    border-bottom: 1px solid var(--color-border-light);
}

.layer-showcase {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.layer-surface {
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 32px 28px;
    background: var(--color-card-veil);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: background 0.3s var(--ease-out), border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), transform 0.3s var(--ease-out);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.layer-surface:hover {
    background: var(--color-card-veil-hover);
    border-color: var(--color-text-tertiary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

.layer-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    color: var(--color-text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.layer-icon svg {
    width: 100%;
    height: 100%;
}

.layer-surface-head h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
    color: var(--color-primary);
    font-weight: 600;
    line-height: 1.3;
}

.layer-surface-head p {
    color: var(--color-text-secondary);
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.7;
}

.architecture-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    background: transparent;
    border: none;
    border-radius: 12px;
    overflow: visible;
}

.arch-block {
    background: var(--color-card-veil);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 40px 36px;
    transition: background 0.3s var(--ease-out), border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), transform 0.3s var(--ease-out);
    min-height: 240px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.arch-block:hover {
    background: var(--color-card-veil-hover);
    border-color: var(--color-text-tertiary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

.arch-diagram {
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
    color: var(--color-text-tertiary);
}

.arch-diagram svg {
    width: 100%;
    height: 100%;
}

.arch-number {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: 12px;
}

.arch-content h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--color-primary);
    margin-bottom: 12px;
    line-height: 1.25;
}

.arch-content p {
    font-size: 14px;
    line-height: 1.65;
    color: var(--color-text-secondary);
}

/* ============================================
   Benchmark Table
   ============================================ */

.section-benchmarks {
    padding: var(--section-spacing) 0;
}

.benchmark-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    margin-bottom: 24px;
}

.benchmark-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-body);
    font-size: 15px;
}

.benchmark-table thead {
    background: var(--color-surface);
}

.benchmark-table th {
    padding: 18px 28px;
    text-align: left;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
    border-bottom: 1px solid var(--color-border);
}

.benchmark-table td {
    padding: 16px 28px;
    border-bottom: 1px solid var(--color-border-light);
    color: var(--color-text-secondary);
    line-height: 1.5;
    vertical-align: top;
}

.benchmark-table tr:last-child td {
    border-bottom: none;
}

.benchmark-table .metric-name {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--color-primary);
    min-width: 180px;
}

.benchmark-table .highlight-col {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-primary);
}

.benchmark-table th.highlight-col {
    color: var(--color-accent);
}

.benchmark-table td.highlight-col strong {
    font-weight: 600;
    color: var(--color-primary);
}

.benchmark-note {
    font-size: 13px;
    line-height: 1.6;
    color: var(--color-text-tertiary);
    max-width: 700px;
}

/* ============================================
   Developer Platform
   ============================================ */

.section-developer {
    background: var(--color-surface-veil);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-top: 1px solid var(--color-border-light);
    border-bottom: 1px solid var(--color-border-light);
}

.dev-platform-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 64px;
}

/* ============================================
   Platform — Field Guide (editorial plates)
   ============================================ */

.section-platform {
    position: relative;
    overflow: hidden;
    padding-top: 120px;
    padding-bottom: 120px;
}

.fg-paper {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(to right, rgba(255,255,255,0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 48px 48px;
    background-position: center top;
    mask-image: radial-gradient(ellipse at 50% 30%, #000 35%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 35%, transparent 75%);
}

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

/* Masthead -------------------------------------------------- */
.fg-masthead {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 64px;
    align-items: end;
    padding-bottom: 56px;
    border-bottom: 1px solid var(--color-border);
}

.fg-edition {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
    padding-bottom: 24px;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 28px;
    width: 100%;
}

.fg-title {
    font-family: var(--font-heading);
    font-size: clamp(36px, 4.8vw, 64px);
    line-height: 0.95;
    letter-spacing: -0.03em;
    font-weight: 600;
    color: var(--color-primary);
    margin: 0;
}
.fg-title em {
    font-style: italic;
    font-weight: 400;
    font-family: 'Georgia', 'Times New Roman', serif;
    color: var(--color-primary);
}

.fg-lede {
    font-family: var(--font-heading);
    font-size: 17px;
    line-height: 1.6;
    color: var(--color-text-secondary);
    margin: 0 0 32px;
    max-width: 46ch;
}

.fg-index {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px 24px;
    border-top: 1px solid var(--color-border);
    padding-top: 24px;
}
.fg-index a {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.04em;
    color: var(--color-text-secondary);
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 2px 0;
    transition: color 0.2s ease;
}
.fg-index a span {
    font-family: 'Georgia', serif;
    font-style: italic;
    font-size: 14px;
    color: var(--color-accent);
    min-width: 24px;
}
.fg-index a:hover { color: var(--color-primary); }

/* Divider rule ---------------------------------------------- */
.fg-rule {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 48px 0 8px;
    color: var(--color-text-secondary);
}
.fg-rule span {
    flex: 1;
    height: 1px;
    background: var(--color-border);
}
.fg-rule em {
    font-family: 'Georgia', serif;
    font-style: italic;
    font-size: 14px;
    letter-spacing: 0.04em;
}

/* Collection ------------------------------------------------ */
.fg-collection {
    display: flex;
    flex-direction: column;
}

.fg-plate {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 40px;
    padding: 48px 0;
    border-bottom: 1px solid var(--color-border);
    position: relative;
}
.fg-plate:last-of-type { border-bottom: none; }

/* Flipped plates swap number to right — breaks the rhythm */
.fg-plate--flip { grid-template-columns: 1fr 160px; }
.fg-plate--flip .fg-plate-num { order: 2; text-align: right; align-items: flex-end; }
.fg-plate--flip .fg-plate-body { order: 1; border-left: none; border-right: 1px solid var(--color-border); padding-left: 0; padding-right: 36px; }

/* Plate number column --------------------------------------- */
.fg-plate-num {
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: sticky;
    top: 120px;
    align-self: start;
    height: fit-content;
}

.fg-plate-numeral {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-style: italic;
    font-weight: 400;
    font-size: clamp(64px, 7vw, 100px);
    line-height: 0.85;
    letter-spacing: -0.04em;
    color: var(--color-primary);
    -webkit-text-stroke: 0;
}

.fg-plate-folio {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
}

.fg-plate-stamp {
    align-self: flex-start;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-accent);
    border: 1px solid var(--color-accent);
    padding: 4px 10px;
    border-radius: 2px;
    transform: rotate(-4deg);
    background: rgba(255, 255, 255, 0.08);
}
.fg-plate--flip .fg-plate-stamp { align-self: flex-end; }

/* Plate body ------------------------------------------------ */
.fg-plate-body {
    border-left: 1px solid var(--color-border);
    padding-left: 36px;
    display: grid;
    grid-template-rows: auto auto auto;
    gap: 24px;
}

.fg-plate-head { display: flex; flex-direction: column; gap: 12px; }

.fg-plate-class {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
}

.fg-plate-name {
    font-family: var(--font-heading);
    font-size: clamp(22px, 2.4vw, 30px);
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-weight: 500;
    color: var(--color-primary);
    margin: 0;
}

.fg-plate-caption {
    font-family: var(--font-heading);
    font-size: 15px;
    line-height: 1.5;
    color: var(--color-text-secondary);
    margin: 0;
    max-width: 44ch;
}
.fg-plate-caption em { color: var(--color-primary); font-style: italic; }

/* Figure / illustration ------------------------------------- */
.fg-plate-figure {
    position: relative;
    border: 1px solid var(--color-border);
    background:
        linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px) 0 0 / 20px 20px,
        linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px) 0 0 / 20px 20px,
        rgba(255,255,255,0.02);
    padding: 28px 24px;
    color: var(--color-primary);
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.fg-plate-figure::before,
.fg-plate-figure::after {
    content: "";
    position: absolute;
    width: 12px;
    height: 12px;
    border: 1px solid rgba(255,255,255,0.3);
    opacity: 0.5;
}
.fg-plate-figure::before { top: -6px; left: -6px; border-right: none; border-bottom: none; }
.fg-plate-figure::after { bottom: -6px; right: -6px; border-left: none; border-top: none; }
.fg-plate-figure svg { width: 100%; height: auto; max-height: 180px; }

/* Simulator bars -------------------------------------------- */
.fg-plate-figure--bars {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 10px;
    align-items: end;
    min-height: 200px;
    padding: 24px 20px 40px;
}
.fg-bar {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
}
.fg-bar i {
    display: block;
    width: 100%;
    height: var(--h);
    background: linear-gradient(180deg, var(--color-accent), rgba(255, 255, 255, 0.4));
    border-top: 2px solid var(--color-accent);
    animation: fgBarRise 1s var(--ease-smooth) both;
}
.fg-bar:nth-child(1) i { animation-delay: 0ms; }
.fg-bar:nth-child(2) i { animation-delay: 60ms; }
.fg-bar:nth-child(3) i { animation-delay: 120ms; }
.fg-bar:nth-child(4) i { animation-delay: 180ms; }
.fg-bar:nth-child(5) i { animation-delay: 240ms; }
.fg-bar:nth-child(6) i { animation-delay: 300ms; }
.fg-bar:nth-child(7) i { animation-delay: 360ms; }
.fg-bar:nth-child(8) i { animation-delay: 420ms; }
.fg-bar span {
    position: absolute;
    bottom: -24px;
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--color-text-secondary);
    white-space: nowrap;
}
@keyframes fgBarRise {
    from { height: 0; opacity: 0; }
    to { height: var(--h); opacity: 1; }
}

/* SDK code figure ------------------------------------------- */
.fg-plate-figure--sdk { padding: 0; align-items: stretch; }
.fg-code {
    margin: 0;
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.9;
    padding: 24px 24px 24px 0;
    width: 100%;
    color: var(--color-primary);
}
.fg-code-line {
    display: block;
    padding-left: 56px;
    position: relative;
}
.fg-code-line i {
    position: absolute;
    left: 0;
    width: 40px;
    text-align: right;
    padding-right: 12px;
    color: var(--color-text-secondary);
    font-style: normal;
    font-size: 11px;
    opacity: 0.6;
    border-right: 1px solid var(--color-border);
}
.fg-code-line b { color: var(--color-accent); font-weight: 500; }

/* Profiler chart -------------------------------------------- */
.fg-plate-figure--chart svg { max-height: 180px; }

/* QNN network ----------------------------------------------- */
.fg-plate-figure--net svg { max-height: 180px; }

/* Collab canvas --------------------------------------------- */
.fg-plate-figure--collab {
    padding: 0;
    min-height: 220px;
    overflow: hidden;
}
.fg-collab-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 24px 24px;
}
.fg-cursor {
    position: absolute;
    display: flex;
    align-items: flex-start;
    gap: 6px;
    animation: fgFloat 5s ease-in-out infinite;
    z-index: 2;
}
.fg-cursor svg { width: 16px; height: 16px; display: block; }
.fg-cursor span {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 500;
    color: #fff;
    background: currentColor;
    padding: 3px 8px;
    border-radius: 3px;
    margin-top: 10px;
    letter-spacing: 0.04em;
}
.fg-cursor span::first-letter { color: inherit; }
.fg-cursor--a { top: 22%; left: 28%; color: #2563EB; animation-delay: 0s; }
.fg-cursor--b { top: 48%; left: 58%; color: #F59E0B; animation-delay: 1.6s; }
.fg-cursor--c { top: 68%; left: 18%; color: #10B981; animation-delay: 3.2s; }
@keyframes fgFloat {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(14px, -10px); }
    50% { transform: translate(24px, 8px); }
    75% { transform: translate(6px, 16px); }
}

/* Specs — dotted leader dl --------------------------------- */
.fg-plate-specs {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.fg-plate-specs > div {
    display: grid;
    grid-template-columns: 140px 1fr;
    align-items: baseline;
    gap: 16px;
    position: relative;
}
.fg-plate-specs dt {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
}
.fg-plate-specs dd {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 14px;
    color: var(--color-primary);
    position: relative;
    padding-left: 18px;
}
.fg-plate-specs dd::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translate(-14px, -50%);
    width: 10px;
    border-top: 1px dotted var(--color-text-secondary);
    opacity: 0.55;
}

/* Colophon -------------------------------------------------- */
.fg-colophon {
    margin-top: 56px;
    text-align: center;
    font-family: 'Georgia', serif;
    font-style: italic;
    color: var(--color-text-secondary);
    font-size: 14px;
    letter-spacing: 0.05em;
}

/* Dark theme ------------------------------------------------ */

/* Responsive ------------------------------------------------ */
@media (max-width: 1024px) {
    .fg-masthead { grid-template-columns: 1fr; gap: 40px; }
    .fg-plate, .fg-plate--flip { grid-template-columns: 140px 1fr; gap: 32px; padding: 56px 0; }
    .fg-plate-body { padding-left: 32px; }
    .fg-plate--flip .fg-plate-body { padding-right: 32px; padding-left: 0; }
}

@media (max-width: 768px) {
    .section-platform { padding-top: 80px; padding-bottom: 80px; }
    .fg-index { grid-template-columns: repeat(2, 1fr); }
    .fg-plate, .fg-plate--flip {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 48px 0;
    }
    .fg-plate--flip .fg-plate-num { order: 0; text-align: left; align-items: flex-start; }
    .fg-plate--flip .fg-plate-body { order: 1; border-right: none; border-left: 1px solid var(--color-border); padding-right: 0; padding-left: 24px; }
    .fg-plate-num { flex-direction: row; align-items: baseline; position: static; gap: 16px; }
    .fg-plate-numeral { font-size: 72px; }
    .fg-plate-body { border-left: 1px solid var(--color-border); padding-left: 24px; gap: 24px; }
    .fg-plate-specs > div { grid-template-columns: 110px 1fr; gap: 10px; }
    .fg-plate-figure--bars { min-height: 160px; gap: 6px; }
    .fg-bar span { font-size: 8px; }
}

@media (max-width: 600px) {
    .fg-title { font-size: 40px; }
    .fg-lede { font-size: 16px; }
    .fg-plate-caption { font-size: 16px; }
    .fg-plate-specs dd { font-size: 14px; }
    .fg-code { font-size: 11px; }
    .fg-plate-figure { padding: 20px 16px; }
}


/* ============================================
   Dev Cards (Legacy — kept for compatibility)
   ============================================ */

.dev-card {
    background: var(--color-card-veil);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 40px 36px;
    transition: border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), transform 0.3s var(--ease-out);
    display: flex;
    flex-direction: column;
    min-height: 380px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.dev-card:hover {
    border-color: #444444;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

.dev-card-tag {
    display: block;
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 16px;
    margin-top: 0;
}

.dev-card h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--color-primary);
    margin-bottom: 12px;
    line-height: 1.2;
}

.dev-card p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-text-secondary);
    margin-bottom: 24px;
}

.dev-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0;
}

.dev-features li {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text);
    padding-left: 18px;
    position: relative;
    line-height: 1.5;
}

.dev-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--color-accent);
}

.dev-platform-scroll-container {
    overflow-x: auto;
    overflow-y: hidden;
    width: 100%;
    position: relative;
    padding: 0 0 40px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--color-border) transparent;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    overscroll-behavior-x: contain;
    touch-action: pan-y;
}

.dev-platform-scroll-container::-webkit-scrollbar {
    height: 8px;
}

.dev-platform-scroll-container::-webkit-scrollbar-track {
    background: transparent;
}

.dev-platform-scroll-container::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 4px;
}

.dev-platform-scroll-container::-webkit-scrollbar-thumb:hover {
    background: var(--color-text-tertiary);
}

.dev-platform-horizontal {
    display: grid;
    grid-template-columns: repeat(3, 360px);
    gap: 24px;
    justify-content: center;
    padding: 20px 0;
    transform: translate3d(0, 0, 0);
}

@media (max-width: 1200px) {
    .dev-platform-horizontal {
        display: flex;
        gap: 24px;
        padding: 20px 0 20px 32px;
        justify-content: flex-start;
    }
}

.dev-card-horizontal {
    background: var(--color-card-veil);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    overflow: hidden;
    transition: border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), transform 0.3s var(--ease-out);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
}

.dev-card-horizontal:hover {
    border-color: var(--color-text-tertiary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.dev-card-image-top {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #1A1A1A;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
}

.dev-illustration {
    width: 100%;
    height: 100%;
    display: block;
}

.dev-illustration rect[fill="#F9FAFB"],
.dev-illustration circle[fill="#F9FAFB"] {
    fill: #1F1F1F;
}

.dev-illustration rect[fill="#F3F4F6"],
.dev-illustration circle[fill="#F3F4F6"] {
    fill: #2A2A2A;
}

.dev-illustration rect[fill="#FFFFFF"],
.dev-illustration circle[fill="#FFFFFF"] {
    fill: #111111;
}

.dev-illustration [stroke="#E5E7EB"] {
    stroke: #2A2A2A;
}

.dev-illustration [stroke="#D1D5DB"] {
    stroke: #3A3A3A;
}

.dev-illustration [stroke="#9CA3AF"] {
    stroke: #505050;
}

.dev-card-content {
    padding: 32px 28px;
}

.dev-card-content h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--color-primary);
    margin-bottom: 20px;
    line-height: 1.2;
}

/* Code Example */
.code-example {
    background: #0B0B0B;
    border-radius: 12px;
    overflow: hidden;
}

.code-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 24px;
    background: #111111;
    border-bottom: 1px solid #1F1F1F;
}

.code-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #333333;
}

.code-filename {
    font-family: var(--font-mono);
    font-size: 12px;
    color: #666666;
    margin-left: 8px;
}

.code-example pre {
    padding: 28px 28px 32px;
    overflow-x: auto;
    margin: 0;
}

.code-example code {
    font-family: var(--font-mono);
    font-size: 14px;
    line-height: 1.75;
    color: #D4D4D4;
}

.code-kw { color: #C586C0; }
.code-str { color: #CE9178; }
.code-comment { color: #6A9955; }
.code-cls { color: #4EC9B0; }
.code-fn { color: #DCDCAA; }
.code-num { color: #B5CEA8; }

/* ============================================
   Research Section — Premium Cards
   ============================================ */

.section-research {
    padding: var(--section-spacing) 0;
}

.research-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.research-card {
    background: var(--color-card-veil);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    padding: 36px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: transform 200ms ease-out, box-shadow 200ms ease-out;
}

.research-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3);
}

/* Industry eyebrow */
.rc-industry {
    font-family: var(--font-mono, 'IBM Plex Mono', monospace);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-accent, #FFFFFF);
    margin-bottom: 12px;
}

/* Card number */
.rc-num {
    font-family: var(--font-mono, 'IBM Plex Mono', monospace);
    font-size: 13px;
    font-weight: 500;
    color: var(--color-accent, #FFFFFF);
    letter-spacing: 0.08em;
    display: block;
    margin-bottom: 16px;
}

/* SVG visualization */
.rc-viz {
    aspect-ratio: 4 / 3;
    margin-bottom: 24px;
}

.rc-viz svg {
    width: 100%;
    height: 100%;
}

/* Title */
.research-card h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--color-primary);
    line-height: 1.3;
}

/* Description */
.research-card p {
    color: var(--color-text-secondary);
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.6;
    flex-grow: 1;
}

/* Metrics footer */
.rc-meta {
    margin-top: 24px;
    display: flex;
    gap: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--color-border);
    font-size: 13px;
    color: var(--color-text-secondary);
}

.rc-meta strong {
    color: var(--color-primary);
    font-weight: 500;
}

/* Responsive */
@media (max-width: 1024px) {
    .research-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .research-card:last-child {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .research-grid {
        grid-template-columns: 1fr;
    }
    .research-card {
        padding: 28px;
    }
    .research-card:last-child {
        grid-column: span 1;
    }
    .research-card h3 {
        font-size: 19px;
    }
}

/* ============================================
   Use Cases Section
   ============================================ */

.section-usecases {
    padding: var(--section-spacing) 0;
}

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

.usecase-card {
    background: var(--color-card-veil);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 40px 36px;
    transition: border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), transform 0.3s var(--ease-out);
    min-height: 240px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.usecase-card:hover {
    border-color: #444444;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

.usecase-icon {
    color: var(--color-accent);
    margin-bottom: 20px;
}

.usecase-card h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--color-primary);
    margin-bottom: 12px;
    line-height: 1.25;
}

.usecase-card p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-text-secondary);
}

/* ============================================
   Capabilities Section
   ============================================ */

.section-capabilities {
    background: var(--color-surface-veil);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-top: 1px solid var(--color-border-light);
    border-bottom: 1px solid var(--color-border-light);
}

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--color-border);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
    margin-top: 64px;
}

.capabilities-scroll-container {
    overflow-x: auto;
    overflow-y: hidden;
    width: 100%;
    position: relative;
    padding: 0 0 40px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--color-border) transparent;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    overscroll-behavior-x: contain;
    touch-action: pan-y;
}

.capabilities-scroll-container::-webkit-scrollbar {
    height: 8px;
}

.capabilities-scroll-container::-webkit-scrollbar-track {
    background: transparent;
}

.capabilities-scroll-container::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 4px;
}

.capabilities-scroll-container::-webkit-scrollbar-thumb:hover {
    background: var(--color-text-tertiary);
}

.capabilities-horizontal {
    display: flex;
    gap: 24px;
    padding: 0 0 20px max(32px, calc((100vw - 1200px) / 2 + 32px));
    justify-content: flex-start;
    align-items: flex-start;
    flex-wrap: nowrap;
    transform: translate3d(0, 0, 0);
}

.capabilities-horizontal > * {
    flex-shrink: 0;
}

.section-capabilities .capabilities-horizontal,
.section-research .capabilities-horizontal {
    padding-top: 0;
    align-items: flex-start;
}

.section-capabilities .container,
.section-developer .container {
    margin-bottom: 0;
}

.section-capabilities .container .section-intro,
.section-developer .container .section-intro {
    margin-bottom: 32px;
}

.capabilities-scroll-container,
.dev-platform-scroll-container {
    margin-top: 0;
}

#architectureScroll .capabilities-horizontal .research-card {
    min-width: 340px;
    max-width: 340px;
    flex-shrink: 0;
}

.capabilities-scroll-container::-webkit-scrollbar { display: none; }

#capabilitiesTrack {
    will-change: transform;
    flex-wrap: nowrap;
    backface-visibility: hidden;
}

#capabilities.section-capabilities {
    overflow: hidden;
}

#capabilities .capabilities-scroll-container {
    overflow: hidden;
}

#capabilitiesScroll {
    scroll-behavior: auto;
}

#capabilitiesScroll .capabilities-horizontal {
    will-change: transform;
}

.capability-card-horizontal {
    background: var(--color-card-veil);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    overflow: hidden;
    min-width: 420px;
    max-width: 420px;
    flex-shrink: 0;
    transition: border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), transform 0.3s var(--ease-out);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    display: grid;
    grid-template-columns: 3fr 1fr;
}

.capability-card-horizontal:hover {
    border-color: var(--color-text-tertiary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.capability-card-image {
    width: 100%;
    height: 100%;
    background: #141414;
    border-right: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.capability-illustration {
    width: 100%;
    height: 100%;
    display: block;
}

.capability-card-content {
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.capability-number {
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 12px;
}

.capability-card-content h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--color-primary);
    margin-bottom: 12px;
    line-height: 1.3;
}

.capability-card-content p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--color-text-secondary);
}

.capability-card {
    background: var(--color-card-veil);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 40px 36px;
    transition: background 0.2s var(--ease-out);
    min-height: 200px;
}

.capability-card:hover { background: var(--color-card-veil-hover); }

.capability-card h4 {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 600;
    color: var(--color-primary);
    letter-spacing: -0.015em;
    margin-bottom: 10px;
}

.capability-card p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--color-text-secondary);
}

/* ============================================
   Contact Section
   ============================================ */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact-info h2 {
    font-family: var(--font-heading);
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.contact-info > p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text-secondary);
    margin-bottom: 48px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-detail {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-detail-label {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-secondary);
}

.contact-detail-value {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 500;
    color: var(--color-primary);
}

.form-group { margin-bottom: 24px; }

.form-group label {
    display: block;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 13px 16px;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--color-text);
    background: #111111;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15);
}

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

/* ============================================
   Careers Page
   ============================================ */

.careers-hero {
    min-height: 76vh;
}

.section-about-company,
.section-open-roles,
.section-careers-apply {
    padding: var(--section-spacing) 0;
}

.careers-values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.careers-value-card {
    border: 1px solid var(--color-border);
    background: var(--color-card-veil);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 28px;
}

.careers-value-card h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
}

.careers-value-card p {
    color: var(--color-text-secondary);
    line-height: 1.7;
}

.roles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-top: 40px;
}

.role-card {
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 28px;
    background: var(--color-card-veil);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.2s var(--ease-out), border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}

.role-card:hover {
    transform: translateY(-2px);
    border-color: #444444;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
}

.role-card h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
}

.role-card p {
    color: var(--color-text-secondary);
    margin-bottom: 14px;
    line-height: 1.7;
}

.role-card span {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 600;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    padding: 6px 12px;
    color: var(--color-text-secondary);
}

.role-actions {
    margin-top: 20px;
}

.role-actions .btn {
    width: 100%;
}

.careers-apply-wrap {
    max-width: 860px;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    padding: 34px;
    background: var(--color-card-veil);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.career-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.career-form .form-group {
    margin-bottom: 20px;
}

.career-form select {
    width: 100%;
    padding: 13px 16px;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--color-text);
    background-color: #111111;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10L6 8z' fill='%23707070'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    cursor: pointer;
}

.career-form select:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15);
}


/* ============================================
   CTA Banner
   ============================================ */

.section-cta {
    padding: 0;
    padding-bottom: 100px;
}

.cta-banner {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 72px 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.cta-text h2 {
    font-family: var(--font-heading);
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 600;
    color: #0A0A0A;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
}

.cta-text p {
    font-size: 16px;
    color: rgba(10, 10, 10, 0.6);
    line-height: 1.6;
}

.cta-actions {
    flex-shrink: 0;
    display: flex;
    gap: 12px;
    align-items: center;
}

/* ============================================
   Public Registration Portal
   ============================================ */

.registration-hero {
    min-height: calc(100vh - 120px);
}

.registration-portal-wrap {
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 56px 48px;
    background: linear-gradient(180deg, #0f0f0f 0%, #141414 100%);
}

.registration-portal-wrap .hero-eyebrow,
.registration-portal-wrap .hero-headline,
.registration-portal-wrap .hero-sub {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.registration-portal-wrap .hero-sub {
    max-width: 680px;
}

.registration-portal-wrap .registration-description {
    width: 100%;
    max-width: 680px;
    margin: 0 auto 48px;
    text-align: center;
    text-align-last: center;
    text-wrap: balance;
}

.registration-portal-wrap .hero-actions {
    justify-content: center;
}

/* ============================================
   Footer
   ============================================ */

.site-footer {
    padding: 80px 0 48px;
    border-top: 1px solid var(--color-border);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    margin-bottom: 64px;
}

.footer-brand .nav-logo { margin-bottom: 0; }

.footer-columns {
    display: flex;
    gap: 64px;
}

.footer-column h4 {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
    margin-bottom: 20px;
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-column a {
    font-size: 14px;
    color: var(--color-text-secondary);
    transition: color 0.2s var(--ease-out);
}

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

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

.footer-bottom p {
    font-size: 13px;
    color: var(--color-text-secondary);
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    font-size: 13px;
    color: var(--color-text-secondary);
    transition: color 0.2s ease;
}

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

/* ============================================
   Scroll Reveal
   ============================================ */

.reveal {
    opacity: 0;
    transform: translate3d(0, 24px, 0);
    will-change: transform, opacity;
    transition: opacity 0.72s var(--ease-smooth), transform 0.72s var(--ease-smooth);
}

.reveal.visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    will-change: auto;
}

.reveal:nth-child(2) { transition-delay: 0.06s; }
.reveal:nth-child(3) { transition-delay: 0.12s; }
.reveal:nth-child(4) { transition-delay: 0.18s; }
.reveal:nth-child(5) { transition-delay: 0.24s; }

.layer-showcase .layer-surface.reveal:nth-child(2),
.dev-platform-horizontal .dev-card-horizontal.reveal:nth-child(2),
.capabilities-horizontal .capability-card-horizontal.reveal:nth-child(2) {
    transition-delay: 0.08s;
}

.layer-showcase .layer-surface.reveal:nth-child(3),
.dev-platform-horizontal .dev-card-horizontal.reveal:nth-child(3),
.capabilities-horizontal .capability-card-horizontal.reveal:nth-child(3) {
    transition-delay: 0.16s;
}

.layer-showcase .layer-surface.reveal:nth-child(4),
.dev-platform-horizontal .dev-card-horizontal.reveal:nth-child(4),
.capabilities-horizontal .capability-card-horizontal.reveal:nth-child(4) {
    transition-delay: 0.24s;
}

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

    .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .qc-gate,
    .qc-ctrl,
    .qc-tgt,
    .qc-meter,
    .qc-vline,
    .qc-circuit,
    .qc-label-cell,
    .btn,
    .site-header,
    .layer-surface,
    .dev-card-horizontal,
    .research-card,
    .usecase-card,
    .capability-card-horizontal {
        animation: none !important;
        transition: none !important;
    }
}

::selection {
    background: rgba(255, 255, 255, 0.15);
    color: var(--color-primary);
}

.research-topics span { border-color: var(--color-border); color: var(--color-text-tertiary); }

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

@media (max-width: 1024px) {
    :root {
        --section-spacing: 100px;
        --header-height: 72px;
        --header-height-scrolled: 72px;
    }

    .hero-split {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .hero-visual {
        justify-content: center;
    }

    .processor-diagram {
        width: 320px;
        height: 320px;
    }

    .processor-outer-ring {
        width: 200px;
        height: 200px;
    }

    .processor-mid-ring {
        width: 130px;
        height: 130px;
    }

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

    .layer-showcase {
        grid-template-columns: 1fr;
    }

    .dev-platform-grid {
        grid-template-columns: 1fr;
    }

    .research-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

    .careers-values-grid,
    .roles-grid {
        grid-template-columns: 1fr 1fr;
    }

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

    .contact-grid { gap: 60px; }
    .footer-columns { gap: 40px; }

    .cta-banner {
        flex-direction: column;
        align-items: flex-start;
        padding: 56px 48px;
    }

    .cta-actions {
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    :root {
        --section-spacing: 80px;
        --header-height: 72px;
        --header-height-scrolled: 72px;
    }

    .container { padding: 0 20px; }
    .nav-container { padding: 0 20px; grid-template-columns: auto auto; justify-content: space-between; }
    .nav-links { display: none; }
    .nav-cta { display: none; }
    .nav-toggle { display: flex; }
    .mobile-nav { display: block; }

    .hero { padding-top: 90px; padding-bottom: 60px; }
    .hero-headline br { display: none; }
    .hero-sub { font-size: 16px; }

    .qc-circuit { width: 100%; max-width: 440px; }
    .qc-cell { height: 56px; }
    .qc-gate { width: 38px; height: 38px; font-size: 13px; }
    .qc-tgt { width: 32px; height: 32px; }

    .architecture-grid { grid-template-columns: 1fr; }
    .dev-platform-grid { grid-template-columns: 1fr; }
    .research-grid { grid-template-columns: 1fr; }
    .usecases-grid { grid-template-columns: 1fr; }
    .capabilities-grid { grid-template-columns: 1fr; }
    .careers-values-grid,
    .roles-grid,
    .career-form .form-row { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; gap: 48px; }

    .dev-platform-scroll-container {
        padding: 0 20px 40px;
        margin: 0 -20px;
        scroll-snap-type: x mandatory;
        scroll-padding: 0 20px;
    }

    .dev-platform-horizontal {
        display: flex;
        padding: 20px 0 20px 20px;
        gap: 16px;
    }

    .dev-card-horizontal {
        min-width: calc(85vw);
        max-width: calc(85vw);
        flex-shrink: 0;
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }

    .capabilities-scroll-container {
        overflow-x: auto;
        overflow-y: hidden;
        padding: 0 20px 40px;
        margin: 0 -20px;
        scroll-snap-type: x mandatory;
        scroll-padding: 0 20px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        scroll-behavior: smooth;
    }

    .capabilities-scroll-container::-webkit-scrollbar { display: none; }

    .capabilities-horizontal {
        display: flex;
        padding: 20px 0 20px 20px;
        gap: 16px;
    }

    #architectureScroll .capabilities-horizontal {
        grid-template-columns: unset;
    }

    .capabilities-horizontal .research-card {
        min-width: calc(85vw);
        max-width: calc(85vw);
        flex-shrink: 0;
        scroll-snap-align: start;
    }

    .capability-card-horizontal {
        min-width: calc(85vw);
        max-width: calc(85vw);
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }

    .dev-card-horizontal {
        min-width: calc(85vw);
        max-width: calc(85vw);
    }

    .dev-card-image-top {
        height: 140px;
    }

    .dev-illustration {
        max-height: 120px;
    }

    .dev-card-content {
        padding: 20px 16px;
    }

    .dev-card-tag {
        font-size: 9px;
        margin-bottom: 8px;
    }

    .dev-card-content h3 {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .dev-features {
        gap: 6px;
    }

    .dev-features li {
        font-size: 13px;
        line-height: 1.5;
    }

    .capability-card-image {
        padding: 16px;
    }

    .capability-illustration {
        max-height: 120px;
    }

    .capability-card-content {
        padding: 20px 16px;
    }

    .capability-card-content h3 {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .capability-card-content p {
        font-size: 13px;
        line-height: 1.6;
    }

    .careers-apply-wrap { padding: 24px; }

    .benchmark-table th,
    .benchmark-table td { padding: 12px 16px; font-size: 13px; }
    .benchmark-table .metric-name { min-width: 140px; }

    .cta-banner { padding: 48px 32px; border-radius: 12px; }
    .section-cta { padding-bottom: 80px; }
    .cta-actions { width: 100%; }
    .cta-actions .btn { width: 100%; text-align: center; }

    .registration-portal-wrap {
        padding: 40px 24px;
    }

    .footer-top { flex-direction: column; gap: 40px; }
    .footer-columns { flex-wrap: wrap; gap: 32px; }
    .footer-column { min-width: 120px; }
    .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
    .footer-legal { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 480px) {
    .hero { padding-top: 80px; }

    .hero-actions { flex-direction: column; }
    .btn { width: 100%; text-align: center; }

    .dev-platform-scroll-container {
        padding: 0 16px 40px;
        margin: 0 -16px;
        scroll-snap-type: x mandatory;
        scroll-padding: 0 16px;
    }

    .dev-platform-horizontal {
        padding: 20px 0 20px 16px;
        gap: 12px;
    }

    .dev-card-horizontal {
        min-width: calc(82vw);
        max-width: calc(82vw);
        scroll-snap-align: start;
    }

    .capabilities-scroll-container {
        padding: 0 16px 40px;
        margin: 0 -16px;
        scroll-snap-type: x mandatory;
        scroll-padding: 0 16px;
    }

    .capabilities-horizontal {
        padding: 20px 0 20px 16px;
        gap: 12px;
    }

    .capabilities-horizontal .research-card {
        min-width: calc(82vw);
        max-width: calc(82vw);
        scroll-snap-align: start;
    }

    .capability-card-horizontal {
        min-width: calc(82vw);
        max-width: calc(82vw);
        scroll-snap-align: start;
    }

    .dev-card-image-top {
        height: 120px;
    }

    .dev-illustration {
        max-height: 100px;
    }

    .dev-card-content {
        padding: 16px 14px;
    }

    .dev-card-tag {
        font-size: 8px;
    }

    .dev-card-content h3 {
        font-size: 15px;
    }

    .dev-features li {
        font-size: 12px;
    }

    .role-card {
        padding: 22px;
    }

    .qc-circuit { max-width: 360px; }
    .qc-cell { height: 48px; }
    .qc-gate { width: 34px; height: 34px; font-size: 12px; }
    .qc-tgt { width: 28px; height: 28px; font-size: 14px; }
    .qc-meter { width: 34px; height: 34px; }
    .qc-label-cell { font-size: 11px; }
    .processor-inner-ring { width: 60px; height: 60px; }
    .processor-core { width: 36px; height: 36px; }
}

/* ============================================
    Quantum Processor - Advanced Animations
    ============================================ */

.processor-core {
    animation: coreGlow 3s ease-in-out infinite;
}

@keyframes coreGlow {
    0%, 100% { opacity: 0.15; box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
    50% { opacity: 0.35; box-shadow: 0 0 40px 10px rgba(255, 255, 255, 0.2); }
}

.processor-inner-ring {
    animation: innerPulse 4s ease-in-out infinite;
}

@keyframes innerPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.04); }
}

.photon-node {
    animation: nodeBlink 2.5s ease-in-out infinite;
}

.node-top { animation-delay: 0s; }
.node-right { animation-delay: 0.6s; }
.node-bottom { animation-delay: 1.2s; }
.node-left { animation-delay: 1.8s; }

@keyframes nodeBlink {
    0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.9; transform: translate(-50%, -50%) scale(1.6); }
}

.node-top { transform-origin: center; transform: translateX(-50%); }
.node-right { transform-origin: center; transform: translateY(-50%); }
.node-bottom { transform-origin: center; transform: translateX(-50%); }
.node-left { transform-origin: center; transform: translateY(-50%); }

.photon-channel::after {
    content: '';
    position: absolute;
    background: var(--color-accent);
    border-radius: 50%;
    opacity: 0;
    animation: dataFlow 3s ease-in-out infinite;
}

.ch-top::after, .ch-bottom::after {
    width: 3px;
    height: 3px;
    left: 50%;
    transform: translateX(-50%);
}

.ch-left::after, .ch-right::after {
    width: 3px;
    height: 3px;
    top: 50%;
    transform: translateY(-50%);
}

.ch-top::after { animation-name: dataFlowDown; }
.ch-bottom::after { animation-name: dataFlowUp; animation-delay: 0.8s; }
.ch-left::after { animation-name: dataFlowRight; animation-delay: 0.4s; }
.ch-right::after { animation-name: dataFlowLeft; animation-delay: 1.2s; }

@keyframes dataFlowDown {
    0% { top: 0; opacity: 0; }
    20% { opacity: 0.9; }
    80% { opacity: 0.9; }
    100% { top: 100%; opacity: 0; }
}

@keyframes dataFlowUp {
    0% { bottom: 0; opacity: 0; }
    20% { opacity: 0.9; }
    80% { opacity: 0.9; }
    100% { bottom: 100%; opacity: 0; }
}

@keyframes dataFlowRight {
    0% { left: 0; opacity: 0; }
    20% { opacity: 0.9; }
    80% { opacity: 0.9; }
    100% { left: 100%; opacity: 0; }
}

@keyframes dataFlowLeft {
    0% { right: 0; opacity: 0; }
    20% { opacity: 0.9; }
    80% { opacity: 0.9; }
    100% { right: 100%; opacity: 0; }
}

.processor-outer-ring {
    animation: slowRotate 60s linear infinite, outerBreathe 6s ease-in-out infinite;
}

@keyframes outerBreathe {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
    50% { box-shadow: 0 0 40px 2px rgba(255, 255, 255, 0.1); }
}

.processor-label {
    animation: labelFade 1.5s ease-out 0.5s both;
}

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

.spec-item {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid var(--color-accent);
    animation: specType 0.8s steps(14) both, specBlink 0.6s step-end 3;
    max-width: 0;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--color-text-tertiary);
    vertical-align: bottom;
}

.spec-item:nth-child(1) { animation-delay: 1s, 1s; }
.spec-item:nth-child(3) { animation-delay: 2.2s, 2.2s; }
.spec-item:nth-child(5) { animation-delay: 3.4s, 3.4s; }

@keyframes specType {
    to { max-width: 120px; border-right-color: transparent; }
}

@keyframes specBlink {
    50% { border-right-color: transparent; }
}

/* ============================================
   Registration Modal
   ============================================ */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.modal-container {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    width: 100%;
    max-width: 540px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 48px 40px;
    position: relative;
    transform: translateY(20px) scale(0.98);
    transition: transform 0.3s var(--ease-out);
}

.modal-overlay.open .modal-container {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--color-text-tertiary);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background 0.2s ease, color 0.2s ease;
    line-height: 1;
}

.modal-close:hover {
    background: var(--color-surface);
    color: var(--color-primary);
}

.modal-header {
    margin-bottom: 32px;
}

.modal-header h2 {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.modal-header p {
    font-size: 15px;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.register-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.register-form .form-group {
    margin-bottom: 20px;
}

.register-form select {
    width: 100%;
    padding: 13px 16px;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--color-text);
    background-color: #111111;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10L6 8z' fill='%23707070'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    cursor: pointer;
}

.iti {
    width: 100%;
    display: block;
}

.register-form select:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15);
}

.form-status {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 16px;
    display: none;
}

.form-status.success {
    display: block;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: #4ade80;
}

.form-status.error {
    display: block;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #f87171;
}

@media (max-width: 768px) {
    .modal-container {
        padding: 36px 24px;
        max-width: 100%;
    }

    .register-form .form-row {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   intl-tel-input fixes
   ============================================ */

.iti {
    width: 100%;
}

/* Style the hidden input that intl-tel-input uses */
.iti input,
.iti input[type="tel"] {
    width: 100% !important;
    padding: 13px 16px !important;
    padding-left: 112px !important;
    font-family: var(--font-body) !important;
    font-size: 15px !important;
    color: #e5e5e5 !important;
    background: #111111 !important;
    border: 1px solid #2a2a2a !important;
    border-radius: 8px !important;
    outline: none !important;
    transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out) !important;
    height: auto !important;
}

.iti input:focus {
    border-color: #FFFFFF !important;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15) !important;
}

.iti--allow-dropdown input,
.iti--allow-dropdown input[type="tel"],
.iti--separate-dial-code input,
.iti--separate-dial-code input[type="tel"] {
    padding-left: 112px !important;
}

.iti__flag-button {
    background: transparent;
    border: none;
    padding: 0 8px 0 0;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    font-size: 13px;
    color: var(--color-text-secondary);
    font-family: var(--font-body);
    transition: color 0.2s ease;
    height: auto;
    margin: 0;
}

.iti__flag-button:hover {
    color: var(--color-accent);
}

.iti__flag {
    width: 20px;
    height: 14px;
    border-radius: 1px;
}

.iti__flag-container {
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    border-right: 1px solid #333333;
    padding: 0 8px 0 0;
}

.iti__selected-dial-code {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--color-text-secondary);
    padding: 0;
    display: inline;
    margin: 0;
}

.iti__country-list:not(.iti__hide) {
    z-index: 1001;
    max-height: 240px;
    overflow-y: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    border: 1px solid #2a2a2a;
    background: #111111;
    margin-top: 6px;
    left: 0 !important;
    right: auto !important;
}

.iti__country {
    padding: 10px 12px;
    font-size: 13px;
    color: #e5e5e5;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.15s ease;
}

.iti__country:hover,
.iti__country.iti__highlight {
    background: #2a2a2a;
}

.iti__dial-code {
    color: #707070;
    font-size: 12px;
    margin-left: auto;
}

.iti__country-name {
    color: #e5e5e5;
    font-size: 13px;
    flex: 1;
}

/* Country search input inside dropdown */
.iti__search-input {
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 10px 14px !important;
    font-size: 13px !important;
    font-family: var(--font-body) !important;
    color: #e5e5e5 !important;
    background: #111111 !important;
    border: none !important;
    border-bottom: 1px solid #2a2a2a !important;
    border-radius: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    display: block !important;
    margin: 0 !important;
}

.iti__search-input::placeholder {
    color: var(--color-text-secondary) !important;
    opacity: 0.6 !important;
}

.iti__search-input:focus {
    border-bottom-color: #FFFFFF !important;
    background: #1a1a1a !important;
    box-shadow: none !important;
}

/* ============================================
   Scale-proof layout — consistent across OS display scaling
   ============================================ */

/* Ensure consistent box model and font rendering at any DPI */
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* Prevent Windows high-DPI scaling from breaking fixed layouts */
@media screen and (-webkit-min-device-pixel-ratio: 1.25),
       screen and (min-resolution: 120dpi) {
    /* Ensure containers don't overflow at higher DPI */
    .container {
        max-width: var(--container-max);
    }
    /* Keep horizontal scroll sections from overflowing */
    .capabilities-scroll-container,
    .dev-platform-scroll-container {
        max-width: 100vw;
    }
}

/* Tablet/laptop breakpoint — handles 125% Windows scaling on 1920px screens */
@media (max-width: 1280px) and (min-width: 1025px) {
    :root { --container-max: 1100px; }
    .dev-platform-horizontal {
        grid-template-columns: repeat(3, 320px);
    }
    .hero-headline { font-size: clamp(40px, 4.5vw, 64px); }
}

/* Handles 150% Windows scaling on 1920px (reports as ~1280px) */
@media (max-width: 1024px) and (min-width: 769px) {
    :root { --container-max: 960px; }
}

/* ============================================
   Sticky capabilities section — viewport-fit
   Ensures full card visibility at any OS scale
   ============================================ */

/* Section height fits exactly in viewport at any DPI/scale */
#capabilities.section-capabilities {
    height: calc(100vh - var(--header-height-scrolled));
    min-height: calc(100vh - var(--header-height-scrolled));
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: hidden;
    padding-top: 34px;
    padding-bottom: 24px;
    box-sizing: border-box;
}

#capabilities .container {
    flex-shrink: 0;
    padding-top: 4px;
}

#capabilities .section-label {
    opacity: 1 !important;
    transform: none !important;
    margin-bottom: 14px;
    position: relative;
    z-index: 3;
}

#capabilities .section-heading,
#capabilities .section-intro {
    position: relative;
    z-index: 3;
}

/* Cards fill available height */
#capabilities .capabilities-scroll-container {
    overflow: hidden;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    align-items: flex-start;
}

#capabilities .capabilities-horizontal {
    align-items: flex-start;
}

/* Cap card height so it always fits in viewport */
#capabilities .dev-card-horizontal {
    max-height: calc(100vh - 260px);
    overflow: hidden;
}

#capabilities .dev-card-image-top {
    height: clamp(140px, 18vh, 200px);
}

#capabilities .dev-card-content {
    padding: 24px 24px 22px;
}

/* Make SVG illustration lines darker in light mode */
.dev-card-image-top .dev-illustration [stroke="#E5E7EB"] {
    stroke: #9CA3AF;
}
.dev-card-image-top .dev-illustration [stroke="#D1D5DB"] {
    stroke: #6B7280;
}
.dev-card-image-top .dev-illustration [fill="#F9FAFB"] {
    fill: #F3F4F6;
}
.dev-card-image-top .dev-illustration [fill="#E5E7EB"] {
    fill: #D1D5DB;
}

/* ============================================
   Architecture Stack Section
   ============================================ */

.section-architecture {
    position: relative;
}

.section-architecture em {
    font-style: italic;
    color: var(--color-primary, #111);
}

.arch-layout {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: clamp(40px, 6vw, 88px);
    align-items: center;
    margin-top: 48px;
}

.arch-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.arch-row {
    display: grid;
    grid-template-columns: 40px 1fr auto;
    gap: 16px;
    padding: 20px 8px;
    border-bottom: 1px solid var(--color-border, rgba(255,255,255,0.08));
    align-items: baseline;
    cursor: pointer;
    transition: padding-left 150ms ease-out, background 150ms ease-out;
    border-radius: 6px;
    position: relative;
    will-change: padding-left;
}

.arch-row:first-child {
    border-top: 1px solid var(--color-border, rgba(255,255,255,0.08));
}

.arch-row:hover {
    padding-left: 14px;
    background: rgba(255, 255, 255, 0.04);
}

.arch-row.active {
    padding-left: 14px;
    background: rgba(255, 255, 255, 0.07);
}

.arch-row.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 55%;
    background: var(--color-accent, #FFFFFF);
    border-radius: 2px;
}

.arch-ix {
    font-family: var(--font-mono, 'IBM Plex Mono', monospace);
    font-size: 12px;
    color: var(--color-text-tertiary, rgba(255,255,255,0.35));
    letter-spacing: 0.08em;
}

.arch-row h4 {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--color-primary, #fff);
    margin-bottom: 3px;
    transition: color 150ms ease-out;
}

.arch-row:hover h4,
.arch-row.active h4 {
    color: var(--color-accent, #FFFFFF);
}

.arch-row p {
    color: var(--color-text-secondary, rgba(255,255,255,0.55));
    font-size: 13px;
    margin-top: 3px;
    line-height: 1.5;
}

.arch-tag {
    font-family: var(--font-mono, 'IBM Plex Mono', monospace);
    font-size: 11px;
    color: var(--color-text-tertiary, rgba(255,255,255,0.35));
    border: 1px solid var(--color-border, rgba(255,255,255,0.1));
    padding: 4px 10px;
    border-radius: 999px;
    white-space: nowrap;
    transition: border-color 150ms ease-out, color 150ms ease-out;
}

.arch-row:hover .arch-tag,
.arch-row.active .arch-tag {
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--color-accent, #FFFFFF);
}

/* Visualization — no background, open design */
.arch-visual {
    aspect-ratio: 10/9;
    background: none;
    border: none;
    border-radius: 0;
    padding: 16px 0;
    position: relative;
}

/* GPU-accelerated slab transitions */
.arch-slab {
    opacity: 1;
    transition: opacity 180ms ease-out;
    will-change: opacity;
}

.arch-slab.dimmed {
    opacity: 0.1;
}

.arch-slab.highlighted {
    opacity: 1;
    filter: drop-shadow(0 0 8px rgba(255,255,255,0.3));
}

/* Responsive */
@media (max-width: 1024px) {
    .arch-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .arch-visual {
        max-width: 520px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .arch-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .arch-row {
        grid-template-columns: 36px 1fr;
        gap: 12px;
    }

    .arch-tag {
        display: none;
    }

    .arch-visual {
        aspect-ratio: 1/1;
        padding: 8px 0;
    }

    .arch-row h4 {
        font-size: 16px;
    }

    .arch-row p {
        font-size: 12px;
    }
}

/* ============================================
   Mystery Section — dead-bottom reveal
   ============================================ */

.section-mystery {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 140px 32px;
    overflow: hidden;
    background: #020203;
}

.section-mystery::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(61, 127, 255, 0.10) 0%, transparent 70%);
    pointer-events: none;
}

.mystery-mark {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-text-tertiary);
    margin-bottom: 28px;
    opacity: 0.6;
}

.mystery-text {
    position: relative;
    max-width: 720px;
    margin: 0 auto;
    font-family: var(--font-heading);
    font-size: clamp(20px, 2.4vw, 30px);
    font-weight: 300;
    line-height: 1.55;
    letter-spacing: 0.01em;
    color: rgba(229, 229, 229, 0.55);
}

.mystery-text em {
    font-style: normal;
    font-weight: 500;
    color: var(--color-accent);
    text-shadow: 0 0 24px var(--color-glow);
}

.mystery-sigil {
    margin-top: 40px;
    width: 28px;
    height: 28px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.5;
}

.mystery-sigil svg {
    width: 100%;
    height: 100%;
    stroke: var(--color-accent);
    filter: drop-shadow(0 0 10px var(--color-glow));
}

/* ============================================
   Mega Footer — Extropic-style dead bottom
   ============================================ */

.mega-footer {
    position: relative;
    overflow: hidden;
    background: #060710;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* --- CTA stage with floating glass shapes --- */
.footer-cta-stage {
    position: relative;
    min-height: 620px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 130px 32px 110px;
    overflow: hidden;
}

.footer-cta-stage::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 65% at 50% 45%, rgba(61, 127, 255, 0.10) 0%, transparent 72%);
    pointer-events: none;
}

.footer-orb {
    position: absolute;
    pointer-events: none;
    animation: orbFloat 10s ease-in-out infinite;
    will-change: transform;
}

.footer-orb.shape-blob {
    border-radius: 42% 58% 65% 35% / 45% 40% 60% 55%;
}

.footer-orb.shape-round { border-radius: 50%; }

.footer-orb.shape-diamond {
    border-radius: 8px;
    transform: rotate(45deg);
}

.orb-1 {
    top: 14%; left: 12%; width: 86px; height: 86px;
    background: linear-gradient(135deg, #5B9CFF, #1B3F8C);
    box-shadow: 0 0 60px rgba(61, 127, 255, 0.35), inset 0 0 30px rgba(255,255,255,0.15);
    animation-delay: 0s;
}

.orb-2 {
    top: 62%; left: 8%; width: 46px; height: 46px;
    background: linear-gradient(135deg, #A9C6FF, #3D7FFF);
    box-shadow: 0 0 36px rgba(61, 127, 255, 0.3);
    animation-delay: 1.4s;
}

.orb-3 {
    top: 20%; right: 10%; width: 64px; height: 64px;
    background: linear-gradient(135deg, #E8EEFF, #6E9CFF);
    box-shadow: 0 0 48px rgba(160, 190, 255, 0.3);
    animation-delay: 0.6s;
}

.orb-4 {
    top: 68%; right: 14%; width: 96px; height: 96px;
    background: linear-gradient(135deg, #2A4FA8, #0C1B40);
    box-shadow: 0 0 70px rgba(30, 60, 150, 0.45), inset 0 0 24px rgba(120,160,255,0.2);
    animation-delay: 2.1s;
}

.orb-5 {
    top: 6%; left: 42%; width: 34px; height: 34px;
    background: linear-gradient(135deg, #BFD4FF, #5B9CFF);
    box-shadow: 0 0 30px rgba(91, 156, 255, 0.4);
    animation-delay: 3s;
}

.orb-6 {
    bottom: 8%; left: 38%; width: 50px; height: 50px;
    background: linear-gradient(135deg, #3D7FFF, #142B66);
    box-shadow: 0 0 40px rgba(61, 127, 255, 0.35);
    animation-delay: 1.8s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(0, -22px) rotate(10deg); }
}

.footer-orb.shape-diamond { animation-name: orbFloatDiamond; }
@keyframes orbFloatDiamond {
    0%, 100% { transform: rotate(45deg) translate(0, 0); }
    50% { transform: rotate(55deg) translate(0, -18px); }
}

.footer-cta-card {
    position: relative;
    z-index: 2;
    max-width: 600px;
    width: 100%;
    text-align: center;
    padding: 0 32px;
}

.footer-cta-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
}

.footer-cta-mark img {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 0 26px rgba(61, 127, 255, 0.4));
}

.footer-cta-card h2 {
    font-family: var(--font-heading);
    font-size: clamp(28px, 3.6vw, 38px);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin-bottom: 32px;
    background: linear-gradient(180deg, #FFFFFF 0%, #FFFFFF 55%, #AFC6FF 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    text-shadow: 0 0 60px rgba(61, 127, 255, 0.25);
}

.footer-cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.footer-cta-note {
    font-size: 13px;
    color: var(--color-text-tertiary);
    padding-top: 16px;
}

.footer-cta-note a {
    color: var(--color-accent);
    text-underline-offset: 3px;
    text-decoration: underline;
    text-decoration-color: rgba(61, 127, 255, 0.35);
}

.footer-cta-note a:hover { text-decoration-color: var(--color-accent); }

/* --- Link grid --- */
.footer-links-grid {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    padding: 56px 32px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-link-col h4 {
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-tertiary);
    margin-bottom: 18px;
}

.footer-link-col a {
    display: block;
    font-size: 13.5px;
    color: var(--color-text-secondary);
    padding: 6px 0;
    transition: color 0.2s ease;
}

.footer-link-col a:hover { color: var(--color-accent); }

/* --- Bottom bar --- */
.footer-bottom-bar {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding: 40px 32px 36px;
    margin-top: 48px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 11.5px;
    letter-spacing: 0.04em;
    color: var(--color-text-tertiary);
}

.footer-bottom-bar .footer-legal {
    display: flex;
    gap: 24px;
}

.footer-bottom-bar .footer-legal a {
    font-size: 11.5px;
    letter-spacing: 0.04em;
    color: var(--color-text-tertiary);
    transition: color 0.2s ease;
}

.footer-bottom-bar .footer-legal a:hover { color: var(--color-accent); }

@media (max-width: 1024px) {
    .footer-links-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
}

@media (max-width: 768px) {
    .footer-cta-stage { min-height: 420px; padding: 90px 20px 80px; }
    .footer-orb { transform: scale(0.7); }
    .orb-5, .orb-6 { display: none; }
    .footer-links-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; padding: 48px 20px 0; }
    .footer-bottom-bar { flex-direction: column; text-align: center; padding: 32px 20px 28px; }
}

/* ============================================
   404 Error Page
   ============================================ */

.error-hero { min-height: 90vh; }

.hero-headline.error-code {
    font-size: clamp(96px, 18vw, 220px);
    letter-spacing: -0.05em;
    margin-bottom: 16px;
}
