:root {
    --ink: #021a1a;
    --deep: #063534;
    --teal: #0d4a47;
    --teal-mid: #156b66;
    --surface: #0c2f2d;
    --line: rgba(94, 234, 212, 0.12);
    --mint: #5eead4;
    --mint-dim: rgba(94, 234, 212, 0.55);
    --paper: #e8f7f4;
    --amber: #e8b86a;
    --radius-sm: 6px;
    --radius: 14px;
    --max: 1120px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "IBM Plex Sans", system-ui, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--paper);
    background: var(--ink);
    min-height: 100vh;
    scroll-behavior: smooth;
}

body.booting {
    overflow: hidden;
}

body.booting > :not(.boot):not(script) {
    visibility: hidden;
}

/* ==========================================================================
   Boot intro (CRT terminal overlay)
   ========================================================================== */
.boot {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background:
        radial-gradient(ellipse 80% 60% at 50% 50%, rgba(6, 53, 52, 0.35), transparent 70%),
        #02070a;
    color: var(--mint);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    visibility: visible !important;
    transition: opacity 0.8s ease;
    opacity: 1;
}

.boot.done {
    opacity: 0;
    pointer-events: none;
}

.boot-crt {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    border-radius: inherit;
    z-index: 3;
}

.boot-scanlines {
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(to bottom,
            rgba(0, 0, 0, 0) 0,
            rgba(0, 0, 0, 0) 1px,
            rgba(0, 0, 0, 0.5) 2px,
            rgba(0, 0, 0, 0.5) 3px),
        repeating-linear-gradient(to right,
            rgba(255, 0, 80, 0.045) 0,
            rgba(0, 255, 180, 0.04) 1px,
            rgba(60, 120, 255, 0.045) 2px);
    opacity: 0.75;
    mix-blend-mode: multiply;
    animation: bootScan 4s linear infinite;
}

@keyframes bootScan {
    0% { transform: translateY(0); }
    100% { transform: translateY(6px); }
}

.boot-vignette {
    position: absolute;
    inset: -2px;
    background:
        radial-gradient(ellipse 110% 95% at center,
            transparent 35%,
            rgba(0, 0, 0, 0.35) 70%,
            rgba(0, 0, 0, 0.85) 100%);
    box-shadow:
        0 0 50px rgba(0, 0, 0, 0.6) inset,
        0 0 140px rgba(0, 0, 0, 0.35) inset;
}

/* Rolling scan bar — a bright band sweeping top to bottom */
.boot-crt::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 120px;
    background: linear-gradient(to bottom,
            transparent 0%,
            rgba(94, 234, 212, 0.04) 35%,
            rgba(94, 234, 212, 0.14) 50%,
            rgba(94, 234, 212, 0.04) 65%,
            transparent 100%);
    mix-blend-mode: screen;
    animation: bootRoll 6s linear infinite;
    animation-delay: 1.2s;
}

@keyframes bootRoll {
    0% { transform: translateY(-140px); opacity: 0; }
    8% { opacity: 1; }
    92% { opacity: 1; }
    100% { transform: translateY(100vh); opacity: 0; }
}

/* Animated phosphor static / noise overlay */
.boot-crt::after {
    content: "";
    position: absolute;
    inset: -20%;
    pointer-events: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.37  0 0 0 0 0.92  0 0 0 0 0.83  0 0 0 0.6 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
    opacity: 0.12;
    mix-blend-mode: overlay;
    animation: bootNoise 220ms steps(4) infinite;
}

@keyframes bootNoise {
    0% { transform: translate(0, 0); }
    25% { transform: translate(-6px, 4px); }
    50% { transform: translate(4px, -3px); }
    75% { transform: translate(-3px, -5px); }
    100% { transform: translate(0, 0); }
}

.boot-frame {
    position: relative;
    width: min(920px, 100%);
    height: min(620px, 90vh);
    background: rgba(2, 14, 16, 0.92);
    border: 1px solid rgba(94, 234, 212, 0.3);
    border-radius: 20px;
    box-shadow:
        0 0 120px rgba(94, 234, 212, 0.22),
        0 0 0 2px rgba(0, 0, 0, 0.55) inset,
        0 0 60px rgba(0, 0, 0, 0.55) inset,
        0 0 40px rgba(94, 234, 212, 0.1) inset;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform-origin: center;
    animation:
        bootPowerOn 900ms cubic-bezier(0.22, 1, 0.36, 1) 1 both,
        bootFlicker 7s steps(2, end) 900ms infinite;
}

@keyframes bootPowerOn {
    0% {
        transform: scaleY(0.005);
        filter: brightness(6) blur(2px);
        opacity: 0;
    }
    12% {
        transform: scaleY(0.01);
        opacity: 1;
    }
    45% {
        transform: scaleY(1);
        filter: brightness(2.5) blur(1px);
    }
    70% {
        filter: brightness(1.25) blur(0);
    }
    100% {
        transform: scaleY(1);
        filter: brightness(1) blur(0);
        opacity: 1;
    }
}

@keyframes bootFlicker {
    0%, 96%, 100% { opacity: 1; filter: brightness(1); }
    96.5% { opacity: 0.92; }
    97% { opacity: 1; }
    97.5% { opacity: 0.86; filter: brightness(1.15); }
    98% { opacity: 1; }
    99.2% { opacity: 0.95; }
    99.5% { opacity: 1; }
}

.boot-titlebar {
    padding: 0.55rem 1rem;
    border-bottom: 1px solid rgba(94, 234, 212, 0.18);
    display: flex;
    align-items: center;
    gap: 0.45rem;
    background: linear-gradient(180deg, rgba(13, 74, 71, 0.5), rgba(6, 53, 52, 0.3));
    font-size: 0.78rem;
    color: rgba(232, 247, 244, 0.62);
    flex-shrink: 0;
}

.boot-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    box-shadow: 0 0 6px currentColor;
}

.boot-dot.red { background: #e87070; color: #e87070; }
.boot-dot.amber { background: #e8b86a; color: #e8b86a; }
.boot-dot.mint { background: #5eead4; color: #5eead4; }

.boot-path {
    margin-left: 0.5rem;
    letter-spacing: 0.04em;
}

.boot-skip {
    margin-left: auto;
    background: transparent;
    border: 1px solid rgba(94, 234, 212, 0.3);
    color: rgba(94, 234, 212, 0.85);
    font-family: inherit;
    padding: 0.28rem 0.6rem;
    font-size: 0.68rem;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    letter-spacing: 0.12em;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.boot-skip:hover,
.boot-skip:focus-visible {
    background: rgba(94, 234, 212, 0.12);
    color: var(--mint);
    border-color: rgba(94, 234, 212, 0.55);
    outline: none;
}

.boot-body {
    padding: 1.2rem 1.4rem 1.4rem;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    font-size: 0.85rem;
    line-height: 1.55;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.boot-log {
    margin: 0;
    padding: 0;
    align-self: stretch;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    scrollbar-width: none;
    white-space: pre-wrap;
    word-break: break-word;
    color: var(--mint);
    text-shadow:
        -0.6px 0 0 rgba(255, 70, 110, 0.45),
        0.6px 0 0 rgba(70, 180, 255, 0.45),
        0 0 6px rgba(94, 234, 212, 0.55);
    font-family: inherit;
    font-size: inherit;
    line-height: 1.55;
}

.boot-log::-webkit-scrollbar {
    display: none;
}

.boot-log .ok { color: var(--amber); text-shadow: 0 0 8px rgba(232, 184, 106, 0.5); }
.boot-log .dim { color: rgba(94, 234, 212, 0.55); text-shadow: none; }
.boot-log .acc { color: var(--amber); text-shadow: 0 0 10px rgba(232, 184, 106, 0.5); }
.boot-log .cmd { color: var(--paper); text-shadow: 0 0 8px rgba(232, 247, 244, 0.4); }

.boot-log::after {
    content: "_";
    display: inline-block;
    margin-left: 2px;
    color: var(--mint);
    animation: bootBlink 1s steps(2) infinite;
}

@keyframes bootBlink {
    50% { opacity: 0; }
}

.boot-art {
    flex: 0 0 auto;
    margin: 0.8rem 0 0;
    padding: 0;
    white-space: pre;
    color: var(--mint);
    font-family: inherit;
    font-size: clamp(0.7rem, 1.1vw, 0.95rem);
    line-height: 1;
    letter-spacing: 0;
    text-align: center;
    opacity: 0;
    text-shadow:
        -0.9px 0 0 rgba(255, 70, 110, 0.55),
        0.9px 0 0 rgba(70, 180, 255, 0.55),
        0 0 10px rgba(94, 234, 212, 0.9),
        0 0 26px rgba(94, 234, 212, 0.5),
        0 0 50px rgba(94, 234, 212, 0.28);
    transition: opacity 0.3s ease;
}

.boot-art.show {
    opacity: 1;
    animation: bootArtIn 900ms var(--ease);
}

@keyframes bootArtIn {
    0% {
        opacity: 0;
        transform: translateY(4px) scale(0.96);
        filter: blur(2px);
    }
    100% {
        opacity: 1;
        transform: none;
        filter: blur(0);
    }
}

.boot-welcome {
    flex: 0 0 auto;
    margin-top: 0.9rem;
    padding-bottom: 0.2rem;
    text-align: center;
    font-family: "Syne", ui-monospace, sans-serif;
    font-size: clamp(0.95rem, 1.8vw, 1.3rem);
    font-weight: 800;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--mint);
    text-shadow:
        -1.1px 0 0 rgba(255, 70, 110, 0.45),
        1.1px 0 0 rgba(70, 180, 255, 0.45),
        0 0 14px rgba(94, 234, 212, 0.55);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.boot-welcome.show {
    opacity: 1;
    animation: bootWelcomeGlow 2.6s ease-in-out infinite;
}

@keyframes bootWelcomeGlow {
    0%, 100% {
        text-shadow: 0 0 14px rgba(94, 234, 212, 0.5);
    }
    50% {
        text-shadow:
            0 0 22px rgba(94, 234, 212, 0.9),
            0 0 40px rgba(94, 234, 212, 0.5),
            0 0 60px rgba(94, 234, 212, 0.25);
    }
}

@media (prefers-reduced-motion: reduce) {
    .boot-frame,
    .boot-scanlines,
    .boot-welcome,
    .boot-log::after,
    .boot-crt::before,
    .boot-crt::after {
        animation: none !important;
    }

    .boot-frame {
        transform: none !important;
        filter: none !important;
        opacity: 1 !important;
    }

    .boot-art.show {
        animation: none;
    }
}

/* ==========================================================================
   Site-wide CRT overlay (subtle scanlines, noise, vignette, roll bar)
   ========================================================================== */
.crt {
    position: fixed;
    inset: 0;
    z-index: 9000;
    pointer-events: none;
    overflow: hidden;
}

.crt-scanlines {
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(to bottom,
            rgba(0, 0, 0, 0) 0,
            rgba(0, 0, 0, 0) 1px,
            rgba(0, 0, 0, 0.32) 2px,
            rgba(0, 0, 0, 0.32) 3px),
        repeating-linear-gradient(to right,
            rgba(255, 40, 90, 0.022) 0,
            rgba(40, 255, 180, 0.02) 1px,
            rgba(70, 130, 255, 0.022) 2px);
    opacity: 0.55;
    mix-blend-mode: multiply;
    animation: crtScan 5s linear infinite;
}

@keyframes crtScan {
    0% { transform: translateY(0); }
    100% { transform: translateY(6px); }
}

.crt-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 115% 100% at center,
            transparent 55%,
            rgba(0, 0, 0, 0.22) 85%,
            rgba(0, 0, 0, 0.55) 100%);
}

/* Slow, very subtle rolling scan bar across the entire viewport */
.crt::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 220px;
    background: linear-gradient(to bottom,
            transparent 0%,
            rgba(94, 234, 212, 0.022) 40%,
            rgba(94, 234, 212, 0.06) 50%,
            rgba(94, 234, 212, 0.022) 60%,
            transparent 100%);
    mix-blend-mode: screen;
    animation: crtRoll 14s linear infinite;
}

@keyframes crtRoll {
    0% { transform: translateY(-240px); }
    100% { transform: translateY(100vh); }
}

/* Animated phosphor noise — very subtle */
.crt::after {
    content: "";
    position: absolute;
    inset: -15%;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.37  0 0 0 0 0.92  0 0 0 0 0.83  0 0 0 0.5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
    opacity: 0.06;
    mix-blend-mode: overlay;
    animation: crtNoise 260ms steps(4) infinite;
}

@keyframes crtNoise {
    0% { transform: translate(0, 0); }
    25% { transform: translate(-6px, 4px); }
    50% { transform: translate(4px, -3px); }
    75% { transform: translate(-3px, -5px); }
    100% { transform: translate(0, 0); }
}

/* Occasional whole-screen flicker 
body:not(.booting) {
    animation: crtFlicker 11s steps(2, end) infinite;
}*/

@keyframes crtFlicker {
    0%, 97%, 100% { filter: none; }
    97.5% { filter: brightness(1.08); }
    98% { filter: none; }
    98.4% { filter: brightness(0.94); }
    99% { filter: none; }
}

@media (prefers-reduced-motion: reduce) {
    .crt-scanlines,
    .crt::before,
    .crt::after,
    body:not(.booting) {
        animation: none !important;
    }
}

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

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--mint);
    outline-offset: 3px;
}

.skip {
    position: absolute;
    left: -9999px;
    top: 0.75rem;
    padding: 0.5rem 1rem;
    background: var(--mint);
    color: var(--ink);
    font-weight: 600;
    z-index: 100;
}

.skip:focus {
    left: 0.75rem;
}

/* Layered depth: noise + grid + radial glow */
.bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(21, 107, 102, 0.35), transparent 55%),
        radial-gradient(ellipse 60% 40% at 100% 40%, rgba(94, 234, 212, 0.06), transparent 50%),
        linear-gradient(180deg, var(--ink) 0%, var(--deep) 45%, var(--ink) 100%);
}

.bg::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.35;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
    pointer-events: none;
}

.bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 20%, transparent 70%);
    pointer-events: none;
}

header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(94, 234, 212, 0.08);
    background: color-mix(in srgb, var(--ink) 82%, transparent);
    backdrop-filter: blur(14px);
}

.nav-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.mark {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-family: "Syne", sans-serif;
    font-weight: 800;
    letter-spacing: -0.02em;
    font-size: 1.05rem;
}

.mark-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: conic-gradient(from 210deg, var(--teal-mid), var(--mint), var(--teal), var(--teal-mid));
    box-shadow: 0 0 24px rgba(94, 234, 212, 0.25);
    position: relative;
    flex-shrink: 0;
}

.mark-icon::after {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: 8px;
    background: var(--ink);
    border: 1px solid rgba(94, 234, 212, 0.2);
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.75rem;
    align-items: center;
}

nav a:not(.btn) {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(232, 247, 244, 0.78);
    transition: color 0.2s var(--ease);
}

nav a:not(.btn):hover {
    color: var(--mint);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.65rem 1.15rem;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}

.btn-primary {
    background: linear-gradient(135deg, var(--mint) 0%, #3dc4b0 100%);
    color: var(--ink);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset, 0 12px 40px rgba(94, 234, 212, 0.22);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12) inset, 0 16px 48px rgba(94, 234, 212, 0.3);
}

.btn-ghost {
    background: rgba(94, 234, 212, 0.06);
    border-color: rgba(94, 234, 212, 0.22);
    color: var(--paper);
}

.btn-ghost:hover {
    background: rgba(94, 234, 212, 0.1);
    border-color: rgba(94, 234, 212, 0.35);
}

.menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid rgba(94, 234, 212, 0.25);
    color: var(--paper);
    padding: 0.5rem 0.65rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
}

main {
    overflow-x: clip;
}

.wrap {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Hero */
.hero {
    padding: clamp(3rem, 8vw, 6rem) 0 clamp(4rem, 10vw, 7rem);
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: center;
}

@media (max-width: 900px) {
    .hero {
        padding: 20px;
    }

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--mint-dim);
    margin-bottom: 1.25rem;
}

.eyebrow::before {
    content: "";
    width: 28px;
    height: 1px;
    background: linear-gradient(90deg, var(--mint), transparent);
}

h1 {
    font-family: "Syne", sans-serif;
    font-weight: 700;
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin: 0 0 1.25rem;
    text-shadow:
        -0.6px 0 0 rgba(255, 70, 110, 0.35),
        0.6px 0 0 rgba(70, 180, 255, 0.35);
}

h1 span.accent {
    background: linear-gradient(120deg, var(--paper) 0%, var(--mint) 45%, var(--amber) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.lede {
    font-size: 1.125rem;
    max-width: 34ch;
    color: rgba(232, 247, 244, 0.72);
    margin: 0 0 2rem;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    border-top: 1px solid rgba(94, 234, 212, 0.12);
    padding-top: 1.5rem;
}

.stat strong {
    display: block;
    font-family: "Syne", sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--mint);
    letter-spacing: -0.02em;
}

.stat span {
    font-size: 0.8rem;
    color: rgba(232, 247, 244, 0.55);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Signal panel — unique visual */
.signal {
    position: relative;
    border-radius: var(--radius);
    background: linear-gradient(145deg, rgba(13, 74, 71, 0.6), rgba(6, 53, 52, 0.35));
    border: 1px solid rgba(94, 234, 212, 0.14);
    padding: 0;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.signal::before {
    content: "";
    position: absolute;
    inset: -40% -20%;
    background: repeating-linear-gradient(-28deg,
            transparent,
            transparent 12px,
            rgba(94, 234, 212, 0.04) 12px,
            rgba(94, 234, 212, 0.04) 13px);
    pointer-events: none;
}

.signal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 1;
}

.signal-title {
    font-family: "Syne", sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(232, 247, 244, 0.85);
}

.pulse {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--mint);
    box-shadow: 0 0 0 0 rgba(94, 234, 212, 0.5);
    animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(94, 234, 212, 0.55);
    }

    70% {
        box-shadow: 0 0 0 14px rgba(94, 234, 212, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(94, 234, 212, 0);
    }
}

/* Pipeline / topology diagram (hero panel) */
.pipeline {
    position: relative;
    z-index: 1;
    border-radius: calc(var(--radius) - 6px);
    background:
        radial-gradient(60% 110% at 30% 0%, rgba(94, 234, 212, 0.08), transparent 62%),
        radial-gradient(55% 110% at 85% 35%, rgba(232, 184, 106, 0.05), transparent 62%),
        linear-gradient(180deg, rgba(2, 26, 26, 0.25), rgba(2, 26, 26, 0.6));
    border: 1px solid rgba(94, 234, 212, 0.14);
    padding: 0.4rem;
    overflow: hidden;
}

.pipeline::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(94, 234, 212, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(94, 234, 212, 0.04) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.35;
    mask-image: radial-gradient(ellipse 95% 85% at 50% 45%, black 22%, transparent 80%);
    pointer-events: none;
}

.pipeline-svg {
    display: block;
    width: 100%;
    height: auto;
    color: rgba(232, 247, 244, 0.9);
    overflow: visible;
    position: relative;
    z-index: 1;
}

/* Cluster boundaries */
.pl-clusters rect {
    fill: rgba(94, 234, 212, 0.025);
    stroke: rgba(94, 234, 212, 0.22);
    stroke-width: 1;
    stroke-dasharray: 3 4;
}

.pl-clusters text {
    font-family: "Syne", sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    fill: rgba(94, 234, 212, 0.6);
}

.pl-clusters .cluster-edge rect {
    stroke: rgba(232, 184, 106, 0.35);
    fill: rgba(232, 184, 106, 0.02);
}

.pl-clusters .cluster-edge text {
    fill: rgba(232, 184, 106, 0.7);
}

/* Base links */
.pl-base {
    fill: none;
    stroke: rgba(94, 234, 212, 0.22);
    stroke-width: 1.2;
    stroke-linecap: round;
}

/* Flowing dashed overlay */
.pl-flow {
    fill: none;
    stroke: url(#pl-line);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-dasharray: 3 7;
}

.pl-flow use {
    animation: plDash 1.8s linear infinite;
}

@keyframes plDash {
    to {
        stroke-dashoffset: -20;
    }
}

/* Packets */
.pl-packets circle {
    fill: var(--mint);
}

.pl-packets circle.packet-accent {
    fill: var(--amber);
}

/* Nodes */
.pl-box {
    fill: rgba(12, 47, 45, 0.85);
    stroke: rgba(94, 234, 212, 0.3);
    stroke-width: 1;
}

.pl-node .pl-ico {
    color: var(--mint);
}

.pl-node.hub .pl-box {
    fill: rgba(10, 40, 38, 0.95);
    stroke: rgba(94, 234, 212, 0.55);
    filter: drop-shadow(0 0 5px rgba(94, 234, 212, 0.2));
}

.pl-node.accent .pl-box {
    fill: rgba(30, 26, 22, 0.9);
    stroke: rgba(232, 184, 106, 0.55);
    filter: drop-shadow(0 0 6px rgba(232, 184, 106, 0.2));
}

.pl-node.accent .pl-ico {
    color: var(--amber);
}

.pl-label {
    font-family: "Syne", sans-serif;
    font-size: 12px;
    font-weight: 600;
    fill: rgba(232, 247, 244, 0.92);
    letter-spacing: 0.02em;
}

.pl-label.hub-label {
    font-size: 13.5px;
    font-weight: 700;
    fill: rgba(232, 247, 244, 1);
}

.pl-sub {
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 9px;
    font-weight: 500;
    fill: rgba(232, 247, 244, 0.55);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.signal-footer {
    position: relative;
    z-index: 1;
    margin-top: 1.25rem;
    font-size: 0.8rem;
    color: rgba(232, 247, 244, 0.5);
    font-variant-numeric: tabular-nums;
}

/* Sections */
section {
    padding: clamp(3.5rem, 8vw, 5.5rem) 0;
}

section.alt {
    background: linear-gradient(180deg, rgba(13, 74, 71, 0.18), transparent);
    border-top: 1px solid rgba(94, 234, 212, 0.08);
    border-bottom: 1px solid rgba(94, 234, 212, 0.08);
}

.section-head {
    max-width: 630px;
    margin-bottom: 2.5rem;
}

h2 {
    font-family: "Syne", sans-serif;
    font-weight: 700;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    letter-spacing: -0.02em;
    margin: 0 0 0.75rem;
    text-shadow:
        -0.5px 0 0 rgba(255, 70, 110, 0.3),
        0.5px 0 0 rgba(70, 180, 255, 0.3);
}

.section-head p {
    margin: 0;
    color: rgba(232, 247, 244, 0.65);
}

.tech-strip {
    margin-top: 1.1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.tech-item {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(232, 247, 244, 0.08);
    background: rgba(2, 16, 18, 0.22);
    box-shadow: 0 0 0 1px rgba(94, 234, 212, 0.06) inset;
    transition: transform 0.18s var(--ease), border-color 0.18s var(--ease), background 0.18s var(--ease);
}

.tech-item img {
    width: 26px;
    height: 26px;
    display: block;
    opacity: 0.95;
    transition: transform 0.18s var(--ease), opacity 0.18s var(--ease);
}

.tech-item::after {
    content: attr(data-label);
    position: absolute;
    left: 50%;
    top: calc(100% + 10px);
    transform: translateX(-50%) translateY(-4px);
    padding: 0.35rem 0.55rem;
    border-radius: 8px;
    background: rgba(2, 14, 16, 0.92);
    border: 1px solid rgba(94, 234, 212, 0.22);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.35));
    transition: opacity 0.18s ease, transform 0.18s var(--ease);
}

.tech-item:hover,
.tech-item:focus-within {
    transform: scale(1.18);
    border-color: rgba(94, 234, 212, 0.26);
    background: rgba(2, 16, 18, 0.38);
    z-index: 2;
}

.tech-item:hover img,
.tech-item:focus-within img {
    opacity: 1;
    transform: scale(1.06);
}

.tech-item:hover::after,
.tech-item:focus-within::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .tech-item,
    .tech-item img,
    .tech-item::after {
        transition: none;
    }
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

@media (max-width: 800px) {
    .cards {
        grid-template-columns: 1fr;
    }
}

.card {
    position: relative;
    padding: 1.5rem 1.35rem;
    border-radius: var(--radius);
    background: rgba(12, 47, 45, 0.55);
    border: 1px solid rgba(94, 234, 212, 0.1);
    transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.card:hover {
    border-color: rgba(94, 234, 212, 0.28);
    transform: translateY(-3px);
}

.card-num {
    font-family: "Syne", sans-serif;
    font-weight: 800;
    font-size: 2.5rem;
    line-height: 1;
    color: rgba(94, 234, 212, 0.12);
    position: absolute;
    right: 1rem;
    top: 1rem;
}

.card h3 {
    font-family: "Syne", sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    letter-spacing: -0.01em;
}

.card p {
    margin: 0;
    font-size: 0.95rem;
    color: rgba(232, 247, 244, 0.62);
}

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}

@media (max-width: 800px) {
    .split {
        grid-template-columns: 1fr;
    }
}

.timeline {
    border-left: 1px solid rgba(94, 234, 212, 0.2);
    padding-left: 1.5rem;
    margin: 0;
}

.timeline li {
    list-style: none;
    margin-bottom: 1.75rem;
    position: relative;
}

.timeline li::before {
    content: "";
    position: absolute;
    left: calc(-1.5rem - 5px);
    top: 0.35rem;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--deep);
    border: 2px solid var(--mint);
}

.timeline strong {
    display: block;
    font-family: "Syne", sans-serif;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.timeline p {
    margin: 0;
    font-size: 0.95rem;
    color: rgba(232, 247, 244, 0.6);
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.tag {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: rgba(94, 234, 212, 0.08);
    border: 1px solid rgba(94, 234, 212, 0.15);
    color: rgba(232, 247, 244, 0.8);
}

.cta-band {
    margin: 2rem 0 0;
    padding: clamp(2rem, 5vw, 3rem);
    border-radius: calc(var(--radius) + 4px);
    background:
        linear-gradient(135deg, rgba(94, 234, 212, 0.12), transparent 50%),
        linear-gradient(145deg, var(--surface), var(--deep));
    border: 1px solid rgba(94, 234, 212, 0.2);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.cta-band h2 {
    margin: 0 0 0.35rem;
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
}

.cta-band p {
    margin: 0;
    color: rgba(232, 247, 244, 0.65);
    max-width: 42ch;
}

footer {
    padding: 2.5rem 0 2rem;
    border-top: 1px solid rgba(94, 234, 212, 0.08);
    color: rgba(232, 247, 244, 0.45);
    font-size: 0.85rem;
}

.foot-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1.5rem;
    align-items: center;
}

footer nav {
    display: flex;
    gap: 1.25rem;
}

footer a:hover {
    color: var(--mint);
}

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

    .pulse,
    .pl-flow use {
        animation: none;
    }

    .pl-packets {
        display: none;
    }

    .btn-primary:hover {
        transform: none;
    }
}

@media (max-width: 720px) {
    nav ul {
        display: none;
        position: absolute;
        right: 1rem;
        top: 100%;
        margin-top: 0.5rem;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--surface);
        border: 1px solid rgba(94, 234, 212, 0.15);
        border-radius: var(--radius-sm);
        padding: 0.5rem;
        min-width: 200px;
        box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
    }

    nav ul.open {
        display: flex;
    }

    nav ul li {
        border-bottom: 1px solid rgba(94, 234, 212, 0.08);
    }

    nav ul li:last-child {
        border-bottom: 0;
    }

    nav ul a {
        display: block;
        padding: 0.65rem 0.75rem;
    }

    .menu-toggle {
        display: inline-flex;
    }

    header {
        position: relative;
    }
}

/* Reveal on scroll */
.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

body.booting .reveal.visible {
    opacity: 0;
    transform: translateY(16px);
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}