/* ALIEN website
   Cinematic and dark. The pictures carry the page, the interface stays quiet. */

:root {
    --bg: #04050c;
    --bg-2: #080a18;
    --surface: rgba(255, 255, 255, 0.045);
    --surface-2: rgba(255, 255, 255, 0.08);
    --line: rgba(160, 175, 255, 0.14);
    --fg: #dfe4f7;
    --fg-strong: #ffffff;
    --muted: #8f97ba;
    --accent: #59dace;
    --accent-2: #8a63d2;
    --magenta: #e0479e;
    --gold: #f2a93b;
    --radius: 14px;
    --font-head: "Sora", system-ui, sans-serif;
    --font-body: "Inter", system-ui, sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, monospace;
    --wrap: 1240px;
    --popover: #0b0e1f;
    --code-bg: #0a0d1d;
    color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font: 17px/1.65 var(--font-body);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); color: var(--fg-strong); margin: 0; letter-spacing: -0.02em; }
h2 { font-size: clamp(30px, 4.2vw, 54px); line-height: 1.08; font-weight: 600; }
h3 { font-size: 20px; font-weight: 600; }
p { margin: 0 0 1em; }
em { font-style: normal; color: var(--accent); }
.muted { color: var(--muted); }
.wrap { width: min(var(--wrap), calc(100% - 48px)); margin-inline: auto; }
.eyebrow {
    font: 500 12px/1 var(--font-mono);
    letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--accent); margin: 0 0 18px;
}
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head p:not(.eyebrow) { color: var(--muted); font-size: 19px; margin-top: 18px; }
.glow-text {
    background: linear-gradient(100deg, #7ff0e2 0%, #59dace 30%, #a68cff 70%, #e88ac4 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    filter: drop-shadow(0 0 28px rgba(89, 218, 206, 0.35));
}
.text-link { color: var(--accent); text-decoration: none; font-weight: 500; }
.text-link:hover { text-decoration: underline; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 22px; border-radius: 999px; border: 1px solid transparent;
    font: 600 15px/1 var(--font-body); text-decoration: none; cursor: pointer;
    transition: transform 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
    background: linear-gradient(120deg, #59dace, #7bb8ff 55%, #a68cff);
    color: #041016;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset, 0 10px 40px rgba(89, 218, 206, 0.28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 50px rgba(89, 218, 206, 0.45); }
.btn-ghost { background: rgba(255, 255, 255, 0.06); border-color: var(--line); color: var(--fg-strong); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(160, 175, 255, 0.35); }
.btn-small { padding: 10px 16px; font-size: 14px; }

/* Navigation */
.nav {
    position: fixed; inset: 0 0 auto; z-index: 100;
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    padding: 14px clamp(16px, 3vw, 40px);
    transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
    border-bottom: 1px solid transparent;
}
.nav.is-solid { background: rgba(4, 5, 12, 0.72); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); border-bottom-color: var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: auto; height: 24px; filter: drop-shadow(0 0 8px rgba(160, 80, 255, 0.45)); }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; }
.footer-brand img { height: 20px; width: auto; }
.brand-word { font: 300 19px/1 var(--font-head); letter-spacing: 0.5em; color: #fff; }
.nav-links { display: flex; gap: 6px; }
.nav-links a {
    padding: 8px 14px; border-radius: 999px; text-decoration: none;
    font-size: 15px; color: rgba(223, 228, 247, 0.82); transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: #fff; background: rgba(255, 255, 255, 0.07); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.gh-chip {
    display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 999px;
    border: 1px solid var(--line); text-decoration: none; font: 500 13px var(--font-mono); color: var(--fg);
}
.gh-chip svg { width: 16px; height: 16px; }
.gh-chip:hover { border-color: rgba(160, 175, 255, 0.4); }
.nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, 0.05); cursor: pointer; padding: 0; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: #fff; margin: 4px auto; transition: transform 0.25s; }
body.menu-open .nav-toggle span:first-child { transform: translateY(3px) rotate(45deg); }
body.menu-open .nav-toggle span:last-child { transform: translateY(-3px) rotate(-45deg); }

/* Hero */
.hero { --hero-bottom: clamp(80px, 13vh, 140px); position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: brightness(1.25) saturate(1.15); transform: scale(1.06); animation: hero-drift 30s ease-in-out infinite alternate; }
@keyframes hero-drift { to { transform: scale(1.14) translate(-1.5%, 1%); } }
.hero-shade {
    position: absolute; inset: 0; z-index: -1;
    background:
        radial-gradient(ellipse 80% 70% at 75% 35%, transparent 0%, rgba(4, 5, 12, 0.1) 60%, rgba(4, 5, 12, 0.45) 100%),
        linear-gradient(180deg, rgba(4, 5, 12, 0.45) 0%, rgba(4, 5, 12, 0) 18%, rgba(4, 5, 12, 0) 55%, rgba(4, 5, 12, 0.85) 90%, var(--bg) 100%),
        linear-gradient(90deg, rgba(4, 5, 12, 0.72) 0%, rgba(4, 5, 12, 0.18) 50%, transparent 72%);
}
.hero-inner { width: min(var(--wrap), calc(100% - 48px)); margin: 0 auto; padding: 72px 0 var(--hero-bottom); }
/* The height term shrinks the title on short screens, so the hero still fits below the navigation */
.hero h1 { font-size: clamp(46px, min(8.4vw, 44svh - 200px), 118px); line-height: 0.98; font-weight: 600; letter-spacing: -0.04em; margin-bottom: 26px; }
.hero-lead { max-width: 600px; font-size: clamp(17px, 1.6vw, 21px); color: rgba(232, 236, 255, 0.86); margin-bottom: 34px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }
.award {
    display: inline-flex; align-items: center; gap: 12px; text-decoration: none;
    padding: 9px 16px 9px 10px; border-radius: 999px; font-size: 14px;
    background: rgba(242, 169, 59, 0.08); border: 1px solid rgba(242, 169, 59, 0.3); color: #f6dcae;
}
.award strong { color: #ffd38a; }
.award-icon { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(242, 169, 59, 0.2); color: #ffc766; }
.hero-pulse {
    position: absolute; bottom: var(--hero-bottom); right: clamp(16px, 3vw, 40px); z-index: 2; width: 384px;
    padding: 16px 18px 6px; border-radius: 18px; border: 1px solid var(--line);
    background: rgba(4, 5, 12, 0.58); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
    opacity: 0; transition: opacity 0.5s ease;
}
.hero-pulse.is-ready { opacity: 1; }
.hero-pulse-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; text-decoration: none; margin-bottom: 4px; }
.hero-pulse-head .tile-tag { margin: 0; white-space: nowrap; }
.hero-pulse-stars { display: inline-flex; align-items: center; gap: 5px; font: 500 12px var(--font-mono); color: #fff; white-space: nowrap; }
.hero-pulse-stars svg { width: 13px; height: 13px; color: #ffd38a; }
.hero-pulse-head:hover .hero-pulse-stars { color: var(--accent); }
.hero-pulse .commits { grid-template-columns: minmax(0, 1fr); }
.hero-pulse .commits li { font-size: 13.5px; line-height: 1.35; }
.hero-pulse .commits a { display: block; padding: 8px 0; border-bottom: 0; border-top: 1px solid var(--line); }
.hero-pulse .commits li:first-child a { border-top: 0; }
.hero-pulse .commit-offline a:hover { color: var(--accent); }
.hero-pulse .commit-msg { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; font-size: 13.5px; line-height: 1.35; }
.hero-pulse .commit-meta { display: block; font-size: 11px; padding-top: 2px; }
.hero-caption { position: absolute; right: clamp(16px, 3vw, 40px); bottom: 26px; margin: 0; font: 12px var(--font-mono); color: rgba(223, 228, 247, 0.55); letter-spacing: 0.04em; }
.hero-caption em { color: rgba(223, 228, 247, 0.85); }
.scroll-hint { position: absolute; left: 50%; bottom: 24px; translate: -50% 0; width: 26px; height: 42px; border: 1.5px solid rgba(255, 255, 255, 0.35); border-radius: 14px; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: #fff; animation: scroll-dot 2s ease-in-out infinite; }
@keyframes scroll-dot { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* Bento highlights after the hero */
.bento-wrap { padding: clamp(50px, 8vh, 100px) 0 clamp(60px, 10vh, 120px); }
.bento { width: min(var(--wrap), calc(100% - 48px)); margin: 0 auto; display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: minmax(170px, auto); gap: 14px; }
.tile { position: relative; margin: 0; border-radius: 20px; overflow: hidden; background: var(--bg-2); border: 1px solid var(--line); padding: 22px; transition: border-color 0.25s, box-shadow 0.25s; }
.tile:hover { border-color: rgba(89, 218, 206, 0.45); box-shadow: 0 0 40px rgba(89, 218, 206, 0.08); }
figure.tile { padding: 0; }
figure.tile[data-lightbox] { cursor: zoom-in; }
.tile img, .tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1); }
.tile:hover img { transform: scale(1.05); }
.tile figcaption { position: absolute; inset: auto 0 0; padding: 44px 20px 16px; background: linear-gradient(transparent, rgba(2, 3, 8, 0.88)); color: #fff; font-size: 15.5px; font-weight: 500; }
.tile-tag { display: flex; align-items: center; gap: 8px; font: 500 11px var(--font-mono); color: var(--accent); text-transform: uppercase; letter-spacing: 0.16em; margin-bottom: 6px; }
.tile strong { display: block; font: 600 30px/1.1 var(--font-head); color: #fff; letter-spacing: -0.02em; margin: 4px 0 8px; }
.tile p { color: var(--muted); font-size: 14.5px; margin: 0; }
.t-video { grid-column: span 7; grid-row: span 3; }
.t-micro { grid-column: span 5; grid-row: span 2; }
.t-stat { grid-column: span 5; grid-row: span 1; }
.t-stat strong { font-size: 40px; margin: 0 0 2px; }
.t-stat p { max-width: 64%; }
.spark { position: absolute; right: 0; bottom: 0; width: 44%; height: 62%; }
.spark path { fill: none; stroke: var(--accent); stroke-width: 1.6; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 6px rgba(89, 218, 206, 0.7)); }
.t-cells { grid-column: span 4; grid-row: span 2; }
.t-evo { grid-column: span 3; grid-row: span 2; }
.t-tools { grid-column: span 5; grid-row: span 2; }
.t-genome { grid-column: span 5; grid-row: span 3; }
.t-light { grid-column: span 7; grid-row: span 3; }
.chips { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { font: 12px var(--font-mono); padding: 4px 9px; border-radius: 999px; border: 1px solid var(--line); color: #cdd4f0; background: rgba(255, 255, 255, 0.03); }
.chips li:nth-child(3n + 1) { border-color: rgba(89, 218, 206, 0.4); }
.chips li:nth-child(3n + 2) { border-color: rgba(138, 99, 210, 0.5); }
@media (max-width: 1000px) {
    .bento { grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(150px, auto); }
    .t-video { grid-column: span 6; grid-row: span 2; }
    .t-micro, .t-cells, .t-evo, .t-genome, .t-light, .t-stat { grid-column: span 3; grid-row: span 2; }
    .t-tools { grid-column: span 6; grid-row: span 2; }
}
@media (max-width: 640px) {
    .bento { grid-template-columns: 1fr; grid-auto-rows: auto; width: calc(100% - 32px); }
    .tile { grid-column: auto !important; grid-row: auto !important; min-height: 240px; }
    .t-stat, .t-cells { min-height: 0; }
}

/* Scroll story */
.journey { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; column-gap: clamp(24px, 4vw, 72px); row-gap: 40px; width: min(var(--wrap), calc(100% - 48px)); margin: 0 auto; padding: 40px 0 80px; }
/* Starts right below the heading and stays vertically centered while the steps scroll past */
.journey-media { position: sticky; top: max(96px, calc(50vh - 210px)); align-self: start; }
.journey-frame { position: relative; aspect-ratio: 16 / 10; border-radius: 22px; overflow: hidden; background: #000; box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--line); }
.journey-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity 1.1s ease, transform 6s ease; }
.journey-frame img.is-active { opacity: 1; transform: scale(1); }
.journey-progress { height: 2px; background: var(--line); margin-top: 18px; border-radius: 2px; overflow: hidden; }
.journey-progress span { display: block; height: 100%; width: 20%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width 0.6s ease; }
.journey-steps { padding: 0 0 22vh; }
.step { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; opacity: 0.28; transition: opacity 0.6s; }
.step.is-current { opacity: 1; }
.step-index { font: 500 13px var(--font-mono); color: var(--accent); letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 16px; }
.step h2 { font-size: clamp(28px, 3vw, 42px); margin-bottom: 18px; }
.step p { color: rgba(223, 228, 247, 0.8); font-size: 18px; max-width: 520px; }
.journey-head { grid-column: 1 / -1; margin-bottom: 0; }

/* Agents: from a sentence to a living world */
.agents { padding: clamp(80px, 12vh, 140px) 0; background: radial-gradient(ellipse 55% 50% at 70% 60%, rgba(89, 218, 206, 0.07), transparent 70%); }
.agents-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 70px); align-items: end; margin-bottom: 48px; }
.agents-head p:not(.eyebrow) { color: var(--muted); font-size: 18px; margin: 0 0 18px; }
.flow { display: grid; grid-template-columns: 1fr 1fr 1.45fr; gap: 46px; }
.flow-step { position: relative; display: flex; flex-direction: column; gap: 14px; min-height: 440px; padding: 26px; border-radius: 22px; border: 1px solid var(--line); background: var(--bg-2); }
.flow-step:not(:last-child)::after {
    content: ""; position: absolute; top: 50%; right: -46px; width: 46px; height: 2px;
    background: linear-gradient(90deg, rgba(89, 218, 206, 0.1), var(--accent));
    box-shadow: 0 0 12px rgba(89, 218, 206, 0.6);
}
.flow-step:not(:last-child)::before { content: ""; position: absolute; top: calc(50% - 5px); right: -6px; z-index: 1; border: 6px solid transparent; border-left: 8px solid var(--accent); transform: translateX(14px); }
.flow-num { font: 600 54px/1 var(--font-head); color: transparent; -webkit-text-stroke: 1px rgba(89, 218, 206, 0.7); }
.flow-step h3 { font-size: 21px; }
.flow-step > p { color: var(--muted); font-size: 15px; margin: 0; }
.flow-quote { margin-top: auto; min-height: 136px; padding: 18px 20px; border-radius: 16px 16px 16px 4px; background: rgba(89, 218, 206, 0.1); border: 1px solid rgba(89, 218, 206, 0.35); font: 500 18px/1.45 var(--font-head); color: #fff; }
.flow-quote::after { content: "▍"; color: var(--accent); animation: blink 1s steps(1) infinite; }
.flow-quote.done::after { content: ""; }
@keyframes blink { 50% { opacity: 0; } }
.flow-tools { list-style: none; margin: auto 0 0; padding: 0; display: grid; gap: 7px; }
.flow-tools li { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); font: 13px var(--font-mono); color: var(--muted); transition: color 0.3s, border-color 0.3s, background 0.3s; }
.flow-tools li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--muted); transition: background 0.3s, border-color 0.3s, box-shadow 0.3s; }
.flow-tools li.on { color: #fff; border-color: rgba(89, 218, 206, 0.45); background: rgba(89, 218, 206, 0.07); }
.flow-tools li.on::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 10px var(--accent); }
.flow-result { position: relative; flex: 1; min-height: 300px; border-radius: 16px; overflow: hidden; cursor: zoom-in; }
.flow-result .frame { position: absolute; inset: 0; overflow: hidden; background: #000; opacity: 0; transition: opacity 0.35s ease; }
.flow-result .frame.on { opacity: 1; }
.flow-result .frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.flow-pick { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 26px; }
.flow-pick button { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); font: 500 13.5px var(--font-body); cursor: pointer; }
.flow-pick button:hover { color: #fff; }
.flow-pick button[aria-selected="true"] { color: #fff; border-color: var(--accent); background: rgba(89, 218, 206, 0.1); }
.flow-note { margin: 14px 0 0; text-align: center; font-size: 13px; color: var(--muted); }


/* Media */
.media { padding: clamp(80px, 12vh, 140px) 0; border-top: 1px solid var(--line); }
.media-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 18px; align-items: start; }
.media-side { display: grid; gap: 18px; }
.loop { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; background: #000; min-height: 100%; }
.loop video { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 9; }
.loop figcaption { position: absolute; left: 16px; bottom: 12px; font: 12px var(--font-mono); color: rgba(255, 255, 255, 0.75); }
.award-video { padding: 0; }
.award-text { margin-top: 16px; }
.media-more { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.x-card, .archive { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: var(--surface); }
.x-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.x-icons { display: flex; gap: 10px; flex: none; margin-top: 2px; }
.x-head svg { width: 24px; height: 24px; flex: none; }
.x-head strong { display: block; color: #fff; }
.x-head span { font-size: 15px; }
.x-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.archive h3 { margin-bottom: 4px; }
.archive ul { list-style: none; padding: 0; margin: 14px 0 16px; display: grid; gap: 2px; }
.archive li a { display: flex; justify-content: space-between; gap: 12px; padding: 8px 10px; border-radius: 8px; text-decoration: none; color: var(--fg); font-size: 15px; }
.archive li a:hover { background: var(--surface-2); }
.archive li a span:last-child { font: 12px var(--font-mono); color: var(--muted); }

/* Docs teaser */
.docs-teaser { padding: clamp(80px, 12vh, 140px) 0; background: linear-gradient(180deg, transparent, rgba(89, 218, 206, 0.04) 50%, transparent); }
.docs-jump { display: flex; gap: 10px; max-width: 760px; margin-bottom: 48px; }
.docs-jump input { flex: 1; min-width: 0; padding: 15px 20px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: #fff; font: 16px var(--font-body); outline: none; }
.docs-jump input:focus { border-color: var(--accent); }
.docs-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.docs-cols > div { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 2px; background: var(--bg-2); }
.docs-cols h3 { margin-bottom: 14px; display: flex; gap: 10px; align-items: baseline; }
.docs-cols h3 span { font: 500 13px var(--font-mono); color: var(--accent); }
.docs-cols a { text-decoration: none; color: rgba(223, 228, 247, 0.85); padding: 6px 0; border-bottom: 1px solid rgba(160, 175, 255, 0.07); }
.docs-cols a:hover { color: var(--accent); }

/* Download */
.download { position: relative; padding: clamp(50px, 8vh, 100px) 0 clamp(70px, 11vh, 130px); overflow: hidden; isolation: isolate; }
.download-bg { position: absolute; inset: 0; z-index: -1; opacity: 0.35; }
.download-bg img { width: 100%; height: 100%; object-fit: cover; }
.download-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--bg) 0%, rgba(4, 5, 12, 0.6) 35%, rgba(4, 5, 12, 0.85) 75%, var(--bg) 100%); }
.dl-grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 16px; margin-bottom: 26px; }
.dl-card { display: flex; flex-direction: column; gap: 10px; padding: 28px; border-radius: 20px; border: 1px solid var(--line); background: rgba(8, 10, 24, 0.72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); text-decoration: none; transition: transform 0.25s, border-color 0.25s; }
.dl-card:hover { transform: translateY(-4px); border-color: rgba(89, 218, 206, 0.5); }
.dl-card strong { font: 600 24px var(--font-head); color: #fff; }
.dl-card .muted { font-size: 15px; flex: 1; }
.dl-os { font: 500 12px var(--font-mono); color: var(--accent); text-transform: uppercase; letter-spacing: 0.14em; }
.dl-go { font-weight: 600; color: #fff; margin-top: 8px; }
.dl-main { background: linear-gradient(140deg, rgba(89, 218, 206, 0.16), rgba(138, 99, 210, 0.16)), rgba(8, 10, 24, 0.72); border-color: rgba(89, 218, 206, 0.35); }
.req { display: flex; flex-wrap: wrap; gap: 10px 28px; color: var(--muted); font-size: 15px; margin-bottom: 26px; }
.req strong { color: #fff; margin-right: 6px; }
.fold { border-top: 1px solid var(--line); padding: 16px 0; max-width: 900px; }
.fold summary { cursor: pointer; font-weight: 600; color: #fff; list-style: none; display: flex; justify-content: space-between; }
.fold summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: 1; }
.fold[open] summary::after { content: "−"; }
.fold ol, .fold p { color: rgba(223, 228, 247, 0.8); margin-top: 14px; font-size: 15.5px; }
.fold a { color: var(--accent); }
.archived { display: flex; flex-wrap: wrap; gap: 8px; }
.archived a { font: 13px var(--font-mono); padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--muted); }
.archived a:hover { color: #fff; }

/* Community */
.community { padding: clamp(80px, 12vh, 140px) 0; }
.comm-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 40px; }
.comm-grid .comm-discord { grid-column: span 2; }
.comm-card { display: flex; flex-direction: column; gap: 6px; padding: 22px 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); text-decoration: none; transition: border-color 0.2s, background 0.2s; }
.comm-card:hover { border-color: rgba(89, 218, 206, 0.45); background: var(--surface-2); }
.comm-card strong { font: 600 19px var(--font-head); color: #fff; }
.comm-card span { color: var(--muted); font-size: 15px; }
.comm-discord { background: linear-gradient(140deg, rgba(88, 101, 242, 0.25), rgba(88, 101, 242, 0.05)); border-color: rgba(88, 101, 242, 0.45); }
.comm-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.pulse, .contribute { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; background: var(--bg-2); }
.pulse h3, .contribute h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.contribute h3:not(:first-child) { margin-top: 26px; }
.contribute p { color: rgba(223, 228, 247, 0.8); font-size: 15.5px; }
.contribute a { color: var(--accent); }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #6ef0b0; box-shadow: 0 0 0 0 rgba(110, 240, 176, 0.6); animation: live 2s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 10px rgba(110, 240, 176, 0); } 100% { box-shadow: 0 0 0 0 rgba(110, 240, 176, 0); } }
.commits { list-style: none; padding: 0; margin: 0; display: grid; }
.commits a { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid rgba(160, 175, 255, 0.08); text-decoration: none; }
.commits li:last-child a { border-bottom: 0; }
.commit-msg { color: var(--fg); font-size: 15px; }
.commits a:hover .commit-msg { color: var(--accent); }
.commit-meta { flex: none; font: 12px var(--font-mono); color: var(--muted); padding-top: 3px; }
.bibtex { font: 12.5px/1.55 var(--font-mono); background: #070915; border: 1px solid var(--line); border-radius: 10px; padding: 14px; overflow-x: auto; color: #b9c2e8; margin: 0 0 12px; }

/* About */
.about { padding: clamp(60px, 10vh, 120px) 0 clamp(90px, 14vh, 160px); border-top: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 90px); }
.about h2 { margin-bottom: 22px; }
.about p { color: rgba(223, 228, 247, 0.82); }
.about a { color: var(--accent); }
.timeline { list-style: none; margin: 0; padding: 0 0 0 26px; border-left: 1px solid var(--line); }
.timeline li { position: relative; padding: 0 0 26px; }
.timeline li::before { content: ""; position: absolute; left: -31px; top: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); }
.timeline li:last-child::before { background: var(--accent); box-shadow: 0 0 16px var(--accent); }
.timeline time { font: 500 12px var(--font-mono); color: var(--accent); letter-spacing: 0.08em; }
.timeline strong { display: block; color: #fff; font-family: var(--font-head); margin: 2px 0 4px; }
.timeline p { margin: 0; color: var(--muted); font-size: 15px; }

/* Footer */
.footer { padding: 40px 0 50px; border-top: 1px solid var(--line); }
.footer-grid { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.footer .brand-word { font-size: 16px; }
.footer p { margin: 8px 0 0; font-size: 14px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer nav a { text-decoration: none; color: var(--muted); font-size: 14px; }
.footer nav a:hover { color: #fff; }

/* Search chip, live results and palette */
.search-chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--fg); cursor: pointer; }
.search-chip svg { width: 16px; height: 16px; }
.search-chip kbd { font: 11px var(--font-mono); color: var(--muted); }
.search-chip:hover { border-color: rgba(160, 175, 255, 0.4); }
.docs-jump { position: relative; flex-wrap: wrap; }
.docs-live { flex-basis: 100%; display: grid; gap: 6px; }
.docs-live:empty { display: none; }
.docs-live .docs-hit, .palette-results .docs-hit { display: block; padding: 11px 16px; border-radius: 12px; text-decoration: none; color: var(--fg); border: 1px solid var(--line); background: var(--bg-2); }
.docs-live .docs-hit:hover, .palette-results .docs-hit:hover { border-color: rgba(89, 218, 206, 0.45); }
.docs-hit-where { display: block; font: 500 12.5px var(--font-body); color: var(--accent); margin-bottom: 2px; }
.docs-hit-text { display: block; font-size: 14px; color: var(--muted); line-height: 1.45; }
.docs-hit mark { background: none; color: #fff; font-weight: 600; }
.docs-none { margin: 6px 4px; font-size: 14px; color: var(--muted); }
.palette { position: fixed; inset: 0; z-index: 300; display: grid; place-items: start center; padding-top: 12vh; background: rgba(2, 3, 8, 0.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.palette[hidden] { display: none; }
.palette-box { width: min(700px, calc(100% - 28px)); border-radius: 18px; border: 1px solid var(--line); background: #0a0c1b; box-shadow: 0 40px 120px rgba(0, 0, 0, 0.7); overflow: hidden; }
.palette-input { display: flex; align-items: center; gap: 12px; padding: 0 18px; border-bottom: 1px solid var(--line); }
.palette-input svg { width: 20px; height: 20px; color: var(--muted); flex: none; }
.palette-input input { flex: 1; min-width: 0; padding: 20px 0; border: 0; background: transparent; color: #fff; font: 18px var(--font-body); outline: none; }
.palette-input kbd { font: 11px var(--font-mono); color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px; }
.palette-results { max-height: 58vh; overflow-y: auto; padding: 10px; display: grid; gap: 6px; }

@media (max-width: 600px) {
    .search-chip kbd { display: none; }
}

/* Legal pages */
.legal { width: min(820px, calc(100% - 48px)); margin: 0 auto; padding: 130px 0 100px; }
.legal h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.05; margin-bottom: 18px; }
.legal h2 { font-size: 21px; margin: 40px 0 10px; }
.legal p { color: rgba(223, 228, 247, 0.85); }
.legal a { color: var(--accent); }
.legal-lang, .legal-date { color: var(--muted); font-size: 14px; }
.legal-summary { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 18px 22px; margin: 22px 0 6px; }
.legal-summary p { margin: 0; }
.legal-links { margin-top: 40px; }

/* Responsive */
@media (max-width: 1100px) {
    .nav-links { position: fixed; inset: 64px 12px auto; flex-direction: column; padding: 12px; border-radius: 18px; background: rgba(8, 10, 24, 0.96); border: 1px solid var(--line); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); opacity: 0; pointer-events: none; transform: translateY(-8px); transition: opacity 0.2s, transform 0.2s; }
    .nav-links a { padding: 12px 14px; font-size: 17px; }
    body.menu-open .nav-links { opacity: 1; pointer-events: auto; transform: none; }
    .nav-toggle { display: block; }
}
@media (max-width: 1100px) {
    .hero-pulse { display: none; }
}
@media (max-width: 1180px) {
    .scroll-hint { display: none; }
}
@media (max-width: 900px) {
    .journey { grid-template-columns: 1fr; }
    .journey-media { top: 70px; height: auto; z-index: 2; padding-top: 8px; background: linear-gradient(var(--bg) 85%, transparent); }
    .journey-frame { aspect-ratio: 16 / 9; }
    .journey-steps { padding: 4vh 0 8vh; }
    .step { min-height: 55vh; }
    .agents-head, .media-grid, .comm-split, .about-grid, .dl-grid, .docs-cols { grid-template-columns: minmax(0, 1fr); }
    .comm-grid { grid-template-columns: 1fr 1fr; }
    .flow { grid-template-columns: 1fr; gap: 40px; }
    .flow-step { min-height: 0; }
    .flow-step:not(:last-child)::after { top: auto; bottom: -40px; right: 50%; width: 2px; height: 40px; background: linear-gradient(180deg, rgba(89, 218, 206, 0.1), var(--accent)); }
    .flow-step:not(:last-child)::before { display: none; }
}
@media (max-width: 600px) {
    body { font-size: 16px; }
    .wrap { width: calc(100% - 32px); }
    .gh-chip, .nav-actions .btn-small { display: none; }
    .hero-caption { display: none; }
    .scroll-hint { display: block; }
    .hero .eyebrow { line-height: 1.5; }
    .comm-grid { grid-template-columns: 1fr; }
    .comm-grid .comm-discord { grid-column: auto; }
    .docs-jump { flex-direction: column; }
    .hero-cta .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
    .hero-video, .live-dot, .scroll-hint span { animation: none; }
    .hero-pulse { transition: none; }
    html { scroll-behavior: auto; }
}

/* Documentation page */
.docs-page { --wrap: 1440px; }
.docs-shell { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); width: min(var(--wrap), calc(100% - 48px)); margin: 0 auto; padding-top: 96px; }
.docs-side { position: sticky; top: 86px; align-self: start; height: calc(100vh - 100px); overflow-y: auto; padding: 8px 6px 40px 0; scrollbar-width: thin; }
.docs-side .docs-search { margin-bottom: 26px; }
.docs-main { min-width: 0; max-width: 820px; padding-bottom: 120px; }
.docs-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 28px; padding-bottom: 14px; border-bottom: 1px solid var(--line); font: 12px var(--font-mono); color: var(--muted); }
.docs-head .crumb { text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent); }
.docs-meta { display: flex; gap: 16px; }
.docs-meta a { color: var(--muted); text-decoration: none; }
.docs-meta a:hover { color: #fff; }
.docs-toggle { display: none; }
@media (max-width: 900px) {
    .docs-shell { grid-template-columns: 1fr; }
    .docs-side { position: fixed; inset: 64px 0 0 0; z-index: 90; height: auto; background: rgba(4, 5, 12, 0.97); padding: 20px; transform: translateX(-100%); transition: transform 0.25s; }
    body.docs-nav-open .docs-side { transform: none; }
    .docs-toggle { display: inline-flex; }
}
