@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/assets/fonts/inter-400.ttf") format("truetype");
}

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("/assets/fonts/inter-500.ttf") format("truetype");
}

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("/assets/fonts/inter-600.ttf") format("truetype");
}

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("/assets/fonts/inter-700.ttf") format("truetype");
}

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url("/assets/fonts/inter-800.ttf") format("truetype");
}

@font-face {
    font-family: "JetBrains Mono";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/assets/fonts/jetbrains-mono-400.ttf") format("truetype");
}

@font-face {
    font-family: "JetBrains Mono";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("/assets/fonts/jetbrains-mono-500.ttf") format("truetype");
}

@font-face {
    font-family: "JetBrains Mono";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("/assets/fonts/jetbrains-mono-600.ttf") format("truetype");
}

:root {
    --bg: #0a0c12;
    --bg-2: #0d1018;
    --surface: #12151d;
    --surface-2: #171b25;
    --surface-3: #1d2230;
    --line: rgba(255, 255, 255, 0.07);
    --line-2: rgba(255, 255, 255, 0.11);
    --text: #eef1f6;
    --text-2: #b6bdcc;
    --text-3: #8a92a4;
    --text-4: #5b6273;
    --accent-1: #7aa2ff;
    --accent-2: #b89cff;
    --accent-grad: linear-gradient(135deg, #7aa2ff 0%, #b89cff 100%);
    --accent-glow: 0 0 0 1px rgba(122, 162, 255, 0.18), 0 14px 40px -16px rgba(122, 162, 255, 0.45);
    --radius-sm: 10px;
    --radius: 14px;
    --radius-lg: 22px;
    --shadow-1: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 30px 60px -30px rgba(0, 0, 0, 0.6);
    --shell: 1180px;
    --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

html {
    scroll-padding-top: 88px;
}

body {
    overflow-x: hidden;
    background:
        radial-gradient(900px 520px at 80% -10%, rgba(184, 156, 255, 0.10), transparent 60%),
        radial-gradient(800px 480px at 0% 8%, rgba(122, 162, 255, 0.10), transparent 60%),
        var(--bg);
}

img, svg { display: block; max-width: 100%; }

a { color: var(--accent-1); text-decoration: none; }
a:hover { text-decoration: underline; }

.shell {
    width: min(100% - 32px, var(--shell));
    margin: 0 auto;
}

/* ============ NAV ============ */
.nav {
    position: sticky; top: 0; z-index: 50;
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    background: rgba(10, 12, 18, 0.72);
    border-bottom: 1px solid var(--line);
}
.nav-inner {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 0;
}
.brand {
    display: flex; align-items: center; gap: 12px;
    color: var(--text); text-decoration: none;
    font-weight: 700; letter-spacing: -0.01em;
}
.brand-mark {
    width: 32px; height: 32px;
    flex-shrink: 0;
    display: block;
}
.brand-mark img, .brand-mark svg { width: 100%; height: 100%; display: block; }
.brand-name { font-size: 15px; }
.brand-name span { color: var(--text-3); font-weight: 500; }

.nav-links {
    display: flex; align-items: center; gap: 6px;
    font-size: 14px;
}
.nav-links a {
    color: var(--text-2); padding: 8px 12px; border-radius: 8px;
    transition: background 120ms ease, color 120ms ease;
}
.nav-links a:hover { color: var(--text); background: var(--surface); text-decoration: none; }
.nav-cta {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 14px; border-radius: 10px;
    background: var(--text); color: #0b0e15 !important;
    font-weight: 600; font-size: 13.5px;
    margin-left: 6px;
}
.nav-cta:hover { background: #fff; text-decoration: none; }
.nav-cta.is-soon,
.btn.is-soon {
    box-shadow: 0 0 0 1px rgba(122, 162, 255, 0.12), 0 16px 36px -18px rgba(122, 162, 255, 0.34);
}

@media (max-width: 720px) {
    .nav-links a:not(.nav-cta) { display: none; }
    .nav-inner { gap: 14px; }
    .brand { gap: 10px; min-width: 0; }
    .brand-name { font-size: 14px; }
    .brand-name span { display: none; }
    .nav-cta {
        margin-left: 0;
        padding: 8px 12px;
        font-size: 13px;
        white-space: nowrap;
    }
}

/* ============ HERO ============ */
.hero {
    padding: 88px 0 72px;
    position: relative;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
    align-items: center;
}
.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 6px 12px; border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--line);
    font-family: var(--mono);
    font-size: 11.5px;
    color: var(--text-2);
    text-transform: uppercase; letter-spacing: 0.08em;
}
.eyebrow .dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--accent-grad);
    box-shadow: 0 0 0 4px rgba(122, 162, 255, 0.12);
}
h1.hero-title {
    margin: 22px 0 18px;
    font-size: clamp(2.4rem, 5.4vw, 4.4rem);
    line-height: 1.02;
    letter-spacing: -0.038em;
    font-weight: 800;
}
h1.hero-title .grad {
    background: var(--accent-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero-sub {
    color: var(--text-2);
    font-size: clamp(1.02rem, 1.25vw, 1.2rem);
    max-width: 540px;
    line-height: 1.65;
}
.cta-row {
    display: flex; flex-wrap: wrap; gap: 12px;
    margin-top: 32px;
}
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 20px;
    border-radius: 12px;
    font-weight: 600; font-size: 15px;
    border: 1px solid transparent;
    transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
    cursor: pointer;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
    background: var(--text); color: #0a0c12;
    box-shadow: 0 14px 30px -14px rgba(255, 255, 255, 0.25);
}
.btn-primary:hover { background: #fff; }
.btn-ghost {
    background: var(--surface);
    border-color: var(--line-2);
    color: var(--text);
}
.btn-ghost:hover { background: var(--surface-2); }
.btn svg { width: 18px; height: 18px; }

.hero-meta {
    display: flex; gap: 22px; flex-wrap: wrap;
    margin-top: 28px;
    color: var(--text-3);
    font-size: 13.5px;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 14px; height: 14px; color: var(--accent-1); }

/* Hero visual (template card stack) */
.hero-visual {
    position: relative;
    aspect-ratio: 1 / 1;
    max-width: 480px;
    margin-left: auto;
}
.card-stack {
    position: absolute; inset: 0;
}
.card {
    position: absolute;
    border-radius: var(--radius);
    background: var(--surface-2);
    border: 1px solid var(--line-2);
    box-shadow: var(--shadow-1);
    overflow: hidden;
}
.card .thumb {
    aspect-ratio: 9 / 16;
    background:
        radial-gradient(120% 80% at 30% 10%, rgba(184, 156, 255, 0.22), transparent 60%),
        radial-gradient(120% 80% at 80% 90%, rgba(122, 162, 255, 0.22), transparent 60%),
        linear-gradient(180deg, #161a23, #0e1119);
    position: relative;
}
.card .thumb svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.card .meta {
    padding: 10px 12px;
    display: flex; align-items: center; justify-content: space-between;
    background: var(--surface-3);
    border-top: 1px solid var(--line);
}
.card .meta strong { font-size: 12.5px; font-weight: 600; }
.card .meta span { font-family: var(--mono); font-size: 10.5px; color: var(--text-3); }

.card.c1 { left: 6%;  top: 8%;  width: 46%; transform: rotate(-7deg); }
.card.c2 { left: 30%; top: 18%; width: 50%; transform: rotate(2deg); z-index: 2; }
.card.c3 { left: 50%; top: 4%;  width: 42%; transform: rotate(8deg); }

@media (max-width: 980px) {
    .hero { padding: 56px 0 40px; }
    .hero-grid { grid-template-columns: 1fr; gap: 36px; }
    .hero-visual { max-width: 380px; margin: 6px auto 0; }
}

@media (max-width: 720px) {
    .hero { padding: 42px 0 28px; }
    h1.hero-title {
        margin: 18px 0 14px;
        line-height: 1.06;
    }
    .hero-sub {
        font-size: 0.98rem;
        line-height: 1.7;
    }
    .cta-row {
        margin-top: 24px;
        flex-direction: column;
    }
    .cta-row .btn {
        width: 100%;
        justify-content: center;
    }
    .hero-meta {
        margin-top: 22px;
        gap: 12px;
        flex-direction: column;
        align-items: flex-start;
    }
    .hero-visual {
        max-width: 320px;
        width: min(100%, 320px);
    }
}

@media (max-width: 480px) {
    .hero-grid { gap: 28px; }
    .eyebrow {
        font-size: 10.5px;
        letter-spacing: 0.06em;
    }
    .hero-visual {
        max-width: 280px;
    }
    .card.c1 { left: 1%; top: 11%; width: 48%; }
    .card.c2 { left: 26%; top: 18%; width: 52%; }
    .card.c3 { left: 53%; top: 8%; width: 40%; }
}

/* ============ SECTION HEADINGS ============ */
.section { padding: 76px 0; }
.section-eyebrow {
    font-family: var(--mono);
    font-size: 11.5px; letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-1);
}
.section-title {
    margin: 12px 0 10px;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    line-height: 1.1;
    letter-spacing: -0.025em;
    font-weight: 700;
    max-width: 720px;
}
.section-lede {
    color: var(--text-2);
    max-width: 640px;
    font-size: 1.02rem;
    line-height: 1.65;
}

@media (max-width: 720px) {
    .section { padding: 56px 0; }
    .section-title {
        margin: 10px 0 8px;
        line-height: 1.16;
    }
    .section-lede {
        font-size: 0.98rem;
        line-height: 1.7;
    }
}

/* ============ FEATURE GRID ============ */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 40px;
}
.feature {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
    transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}
.feature:hover {
    border-color: var(--line-2);
    background: var(--surface-2);
    transform: translateY(-2px);
}
.feature-icon {
    width: 38px; height: 38px; border-radius: 10px;
    display: grid; place-items: center;
    background: linear-gradient(180deg, rgba(122, 162, 255, 0.16), rgba(184, 156, 255, 0.10));
    border: 1px solid rgba(122, 162, 255, 0.22);
    margin-bottom: 16px;
}
.feature-icon svg { width: 18px; height: 18px; color: var(--accent-1); }
.feature h3 {
    margin: 0 0 6px;
    font-size: 1.06rem;
    letter-spacing: -0.012em;
}
.feature p {
    margin: 0;
    color: var(--text-2);
    font-size: 0.94rem;
    line-height: 1.6;
}
@media (max-width: 880px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

/* ============ HOW IT WORKS ============ */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 40px;
    counter-reset: step;
}
.step {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    position: relative;
    counter-increment: step;
}
.step::before {
    content: counter(step, decimal-leading-zero);
    font-family: var(--mono);
    font-size: 12px;
    color: var(--accent-1);
    letter-spacing: 0.08em;
}
.step h3 {
    margin: 12px 0 6px;
    font-size: 1.06rem;
    letter-spacing: -0.012em;
}
.step p {
    margin: 0;
    color: var(--text-2);
    font-size: 0.94rem;
    line-height: 1.6;
}
@media (max-width: 880px) { .steps { grid-template-columns: 1fr; } }

/* ============ CTA BAND ============ */
.cta-band {
    margin: 40px 0 88px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line-2);
    background:
        radial-gradient(800px 320px at 110% 0%, rgba(184, 156, 255, 0.18), transparent 60%),
        radial-gradient(800px 320px at -10% 100%, rgba(122, 162, 255, 0.16), transparent 60%),
        linear-gradient(180deg, #14182233, #0e111a);
    padding: 56px 48px;
    text-align: center;
    overflow: hidden;
    position: relative;
}
.cta-band h2 {
    margin: 0 auto 14px;
    font-size: clamp(1.7rem, 3.2vw, 2.6rem);
    letter-spacing: -0.03em;
    line-height: 1.1;
    max-width: 680px;
}
.cta-band p {
    color: var(--text-2);
    max-width: 560px;
    margin: 0 auto 28px;
    font-size: 1.02rem;
}
@media (max-width: 720px) { .cta-band { padding: 40px 22px; } }
@media (max-width: 480px) {
    .cta-band {
        margin: 28px 0 64px;
        padding: 30px 18px;
        border-radius: 18px;
    }
    .cta-band p {
        font-size: 0.97rem;
        margin-bottom: 22px;
    }
}

/* ============ FOOTER ============ */
.footer {
    border-top: 1px solid var(--line);
    padding: 36px 0 56px;
    color: var(--text-3);
    font-size: 14px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 32px;
}
.footer-col h4 {
    margin: 0 0 12px;
    color: var(--text);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-family: var(--mono);
    font-weight: 600;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-col a {
    color: var(--text-2);
}
.footer-col a:hover { color: var(--text); }
.footer-tagline { color: var(--text-3); margin-top: 14px; max-width: 320px; line-height: 1.6; }
.footer-bottom {
    margin-top: 36px; padding-top: 20px;
    border-top: 1px solid var(--line);
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--text-4);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
@media (max-width: 880px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
    .footer-grid { grid-template-columns: 1fr; }
}

/* ============ LEGAL / LONG-FORM ============ */
.legal-hero {
    padding: 68px 0 24px;
}
.legal-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin: 14px 0 10px;
    letter-spacing: -0.03em;
    line-height: 1.1;
}
.legal-hero p.lede {
    color: var(--text-2);
    max-width: 640px;
    font-size: 1.04rem;
    line-height: 1.65;
}
.legal-meta {
    margin-top: 18px;
    display: flex; gap: 14px; flex-wrap: wrap;
    color: var(--text-4);
    font-family: var(--mono);
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.legal-meta span::before { content: "·"; margin-right: 14px; color: var(--text-4); }
.legal-meta span:first-child::before { content: ""; margin: 0; }

.prose {
    max-width: 760px;
    margin: 24px 0 80px;
    color: var(--text-2);
    font-size: 1.0rem;
    line-height: 1.78;
}
.prose h2 {
    color: var(--text);
    margin: 56px 0 12px;
    font-size: 1.35rem;
    letter-spacing: -0.018em;
    line-height: 1.25;
}
.prose h3 {
    color: var(--text);
    margin: 32px 0 8px;
    font-size: 1.08rem;
    letter-spacing: -0.012em;
}
.prose p { margin: 0 0 14px; }
.prose ul { padding-left: 22px; margin: 0 0 18px; }
.prose ul li { margin-bottom: 8px; }
.prose strong { color: var(--text); font-weight: 600; }
.prose code {
    font-family: var(--mono);
    font-size: 0.88em;
    background: var(--surface);
    border: 1px solid var(--line);
    padding: 1px 6px;
    border-radius: 6px;
    color: var(--text);
}
.prose a { color: var(--accent-1); }
.prose .callout {
    margin: 22px 0;
    padding: 18px 20px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 3px solid var(--accent-1);
    border-radius: 12px;
}
.prose .callout p:last-child { margin-bottom: 0; }
.toc {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    padding: 18px 22px;
    margin: 28px 0 42px;
    max-width: 760px;
}
.toc h4 {
    margin: 0 0 10px;
    font-family: var(--mono);
    font-size: 11.5px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-3);
    font-weight: 500;
}
.toc ol { margin: 0; padding-left: 20px; color: var(--text-2); }
.toc ol li { margin-bottom: 6px; }
.toc ol li a { color: var(--text-2); }
.toc ol li a:hover { color: var(--text); }

@media (max-width: 720px) {
    .legal-hero {
        padding: 46px 0 18px;
    }
    .legal-hero p.lede {
        font-size: 0.98rem;
        line-height: 1.7;
    }
    .legal-meta {
        gap: 10px;
        font-size: 10.5px;
    }
    .legal-meta span::before {
        margin-right: 10px;
    }
    .toc {
        padding: 16px 18px;
        margin: 20px 0 28px;
    }
    .prose {
        margin: 20px 0 64px;
        font-size: 0.97rem;
        line-height: 1.72;
    }
    .prose h2 {
        margin: 40px 0 10px;
    }
    .prose ul {
        padding-left: 18px;
    }
    .prose .callout {
        padding: 16px 16px;
    }
}

/* ============ CONTACT ============ */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 28px 0 88px;
    max-width: 760px;
}
.contact-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
}
.contact-card h3 {
    margin: 0 0 6px;
    font-size: 1.04rem;
    letter-spacing: -0.012em;
}
.contact-card p { margin: 0 0 14px; color: var(--text-2); font-size: 0.94rem; }
.contact-card a {
    font-family: var(--mono);
    font-size: 13px;
    color: var(--text);
    border-bottom: 1px dashed var(--line-2);
}
.contact-card a:hover { color: var(--accent-1); border-color: var(--accent-1); text-decoration: none; }
@media (max-width: 720px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-form {
    max-width: 760px;
    margin: 28px 0 24px;
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.contact-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.contact-form-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.contact-form-field.full { grid-column: 1 / -1; }
.contact-form label {
    color: var(--text-2);
    font-size: 0.88rem;
    font-weight: 600;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    color: var(--text);
    background: var(--bg);
    border: 1px solid var(--line-2);
    border-radius: 10px;
    padding: 12px 13px;
    font: inherit;
}
.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: 2px solid color-mix(in srgb, var(--accent-1) 45%, transparent);
    border-color: var(--accent-1);
}
.contact-form-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 18px;
}
.contact-form-status {
    margin: 0;
    color: var(--text-2);
    font-size: 0.9rem;
}
.contact-form-status.error { color: #ff8d8d; }
.contact-form-status.success { color: #72e6b1; }
@media (max-width: 720px) {
    .contact-form { padding: 18px; }
    .contact-form-grid { grid-template-columns: 1fr; }
    .contact-form-field.full { grid-column: auto; }
    .contact-form-actions { align-items: stretch; flex-direction: column; }
}

.prose,
.contact-card,
.footer,
.footer-col a,
.contact-card a {
    overflow-wrap: anywhere;
}

/* ============ 404 ============ */
.notfound {
    min-height: 70vh;
    display: grid; place-items: center;
    text-align: center;
    padding: 60px 16px;
}
.notfound h1 {
    font-size: clamp(3rem, 8vw, 5rem);
    margin: 0 0 8px;
    letter-spacing: -0.04em;
    line-height: 1;
}
.notfound p { color: var(--text-2); margin: 0 0 22px; }
