/* ==========================================================================
   selkies.io

   Deep-space surfaces, the Selkies brand ramp (pink -> magenta -> violet)
   for emphasis, and a cool "signal" teal for anything that represents data
   in flight. Motion is layered: ambient (aurora, flow lines), scroll-driven
   (reveal, counters), and pointer-driven (tilt, spotlight, magnetic buttons).
   Everything meaningful degrades under prefers-reduced-motion.
   ========================================================================== */

:root {
    --font-display: "Sora", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

    --bg-0: #07090f;
    --bg-1: #0c1018;
    --bg-2: #121826;
    --bg-3: #1a2234;
    --glass: rgba(255, 255, 255, 0.035);
    --glass-2: rgba(255, 255, 255, 0.065);

    --text: #eef2f8;
    --text-2: #b6c0d2;
    --text-3: #7c889c;

    --line: rgba(148, 163, 184, 0.14);
    --line-2: rgba(148, 163, 184, 0.3);

    --pink: #D5499A;
    --magenta: #C34AA2;
    --violet: #7967C5;
    --violet-2: #9d8cf0;
    --teal: #4fd1c5;
    --amber: #f6c453;
    --red: #ff6b7a;
    --green: #5fe3a1;

    --brand: linear-gradient(100deg, var(--pink) 0%, var(--magenta) 45%, var(--violet) 100%);
    --brand-v: linear-gradient(180deg, var(--violet) 0%, var(--magenta) 55%, var(--pink) 100%);

    --shadow-md: 0 4px 12px rgba(0,0,0,.35), 0 12px 32px rgba(0,0,0,.3);
    --shadow-lg: 0 24px 80px rgba(0,0,0,.55);
    --glow-brand: 0 10px 40px -8px rgba(213, 73, 154, .45);

    --r-sm: 8px; --r: 14px; --r-lg: 20px; --r-xl: 28px; --r-pill: 999px;

    --ease-out: cubic-bezier(.22, 1, .36, 1);
    --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
    --dur-fast: 150ms; --dur: 260ms; --dur-slow: 600ms;

    --container: 1200px;
    --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg-0);
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
}
img, video, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -.02em; margin: 0; line-height: 1.1; }
p { margin: 0; }
code { font-family: var(--font-mono); font-size: .9em; background: var(--glass-2); padding: .1em .4em; border-radius: 6px; }
::selection { background: rgba(213, 73, 154, .35); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.grad {
    background: var(--brand);
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
    background-size: 200% 100%;
    animation: gradShift 8s ease-in-out infinite alternate;
}
@keyframes gradShift { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }

/* ---------------------------------------------------------------- global fx */
.scroll-progress {
    position: fixed; top: 0; left: 0; height: 2px; width: 100%;
    background: var(--brand);
    transform-origin: 0 50%;
    transform: scaleX(0);
    z-index: 1001;
}

/* ------------------------------------------------------------------- header */
.site-header {
    position: fixed; inset: 0 0 auto 0; height: var(--header-h);
    z-index: 1000;
    display: flex; align-items: center;
    transition: background .3s, border-color .3s, backdrop-filter .3s, height .3s;
    border-bottom: 1px solid transparent;
}
.site-header.scrolled {
    background: rgba(7, 9, 15, .72);
    backdrop-filter: blur(16px) saturate(1.4);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    border-bottom-color: var(--line);
    height: 62px;
}
.nav-flex { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.logo img { transition: transform var(--dur-slow) var(--ease-spring); }
.logo:hover img { transform: rotate(-12deg) scale(1.08); }
.logo-word { background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { display: flex; gap: 6px; }
.nav-links a {
    position: relative; padding: 8px 12px; border-radius: var(--r-sm);
    color: var(--text-2); font-weight: 500; font-size: .92rem;
    transition: color var(--dur), background var(--dur);
}
.nav-links a:hover { color: var(--text); background: var(--glass); }
.nav-links a::after {
    content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px;
    background: var(--brand); border-radius: 2px;
    transform: scaleX(0); transform-origin: 0 50%;
    transition: transform var(--dur) var(--ease-out);
}
.nav-links a:hover::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: var(--r-sm);
    color: var(--text-2); transition: color var(--dur), background var(--dur), transform var(--dur) var(--ease-spring);
}
.icon-btn:hover { color: var(--text); background: var(--glass); transform: translateY(-2px); }
.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; padding: 8px; cursor: pointer; flex-direction: column; justify-content: center; gap: 5px; }
.nav-toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ------------------------------------------------------------------ buttons */
.btn {
    position: relative; display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 22px; border-radius: var(--r-pill);
    font-family: var(--font-display); font-weight: 600; font-size: .95rem;
    border: 1px solid transparent; cursor: pointer; white-space: nowrap;
    transition: transform var(--dur) var(--ease-spring), box-shadow var(--dur), background var(--dur), border-color var(--dur), color var(--dur);
    overflow: hidden; isolation: isolate;
}
.btn-sm { padding: 9px 16px; font-size: .85rem; }
.btn-lg { padding: 15px 28px; font-size: 1.02rem; }
.btn-primary { color: #fff; background: var(--brand); background-size: 200% 100%; box-shadow: var(--glow-brand); }
.btn-primary::after {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,.35) 50%, transparent 80%);
    transform: translateX(-120%);
    transition: transform .8s var(--ease-out);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 48px -10px rgba(213,73,154,.6); }
.btn-primary:hover::after { transform: translateX(120%); }
.btn-primary svg { transition: transform var(--dur) var(--ease-spring); }
.btn-primary:hover svg { transform: translateX(4px); }
.btn-secondary { color: var(--text); background: var(--glass-2); border-color: var(--line-2); backdrop-filter: blur(8px); }
.btn-secondary:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.4); transform: translateY(-2px); }
.btn-ghost { color: var(--text-2); border-color: transparent; }
.btn-ghost:hover { color: var(--text); background: var(--glass); }
.text-link { color: var(--violet-2); font-weight: 600; display: inline-block; margin-top: 18px; transition: color var(--dur), transform var(--dur); }
.text-link:hover { color: #fff; transform: translateX(4px); }

/* --------------------------------------------------------------------- hero */
.hero {
    position: relative; min-height: 100vh; min-height: 100svh;
    display: flex; align-items: center;
    padding: calc(var(--header-h) + 48px) 0 80px;
    overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.aurora {
    position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55;
    mix-blend-mode: screen; will-change: transform;
}
.aurora-1 { width: 60vw; height: 60vw; left: -15vw; top: -20vw; background: radial-gradient(circle, rgba(213,73,154,.5), transparent 65%); animation: drift1 22s ease-in-out infinite alternate; }
.aurora-2 { width: 55vw; height: 55vw; right: -18vw; top: -5vw; background: radial-gradient(circle, rgba(121,103,197,.55), transparent 65%); animation: drift2 26s ease-in-out infinite alternate; }
.aurora-3 { width: 45vw; height: 45vw; left: 30vw; bottom: -25vw; background: radial-gradient(circle, rgba(79,209,197,.28), transparent 65%); animation: drift3 30s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(12vw, 8vw) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-10vw, 12vw) scale(.9); } }
@keyframes drift3 { to { transform: translate(-14vw, -8vw) scale(1.2); } }
.hero-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
    animation: gridPan 40s linear infinite;
}
@keyframes gridPan { to { background-position: 48px 48px; } }
.hero-noise {
    position: absolute; inset: 0; opacity: .5; mix-blend-mode: overlay; pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-inner {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 7px 14px 7px 10px; border-radius: var(--r-pill);
    background: var(--glass); border: 1px solid var(--line);
    font-size: .82rem; color: var(--text-2); font-weight: 500;
    transition: border-color var(--dur), color var(--dur), transform var(--dur);
    margin-bottom: 26px;
}
.hero-badge:hover { border-color: rgba(213,73,154,.6); color: var(--text); transform: translateY(-1px); }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(95,227,161,.6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(95,227,161,.6); } 70% { box-shadow: 0 0 0 10px rgba(95,227,161,0); } 100% { box-shadow: 0 0 0 0 rgba(95,227,161,0); } }
.hero-title {
    font-size: clamp(2.4rem, 5.2vw, 4.4rem);
    font-weight: 800; line-height: 1.04; letter-spacing: -.035em;
    margin-bottom: 24px;
}
.hero-title em { font-style: normal; background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-title .w { display: inline-block; opacity: 0; transform: translateY(24px) rotate(2deg); animation: wordIn .8s var(--ease-out) forwards; animation-delay: calc(var(--i) * 45ms + 80ms); }
@keyframes wordIn { to { opacity: 1; transform: none; } }
.hero-text { font-size: 1.15rem; color: var(--text-2); max-width: 560px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.hero-badges { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.hero-badges li { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .04em; color: var(--text-3); padding: 4px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--glass); }
.hero-badges .sep { width: 1px; height: 18px; padding: 0; border: 0; background: var(--line-2); }

.hero-visual { position: relative; perspective: 1400px; }
.hero-visual-glow {
    position: absolute; inset: 10% -5% -10%; z-index: -1; border-radius: 50%; filter: blur(70px);
    background: radial-gradient(ellipse, rgba(121,103,197,.45), rgba(213,73,154,.25) 50%, transparent 70%);
    animation: breathe 6s ease-in-out infinite;
}
@keyframes breathe { 50% { transform: scale(1.08); opacity: .8; } }
.browser-mock {
    border-radius: var(--r-lg); overflow: hidden;
    background: var(--bg-1); border: 1px solid var(--line-2);
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,.03) inset;
    transform-style: preserve-3d;
    will-change: transform;
}
.browser-chrome { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: rgba(255,255,255,.04); border-bottom: 1px solid var(--line); }
.browser-chrome .dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.r { background: #ff5f57; } .dot.y { background: #febc2e; } .dot.g { background: #28c840; }
.browser-url { margin-left: 8px; flex: 1; display: flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 8px; background: rgba(0,0,0,.35); font-family: var(--font-mono); font-size: .7rem; color: var(--text-3); }
.browser-url svg { color: var(--green); }
.browser-body { position: relative; aspect-ratio: 16 / 10; background: #0a0e17; }
#streamSim { width: 100%; height: 100%; display: block; }
.sim-hud {
    position: absolute; right: 12px; top: 12px; min-width: 168px;
    padding: 10px 12px; border-radius: 10px;
    background: rgba(7,9,15,.7); border: 1px solid var(--line); backdrop-filter: blur(8px);
    font-family: var(--font-mono); font-size: .68rem; color: var(--text-2);
}
.hud-row { display: flex; justify-content: space-between; gap: 12px; padding: 2px 0; }
.hud-k { color: var(--text-3); }
.hud-v { color: var(--text); }
.hud-bar { margin-top: 6px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.08); overflow: hidden; }
.hud-bar span { display: block; height: 100%; width: 0; background: var(--brand); transition: width .25s var(--ease-out); }
.sim-legend { position: absolute; left: 12px; bottom: 10px; display: flex; gap: 14px; font-family: var(--font-mono); font-size: .64rem; color: var(--text-3); }
.sim-legend span { display: inline-flex; align-items: center; gap: 6px; }
.lg { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.lg-motion { background: var(--pink); }
.lg-paint { background: var(--violet-2); }
.lg-idle { background: rgba(255,255,255,.15); }

.scroll-cue {
    position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
    width: 26px; height: 42px; border: 2px solid var(--line-2); border-radius: 14px;
    display: flex; justify-content: center; z-index: 1;
}
.scroll-cue span { width: 4px; height: 8px; margin-top: 6px; border-radius: 4px; background: var(--text-2); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(16px); opacity: 0; } 100% { opacity: 0; } }

/* -------------------------------------------------------------------- proof */
.proof { position: relative; padding: 26px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.02), transparent); }
.stat-strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.stat-strip li { display: flex; flex-direction: column; gap: 2px; padding: 8px 18px; border-left: 1px solid var(--line); }
.stat-strip li:first-child { border-left: 0; }
.stat-strip strong { font-family: var(--font-display); font-size: 2rem; font-weight: 800; letter-spacing: -.03em; background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.stat-strip span:last-child { font-size: .85rem; color: var(--text-3); }

/* ------------------------------------------------------------------ section */
.section { position: relative; padding: 120px 0; }
.section-header { max-width: 760px; margin: 0 auto 64px; text-align: center; }
.section-header h2 { font-size: clamp(2rem, 4vw, 3.1rem); font-weight: 800; letter-spacing: -.03em; margin: 14px 0 18px; }
.section-header p { font-size: 1.1rem; color: var(--text-2); }
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase;
    color: var(--violet-2);
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--brand); }
.section-sub { text-align: center; color: var(--text-3); margin-bottom: 26px; font-family: var(--font-mono); font-size: .8rem; letter-spacing: .06em; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ------------------------------------------------------------------- hybrid */
.hybrid { background: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(121,103,197,.12), transparent 70%); }
.hybrid-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 56px; }
.hybrid-card {
    padding: 22px; border-radius: var(--r-lg);
    background: var(--glass); border: 1px solid var(--line);
    transition: transform var(--dur-slow) var(--ease-out), border-color var(--dur), background var(--dur);
}
.hybrid-card:hover { transform: translateY(-6px); border-color: rgba(213,73,154,.45); background: var(--glass-2); }
.hybrid-card h3 { font-size: 1.2rem; margin: 18px 0 8px; }
.hybrid-card p { color: var(--text-2); font-size: .95rem; }
.hybrid-vis { position: relative; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; background: #0a0e17; border: 1px solid var(--line); }
.stripes { position: absolute; inset: 0; display: flex; flex-direction: column; }
.stripes > i { flex: 1; border-bottom: 1px solid rgba(255,255,255,.04); background: rgba(255,255,255,.02); transition: background .2s; }
/* damage: a window moves and only its bounding region is encoded */
.stripes[data-mode="damage"] { background: repeating-linear-gradient(0deg, transparent 0 15px, rgba(255,255,255,.025) 15px 16px), repeating-linear-gradient(90deg, transparent 0 15px, rgba(255,255,255,.025) 15px 16px); }
.stripes[data-mode="damage"] .mover, .stripes[data-mode="damage"] .damage-box {
    position: absolute; width: 34%; height: 30%; left: 10%; top: 10%;
    animation: moverPath 6s ease-in-out infinite;
}
.stripes[data-mode="damage"] .mover { border-radius: 6px; background: linear-gradient(135deg, rgba(255,255,255,.18), rgba(255,255,255,.06)); border: 1px solid rgba(255,255,255,.25); }
.stripes[data-mode="damage"] .damage-box { inset: auto; margin: -6px; width: calc(34% + 12px); height: calc(30% + 12px); border-radius: 8px; border: 2px solid rgba(213,73,154,.9); background: rgba(213,73,154,.12); box-shadow: 0 0 20px rgba(213,73,154,.35); animation: moverPath 6s ease-in-out infinite, damageOn 6s ease-in-out infinite; }
@keyframes moverPath {
    0% { top: 10%; left: 10%; } 30% { top: 55%; left: 20%; } 50% { top: 55%; left: 20%; }
    75% { top: 20%; left: 55%; } 100% { top: 10%; left: 10%; }
}
@keyframes damageOn { 0%, 30% { opacity: 1; } 34%, 48% { opacity: 0; } 52%, 100% { opacity: 1; } }
/* idle */
.stripes[data-mode="idle"] > i { background: rgba(255,255,255,.02); }
.idle-tag {
    position: absolute; inset: auto 0 0 0; margin: 0 auto 14px; width: max-content;
    padding: 5px 12px; border-radius: 999px; font-family: var(--font-mono); font-size: .72rem;
    background: rgba(95,227,161,.12); color: var(--green); border: 1px solid rgba(95,227,161,.3);
    animation: idlePulse 3s ease-in-out infinite;
}
.stripes[data-mode="idle"]::before {
    content: ""; position: absolute; inset: 0;
    background: repeating-linear-gradient(0deg, transparent 0 14px, rgba(255,255,255,.03) 14px 15px);
}
@keyframes idlePulse { 50% { box-shadow: 0 0 24px rgba(95,227,161,.25); } }
/* paint-over */
.stripes[data-mode="paint"] .paint-text {
    position: absolute; inset: 0; display: grid; place-items: center;
    font-family: var(--font-display); font-weight: 800; font-size: 3.6rem; color: var(--text);
    filter: blur(2.2px); animation: unblur 5s ease-in-out infinite;
}
@keyframes unblur { 0%, 35% { filter: blur(2.2px); opacity: .6; } 55%, 85% { filter: blur(0); opacity: 1; } 100% { filter: blur(2.2px); opacity: .6; } }
.paint-sweep {
    position: absolute; left: 0; right: 0; height: 14%; top: -14%;
    background: linear-gradient(180deg, transparent, rgba(157,140,240,.55), transparent);
    animation: sweep 5s ease-in-out infinite;
}
@keyframes sweep { 0%, 35% { top: -14%; } 60% { top: 100%; } 100% { top: 100%; } }

.hybrid-compare { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--glass); overflow-x: auto; }
.compare-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr .8fr; gap: 12px; padding: 14px 20px; border-top: 1px solid var(--line); font-size: .92rem; min-width: 640px; }
.compare-row.head { border-top: 0; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); background: rgba(255,255,255,.02); }
.compare-row > span:first-child { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.compare-row.hl { background: linear-gradient(90deg, rgba(213,73,154,.12), rgba(121,103,197,.12)); }
.good { color: var(--green); } .bad { color: var(--red); } .mid { color: var(--amber); }

/* ----------------------------------------------------------------- features */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature-card {
    position: relative; padding: 24px; border-radius: var(--r-lg);
    background: var(--glass); border: 1px solid var(--line);
    overflow: hidden;
    transition: transform var(--dur-slow) var(--ease-out), border-color var(--dur);
}
.feature-card:hover { transform: translateY(-5px); border-color: rgba(157,140,240,.5); }
.spotlight::before {
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
    background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(157,140,240,.18), transparent 45%);
    transition: opacity .4s;
}
.spotlight:hover::before { opacity: 1; }
.fi {
    width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
    background: linear-gradient(135deg, rgba(213,73,154,.18), rgba(121,103,197,.18));
    border: 1px solid rgba(213,73,154,.3); margin-bottom: 18px;
    transition: transform var(--dur-slow) var(--ease-spring), box-shadow var(--dur);
}
.feature-card:hover .fi { transform: rotate(-6deg) scale(1.08); box-shadow: 0 8px 24px -8px rgba(213,73,154,.6); }
.fi svg { width: 24px; height: 24px; fill: none; stroke: url(#featGrad), var(--violet-2); stroke: var(--violet-2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.feature-card p { font-size: .9rem; color: var(--text-2); }

.feature-ticker { list-style: none; margin: 40px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.feature-ticker li {
    padding: 6px 14px; border-radius: var(--r-pill); font-size: .82rem; color: var(--text-2);
    border: 1px solid var(--line); background: var(--glass);
    transition: border-color var(--dur), color var(--dur), transform var(--dur) var(--ease-spring);
}
.feature-ticker li:hover { border-color: var(--pink); color: var(--text); transform: translateY(-2px) scale(1.04); }

/* ----------------------------------------------------------------- pipeline */
.pipeline { background: radial-gradient(ellipse 50% 40% at 50% 100%, rgba(213,73,154,.1), transparent 70%); }
.pipe-diagram { border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--bg-1); padding: 18px; overflow-x: auto; margin-bottom: 40px; }
.pipe-svg { width: 100%; min-width: 760px; height: auto; font-family: var(--font-body); }
.pipe-line { fill: none; stroke: rgba(255,255,255,.12); stroke-width: 2; }
.pipe-flow { fill: none; stroke: url(#pipeGrad); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 18 26; animation: flow 1.6s linear infinite; filter: url(#glow); }
.pipe-flow.audio { stroke: url(#audioGrad); stroke-dasharray: 8 20; animation-duration: 1.1s; }
@keyframes flow { to { stroke-dashoffset: -44; } }
.pipe-return { fill: none; stroke: rgba(79,209,197,.5); stroke-width: 1.5; stroke-dasharray: 4 8; animation: flowBack 2.4s linear infinite; }
@keyframes flowBack { to { stroke-dashoffset: 24; } }
.pipe-bracket { fill: none; stroke: var(--line-2); stroke-width: 1; stroke-dasharray: 3 5; }
.node rect { fill: rgba(255,255,255,.04); stroke: var(--line-2); stroke-width: 1; transition: stroke .3s, fill .3s; }
.node:hover rect { fill: rgba(255,255,255,.08); stroke: var(--violet-2); }
.node.hot rect { stroke: url(#pipeGrad); stroke-width: 1.5; fill: rgba(213,73,154,.08); }
.node.hot.audio rect { stroke: url(#audioGrad); fill: rgba(79,209,197,.07); }
.node text { fill: var(--text); text-anchor: middle; }
.nt { font-family: var(--font-display); font-weight: 700; font-size: 15px; }
.ns { fill: var(--text-3) !important; font-family: var(--font-mono); font-size: 11px; }
.nl { fill: var(--text-3); font-family: var(--font-mono); font-size: 11px; text-anchor: middle; letter-spacing: .04em; }
.nl.strong { fill: var(--text-2); font-size: 12px; }
.pipe-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.fact { padding: 20px; border-radius: var(--r); border: 1px solid var(--line); background: var(--glass); border-top: 2px solid transparent; border-image: var(--brand) 1; border-image-width: 2px 0 0 0; }
.fact strong { display: block; font-family: var(--font-display); font-size: 1rem; margin-bottom: 8px; }
.fact p { color: var(--text-2); font-size: .9rem; }

/* -------------------------------------------------------------------- split */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.split-copy, .split-visual, .hero-copy, .hero-visual, .tab-panel, .community-copy { min-width: 0; }
.split.rev .split-copy { order: 2; }
.split.rev .split-visual { order: 1; }
.split-copy h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 800; letter-spacing: -.03em; margin: 14px 0 18px; }
.split-copy p { color: var(--text-2); font-size: 1.05rem; margin-bottom: 14px; }
.check-list { list-style: none; margin: 22px 0; padding: 0; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 30px; color: var(--text-2); font-size: .95rem; }
.check-list li b { color: var(--text); margin-right: 4px; }
.check-list li::before {
    content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%;
    background: var(--brand);
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/70% no-repeat, linear-gradient(#000, #000);
    mask-composite: exclude;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/70% no-repeat, linear-gradient(#000, #000);
    -webkit-mask-composite: xor;
}

/* code blocks */
.code-block {
    position: relative; margin-top: 18px;
    background: #05070c; border: 1px solid var(--line-2); border-radius: var(--r);
    padding: 18px 20px; overflow-x: auto;
}
.code-block pre { margin: 0; font-family: var(--font-mono); font-size: .82rem; line-height: 1.6; color: #d7e0f0; }
.code-block code { background: none; padding: 0; font-size: inherit; }
.copy-btn {
    position: absolute; top: 10px; right: 10px;
    padding: 5px 10px; font-size: .72rem; font-family: var(--font-mono); font-weight: 500;
    background: var(--glass-2); border: 1px solid var(--line); border-radius: 6px; cursor: pointer;
    color: var(--text-2); transition: background var(--dur), color var(--dur), border-color var(--dur);
}
.copy-btn:hover { background: rgba(255,255,255,.12); color: var(--text); }
.copy-btn.done { color: var(--green); border-color: rgba(95,227,161,.5); }
.code-note { font-size: .85rem; color: var(--text-3); margin-top: 12px; }
.code-note a { color: var(--violet-2); }

/* ---------------------------------------------------------------------- gpu */
.gpu { background: radial-gradient(ellipse 45% 50% at 85% 50%, rgba(121,103,197,.14), transparent 70%); }
.gpu-card {
    position: relative; padding: 28px; border-radius: var(--r-xl);
    background: linear-gradient(160deg, var(--bg-2), var(--bg-1));
    border: 1px solid var(--line-2); box-shadow: var(--shadow-lg);
    display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 24px; align-items: center;
    overflow: hidden; min-width: 0; max-width: 100%;
}
.gpu-card::after { content: ""; position: absolute; inset: -40% -20% auto auto; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(213,73,154,.25), transparent 65%); filter: blur(30px); pointer-events: none; }
.gpu-fan { position: relative; width: 170px; aspect-ratio: 1; }
.fan-ring { position: absolute; inset: 0; border-radius: 50%; border: 3px solid rgba(255,255,255,.08); box-shadow: inset 0 0 0 10px rgba(255,255,255,.02), 0 0 40px rgba(121,103,197,.25); }
.fan-blades { position: absolute; inset: 14px; animation: spin 2.6s linear infinite; }
.fan-blades i { position: absolute; left: 50%; top: 50%; width: 22px; height: 64px; margin: -64px 0 0 -11px; transform-origin: 50% 100%; transform: rotate(calc(var(--r) * 1deg)); border-radius: 60% 60% 20% 20%; background: linear-gradient(180deg, rgba(213,73,154,.75), rgba(121,103,197,.55) 70%, transparent); }
.fan-blades i:nth-child(1) { --r: 0; } .fan-blades i:nth-child(2) { --r: 51.4; } .fan-blades i:nth-child(3) { --r: 102.8; } .fan-blades i:nth-child(4) { --r: 154.2; } .fan-blades i:nth-child(5) { --r: 205.6; } .fan-blades i:nth-child(6) { --r: 257; } .fan-blades i:nth-child(7) { --r: 308.4; }
.fan-hub { position: absolute; left: 50%; top: 50%; width: 42px; height: 42px; margin: -21px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #2a3348, #0d1118); border: 2px solid rgba(255,255,255,.12); }
@keyframes spin { to { transform: rotate(360deg); } }
.gpu-probe { font-family: var(--font-mono); font-size: .78rem; color: var(--text-2); display: grid; gap: 8px; min-width: 0; overflow: hidden; }
.probe-line { opacity: 0; transform: translateX(-8px); animation: probeIn .6s var(--ease-out) forwards; animation-delay: calc(var(--i) * .5s + .3s); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.in-view .probe-line { animation-play-state: running; }
@keyframes probeIn { to { opacity: 1; transform: none; } }
.probe-line .ok { color: var(--green); margin-right: 6px; }
.probe-line .cur { color: var(--pink); margin-right: 6px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------------------------------------------------------------- transport */
.net-stack { display: grid; gap: 10px; }
.net-diagram { position: relative; }
.net-label { position: absolute; top: 8px; left: 14px; font-family: var(--font-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.net-link.rtc i { background: var(--pink); box-shadow: 0 0 8px var(--pink); animation-duration: 1.4s; animation-delay: calc(var(--k, 0) * .18s); }
.net-link i:nth-child(7) { --k: 6; } .net-link i:nth-child(8) { --k: 7; }
.net-swap { text-align: center; font-family: var(--font-mono); font-size: .72rem; color: var(--violet-2); display: flex; align-items: center; justify-content: center; gap: 8px; }
.net-swap span { display: inline-block; font-size: 1rem; animation: swapBob 1.6s ease-in-out infinite; }
@keyframes swapBob { 50% { transform: translateY(-3px); } }
.compare-note { margin-top: 14px; font-size: .88rem; color: var(--text-3); max-width: 900px; }
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.pill { padding: 8px 14px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--glass); font-weight: 600; font-size: .88rem; display: inline-flex; gap: 8px; align-items: baseline; }
.pill small { font-weight: 400; color: var(--text-3); font-family: var(--font-mono); font-size: .7rem; }
.pill.on { border-color: rgba(213,73,154,.6); background: rgba(213,73,154,.12); }
.net-diagram { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 30px 22px; border-radius: var(--r-xl); border: 1px solid var(--line); background: var(--bg-1); }
.net-node { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 12px; border-radius: var(--r); background: var(--glass); border: 1px solid var(--line); min-width: 112px; text-align: center; }
.net-node b { font-family: var(--font-display); font-size: .92rem; }
.net-node small { font-family: var(--font-mono); font-size: .68rem; color: var(--text-3); }
.net-ico { font-size: 1.5rem; line-height: 1; }
.net-node.hl { border-color: rgba(213,73,154,.6); box-shadow: 0 0 40px -10px rgba(213,73,154,.6); }
.net-link { flex: 1; display: flex; justify-content: space-between; align-items: center; height: 2px; background: rgba(255,255,255,.1); position: relative; }
.net-link i { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 8px var(--teal); animation: packet 2.2s linear infinite; animation-delay: calc(var(--k, 0) * .36s); opacity: 0; position: absolute; left: 0; }
.net-link i:nth-child(1) { --k: 0; } .net-link i:nth-child(2) { --k: 1; } .net-link i:nth-child(3) { --k: 2; } .net-link i:nth-child(4) { --k: 3; } .net-link i:nth-child(5) { --k: 4; } .net-link i:nth-child(6) { --k: 5; }
@keyframes packet { 0% { left: 0; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { left: calc(100% - 6px); opacity: 0; } }

/* ---------------------------------------------------------------- usecases */
.usecase-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.usecase { position: relative; padding: 28px 26px 26px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--glass); overflow: hidden; transition: transform var(--dur-slow) var(--ease-out), border-color var(--dur); }
.usecase::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: var(--brand); transform: scaleX(0); transform-origin: 0 50%; transition: transform .6s var(--ease-out); }
.usecase:hover { transform: translateY(-4px); border-color: var(--line-2); }
.usecase:hover::before { transform: scaleX(1); }
.uc-num { font-family: var(--font-mono); font-size: .74rem; color: var(--pink); letter-spacing: .1em; }
.usecase h3 { font-size: 1.15rem; margin: 10px 0 8px; }
.usecase p { color: var(--text-2); font-size: .92rem; }

/* ----------------------------------------------------------------- showcase */
.video-frame { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); background: #000; position: relative; }
.video-frame::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); pointer-events: none; border-radius: inherit; }
.video-frame video { width: 100%; height: auto; }

/* ---------------------------------------------------------------- ecosystem */
.eco-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 72px; }
.eco-card {
    position: relative; display: flex; flex-direction: column; gap: 10px; padding: 24px;
    border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--glass);
    overflow: hidden; transition: transform var(--dur-slow) var(--ease-out), border-color var(--dur), background var(--dur);
}
.eco-card:hover { transform: translateY(-5px); border-color: rgba(213,73,154,.5); background: var(--glass-2); }
.eco-card.core { grid-column: span 2; background: linear-gradient(135deg, rgba(213,73,154,.12), rgba(121,103,197,.1)); border-color: rgba(213,73,154,.35); }
.eco-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.eco-glyph { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: var(--glass-2); font-size: 1.3rem; color: var(--violet-2); }
.eco-tag { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); padding: 3px 8px; border: 1px solid var(--line); border-radius: 6px; }
.eco-card h3 { font-size: 1.15rem; }
.eco-card p { color: var(--text-2); font-size: .9rem; flex: 1; }
.eco-link { font-family: var(--font-mono); font-size: .72rem; color: var(--violet-2); }
.eco-link::after { content: " \2197"; }

.app-scroller { position: relative; padding: 10px 0 0; }
.scroller-track { display: flex; overflow-x: auto; scrollbar-width: none; cursor: grab; user-select: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.scroller-track::-webkit-scrollbar { display: none; }
.scroller-track:active { cursor: grabbing; }
.sliding-track { display: flex; gap: 14px; padding: 6px 7px; flex: none; }
.app-card {
    flex: none; width: 118px; padding: 14px 10px 12px; text-align: center;
    border-radius: var(--r); border: 1px solid var(--line); background: var(--glass);
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    transition: transform var(--dur) var(--ease-spring), border-color var(--dur), background var(--dur);
}
.app-card:hover { transform: translateY(-4px) scale(1.04); border-color: rgba(213,73,154,.5); background: var(--glass-2); }
.app-card img { width: 46px; height: 46px; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(0,0,0,.5)); }
.app-card span { font-size: .72rem; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 100%; }

/* ------------------------------------------------------------------ lineage */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 2px; background: linear-gradient(90deg, rgba(255,255,255,.08), rgba(213,73,154,.6), rgba(121,103,197,.6)); }
.timeline li { position: relative; padding-top: 32px; }
.tl-dot { position: absolute; top: 0; left: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--bg-0); border: 2px solid var(--line-2); }
.tl-dot::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--brand); }
.tl-dot.cur::before { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid rgba(213,73,154,.5); animation: ring 2s ease-out infinite; }
@keyframes ring { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(1.4); opacity: 0; } }
.timeline h3 { font-size: 1rem; margin-bottom: 8px; }
.timeline p { color: var(--text-2); font-size: .88rem; }

/* -------------------------------------------------------------------- start */
.start { background: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(213,73,154,.1), transparent 70%); }
.tabs { border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--bg-1); overflow: hidden; margin-bottom: 40px; }
.tab-list { position: relative; display: flex; gap: 4px; padding: 8px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.02); overflow-x: auto; scrollbar-width: none; }
.tab-list::-webkit-scrollbar { display: none; }
.tab-list button { position: relative; z-index: 1; flex: none; padding: 10px 18px; border: 0; background: none; border-radius: 10px; color: var(--text-2); font-weight: 600; font-family: var(--font-display); font-size: .9rem; cursor: pointer; transition: color var(--dur); white-space: nowrap; }
.tab-list button[aria-selected="true"] { color: #fff; }
.tab-indicator { position: absolute; top: 8px; left: 8px; height: calc(100% - 16px); width: 0; border-radius: 10px; background: var(--brand); opacity: .9; transition: transform .4s var(--ease-spring), width .4s var(--ease-spring); }
.tab-panel { padding: 26px 28px 28px; animation: panelIn .45s var(--ease-out); }
.tab-panel > p:first-child { color: var(--text-2); font-size: .98rem; }
@keyframes panelIn { from { opacity: 0; transform: translateY(8px); } }
.start-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.start-links a { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border-radius: var(--r); border: 1px solid var(--line); background: var(--glass); transition: transform var(--dur) var(--ease-out), border-color var(--dur); }
.start-links a:hover { transform: translateY(-3px); border-color: rgba(157,140,240,.6); }
.start-links b { font-family: var(--font-display); font-size: .95rem; }
.start-links span { font-size: .82rem; color: var(--text-3); }

/* ---------------------------------------------------------------- community */
.community { padding-top: 40px; }
.community-card { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; padding: 56px; border-radius: var(--r-xl); border: 1px solid var(--line-2); background: var(--bg-1); }
.community-bg { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 50% 70% at 10% 50%, rgba(213,73,154,.22), transparent 60%), radial-gradient(ellipse 50% 70% at 90% 50%, rgba(121,103,197,.25), transparent 60%); animation: breathe 8s ease-in-out infinite; }
.community-copy { position: relative; }
.community-copy h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 800; letter-spacing: -.03em; margin-bottom: 16px; }
.community-copy p { color: var(--text-2); font-size: 1.05rem; margin-bottom: 26px; }
.community-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.community-links { position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; align-content: center; }
.community-links a { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-radius: 10px; color: var(--text-2); border: 1px solid transparent; transition: background var(--dur), color var(--dur), border-color var(--dur), padding-left var(--dur); }
.community-links a::after { content: "\2192"; color: var(--violet-2); transition: transform var(--dur); }
.community-links a:hover { background: var(--glass); color: var(--text); border-color: var(--line); padding-left: 20px; }
.community-links a:hover::after { transform: translateX(4px); }

/* ------------------------------------------------------------------- footer */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 28px; background: var(--bg-0); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand p { color: var(--text-3); font-size: .9rem; max-width: 340px; margin-top: 14px; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col h4 { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); margin-bottom: 6px; font-family: var(--font-mono); font-weight: 500; }
.footer-col a { color: var(--text-2); font-size: .92rem; transition: color var(--dur), transform var(--dur); width: max-content; }
.footer-col a:hover { color: var(--text); transform: translateX(3px); }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); font-size: .78rem; color: var(--text-3); }

/* --------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
    .feature-grid { grid-template-columns: repeat(3, 1fr); }
    .eco-grid { grid-template-columns: repeat(3, 1fr); }
    .pipe-facts, .start-links { grid-template-columns: repeat(2, 1fr); }
    .stat-strip { grid-template-columns: repeat(3, 1fr); }
    .stat-strip li:nth-child(4) { border-left: 0; }
}
@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; gap: 40px; }
    .hero { padding-top: calc(var(--header-h) + 24px); }
    .hero-text { max-width: none; }
    .split, .split.rev { grid-template-columns: 1fr; gap: 36px; }
    .split.rev .split-copy { order: 1; } .split.rev .split-visual { order: 2; }
    .hybrid-grid, .usecase-grid { grid-template-columns: 1fr; }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .eco-grid { grid-template-columns: repeat(2, 1fr); }
    .timeline { grid-template-columns: 1fr; gap: 28px; padding-left: 30px; }
    .timeline::before { left: 9px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(213,73,154,.6), rgba(121,103,197,.6)); }
    .timeline li { padding-top: 0; }
    .tl-dot { left: -30px; top: 2px; }
    .community-card { grid-template-columns: 1fr; padding: 36px 28px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .nav-links { position: fixed; top: var(--header-h); left: 0; right: 0; flex-direction: column; padding: 12px 24px 20px; background: rgba(7,9,15,.96); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); transform: translateY(-12px); opacity: 0; pointer-events: none; transition: transform .3s var(--ease-out), opacity .3s; }
    .site-header.scrolled .nav-links { top: 62px; }
    .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
    .nav-links a { padding: 12px; font-size: 1.05rem; }
    .nav-toggle { display: flex; }
    .nav-cta { display: none; }
    .section { padding: 84px 0; }
    .gpu-card { grid-template-columns: 1fr; justify-items: stretch; padding: 22px; }
    .gpu-fan { margin: 0 auto; }
    .gpu-probe { width: 100%; font-size: .72rem; }
    .probe-line { white-space: normal; }
}
@media (max-width: 600px) {
    .feature-grid, .eco-grid, .pipe-facts, .start-links, .footer-grid { grid-template-columns: 1fr; }
    .eco-card.core { grid-column: auto; }
    .stat-strip { grid-template-columns: repeat(2, 1fr); }
    .stat-strip li { border-left: 0; padding: 8px 0; }
    .hero-actions .btn { width: 100%; justify-content: center; }
    .sim-hud { display: none; }
    .net-diagram { flex-direction: column; }
    .net-link { width: 2px; height: 40px; flex-direction: column; }
    .net-link i { left: auto; top: 0; animation-name: packetV; }
    @keyframes packetV { 0% { top: 0; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { top: calc(100% - 6px); opacity: 0; } }
    .tab-panel { padding: 20px 18px; }
    .community-card { padding: 28px 20px; }
}

/* ----------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
    .hero-title .w { opacity: 1; transform: none; }
    .probe-line { opacity: 1; transform: none; }
}
