﻿/* ============================================
   Qaulium AI - Deep Technology Website
   ============================================ */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: #0B0B0B;
    --color-bg: #FFFFFF;
    --color-accent: #2563EB;
    --color-text: #0B0B0B;
    --color-text-secondary: #6B7280;
    --color-text-tertiary: #9CA3AF;
    --color-border: #E5E7EB;
    --color-border-light: #F3F4F6;
    --color-surface: #F9FAFB;
    --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;
    --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: 96px;
    -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;
}

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: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.site-header.scrolled {
    border-bottom-color: var(--color-border);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 18px;
    color: var(--color-primary);
    letter-spacing: -0.02em;
}

.logo-mark { flex-shrink: 0; filter: invert(1); }

[data-theme="dark"] .logo-mark { filter: invert(0); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-links a {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-secondary);
    transition: color 0.2s ease;
    letter-spacing: -0.01em;
}

.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: 14px;
    font-weight: 500;
    color: var(--color-text-secondary);
    letter-spacing: -0.01em;
    background: none;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    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 {
    background: var(--color-primary);
    color: #FFFFFF !important;
    padding: 10px 24px;
    border-radius: 100px;
    font-size: 14px !important;
    transition: background 0.2s var(--ease-out), transform 0.2s var(--ease-out) !important;
}

.nav-cta:hover {
    background: #1F1F1F !important;
    transform: translateY(-1px);
}

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    cursor: pointer;
    color: var(--color-text);
    transition: background 0.2s var(--ease-out), border-color 0.2s var(--ease-out), transform 0.2s var(--ease-out);
    flex-shrink: 0;
}

.theme-toggle:hover {
    background: var(--color-border-light);
    transform: rotate(15deg);
}

.theme-icon { transition: opacity 0.2s ease, transform 0.3s ease; }
.theme-icon-moon { display: none; }
[data-theme="dark"] .theme-icon-sun { display: none; }
[data-theme="dark"] .theme-icon-moon { display: block; }

.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: 72px;
    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;
    overflow-y: auto;
}

.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;
}

.hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-content {
    max-width: 560px;
}

.hero-eyebrow {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 24px;
}

.hero-headline {
    font-family: var(--font-heading);
    font-size: clamp(44px, 5vw, 72px);
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -0.04em;
    color: var(--color-primary);
    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-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: 14px 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: var(--color-primary);
    color: #FFFFFF;
}

.btn-primary:hover {
    background: #1F1F1F;
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--color-primary);
    border: 1.5px solid var(--color-border);
}

.btn-secondary:hover {
    border-color: var(--color-primary);
    transform: translateY(-1px);
}

.btn-light {
    background: #FFFFFF;
    color: var(--color-primary);
}

.btn-light:hover {
    background: #F5F5F5;
    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, 3.8vw, 48px);
    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);
    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-bg);
    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.04);
}

.layer-surface:hover {
    background: var(--color-surface);
    border-color: var(--color-text-tertiary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    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;
}

[data-theme="dark"] .layer-surface {
    border-color: var(--color-border);
    background: var(--color-surface);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .layer-surface:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.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-bg);
    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.04);
}

[data-theme="dark"] .arch-block {
    border-color: var(--color-border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.arch-block:hover {
    background: var(--color-surface);
    border-color: var(--color-text-tertiary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

[data-theme="dark"] .arch-block:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.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(37, 99, 235, 0.03);
    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);
    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;
}

.dev-card {
    background: var(--color-bg);
    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.04);
}

.dev-card:hover {
    border-color: var(--color-text-tertiary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

[data-theme="dark"] .dev-card {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .dev-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.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-bg);
    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: #F9FAFB;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
}

.dev-illustration {
    width: 100%;
    height: 100%;
    display: block;
}

[data-theme="dark"] .dev-card-image-top {
    background: #1A1A1A;
}

[data-theme="dark"] .dev-illustration rect[fill="#F9FAFB"],
[data-theme="dark"] .dev-illustration circle[fill="#F9FAFB"] {
    fill: #1F1F1F;
}

[data-theme="dark"] .dev-illustration rect[fill="#F3F4F6"],
[data-theme="dark"] .dev-illustration circle[fill="#F3F4F6"] {
    fill: #2A2A2A;
}

[data-theme="dark"] .dev-illustration rect[fill="#FFFFFF"],
[data-theme="dark"] .dev-illustration circle[fill="#FFFFFF"] {
    fill: #111111;
}

[data-theme="dark"] .dev-illustration [stroke="#E5E7EB"] {
    stroke: #2A2A2A;
}

[data-theme="dark"] .dev-illustration [stroke="#D1D5DB"] {
    stroke: #3A3A3A;
}

[data-theme="dark"] .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
   ============================================ */

.section-research {
    padding: var(--section-spacing) 0;
}

.research-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.research-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    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);
}

.research-card:hover {
    border-color: var(--color-text-tertiary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .research-card {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .research-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.capabilities-horizontal .research-card {
    min-width: 340px;
    max-width: 340px;
    flex-shrink: 0;
}

.capabilities-horizontal .dev-card-horizontal {
    min-width: 340px;
    max-width: 340px;
    flex-shrink: 0;
}

.research-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.research-number {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    color: var(--color-accent);
    letter-spacing: 0.08em;
}

.research-icon {
    width: 32px;
    height: 32px;
    color: var(--color-text-tertiary);
    opacity: 0.6;
}

.research-icon svg {
    width: 100%;
    height: 100%;
}

.research-card h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--color-primary);
    margin-bottom: 16px;
    line-height: 1.25;
}

.research-card p {
    font-size: 15px;
    line-height: 1.75;
    color: var(--color-text-secondary);
    margin-bottom: 24px;
    flex-grow: 1;
}

.research-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.research-topics span {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    color: var(--color-primary);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 100px;
    padding: 8px 16px;
    letter-spacing: 0.01em;
    transition: background 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}

.research-topics span:hover {
    background: var(--color-bg);
    border-color: var(--color-primary);
}

/* ============================================
   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-bg);
    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.04);
}

.usecase-card:hover {
    border-color: var(--color-text-tertiary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

[data-theme="dark"] .usecase-card {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    background: var(--color-surface);
}

[data-theme="dark"] .usecase-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    border-color: #444444;
}

.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);
    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-bg);
    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: #F9FAFB;
    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-bg);
    padding: 40px 36px;
    transition: background 0.2s var(--ease-out);
    min-height: 200px;
}

.capability-card:hover { background: var(--color-surface); }

.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: var(--color-bg);
    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(37, 99, 235, 0.08);
}

.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-surface);
    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-bg);
    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: #cfd4db;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
}

.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-bg);
}

.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: var(--color-bg);
    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='%236B7280'/%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(37, 99, 235, 0.08);
}

[data-theme="dark"] .career-form select {
    background-color: #111111;
    color: var(--color-text);
    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");
}

[data-theme="dark"] .role-card {
    background: var(--color-surface);
}

/* ============================================
   CTA Banner
   ============================================ */

.section-cta {
    padding: 0;
    padding-bottom: 100px;
}

.cta-banner {
    background: var(--color-primary);
    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: #FFFFFF;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
}

.cta-text p {
    font-size: 16px;
    color: rgba(255, 255, 255, 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, var(--color-bg) 0%, var(--color-surface) 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;
}

[data-theme="dark"] .registration-portal-wrap {
    background: linear-gradient(180deg, #0f0f0f 0%, #141414 100%);
}

/* ============================================
   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,
    .theme-icon,
    .btn,
    .site-header,
    .layer-surface,
    .dev-card-horizontal,
    .research-card,
    .usecase-card,
    .capability-card-horizontal {
        animation: none !important;
        transition: none !important;
    }
}

::selection {
    background: rgba(37, 99, 235, 0.12);
    color: var(--color-primary);
}

/* ============================================
   Dark Theme
   ============================================ */

[data-theme="dark"] {
    --color-primary: #F5F5F5;
    --color-bg: #0A0A0A;
    --color-accent: #60A5FA;
    --color-text: #E5E5E5;
    --color-text-secondary: #A0A0A0;
    --color-text-tertiary: #707070;
    --color-border: #2A2A2A;
    --color-border-light: #1A1A1A;
    --color-surface: #111111;
}

[data-theme="dark"] .site-header { background: rgba(10, 10, 10, 0.92); }
[data-theme="dark"] .nav-cta { background: #FFFFFF; color: #0A0A0A !important; }
[data-theme="dark"] .nav-cta:hover { background: #E0E0E0 !important; }
[data-theme="dark"] .btn-primary { background: #FFFFFF; color: #0A0A0A; }
[data-theme="dark"] .btn-primary:hover { background: #E0E0E0; }
[data-theme="dark"] .btn-secondary { color: var(--color-text); }
[data-theme="dark"] .btn-light { background: #1A1A1A; color: #F5F5F5; }
[data-theme="dark"] .btn-light:hover { background: #222222; }
[data-theme="dark"] .cta-banner { background: #FFFFFF; }
[data-theme="dark"] .cta-text h2 { color: #0A0A0A; }
[data-theme="dark"] .cta-text p { color: rgba(10, 10, 10, 0.6); }
[data-theme="dark"] .code-example { background: #111111; }
[data-theme="dark"] .code-header { background: #0A0A0A; border-bottom-color: #222222; }
[data-theme="dark"] .qc-gate,
[data-theme="dark"] .qc-tgt,
[data-theme="dark"] .qc-meter { background: var(--color-bg); }
[data-theme="dark"] .dev-card:hover { border-color: #444444; box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3); }
[data-theme="dark"] .capabilities-grid { background: var(--color-border); }
[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea { background: #111111; color: var(--color-text); }
[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group textarea:focus { box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.15); }
[data-theme="dark"] .mobile-nav { background: var(--color-bg); }
[data-theme="dark"] ::selection { background: rgba(96, 165, 250, 0.2); color: #F5F5F5; }
[data-theme="dark"] .theme-toggle { background: #1A1A1A; border-color: #2A2A2A; }
[data-theme="dark"] .theme-toggle:hover { background: #222222; }
[data-theme="dark"] .benchmark-table .highlight-col { background: rgba(96, 165, 250, 0.05); }
[data-theme="dark"] .research-topics span { border-color: var(--color-border); color: var(--color-text-tertiary); }
[data-theme="dark"] .capability-card-image {
    background: #141414;
    border-right-color: var(--color-border);
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1024px) {
    :root { --section-spacing: 100px; }

    .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; }

    .container { padding: 0 20px; }
    .nav-container { padding: 0 20px; }
    .nav-links { 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.12; box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
    50% { opacity: 0.25; box-shadow: 0 0 30px 8px rgba(37, 99, 235, 0.15); }
}

.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(37, 99, 235, 0); }
    50% { box-shadow: 0 0 40px 2px rgba(37, 99, 235, 0.06); }
}

.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; }
}

[data-theme="dark"] .processor-core {
    animation: coreGlowDark 3s ease-in-out infinite;
}

@keyframes coreGlowDark {
    0%, 100% { opacity: 0.15; box-shadow: 0 0 0 0 rgba(96, 165, 250, 0); }
    50% { opacity: 0.35; box-shadow: 0 0 40px 10px rgba(96, 165, 250, 0.2); }
}

[data-theme="dark"] .photon-channel::after {
    background: var(--color-accent);
}

/* ============================================
   Registration Modal
   ============================================ */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    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: var(--color-bg);
    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='%236B7280'/%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(37, 99, 235, 0.08);
}

[data-theme="dark"] .register-form select {
    background-color: #111111;
    color: var(--color-text);
    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");
}

.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: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.form-status.error {
    display: block;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

[data-theme="dark"] .form-status.success {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.2);
    color: #4ade80;
}

[data-theme="dark"] .form-status.error {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

[data-theme="dark"] .modal-overlay {
    background: rgba(0, 0, 0, 0.7);
}

@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__flag-container {
    z-index: 10;
}

.iti__selected-dial-code {
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--color-text-secondary);
    padding-left: 4px;
}

.iti__country-list:not(.iti__hide) {
    z-index: 1001;
    max-height: 220px;
    overflow-y: auto;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    border: 1px solid var(--color-border);
    background: var(--color-bg);
}

.iti__country {
    padding: 8px 12px;
    font-size: 14px;
    color: var(--color-text);
}

.iti__country:hover,
.iti__country.iti__highlight {
    background: var(--color-surface);
}

.iti__dial-code {
    color: var(--color-text-secondary);
    font-size: 13px;
}

[data-theme="dark"] .iti__country-list {
    background: #1a1a1a;
    border-color: #2a2a2a;
}

[data-theme="dark"] .iti__country {
    color: #e5e5e5;
}

[data-theme="dark"] .iti__country:hover,
[data-theme="dark"] .iti__country.iti__highlight {
    background: #2a2a2a;
}

[data-theme="dark"] .iti__selected-dial-code {
    color: #a0a0a0;
}

/* ============================================
   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, .nav-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 - 72px);
    min-height: calc(100vh - 72px);
    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;
}
