@font-face {
    font-family: "Polysans Bulky";
    src: url("assets/polysans-bulky.woff2") format("woff2");
    font-weight: 400 900;
    font-style: normal;
    font-display: swap;
}

/* dawn — pure black and white: stark type on true black, hairlines
   instead of borders, a grain over everything and no colour accent at all. */

:root {
    --main-l: 0.9000;
    --main-c: 0.0000;
    --main-h: 0.00;
    --main: oklch(var(--main-l) var(--main-c) var(--main-h));
    --premium-l: 0.5600;
    --premium-c: 0.0000;
    --premium-h: 0.00;
    --premium: oklch(var(--premium-l) var(--premium-c) var(--premium-h));

    --bone: #ffffff;
    --ash: #9a9a9a;
    --ember: #c4c4c4;
    --oxblood: #6b6b6b;
    --sage: #bdbdbd;
    --line: rgba(255, 255, 255, 0.1);
    --line-2: rgba(255, 255, 255, 0.18);

    --background: #000000;
    --foreground: #ffffff;
    --surface: #111111;

    --font-display: "Polysans Bulky", "Poppins", Arial, sans-serif;
    --font-serif: "Cormorant Garamond", Georgia, serif;
    --font-body: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --mono: ui-monospace, "Cascadia Code", "JetBrains Mono", Menlo, Consolas, monospace;

    --wrap: 75rem;
    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    color-scheme: dark;
    scroll-behavior: smooth;
    scroll-padding-top: 6rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    border: 2px solid transparent;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.18);
    background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.34);
    background-clip: content-box;
}

html,
body {
    max-width: 100vw;
    /* `clip` rather than `hidden`: it still stops sideways overflow, but it does
       not turn the page into a scroll container, so the docs rail can stick. */
    overflow-x: clip;
}

body {
    min-height: 100vh;
    background: var(--background);
    color: var(--foreground);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-synthesis: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    user-select: none;
}

/* Text is not selectable as UI chrome, but fields and code stay copyable. */
input,
textarea,
select,
pre,
code {
    -webkit-user-select: text;
    user-select: text;
}

/* A hairline of dried oxblood along the top, then the vignette that keeps the
   page edges from feeling lit. */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 9998;
    pointer-events: none;
    background-image:
        linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.32) 30%, rgba(255, 255, 255, 0.6) 50%, rgba(255, 255, 255, 0.32) 70%, transparent 100%),
        radial-gradient(130% 92% at 50% 0%, transparent 42%, rgba(0, 0, 0, 0.55) 100%);
    background-repeat: no-repeat, no-repeat;
    background-size: 100% 1px, 100% 100%;
    background-position: top center, center;
}

/* Bone dust: a faint grain over the whole page. */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='grain'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23grain)'/%3E%3C/svg%3E");
}

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

::selection {
    color: var(--background);
    background: rgba(255, 255, 255, 0.85);
}

:focus-visible {
    outline: 1px solid oklch(var(--main-l) var(--main-c) var(--main-h) / 0.7);
    outline-offset: 3px;
}

code {
    font-family: var(--mono);
}

.sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.icon {
    width: 1.05rem;
    height: 1.05rem;
    display: block;
    flex-shrink: 0;
}

.icon-sm {
    width: 0.9rem;
    height: 0.9rem;
}

.icon-xs {
    width: 0.7rem;
    height: 0.7rem;
}

.skip-link {
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 10000;
    padding: 0.55rem 0.9rem;
    border-radius: 9999px;
    background: var(--bone);
    color: var(--background);
    font-size: 0.82rem;
    font-weight: 600;
    transform: translateY(-200%);
    transition: transform 0.2s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

/* ── brand ──────────────────────────────────────────────────────────────── */

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    flex-shrink: 0;
}

.brand-mark {
    display: block;
    width: 1.55rem;
    height: 1.55rem;
    object-fit: contain;
    filter: drop-shadow(0 0 14px rgba(255, 255, 255, 0.12));
    transition: transform 0.4s var(--ease);
}

.brand:hover .brand-mark {
    transform: rotate(-12deg) scale(1.06);
}

.brand-name {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.005em;
    color: var(--foreground);
}

/* ── buttons ────────────────────────────────────────────────────────────── */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    height: 2.6rem;
    padding: 0 1.1rem;
    border: 1px solid transparent;
    border-radius: 9999px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    white-space: nowrap;
    cursor: pointer;
    transition:
        transform 0.18s ease,
        background-color 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        color 0.18s ease;
}

.btn-solid {
    color: #0a0a0a;
    background: linear-gradient(135deg, #ffffff 0%, #d4d4d4 100%);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow:
        inset 0 1px 2px oklch(var(--main-l) var(--main-c) var(--main-h) / 0.3),
        0 4px 12px oklch(var(--main-l) var(--main-c) var(--main-h) / 0.25);
}

.btn-solid:hover {
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    border-color: rgba(255, 255, 255, 0.85);
    transform: translateY(-2px);
    box-shadow:
        inset 0 1px 2px oklch(var(--main-l) var(--main-c) var(--main-h) / 0.4),
        0 8px 20px oklch(var(--main-l) var(--main-c) var(--main-h) / 0.35);
}

.btn-outline {
    color: oklch(from var(--foreground) l c h / 0.85);
    background: oklch(from var(--background) l c h / 0.08);
    border-color: oklch(from var(--foreground) l c h / 0.1);
}

.btn-outline:hover {
    color: var(--foreground);
    border-color: oklch(var(--main-l) var(--main-c) var(--main-h) / 0.38);
    background: oklch(var(--main-l) var(--main-c) var(--main-h) / 0.08);
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

.btn-lg {
    height: 3.125rem;
    padding: 0 1.3rem;
    font-size: 0.95rem;
}

.btn-small {
    height: 2.3rem;
    padding: 0 0.9rem;
    font-size: 0.78rem;
}

/* ── navigation ─────────────────────────────────────────────────────────── */

.nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 50;
    display: flex;
    justify-content: center;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s var(--ease);
}

.nav::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: oklch(from var(--background) l c h / 0.78);
    backdrop-filter: blur(20px) saturate(1.3);
    -webkit-backdrop-filter: blur(20px) saturate(1.3);
    opacity: 0;
    transition: opacity 0.3s var(--ease);
    pointer-events: none;
}

.nav.is-scrolled {
    border-bottom-color: var(--line);
}

.nav.is-scrolled::before {
    opacity: 1;
}

.nav-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 72rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 0.85rem max(1.5rem, env(safe-area-inset-left)) 0.85rem max(1.5rem, env(safe-area-inset-right));
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.35rem;
    margin-left: 1rem;
}

.nav-item {
    position: relative;
    padding: 0.25rem 0;
    font-size: 0.85rem;
    font-weight: 500;
    color: oklch(from var(--foreground) l c h / 0.55);
    white-space: nowrap;
    transition: color 0.2s ease;
}

.nav-item::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.12rem;
    height: 1px;
    background: currentColor;
    opacity: 0.7;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s var(--ease);
}

.nav-item:hover {
    color: var(--foreground);
}

.nav-item:hover::after {
    transform: scaleX(1);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-left: auto;
    padding-left: 0.9rem;
    border-left: 1px solid oklch(from var(--foreground) l c h / 0.12);
    flex-shrink: 0;
}

.nav-toggle {
    display: none;
    position: relative;
    width: 2.4rem;
    height: 2.4rem;
    border: 1px solid oklch(from var(--foreground) l c h / 0.14);
    border-radius: 9999px;
    background: transparent;
    color: var(--foreground);
    cursor: pointer;
}

.nav-toggle-bar {
    position: absolute;
    left: 50%;
    width: 1rem;
    height: 1px;
    background: currentColor;
    transform: translateX(-50%);
    transition: transform 0.25s var(--ease), opacity 0.2s ease;
}

.nav-toggle-bar:first-child {
    top: calc(50% - 3px);
}

.nav-toggle-bar:last-child {
    top: calc(50% + 3px);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:first-child {
    top: 50%;
    transform: translateX(-50%) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:last-child {
    top: 50%;
    transform: translateX(-50%) rotate(-45deg);
}

/* ── hero ───────────────────────────────────────────────────────────────── */

.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 9.5rem 1.5rem 2.5rem;
}

.hero-glow {
    position: absolute;
    z-index: -1;
    bottom: -45%;
    left: 50%;
    width: 130%;
    height: 110%;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at bottom,
            oklch(var(--main-l) var(--main-c) var(--main-h) / 0.16) 0%,
            oklch(var(--main-l) var(--main-c) var(--main-h) / 0.06) 45%,
            transparent 72%);
    filter: blur(90px);
    pointer-events: none;
    animation: glowDrift 20s ease-in-out infinite;
    /* The hero clips its own overflow, and this glow hangs below that clip line,
       so without a mask the blur is guillotined into a hard horizon. Fade it to
       nothing above the clip instead. */
    -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent 57%);
    mask-image: linear-gradient(to bottom, #000 40%, transparent 57%);
}

@keyframes glowDrift {

    0%,
    100% {
        transform: translateX(-50%) scale(1);
        opacity: 0.85;
    }

    50% {
        transform: translateX(-48%) scale(1.06);
        opacity: 1;
    }
}

.hero-inner {
    width: min(76rem, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
    align-items: center;
    gap: 3.25rem;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.4rem;
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.17em;
    text-transform: uppercase;
    color: oklch(from var(--foreground) l c h / 0.45);
}

.eyebrow-rule {
    width: 1.75rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--ash));
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 4.5vw, 4rem);
    font-weight: 700;
    line-height: 0.96;
    letter-spacing: -0.05em;
    color: oklch(from var(--foreground) l c h / 0.94);
    text-wrap: balance;
}

.accent-serif {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 500;
    font-size: 1.08em;
    letter-spacing: -0.02em;
    white-space: nowrap;
    background-image: linear-gradient(90deg,
            oklch(var(--main-l) var(--main-c) var(--main-h) / 0.55),
            oklch(var(--main-l) var(--main-c) var(--main-h) / 0.12));
    background-repeat: no-repeat;
    background-size: 100% 1px;
    background-position: 0 96%;
}

.title-line {
    display: block;
}

.title-mark {
    display: inline-block;
    width: 0.8em;
    height: 0.8em;
    margin-right: 0.14em;
    vertical-align: -0.05em;
    object-fit: contain;
    filter: drop-shadow(0 8px 20px oklch(0 0 0 / 0.45));
    animation: markLift 7s ease-in-out infinite;
}

@keyframes markLift {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

.wordmark {
    margin-left: 0.1em;
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 600;
    background: linear-gradient(102deg,
            var(--bone) 0%,
            #d9d9d9 46%,
            #a8a8a8 78%,
            #6f6f6f 118%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    background-size: 220% 100%;
    animation: shimmer 11s ease-in-out infinite;
}

@keyframes shimmer {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.tagline {
    max-width: 31rem;
    margin: 1.15rem 0 1.4rem;
    font-size: 0.98rem;
    line-height: 1.68;
    letter-spacing: -0.01em;
    color: oklch(from var(--foreground) l c h / 0.56);
    text-wrap: pretty;
}

.meta {
    margin-bottom: 1.75rem;
    font-size: 0.82rem;
    letter-spacing: -0.01em;
    color: oklch(from var(--foreground) l c h / 0.5);
}

.meta-strong {
    font-weight: 600;
    color: oklch(from var(--foreground) l c h / 0.78);
}

.meta-sep {
    margin: 0 0.45rem;
    color: oklch(from var(--foreground) l c h / 0.22);
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    max-width: 33rem;
    margin-top: 1.6rem;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.34rem 0.7rem;
    border-radius: 9999px;
    border: 1px solid oklch(from var(--foreground) l c h / 0.1);
    background: oklch(from var(--foreground) l c h / 0.03);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: -0.005em;
    color: oklch(from var(--foreground) l c h / 0.6);
    white-space: nowrap;
    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        background-color 0.2s ease,
        transform 0.2s ease;
}

.chip .icon {
    color: oklch(var(--main-l) var(--main-c) var(--main-h));
}

.chip:hover {
    color: var(--foreground);
    border-color: oklch(var(--main-l) var(--main-c) var(--main-h) / 0.4);
    background: oklch(var(--main-l) var(--main-c) var(--main-h) / 0.08);
    transform: translateY(-1px);
}

.chip-primary {
    color: var(--bone);
    border-color: oklch(var(--main-l) var(--main-c) var(--main-h) / 0.4);
    background: oklch(var(--main-l) var(--main-c) var(--main-h) / 0.12);
}

/* ── the console panel ──────────────────────────────────────────────────── */

.hero-panel {
    position: relative;
    min-width: 0;
}

.panel-glow {
    position: absolute;
    inset: -12% -6% -14% -6%;
    border-radius: 50%;
    background: radial-gradient(closest-side,
            oklch(var(--main-l) var(--main-c) var(--main-h) / 0.14),
            transparent 76%);
    filter: blur(46px);
    pointer-events: none;
}

.console {
    position: relative;
    border-radius: 0.9rem;
    border: 1px solid oklch(from var(--foreground) l c h / 0.1);
    background: linear-gradient(180deg, #141414 0%, #0b0b0b 100%);
    box-shadow:
        0 24px 60px oklch(0 0 0 / 0.5),
        inset 0 1px 0 oklch(from var(--foreground) l c h / 0.06);
    overflow: hidden;
}

.console-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 0.9rem;
    border-bottom: 1px solid oklch(from var(--foreground) l c h / 0.08);
}

.console-mark {
    display: grid;
    place-items: center;
    width: 1.5rem;
    height: 1.5rem;
    flex-shrink: 0;
    border-radius: 9999px;
    overflow: hidden;
    background: oklch(from var(--foreground) l c h / 0.06);
}

.console-mark img {
    width: 82%;
    height: 82%;
    object-fit: contain;
}

.console-name {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--bone);
}

.console-version {
    font-family: var(--mono);
    font-size: 0.62rem;
    padding: 0.1rem 0.35rem;
    border-radius: 0.3rem;
    background: oklch(from var(--foreground) l c h / 0.06);
    color: oklch(var(--main-l) var(--main-c) var(--main-h));
}

.console-status {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-left: auto;
    font-size: 0.7rem;
    font-weight: 500;
    color: #d4d4d4;
}

.console-dot {
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 9999px;
    background: currentColor;
    animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.35);
    }

    70%,
    100% {
        box-shadow: 0 0 0 5px rgba(255, 255, 255, 0);
    }
}

.session {
    display: flex;
    flex-direction: column;
    gap: 0.95rem;
    max-height: 20rem;
    padding: 0.9rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}

.msg {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 0;
}

.invoke {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    min-width: 0;
}

.invoke-user {
    flex-shrink: 0;
    font-size: 0.7rem;
    font-weight: 500;
    color: oklch(from var(--foreground) l c h / 0.5);
}

.invoke-code {
    font-size: 0.76rem;
    letter-spacing: -0.01em;
    color: oklch(from var(--foreground) l c h / 0.82);
    overflow-wrap: anywhere;
}

.prompt {
    margin-right: 0.1em;
    color: oklch(var(--main-l) var(--main-c) var(--main-h));
}

.str {
    color: #cfcfcf;
}

.reply {
    display: flex;
    gap: 0.55rem;
    min-width: 0;
}

.reply-avatar {
    display: grid;
    place-items: center;
    width: 1.85rem;
    height: 1.85rem;
    flex-shrink: 0;
    border-radius: 9999px;
    border: 1px solid oklch(from var(--foreground) l c h / 0.08);
    background: radial-gradient(circle at 34% 30%, #2e2e2e, #0f0f0f);
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 600;
    color: var(--bone);
}

.reply-body {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 0;
    flex: 1;
}

.reply-head {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.reply-name {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--bone);
}

.reply-tag {
    padding: 0.02rem 0.22rem;
    border-radius: 0.18rem;
    background: oklch(var(--main-l) var(--main-c) var(--main-h) / 0.32);
    font-size: 0.48rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--bone);
}

.reply-time {
    font-size: 0.62rem;
    color: oklch(from var(--foreground) l c h / 0.3);
}

.card {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    padding: 0.65rem 0.8rem 0.7rem;
    border-left: 3px solid oklch(var(--main-l) var(--main-c) var(--main-h));
    border-radius: 0.3rem;
    background: oklch(0 0 0 / 0.32);
    min-width: 0;
}

.card-success {
    border-left-color: #d9d9d9;
}

.card-text {
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--bone);
    overflow-wrap: anywhere;
}

.card-sub {
    font-size: 0.68rem;
    color: oklch(from var(--foreground) l c h / 0.42);
}

.card-row {
    display: flex;
    gap: 0.45rem;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid oklch(from var(--foreground) l c h / 0.07);
    font-size: 0.72rem;
    line-height: 1.5;
    color: oklch(from var(--foreground) l c h / 0.7);
}

.card-row strong {
    color: oklch(from var(--foreground) l c h / 0.9);
}

.quote-bar {
    flex-shrink: 0;
    width: 2px;
    margin: 0.15rem 0;
    border-radius: 9999px;
    background: oklch(from var(--foreground) l c h / 0.22);
}

.console-prompt {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.6rem 0.9rem;
    border-top: 1px solid oklch(from var(--foreground) l c h / 0.06);
    background: oklch(0 0 0 / 0.2);
    font-family: var(--mono);
    font-size: 0.8rem;
}

.prompt-caret {
    color: oklch(var(--main-l) var(--main-c) var(--main-h));
}

.prompt-hint {
    color: oklch(from var(--foreground) l c h / 0.3);
}

.prompt-cursor {
    width: 1px;
    height: 0.95rem;
    background: oklch(from var(--foreground) l c h / 0.6);
    animation: blink 1.1s steps(1) infinite;
}

@keyframes blink {

    0%,
    49% {
        opacity: 1;
    }

    50%,
    100% {
        opacity: 0;
    }
}

.prompt-note {
    padding: 0.5rem 0.9rem 0.6rem;
    border-top: 1px solid oklch(from var(--foreground) l c h / 0.05);
    font-size: 0.62rem;
    line-height: 1.5;
    color: oklch(from var(--foreground) l c h / 0.3);
}

.console-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.9rem;
    padding: 0.6rem 0.9rem;
    border-top: 1px solid oklch(from var(--foreground) l c h / 0.08);
    background: oklch(0 0 0 / 0.25);
    font-family: var(--mono);
    font-size: 0.7rem;
    color: oklch(from var(--foreground) l c h / 0.45);
}

.foot-accent {
    margin-left: auto;
    color: oklch(var(--main-l) var(--main-c) var(--main-h));
}

/* ── the dashed wave between sections ───────────────────────────────────── */

.divider {
    width: 100%;
    padding: 0 1rem;
    margin: 0 auto;
    pointer-events: none;
}

.divider svg {
    display: block;
    width: 100%;
    height: 100px;
    opacity: 0.9;
}

.divider circle {
    animation: twinkle 4.5s ease-in-out infinite;
}

.divider circle:nth-child(2) {
    animation-delay: 0.7s;
}

.divider circle:nth-child(3) {
    animation-delay: 1.4s;
}

.divider circle:nth-child(4) {
    animation-delay: 2.1s;
}

.divider circle:nth-child(5) {
    animation-delay: 2.8s;
}

.divider circle:nth-child(6) {
    animation-delay: 3.5s;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.22;
    }

    50% {
        opacity: 0.8;
    }
}

/* ── sections ───────────────────────────────────────────────────────────── */

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

.section-head {
    margin-bottom: 2.2rem;
}

.section-head-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.icon-badge {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    flex-shrink: 0;
    border-radius: 9999px;
    border: 1px solid oklch(var(--main-l) var(--main-c) var(--main-h) / 0.35);
    background: oklch(var(--main-l) var(--main-c) var(--main-h) / 0.1);
    color: oklch(var(--main-l) var(--main-c) var(--main-h));
    box-shadow: inset 0 1px 0 oklch(from var(--foreground) l c h / 0.08);
}

.icon-badge .icon {
    width: 1.15rem;
    height: 1.15rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.65rem, 2.6vw, 2.15rem);
    font-weight: 600;
    letter-spacing: -0.035em;
    line-height: 1.15;
    color: var(--foreground);
    text-wrap: balance;
}

.glint {
    background: linear-gradient(110deg,
            oklch(0.82 0 0) 0%,
            oklch(0.88 0 0) 30%,
            oklch(0.95 0 0) 45%,
            var(--foreground) 50%,
            oklch(0.95 0 0) 55%,
            oklch(0.88 0 0) 70%,
            oklch(0.82 0 0) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 100%;
    animation: glint 12s ease-in-out infinite;
}

@keyframes glint {

    0%,
    100% {
        background-position: 0% 0%;
    }

    50% {
        background-position: 100% 0%;
    }
}

.section-desc {
    max-width: 36rem;
    margin-top: 0.9rem;
    font-size: 0.98rem;
    line-height: 1.65;
    color: oklch(from var(--foreground) l c h / 0.6);
}

/* ── features ───────────────────────────────────────────────────────────── */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.feature-card {
    position: relative;
    overflow: hidden;
    min-height: 10.5rem;
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid oklch(from var(--foreground) l c h / 0.06);
    background-color: var(--surface);
    transition:
        border-color 300ms var(--ease),
        background-color 300ms var(--ease),
        translate 300ms var(--ease);
}

.feature-card:hover {
    translate: 0 -2px;
    border-color: oklch(var(--main-l) var(--main-c) var(--main-h) / 0.4);
    background-color: oklch(0.16 calc(var(--main-c) * 0.3) var(--main-h));
}

.feature-large {
    grid-column: span 2;
}

.feature-mark {
    position: absolute;
    bottom: -0.75rem;
    right: -0.5rem;
    width: 5.5rem;
    height: 5.5rem;
    color: oklch(var(--main-l) var(--main-c) var(--main-h));
    opacity: 0.09;
    transform: rotate(-10deg);
    pointer-events: none;
    transition: opacity 300ms var(--ease);
}

@media (min-width: 640px) {
    .feature-card {
        padding: 1.65rem;
    }

    .feature-mark {
        width: 6.5rem;
        height: 6.5rem;
    }
}

.feature-card:hover .feature-mark {
    opacity: 0.16;
}

.feature-body {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
}

.feature-title {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: -0.025em;
    color: var(--bone);
    transition: color 300ms var(--ease);
}

.feature-card:hover .feature-title {
    color: #efefef;
}

.feature-desc {
    margin-top: 0.6rem;
    font-size: 0.82rem;
    line-height: 1.68;
    color: oklch(from var(--foreground) l c h / 0.48);
    transition: color 300ms var(--ease);
}

.feature-card:hover .feature-desc {
    color: oklch(from var(--foreground) l c h / 0.6);
}

.feature-desc code {
    font-size: 0.9em;
    padding: 0.05rem 0.3rem;
    border-radius: 0.28rem;
    background: oklch(from var(--foreground) l c h / 0.07);
    color: oklch(from var(--foreground) l c h / 0.82);
}

/* ── closing CTA ────────────────────────────────────────────────────────── */

.cta-section {
    padding-top: 4.5rem;
    padding-bottom: 5rem;
}

.cta-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 4.5rem 1.5rem;
    border-radius: 2.25rem;
    border: 1px solid oklch(from var(--foreground) l c h / 0.08);
    background: linear-gradient(180deg, #121212 0%, #080808 100%);
    box-shadow: 0 20px 60px oklch(0 0 0 / 0.4);
    text-align: center;
}

.cta-glow {
    position: absolute;
    z-index: -1;
    inset: auto -10% -55% -10%;
    height: 110%;
    background: radial-gradient(ellipse at center,
            oklch(var(--main-l) var(--main-c) var(--main-h) / 0.18) 0%,
            oklch(var(--premium-l) var(--premium-c) var(--premium-h) / 0.1) 40%,
            transparent 72%);
    filter: blur(60px);
    pointer-events: none;
    animation: ctaPulse 14s ease-in-out infinite;
}

@keyframes ctaPulse {

    0%,
    100% {
        opacity: 0.8;
    }

    50% {
        opacity: 1;
    }
}

.cta-sub {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ash);
}

.cta-title {
    margin-top: 0.7rem;
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 3.8vw, 2.8rem);
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 1.1;
    color: var(--foreground);
}

.cta-desc {
    max-width: 30rem;
    margin: 0.9rem auto 0;
    font-size: 0.92rem;
    line-height: 1.65;
    color: oklch(from var(--foreground) l c h / 0.55);
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

/* ── footer ─────────────────────────────────────────────────────────────── */

.site-footer {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 3rem 1.5rem 1.5rem;
    padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
    border-top: 1px solid oklch(from var(--foreground) l c h / 0.1);
    background: oklch(from var(--background) l c h / 0.5);
}

.footer-glow {
    position: absolute;
    z-index: -1;
    bottom: 0;
    left: 50%;
    width: 95%;
    height: 80%;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at center bottom,
            oklch(var(--main-l) var(--main-c) var(--main-h) / 0.32) 0%,
            oklch(var(--main-l) var(--main-c) var(--main-h) / 0.14) 35%,
            transparent 70%);
    filter: blur(24px);
    pointer-events: none;
}

.footer-inner {
    max-width: 72rem;
    margin: 0 auto;
}

.footer-top {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
    max-width: 22rem;
}

.footer-tagline {
    font-size: 0.875rem;
    line-height: 1.65;
    color: oklch(from var(--foreground) l c h / 0.55);
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    border: 1px solid oklch(from var(--foreground) l c h / 0.1);
    background: oklch(from var(--foreground) l c h / 0.04);
    color: oklch(from var(--foreground) l c h / 0.6);
    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        background-color 0.2s ease,
        transform 0.2s ease;
}

.icon-btn:hover {
    color: oklch(var(--main-l) var(--main-c) var(--main-h));
    border-color: oklch(var(--main-l) var(--main-c) var(--main-h) / 0.4);
    background: oklch(var(--main-l) var(--main-c) var(--main-h) / 0.08);
    transform: translateY(-2px);
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-title {
    margin-bottom: 0.25rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: oklch(from var(--foreground) l c h / 0.45);
}

.footer-col a {
    position: relative;
    width: fit-content;
    font-size: 0.85rem;
    color: oklch(from var(--foreground) l c h / 0.6);
    transition: color 0.2s ease;
}

.footer-col a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 1px;
    background: currentColor;
    opacity: 0.5;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s var(--ease);
}

.footer-col a:hover {
    color: var(--foreground);
}

.footer-col a:hover::after {
    transform: scaleX(1);
}

.footer-divider {
    width: 100%;
    height: 1px;
    margin: 2rem 0 1.25rem;
    background: oklch(from var(--foreground) l c h / 0.08);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
    font-size: 0.78rem;
    color: oklch(from var(--foreground) l c h / 0.45);
}

.footer-fine {
    color: oklch(from var(--foreground) l c h / 0.3);
}

/* ── entrance ───────────────────────────────────────────────────────────── */

.hero-copy>* {
    animation: rise 0.8s var(--ease) both;
}

.hero-copy>*:nth-child(2) {
    animation-delay: 0.06s;
}

.hero-copy>*:nth-child(3) {
    animation-delay: 0.12s;
}

.hero-copy>*:nth-child(4) {
    animation-delay: 0.18s;
}

.hero-copy>*:nth-child(5) {
    animation-delay: 0.24s;
}

.hero-copy>*:nth-child(6) {
    animation-delay: 0.3s;
}

.hero-panel {
    animation: rise 0.9s var(--ease) 0.24s both;
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translate3d(0, 18px, 0);
    }

    to {
        opacity: 1;
        /* `none` rather than a translate3d(0,0,0) so the composited layer is
           dropped once the entrance ends and the text stays sharp. */
        transform: none;
    }
}

@media (scripting: enabled) {
    [data-reveal] {
        opacity: 0;
        transform: translateY(18px);
        transition:
            opacity 0.8s var(--ease),
            transform 0.8s var(--ease);
    }

    [data-reveal].is-visible {
        opacity: 1;
        transform: none;
    }

    /* Cards rise in sequence, but only the reveal properties carry the delay so
       hovering a card still responds immediately. */
    .feature-card[data-reveal] {
        transition:
            opacity 0.8s var(--reveal-delay, 0s) var(--ease),
            transform 0.8s var(--reveal-delay, 0s) var(--ease),
            border-color 300ms var(--ease),
            background-color 300ms var(--ease),
            translate 300ms var(--ease);
    }

    .feature-grid .feature-card:nth-child(2) {
        --reveal-delay: 0.06s;
    }

    .feature-grid .feature-card:nth-child(3) {
        --reveal-delay: 0.12s;
    }

    .feature-grid .feature-card:nth-child(4) {
        --reveal-delay: 0.18s;
    }

    .feature-grid .feature-card:nth-child(5) {
        --reveal-delay: 0.24s;
    }
}

/* ── responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 1080px) {
    .nav-links {
        gap: 1rem;
    }

    .nav-item {
        font-size: 0.8rem;
    }
}

@media (max-width: 899px) {
    .nav-links {
        position: absolute;
        z-index: 2;
        top: calc(100% + 0.5rem);
        left: max(1rem, env(safe-area-inset-left));
        right: max(1rem, env(safe-area-inset-right));
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0.15rem;
        max-height: calc(100vh - 5.5rem);
        max-height: calc(100dvh - 5.5rem);
        overflow-y: auto;
        overscroll-behavior: contain;
        margin-left: 0;
        padding: 0.5rem;
        border-radius: 1rem;
        border: 1px solid oklch(from var(--foreground) l c h / 0.12);
        background: oklch(from var(--background) l c h / 0.96);
        backdrop-filter: blur(24px) saturate(1.3);
        -webkit-backdrop-filter: blur(24px) saturate(1.3);
        box-shadow: 0 14px 40px oklch(0 0 0 / 0.45);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-0.4rem);
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    }

    .nav-links.open {
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .nav-item {
        padding: 0.7rem 0.9rem;
        border-radius: 0.6rem;
        font-size: 0.9rem;
    }

    .nav-item::after {
        display: none;
    }

    .nav-item:hover {
        background: oklch(from var(--foreground) l c h / 0.06);
    }

    .nav-actions {
        display: none;
    }

    .nav-toggle {
        display: block;
        margin-left: auto;
    }

    .hero {
        padding: 8rem max(1.25rem, env(safe-area-inset-left)) 3rem max(1.25rem, env(safe-area-inset-right));
    }

    .hero-inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 2.5rem;
        text-align: center;
    }

    .hero-copy {
        align-items: center;
        text-align: center;
    }

    .eyebrow {
        justify-content: center;
    }

    .tagline {
        margin-inline: auto;
    }

    .hero-buttons,
    .chips {
        justify-content: center;
        margin-inline: auto;
    }

    .hero-panel {
        width: 100%;
        max-width: 34rem;
        margin-inline: auto;
    }
}

/* Finger-sized controls wherever the pointer is coarse or the screen is
   narrow, so touch laptops and tablets get the same treatment as phones. */
@media (pointer: coarse), (max-width: 899px) {
    .nav-toggle {
        width: 2.75rem;
        height: 2.75rem;
    }

    .btn {
        min-height: 2.75rem;
    }

    .btn-small {
        min-height: 2.5rem;
    }

    .chip {
        min-height: 2.5rem;
        padding: 0.55rem 0.85rem;
    }

    .nav-item {
        padding: 0.85rem 0.95rem;
    }

    .feature-card:hover {
        translate: none;
    }
}

@media (max-width: 860px) {
    .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .feature-large {
        grid-column: span 2;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: clamp(2.2rem, 10vw, 3rem);
    }

    .hero-buttons {
        width: 100%;
        max-width: 20rem;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .divider svg {
        height: 88px;
    }

    .section {
        padding: 2.5rem 1.25rem 0.5rem;
    }

    .section-head-row {
        align-items: flex-start;
        gap: 0.85rem;
    }

    .icon-badge {
        width: 2.6rem;
        height: 2.6rem;
    }

    .feature-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .feature-large {
        grid-column: span 1;
    }

    .cta-section {
        padding-top: 3rem;
        padding-bottom: 3.5rem;
    }

    .cta-card {
        padding: 3rem 1.25rem;
        border-radius: 1.5rem;
    }

    .cta-actions .btn {
        width: 100%;
        max-width: 20rem;
    }

    .footer-nav {
        gap: 2rem;
    }

    .footer-bottom {
        align-items: flex-start;
        text-align: left;
    }

    .session {
        max-height: 17rem;
        padding: 0.75rem;
    }

    .console-foot {
        font-size: 0.65rem;
    }
}

@media (min-width: 768px) {
    .footer-top {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        gap: 3rem;
    }

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

@media (max-width: 380px) {
    .hero-buttons .btn {
        width: 100%;
    }

    .meta {
        font-size: 0.76rem;
    }
}

/* ── scroll-linked motion ───────────────────────────────────────────────── */

/* A hairline at the very top that fills as the page is read. The bar is scaled
   on the compositor from a single passive listener. */
.scroll-progress {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 10000;
    height: 1px;
    pointer-events: none;
    background: rgba(255, 255, 255, 0.07);
}

.scroll-progress span {
    display: block;
    height: 100%;
    transform: scaleX(var(--progress, 0));
    transform-origin: 0 50%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.2), #ffffff);
}

/* Where scroll timelines exist, the wave drifts against the scroll and the
   console settles back as the hero leaves. No JS, no layout work. */
@supports (animation-timeline: view()) {
    .divider svg {
        animation: dividerDrift linear both;
        animation-timeline: view();
        animation-range: entry 0% exit 100%;
    }

    @keyframes dividerDrift {
        from {
            transform: translate3d(1.25rem, 12px, 0);
        }

        to {
            transform: translate3d(-1.25rem, -12px, 0);
        }
    }

    .hero-panel .console {
        animation: consoleSettle linear both;
        animation-timeline: view();
        animation-range: exit-crossing 0% exit-crossing 100%;
    }

    @keyframes consoleSettle {
        to {
            transform: translate3d(0, -24px, 0) scale(0.99);
            opacity: 0.6;
        }
    }
}

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

    .hero-copy>*,
    .hero-panel,
    .title-mark,
    .wordmark,
    .glint,
    .console-dot,
    .prompt-cursor,
    .hero-glow,
    .cta-glow,
    .divider circle,
    .divider svg,
    .hero-panel .console {
        animation: none;
        transform: none;
    }

    .btn,
    .chip,
    .feature-card,
    .nav-item::after,
    .footer-col a::after,
    .brand-mark,
    .title-mark,
    .icon-btn {
        transition: none;
    }

    .btn:hover,
    .chip:hover,
    .icon-btn:hover,
    .brand:hover .brand-mark {
        transform: none;
    }

    [data-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
