@font-face {
    font-family: "Geist"; font-style: normal; font-weight: 400 800; font-display: swap;
    src: url("fonts/geist-latin.woff2") format("woff2");
}
@font-face {
    font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 600; font-display: swap;
    src: url("fonts/jetbrains-mono-latin.woff2") format("woff2");
}

:root {
    --bg: #08080a;
    --bg-2: #0f0f12;
    --bg-3: #16161a;
    --line: rgba(255, 255, 255, 0.08);
    --line-2: rgba(255, 255, 255, 0.14);
    --text: #ededf0;
    --text-2: #a1a1aa;
    --text-3: #6b6b76;
    --r-lg: 24px;
    --r: 16px;
    --r-sm: 12px;
    --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --wrap: 1120px;
    --gutter: clamp(1.25rem, 4vw, 2rem);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; -webkit-text-size-adjust: 100%; }
body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.6;
    min-height: 100vh;
    display: flex; flex-direction: column;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
main { flex: 1 0 auto; width: 100%; }
body::before {
    content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background: radial-gradient(ellipse 70% 45% at 50% -12%, rgba(255, 255, 255, 0.08), transparent 70%);
}
body::after {
    content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background: var(--grain);
    background-size: 200px 200px;
    opacity: 0.035;
}
::selection { background: rgba(255, 255, 255, 0.9); color: #08080a; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #232329; border-radius: 5px; border: 2px solid var(--bg); }
* { scrollbar-width: thin; scrollbar-color: #232329 var(--bg); }
a { color: inherit; text-decoration: none; }
img, canvas { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
svg { display: block; }
.wrap { width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    height: 2.5rem; padding: 0 1.1rem;
    border-radius: 999px;
    font-size: 0.9rem; font-weight: 500;
    white-space: nowrap;
    border: 1px solid transparent;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn:active { transform: scale(0.98); }
.btn-sm { height: 2.1rem; padding: 0 0.9rem; font-size: 0.84rem; }
.btn-sm svg { width: 14px; height: 14px; }
.btn-light { color: #08080a; background: #ededf0; }
.btn-light:hover { background: #fff; }
.btn-ghost { color: var(--text); background: rgba(255, 255, 255, 0.05); border-color: var(--line-2); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.09); }
.btn.copied { color: #15803d; }
.btn-ghost.copied { color: #4ade80; }
.icon-btn { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 8px; color: var(--text-2); transition: color 0.2s ease; }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:hover { color: var(--text); }

.site-head { position: fixed; top: 0; left: 0; right: 0; z-index: 50; padding-top: 0.75rem; pointer-events: none; }
.site-head > .wrap { pointer-events: auto; }
.bar {
    display: flex; align-items: center; gap: 1rem;
    height: 3.25rem; padding: 0 0.45rem 0 0.8rem;
    border-radius: 999px;
    background: rgba(18, 18, 22, 0.6);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 10px 30px -12px rgba(0, 0, 0, 0.7);
}
.brand { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 700; font-size: 1rem; letter-spacing: -0.02em; }
.brand img { width: 28px; height: 28px; }
.nav-links { position: relative; display: flex; align-items: center; gap: 0.1rem; margin-inline: auto; }
.nav-links a { position: relative; z-index: 1; padding: 0.4rem 0.8rem; border-radius: 999px; font-size: 0.86rem; font-weight: 500; color: var(--text-2); transition: color 0.2s ease; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-pill {
    position: absolute; left: 0; top: 50%; z-index: 0;
    width: 0; height: 2rem; margin-top: -1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    opacity: 0;
    pointer-events: none;
}
.menu-btn { display: none; width: 2.4rem; height: 2.4rem; position: relative; border-radius: 999px; margin-left: auto; }
.menu-btn span { position: absolute; left: 50%; width: 16px; height: 1.5px; margin-left: -8px; border-radius: 2px; background: var(--text); transition: transform 0.35s var(--ease-out); }
.menu-btn span:first-child { top: calc(50% - 3.5px); }
.menu-btn span:last-child { top: calc(50% + 2.5px); }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }
.mobile-menu {
    display: grid; gap: 0.1rem;
    margin-top: 0.5rem; padding: 0.5rem;
    border-radius: 20px;
    background: #121216;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 20px 40px -12px rgba(0, 0, 0, 0.8);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu > a { padding: 0.75rem 0.85rem; border-radius: 12px; font-size: 1rem; font-weight: 500; color: var(--text-2); }
.mobile-menu > a:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.mobile-menu .btn { margin-top: 0.35rem; height: 2.75rem; }

.display { font-size: clamp(3.4rem, 8vw, 6.25rem); font-weight: 600; line-height: 0.95; letter-spacing: -0.055em; }
.display .line { display: block; overflow: hidden; padding-bottom: 0.14em; margin-bottom: -0.14em; }
.display .line + .line { color: var(--text-3); }
.display .w { display: inline-block; padding-bottom: 0.06em; }
.lede { max-width: 38rem; font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 500; line-height: 1.2; letter-spacing: -0.03em; color: var(--text-3); text-wrap: balance; }
.lede strong { font-weight: 500; color: var(--text); }
.sub { max-width: 30rem; color: var(--text-2); font-size: 1.05rem; line-height: 1.55; text-wrap: pretty; }

.hero { padding-top: clamp(7.5rem, 15vh, 9.5rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: center; gap: clamp(2rem, 5vw, 4rem); }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.6rem; }

.loader {
    display: flex; align-items: center; gap: 0.6rem;
    width: min(34rem, 100%); min-height: 2.9rem;
    padding: 0.35rem 0.35rem 0.35rem 0.95rem;
    border-radius: var(--r-sm);
    background: var(--bg-2);
    box-shadow: inset 0 0 0 1px var(--line);
    transition: box-shadow 0.25s ease;
}
.loader:hover { box-shadow: inset 0 0 0 1px var(--line-2); }
.loader.flash { box-shadow: inset 0 0 0 1px rgba(74, 222, 128, 0.5); }
.loader code { flex: 1; min-width: 0; font-family: var(--mono); font-size: 0.76rem; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tk-fn { color: var(--text); }
.tk-str { color: #fff; }
.copy-btn {
    flex-shrink: 0;
    display: inline-flex; align-items: center; gap: 0.4rem;
    height: 2.15rem; padding: 0 0.8rem;
    border-radius: 9px;
    font-size: 0.8rem; font-weight: 500; color: var(--text);
    background: var(--bg-3);
    box-shadow: inset 0 0 0 1px var(--line);
    transition: background 0.2s ease, color 0.2s ease;
}
.copy-btn:hover { background: #1d1d22; }
.copy-btn.copied { color: #4ade80; }
.copy-icon { position: relative; width: 14px; height: 14px; }
.copy-icon svg { position: absolute; inset: 0; width: 14px; height: 14px; transition: opacity 0.2s ease, transform 0.3s var(--ease-out); }
.ic-check { opacity: 0; transform: scale(0.5); }
.copied .ic-copy { opacity: 0; transform: scale(0.5); }
.copied .ic-check { opacity: 1; transform: none; }

.stage {
    position: relative; isolation: isolate; overflow: hidden;
    display: grid; place-items: center;
    padding: clamp(1rem, 3vw, 2rem);
    border-radius: var(--r-lg);
    background: var(--bg-2);
    box-shadow: inset 0 0 0 1px var(--line);
}
.stage::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 24px 24px;
    background-position: center;
    -webkit-mask-image: radial-gradient(closest-side, #000 40%, transparent);
    mask-image: radial-gradient(closest-side, #000 40%, transparent);
}
.emblem { width: min(100%, 440px); aspect-ratio: 1; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.el-tile {
    position: absolute; top: 1rem; left: 1rem; z-index: 1;
    display: grid; justify-items: start;
    min-width: 4.4rem; padding: 0.55rem 0.7rem 0.6rem;
    border-radius: var(--r-sm);
    background: rgba(255, 255, 255, 0.02);
    box-shadow: inset 0 0 0 1px var(--line);
    font-family: var(--mono);
    line-height: 1.25;
    pointer-events: none;
}
.el-num { font-size: 0.66rem; color: var(--text-3); }
.el-sym { font-family: var(--font); font-size: 1.55rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; color: var(--text); }
.el-name { font-size: 0.66rem; color: var(--text-2); }
.el-mass { font-size: 0.62rem; color: var(--text-3); }

.sec { padding-top: clamp(5rem, 11vh, 8rem); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.25rem 3rem; flex-wrap: wrap; margin-bottom: 2.25rem; }

.feature {
    display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center;
    gap: clamp(1.25rem, 4vw, 3rem);
    padding: 0.75rem;
    border-radius: var(--r-lg);
    background: var(--bg-2);
    box-shadow: inset 0 0 0 1px var(--line);
    transition: box-shadow 0.25s ease;
}
.feature:hover { box-shadow: inset 0 0 0 1px var(--line-2); }
.feature-media { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: var(--bg-3); }
.feature-media::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); pointer-events: none; }
.feature-media::before {
    content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.16) 50%, transparent 65%);
    transform: translateX(-130%);
}
.feature:hover .feature-media::before { transform: translateX(130%); transition: transform 0.9s var(--ease-out); }
.feature-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease-out); }
.feature:hover .feature-media img { transform: scale(1.03); }
.feature-body { display: flex; flex-direction: column; align-items: flex-start; padding: 1rem 1.75rem 1rem 0; }
.chip { padding: 0.2rem 0.55rem; border-radius: 8px; font-family: var(--mono); font-size: 0.72rem; color: var(--text-2); background: var(--bg-3); box-shadow: inset 0 0 0 1px var(--line); }
.feature-title { margin-top: 1rem; font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 600; line-height: 1.05; letter-spacing: -0.045em; }
.feature-meta { margin-top: 0.4rem; font-size: 0.95rem; color: var(--text-2); }
.feature .btn { margin-top: 1.5rem; }
.feature:hover .btn-ghost { background: rgba(255, 255, 255, 0.09); }

.request {
    display: flex; align-items: center; gap: 1rem;
    margin-top: 0.75rem; padding: 1rem 1.25rem;
    border-radius: var(--r-lg);
    border: 1px dashed rgba(255, 255, 255, 0.16);
    transition: border-color 0.25s ease, background 0.25s ease;
}
.request:hover { border-color: rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.02); }
.request-plus { display: grid; place-items: center; flex-shrink: 0; width: 2.5rem; height: 2.5rem; border-radius: var(--r-sm); background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); color: var(--text-2); transition: color 0.2s ease; }
.request-plus svg { width: 18px; height: 18px; transition: transform 0.4s var(--ease-out); }
.request:hover .request-plus { color: var(--text); }
.request:hover .request-plus svg { transform: rotate(90deg); }
.request-text { display: grid; min-width: 0; }
.request-text strong { font-size: 0.95rem; font-weight: 600; letter-spacing: -0.01em; }
.request-text span { font-size: 0.86rem; color: var(--text-2); }
.request-go { margin-left: auto; flex-shrink: 0; color: var(--text-3); transition: color 0.2s ease, transform 0.3s var(--ease-out); }
.request-go svg { width: 16px; height: 16px; }
.request:hover .request-go { color: var(--text); transform: translate(2px, -2px); }

.steps {
    list-style: none;
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    border-radius: var(--r-lg);
    background: var(--bg-2);
    box-shadow: inset 0 0 0 1px var(--line);
    overflow: hidden;
}
.step { padding: 1.9rem 2rem 2rem; }
.step + .step { border-left: 1px solid var(--line); }
.step-n { display: inline-block; margin-bottom: 1.5rem; font-family: var(--mono); font-size: 0.74rem; color: var(--text-3); }
.step h3 { margin-bottom: 0.35rem; font-size: 1.05rem; font-weight: 600; letter-spacing: -0.02em; }
.step p { font-size: 0.92rem; color: var(--text-2); text-wrap: pretty; }

.cta {
    position: relative; isolation: isolate; overflow: hidden;
    display: flex; flex-direction: column; align-items: flex-start; gap: 1.75rem;
    padding: clamp(2.2rem, 5vw, 3.5rem);
    border-radius: var(--r-lg);
    background: var(--bg-2);
    box-shadow: inset 0 0 0 1px var(--line);
}
.cta::before {
    content: ""; position: absolute; top: 50%; right: clamp(1.5rem, 5vw, 4rem); z-index: -1;
    width: clamp(9rem, 15vw, 11.5rem); aspect-ratio: 1;
    margin-top: calc(clamp(9rem, 15vw, 11.5rem) / -2);
    background: url("logo-3d.svg") center / contain no-repeat;
    opacity: 0.9;
    translate: calc(var(--cx, 0) * 1px) calc(var(--cy, 0) * 1px);
    transition: translate 0.8s var(--ease-out);
}
.cta .lede { max-width: 30rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.sec-cta { padding-bottom: clamp(4rem, 9vh, 6rem); }

.lost { display: flex; align-items: center; }
.lost .hero { width: 100%; padding-bottom: clamp(1rem, 4vh, 3rem); }

.foot { flex-shrink: 0; border-top: 1px solid var(--line); padding: 1.75rem 0; margin-top: clamp(2rem, 5vh, 4rem); }
.foot-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.foot p { font-size: 0.84rem; color: var(--text-3); }
.foot-links { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.foot-links a { font-size: 0.84rem; color: var(--text-2); transition: color 0.2s ease; }
.foot-links a:hover { color: var(--text); }
.foot-el { padding-left: 1rem; border-left: 1px solid var(--line); font-family: var(--mono); font-size: 0.74rem; color: var(--text-3); }

.reveal [data-reveal],
.reveal [data-stagger] > *,
.intro .display .w,
.intro [data-hero],
.intro .stage { opacity: 0; }

.failsafe:not(.motion) [data-reveal],
.failsafe:not(.motion) [data-stagger] > *,
.failsafe:not(.motion) .display .w,
.failsafe:not(.motion) [data-hero],
.failsafe:not(.motion) .stage,
.static [data-reveal],
.static [data-stagger] > *,
.static .display .w,
.static [data-hero],
.static .stage { opacity: 1 !important; }

@keyframes rise {
    from { opacity: 0; transform: translateY(14px); }
}
@media (max-width: 768px) {
    .reveal .display .line,
    .reveal [data-hero],
    .reveal .hero .stage { animation: rise 0.7s var(--ease-out) both; }
    .reveal .display .line + .line { animation-delay: 0.08s; }
    .reveal .hero .sub { animation-delay: 0.16s; }
    .reveal .hero .loader { animation-delay: 0.22s; }
    .reveal .hero .hero-ctas { animation-delay: 0.28s; }
    .reveal .hero .stage { animation-delay: 0.34s; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
}

@media (max-width: 960px) {
    .hero-grid { grid-template-columns: minmax(0, 1fr); }
    .emblem { width: min(88%, 380px); }
    .lost .emblem { width: min(80%, 320px); }
    .feature { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .feature-body { padding: 1.4rem 0.75rem 0.85rem; }
    .steps { grid-template-columns: minmax(0, 1fr); }
    .step, .step + .step { padding: 1.5rem; border-left: 0; }
    .step + .step { border-top: 1px solid var(--line); }
    .step-n { margin-bottom: 0.9rem; }
    .cta .lede { max-width: calc(100% - 11.5rem); }
}
@media (max-width: 768px) {
    .nav-links, .nav-cta { display: none; }
    .menu-btn { display: block; }
    .bar { background: rgba(18, 18, 22, 0.94); -webkit-backdrop-filter: none; backdrop-filter: none; }
    .hero { padding-top: 6.5rem; }
    .hero-ctas { width: 100%; }
    .hero-ctas .btn { flex: 1 1 10rem; height: 2.75rem; }
    .loader { padding: 0.55rem 0.4rem 0.55rem 0.85rem; }
    .loader code { font-size: 0.72rem; line-height: 1.5; white-space: normal; word-break: break-all; }
    .el-tile { top: 0.75rem; left: 0.75rem; min-width: 3.8rem; padding: 0.45rem 0.6rem 0.5rem; }
    .el-sym { font-size: 1.3rem; }
    .feature .btn { width: 100%; height: 2.75rem; }
    .cta { padding-top: 7.5rem; }
    .cta .lede { max-width: none; }
    .cta::before { top: 1.25rem; right: 1.25rem; width: 5.5rem; margin-top: 0; opacity: 0.9; -webkit-mask-image: none; mask-image: none; translate: none; }
    .cta-actions { width: 100%; }
    .cta-actions .btn { flex: 1 1 10rem; height: 2.75rem; }
}
@media (max-width: 600px) {
    .foot-inner { flex-direction: column; text-align: center; }
    .foot-links { justify-content: center; }
}
