@font-face {
    font-family: Geist;
    src: url("/fonts/geist-sans-400.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: Geist;
    src: url("/fonts/geist-sans-500.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: Geist;
    src: url("/fonts/geist-sans-600.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

:root {
    color-scheme: dark;
    --bg: #000000;
    --surface: #181818;
    --surface-2: #1f1f1f;
    --surface-3: #272727;
    --line: #313131;
    --line-hover: #4a4a4a;
    --warm: #131209;
    --text: #ffffff;
    --muted: #9b9b9b;
    --ease: cubic-bezier(0.32, 0.72, 0, 1);
    --dur-fast: 150ms;
    --dur-slow: 700ms;
    --nav-h: 88px;
    --edge: inset 0 1px 0 rgb(255 255 255 / 0.06);

    --space-1: 4px;
    --space-2: 8px;
    --space-3: 16px;
    --space-4: 24px;
    --space-5: 32px;
    --space-6: 48px;
    --space-7: 64px;
    --space-8: 96px;

    --risk-low-bg: var(--surface-3);
    --risk-low-fg: var(--muted);
    --risk-med-bg: #2a2a12;
    --risk-med-fg: #d9c26a;
    --risk-high-bg: #3a2a12;
    --risk-high-fg: #f0c48a;
    --risk-critical-bg: #3a1414;
    --risk-critical-fg: #f08a8a;

    --fs-hero: clamp(2.25rem, 1.05rem + 4.2vw, 3.75rem);
    --fs-tagline: clamp(2.25rem, 1.3rem + 3.3vw, 3rem);
    --fs-h2: clamp(1.875rem, 1.55rem + 1.1vw, 2.25rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Geist, ui-sans-serif, system-ui, sans-serif;
    font-size: 16px;
    line-height: 24px;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
pre, code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip {
    position: absolute;
    left: 16px;
    top: -48px;
    z-index: 80;
    padding: 8px 12px;
    background: var(--surface-3);
    border-radius: 8px;
}
.skip:focus { top: 16px; }

.wrap {
    width: min(1120px, calc(100% - 48px));
    margin: 0 auto;
    min-width: 0;
}

.island {
    position: sticky;
    top: 24px;
    z-index: 40;
    display: flex;
    justify-content: center;
    margin: 24px 16px 0;
}
.island-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    width: max-content;
    max-width: calc(100vw - 32px);
    padding: 8px 8px 8px 16px;
    background: rgb(24 24 24 / 0.8);
    backdrop-filter: blur(24px);
    border: 1px solid var(--line);
    border-radius: 999px;
}
.brand {
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
}
.toc {
    display: flex;
    gap: 4px;
}
.toc a {
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    padding: 8px 12px;
    border-radius: 999px;
    transition: color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.toc a:hover { color: var(--text); background: var(--surface-3); }
a:focus-visible,
button:focus-visible,
summary:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-login {
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
    padding: 8px 12px;
    transition: color var(--dur-fast) var(--ease);
}
.nav-login:hover { color: var(--text); }

.cta-text-short { display: none; }

.burger {
    display: none;
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 999px;
}
.burger span {
    position: absolute;
    left: 12px;
    right: 12px;
    height: 2px;
    background: var(--text);
    transition: transform var(--dur-slow) var(--ease), opacity var(--dur-slow) var(--ease), top var(--dur-slow) var(--ease);
}
.burger span:nth-child(1) { top: 14px; }
.burger span:nth-child(2) { top: 19px; }
.burger span:nth-child(3) { top: 24px; }
body.nav-open .burger span:nth-child(1) { top: 19px; transform: rotate(45deg); }
body.nav-open .burger span:nth-child(2) { opacity: 0; }
body.nav-open .burger span:nth-child(3) { top: 19px; transform: rotate(-45deg); }

.overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 30;
    background: rgb(0 0 0 / 0.8);
    backdrop-filter: blur(24px);
    padding: 96px 24px 40px;
}
.overlay a {
    display: block;
    font-size: 30px;
    line-height: 36px;
    font-weight: 600;
    padding: 12px 0;
    opacity: 0;
    transform: translateY(48px);
    transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
}
body.nav-open { overflow: hidden; }
body.nav-open .overlay { display: block; }
body.nav-open .overlay a { opacity: 1; transform: none; }
body.nav-open .overlay a:nth-child(1) { transition-delay: 100ms; }
body.nav-open .overlay a:nth-child(2) { transition-delay: 150ms; }
body.nav-open .overlay a:nth-child(3) { transition-delay: 200ms; }
body.nav-open .overlay a:nth-child(4) { transition-delay: 250ms; }
body.nav-open .overlay a:nth-child(5) { transition-delay: 300ms; }
body.nav-open .overlay a:nth-child(6) { transition-delay: 350ms; }
body.nav-open .overlay a:nth-child(7) { transition-delay: 400ms; }
body.nav-open .overlay a:nth-child(8) { transition-delay: 450ms; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 12px;
    background: #ffffff;
    color: #000000;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    border-radius: 8px;
    transition: transform var(--dur-fast) var(--ease), filter var(--dur-fast) var(--ease);
}
.btn:hover { filter: brightness(0.92); }
.btn:active { transform: scale(0.98); }
.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-2);
    transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.btn-ghost:hover { background: var(--surface-3); border-color: var(--line-hover); }
.btn-ghost:active { transform: scale(0.98); }
.btn-sm { font-size: 14px; min-height: 36px; }

.hero-stage {
    position: relative;
    isolation: isolate;
}
.hero-wash {
    position: absolute;
    inset: -9rem 0 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    opacity: calc(1 - var(--hero-sink, 0));
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 58%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 0%, #000 58%, transparent 100%);
}
.hero-wash-glow {
    position: absolute;
    inset: -12%;
    background:
        radial-gradient(ellipse 90% 75% at 18% -4%, rgb(104 118 148 / 0.55) 0%, transparent 58%),
        radial-gradient(ellipse 50% 42% at 88% 52%, rgb(78 60 30 / 0.1) 0%, transparent 50%),
        linear-gradient(180deg, #2a303c 0%, #1a1e26 26%, #101218 48%, #070809 70%, #000000 88%, #000000 100%);
    animation: hero-breathe 16s var(--ease) infinite alternate;
    animation-play-state: paused;
}
.hero-wash.is-visible .hero-wash-glow { animation-play-state: running; }
.hero-stage > .hero,
.hero-stage > .tagline { position: relative; z-index: 1; }
@keyframes hero-breathe {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(0, 20px, 0) scale(1.05); }
}
@supports (animation-timeline: view()) {
    .hero-wash {
        animation: hero-sink linear both;
        animation-timeline: view();
        animation-range: exit 0% exit 90%;
        opacity: 1;
    }
    @keyframes hero-sink {
        from { opacity: 1; }
        to { opacity: 0; }
    }
}

.hero { padding: 80px 0 64px; }
.hero-copy { max-width: 680px; }
.hero h1 {
    margin: 0;
    font-size: var(--fs-hero);
    line-height: 1;
    font-weight: 600;
    letter-spacing: -0.03em;
    text-wrap: balance;
    background: linear-gradient(90deg, #ffffff 0%, #d4d4d4 55%, #bdbdbd 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.lede {
    max-width: 680px;
    margin: 24px 0 0;
    font-size: 18px;
    line-height: 28px;
    color: var(--muted);
    text-wrap: pretty;
}
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 32px; }
.hero-cta + .proof { margin-top: 12px; display: block; }
.proof {
    font-size: 14px;
    line-height: 20px;
    color: var(--muted);
}
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
    margin-top: 48px;
    min-width: 0;
}
.card {
    min-width: 0;
    max-width: 100%;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 16px;
    box-shadow: var(--edge);
}
.card h2,
.card h3 {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
}
.inner {
    min-width: 0;
    max-width: 100%;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px;
}
.scope-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
}
.scope-row:last-of-type { border-bottom: 0; }
.badge {
    font-size: 12px;
    line-height: 16px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 8px;
    background: var(--risk-low-bg);
    color: var(--risk-low-fg);
}
.badge-med { background: var(--risk-med-bg); color: var(--risk-med-fg); }
.badge-high { background: var(--risk-high-bg); color: var(--risk-high-fg); }
.badge-critical { background: var(--risk-critical-bg); color: var(--risk-critical-fg); }
.prompt-scene {
    margin: 0 0 14px;
    font-size: 15px;
    line-height: 22px;
    color: var(--text);
    text-wrap: pretty;
}
.prompt-who {
    margin: 0;
    font-weight: 600;
}
.prompt-ask {
    margin: 14px 0 0;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
}
.prompt-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}
.code {
    margin: 0;
    max-width: 100%;
    font-size: 12px;
    line-height: 16px;
    color: #d4d4d4;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: pre-wrap;
}

.demo-timer {
    height: 4px;
    border-radius: 999px;
    overflow: hidden;
    background: var(--surface-3);
    margin: 16px 0 8px;
}
.demo-timer-bar {
    display: block;
    height: 100%;
    width: 100%;
    background: #ffffff;
    transform-origin: left;
    animation-name: demo-shrink;
    animation-duration: var(--demo-ttl, 60s);
    animation-timing-function: linear;
    animation-fill-mode: forwards;
}
@keyframes demo-shrink {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}

.tagline {
    padding: 96px 0;
}
.tagline p {
    margin: 0;
    max-width: 680px;
    font-size: var(--fs-tagline);
    line-height: 1;
    font-weight: 600;
    letter-spacing: -0.03em;
    text-wrap: balance;
}
.tagline .word {
    color: rgb(255 255 255 / 0.28);
    transition: color var(--dur-slow) var(--ease);
}
.tagline .word.is-on { color: #ffffff; }

.section { padding: 80px 0; scroll-margin-top: var(--nav-h); content-visibility: auto; contain-intrinsic-size: 800px; }
.section h2 {
    margin: 0 0 16px;
    max-width: 680px;
    font-size: var(--fs-h2);
    line-height: 1.1;
    font-weight: 600;
    letter-spacing: -0.03em;
    text-wrap: balance;
}
.subhead {
    margin: 48px 0 16px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
    scroll-margin-top: var(--nav-h);
}
.section .intro {
    max-width: 680px;
    margin: 0 0 40px;
    color: var(--muted);
    text-wrap: pretty;
}

.grid-4, .grid-3, .grid-2 {
    display: grid;
    gap: var(--space-3);
    min-width: 0;
}
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.tile {
    min-width: 0;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--edge);
    transition: border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.tile:hover { border-color: var(--line-hover); transform: translateY(-1px); }
.tile .icon {
    width: 24px;
    height: 24px;
    margin-bottom: 16px;
    color: var(--text);
}
.tile h3 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 28px;
    font-weight: 600;
}
.tile p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 20px;
    text-wrap: pretty;
}
.step-n {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    margin-bottom: 16px;
    border-radius: 999px;
    background: var(--surface-3);
    font-size: 14px;
    font-weight: 600;
}

.list {
    margin: 0;
    padding: 0;
    list-style: none;
}
.list li {
    display: flex;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
}
.list li:last-child { border-bottom: 0; }
.list strong { color: var(--text); font-weight: 600; display: block; margin-bottom: 4px; }
.check {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    color: #ffffff;
}

.jwk {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0;
}
.kv {
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
}
.kv b { font-weight: 600; margin-right: 8px; color: var(--muted); }

.copy-row { margin-top: 12px; }

.docs a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--edge);
    transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.docs a:hover { background: var(--surface-2); border-color: var(--line-hover); }
.docs span { color: var(--muted); font-size: 14px; }

.tabs { }
.tablist {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}
.tab {
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
    transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.tab:hover { color: var(--text); border-color: var(--line-hover); }
.tab[aria-selected="true"] {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
}
.tab-group[hidden] { display: none; }
.tab-heading {
    margin: 0 0 16px;
    font-size: 20px;
    line-height: 28px;
    font-weight: 600;
}

.faq details {
    border-bottom: 1px solid var(--line);
    padding: 16px 0;
}
.faq summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 18px;
    line-height: 28px;
}
.faq summary:focus-visible { outline-offset: 4px; }
.faq p {
    margin: 12px 0 0;
    color: var(--muted);
    text-wrap: pretty;
}

.final {
    padding: 96px 0;
    text-align: left;
}
.final h2 {
    max-width: 680px;
    margin: 0;
    font-size: var(--fs-tagline);
    line-height: 1;
    font-weight: 600;
    text-wrap: balance;
}
.final .lede { margin-bottom: 32px; }

.foot {
    border-top: 1px solid var(--line);
    padding: 40px 0 64px;
    color: var(--muted);
    font-size: 14px;
    line-height: 20px;
}
.foot-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
}
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.foot a:hover { color: var(--text); }

.js [data-reveal] {
    opacity: 0;
    transform: translateY(64px);
    transition: opacity 800ms var(--ease), transform 800ms var(--ease);
}
.js [data-reveal].is-in {
    opacity: 1;
    transform: none;
}

@media (max-width: 960px) {
    .toc { display: none; }
    .burger { display: block; }
    .nav-login { display: none; }
    .cta-text-full { display: none; }
    .cta-text-short { display: inline; }
    .grid-4, .grid-3 { grid-template-columns: 1fr 1fr; }
    .hero-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: var(--fs-hero); }
}
@media (max-width: 640px) {
    .wrap { width: calc(100% - 32px); }
    .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .hero { padding: 48px 0 40px; }
    .section { padding: 64px 0; }
    .island { top: 16px; margin-top: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        transition: none !important;
        animation: none !important;
    }
    [data-reveal], .overlay a {
        opacity: 1;
        filter: none;
        transform: none;
    }
    .tagline .word { color: #ffffff; }
    .hero-wash { animation: none; opacity: 0.4; }
    .hero-wash-glow { animation: none; }
    .demo-timer { display: none; }
    .tile:hover { transform: none; }
}
