:root {
    --bg: #050b16;
    --panel: #0b1424;
    --panel-strong: #0f1e33;
    --accent: #2ce7ff;
    --accent-2: #6af0ff;
    --text: #e7f4ff;
    --muted: #9bb3c8;
    --border: rgba(44, 231, 255, 0.28);
    --grid: rgba(255, 255, 255, 0.04);
    --shadow: 0 20px 70px rgba(0, 0, 0, 0.45);
    --font-main: "Space Grotesk", "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
    /* Legacy aliases to keep secondary pages functional */
    --color-primary: var(--accent);
    --color-dark-bg: var(--bg);
    --color-light-bg: var(--panel);
    --color-text: var(--text);
    --color-text-muted: var(--muted);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    letter-spacing: 0.02em;
    background-image:
        radial-gradient(1200px at 10% 20%, rgba(44, 231, 255, 0.08), transparent 65%),
        radial-gradient(1000px at 80% 10%, rgba(106, 240, 255, 0.08), transparent 60%),
        repeating-linear-gradient(0deg, var(--grid), var(--grid) 1px, transparent 1px, transparent 32px),
        repeating-linear-gradient(90deg, var(--grid), var(--grid) 1px, transparent 1px, transparent 32px);
    background-attachment: fixed;
}

a {
    color: var(--accent);
    text-decoration: none;
}

p {
    margin-bottom: 16px;
    color: var(--muted);
}

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

.container {
    width: min(1200px, 92vw);
    margin: 0 auto;
}

header.nav-shell {
    position: sticky;
    top: 0;
    z-index: 900;
    background: rgba(5, 11, 22, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    width: 52px;
    height: 52px;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(44, 231, 255, 0.2), rgba(106, 240, 255, 0.05));
    box-shadow: inset 0 0 10px rgba(44, 231, 255, 0.35);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-overline {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
}

.brand-tagline {
    font-size: 0.9rem;
    color: var(--muted);
}

nav ul.nav-links {
    display: flex;
    list-style: none;
    gap: 18px;
}

.nav-links a {
    color: var(--text);
    font-weight: 600;
    padding: 8px 10px;
    border-radius: 8px;
    transition: color 0.2s ease, background 0.2s ease, border 0.2s ease;
    border: 1px solid transparent;
}

.nav-links a:hover {
    color: var(--accent);
    border-color: var(--border);
    background: rgba(44, 231, 255, 0.05);
}

.pill-link {
    border: 1px solid var(--border);
    padding: 8px 12px;
    border-radius: 999px;
}

.glow-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 22px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #04111f;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 10px 40px rgba(44, 231, 255, 0.45),
        0 0 0 1px rgba(44, 231, 255, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.glow-button:hover {
    transform: translateY(-2px);
    filter: drop-shadow(0 0 12px rgba(44, 231, 255, 0.4));
}

.glow-button.small {
    padding: 10px 14px;
    font-size: 0.9rem;
}

.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 20px;
    border-radius: 12px;
    border: 1px solid var(--border);
    color: var(--text);
    background: rgba(255, 255, 255, 0.02);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    transition: background 0.2s ease, border 0.2s ease;
}

.ghost-button:hover {
    border-color: rgba(44, 231, 255, 0.5);
    background: rgba(44, 231, 255, 0.08);
}

.panel {
    position: relative;
    padding: 96px 0;
    overflow: hidden;
}

.panel::before {
    content: "";
    position: absolute;
    inset: 12px 0;
    background: linear-gradient(90deg, rgba(44, 231, 255, 0.06), transparent 30%, transparent 70%, rgba(106, 240, 255, 0.06));
    opacity: 0.4;
    pointer-events: none;
}

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

.section-title {
    font-size: clamp(2rem, 3vw, 2.8rem);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #f6fbff;
}

.section-subtitle {
    max-width: 720px;
    margin: 12px auto 0;
}

.eyebrow {
    font-size: 0.95rem;
    color: var(--accent);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.lede {
    font-size: 1.15rem;
    color: var(--text);
    margin-bottom: 18px;
}

.hero {
    background: radial-gradient(1200px at 20% 50%, rgba(44, 231, 255, 0.08), transparent 65%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.02), rgba(0, 0, 0, 0.25));
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    align-items: center;
    gap: 42px;
}

.blueprint-lines {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, var(--grid) 1px, transparent 1px),
        linear-gradient(0deg, var(--grid) 1px, transparent 1px);
    background-size: 68px 68px;
    opacity: 0.25;
    pointer-events: none;
    animation: drift 18s linear infinite;
}

@keyframes drift {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-40px, -40px, 0); }
}

.hero-copy h1 {
    font-size: clamp(2.4rem, 4vw, 3.4rem);
    margin-bottom: 14px;
    line-height: 1.1;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 18px 0 24px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.stat-chip {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.02);
    min-width: 180px;
}

.stat-chip .label {
    font-size: 0.8rem;
    color: var(--muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.stat-chip .value {
    font-size: 1.05rem;
    color: var(--text);
}

.hero-visual {
    display: grid;
    gap: 12px;
    align-content: center;
}

.blueprint-frame {
    position: relative;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(160deg, rgba(44, 231, 255, 0.1), rgba(255, 255, 255, 0.01));
    box-shadow: var(--shadow);
}

.blueprint-frame img {
    width: 100%;
    height: auto;
    display: block;
}

.frame-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(60% 60% at 50% 40%, rgba(44, 231, 255, 0.15), transparent 70%);
    pointer-events: none;
}

.frame-grid {
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(0deg, var(--grid), var(--grid) 1px, transparent 1px, transparent 32px),
        repeating-linear-gradient(90deg, var(--grid), var(--grid) 1px, transparent 1px, transparent 32px);
    mix-blend-mode: screen;
    opacity: 0.5;
    pointer-events: none;
}

.logo-chip {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
    width: fit-content;
}

.logo-chip .chip-title {
    color: var(--text);
    font-weight: 600;
    margin-bottom: 4px;
}

.chip-subtitle {
    margin: 0;
    font-size: 0.9rem;
    color: var(--muted);
}

.split {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.01), rgba(255, 255, 255, 0.03));
}

.split-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    align-items: center;
}

.copy h2 {
    margin-bottom: 14px;
}

.checklist {
    list-style: none;
    margin: 12px 0 16px;
    display: grid;
    gap: 10px;
}

.checklist li {
    position: relative;
    padding-left: 22px;
    color: var(--text);
}

.checklist li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    box-shadow: 0 0 12px rgba(44, 231, 255, 0.4);
}

.inline-note {
    border: 1px dashed var(--border);
    border-radius: 12px;
    padding: 12px 14px;
    color: var(--accent);
    background: rgba(44, 231, 255, 0.05);
    width: fit-content;
}

.vision-card {
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 22px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(44, 231, 255, 0.04));
    box-shadow: var(--shadow);
}

.vision-card .card-header {
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 12px;
}

.mini-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.metric-label {
    color: var(--muted);
    font-size: 0.9rem;
}

.metric-value {
    color: var(--text);
    font-weight: 600;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.feature-card {
    padding: 22px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: linear-gradient(135deg, rgba(44, 231, 255, 0.05), rgba(255, 255, 255, 0.02));
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, border 0.2s ease, box-shadow 0.2s ease;
}

.feature-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(200px at 20% 20%, rgba(44, 231, 255, 0.08), transparent 70%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: rgba(44, 231, 255, 0.6);
    box-shadow: var(--shadow);
}

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

.feature-card h3 {
    color: #f6fbff;
    margin-bottom: 10px;
}

.feature-card p {
    margin: 0;
}

.feature-icon {
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 10px;
    display: inline-flex;
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(44, 231, 255, 0.06);
}

.alt {
    background: radial-gradient(800px at 70% 20%, rgba(44, 231, 255, 0.06), transparent 70%);
}

.pillars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin: 18px 0 12px;
}

.pillar {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.02);
}

.pillar h4 {
    margin-bottom: 6px;
    color: var(--text);
}

.engine-visual .blueprint-frame {
    max-width: 360px;
}

.engine-visual .small-caption {
    margin-top: 10px;
    color: var(--muted);
}

.ea-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.ea-card {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px;
    background: linear-gradient(145deg, rgba(44, 231, 255, 0.04), rgba(255, 255, 255, 0.02));
    box-shadow: var(--shadow);
}

.ea-card h3 {
    margin-bottom: 10px;
    color: var(--text);
}

.final {
    background: linear-gradient(135deg, rgba(44, 231, 255, 0.08), rgba(255, 255, 255, 0.02));
}

.final-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
    align-items: center;
}

.cta-accent {
    position: relative;
    border: 1px dashed var(--border);
    border-radius: 16px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.02);
    overflow: hidden;
}

.floating-lines {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(44, 231, 255, 0.12), transparent 60%),
        repeating-linear-gradient(0deg, var(--grid), var(--grid) 1px, transparent 1px, transparent 32px),
        repeating-linear-gradient(90deg, var(--grid), var(--grid) 1px, transparent 1px, transparent 32px);
    opacity: 0.45;
    animation: float 14s linear infinite;
}

@keyframes float {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(24px, 24px, 0); }
}

.cta-mini {
    position: relative;
    color: var(--text);
    margin-bottom: 8px;
}

.cta-mini.strong {
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer-shell {
    position: relative;
    background: linear-gradient(180deg, #050910 0%, #03070f 100%);
    border-top: 1px solid var(--border);
    overflow: hidden;
    padding: 52px 0 32px;
}

.footer-overlay {
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(0deg, var(--grid), var(--grid) 1px, transparent 1px, transparent 28px),
        repeating-linear-gradient(90deg, var(--grid), var(--grid) 1px, transparent 1px, transparent 28px);
    opacity: 0.35;
    pointer-events: none;
}

.footer-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    align-items: start;
    z-index: 1;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-title {
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.footer-links,
.footer-legal {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a,
.footer-legal a {
    color: var(--muted);
    transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-legal a:hover {
    color: var(--accent);
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border: 1px solid var(--border);
    border-radius: 10px;
    display: grid;
    place-items: center;
    color: var(--text);
    transition: border 0.2s ease, transform 0.2s ease;
}

.footer-social a:hover {
    border-color: rgba(44, 231, 255, 0.6);
    transform: translateY(-2px);
}

.footer-cta {
    border: 1px dashed var(--border);
    border-radius: 12px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.02);
}

.footer-cta p {
    margin: 0 0 10px;
}

.footer-bottom {
    position: relative;
    z-index: 1;
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: 0.95rem;
    border-top: 1px solid var(--border);
    padding-top: 14px;
}

@media (max-width: 960px) {
    nav ul.nav-links {
        display: none;
    }

    .nav-bar {
        justify-content: space-between;
    }

    .hero {
        padding-top: 120px;
    }

    .panel {
        padding: 76px 0;
    }
}

@media (max-width: 640px) {
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .glow-button,
    .ghost-button {
        width: 100%;
    }

    .stat-chip {
        min-width: unset;
        width: 100%;
    }

    .brand-tagline {
        display: none;
    }
}
