/* Curio docs/landing site — self-contained, dark, matching the app's palette. */
:root {
    --bg: #16171a;
    --bg-2: #1a1b1e;
    --surface: #212327;
    --surface-2: #26282d;
    --hairline: #2f3237;
    --hairline-2: #3a3e44;
    --fg: #e6e7ea;
    --fg-muted: #a9adb4;
    --fg-subtle: #7f858d;
    --accent: #4c8bf5;
    --accent-fg: #ffffff;
    --accent-soft: rgba(76, 139, 245, 0.14);
    --serif: ui-serif, "Iowan Old Style", "Palatino Linotype", Georgia, serif;
    --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, system-ui, sans-serif;
    --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;
    --radius: 14px;
    --maxw: 1080px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font-family: var(--sans);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

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

.wrap {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 24px;
}

/* ── nav ─────────────────────────────────────────────── */
.nav {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(12px);
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    border-bottom: 1px solid var(--hairline);
}
.nav-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    height: 60px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 680;
    color: var(--fg);
    letter-spacing: -0.01em;
}
.brand:hover {
    text-decoration: none;
}
.brand svg {
    width: 26px;
    height: 26px;
    color: var(--accent);
}
.nav-links {
    display: flex;
    gap: 22px;
    margin-left: auto;
    font-size: 0.925rem;
    color: var(--fg-muted);
}
.nav-links a {
    color: var(--fg-muted);
}
.nav-links a:hover {
    color: var(--fg);
    text-decoration: none;
}
.nav-cta {
    padding: 7px 15px;
    border-radius: 9px;
    background: var(--accent);
    color: var(--accent-fg) !important;
    font-weight: 600;
}
.nav-cta:hover {
    text-decoration: none;
    filter: brightness(1.08);
}

/* ── hero ────────────────────────────────────────────── */
.hero {
    padding: 76px 0 48px;
    text-align: center;
    background:
        radial-gradient(60% 60% at 50% 0%, rgba(76, 139, 245, 0.1), transparent 70%);
}
.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    justify-content: center;
    margin-bottom: 26px;
}
.badges img {
    height: 20px;
}
.hero h1 {
    font-family: var(--serif);
    font-size: clamp(2.6rem, 6vw, 4rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin: 0 0 18px;
    font-weight: 600;
}
.hero .tag {
    font-size: clamp(1.05rem, 2.4vw, 1.3rem);
    color: var(--fg-muted);
    max-width: 640px;
    margin: 0 auto 30px;
}
.hero .tag b {
    color: var(--fg);
    font-weight: 600;
}
.cta-row {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
}
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 11px;
    font-weight: 600;
    font-size: 0.98rem;
    border: 1px solid transparent;
}
.btn:hover {
    text-decoration: none;
}
.btn-primary {
    background: var(--accent);
    color: var(--accent-fg);
}
.btn-primary:hover {
    filter: brightness(1.08);
}
.btn-ghost {
    background: var(--surface);
    color: var(--fg);
    border-color: var(--hairline-2);
}
.btn-ghost:hover {
    background: var(--surface-2);
}
.brew {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding: 10px 16px;
    border: 1px solid var(--hairline-2);
    border-radius: 10px;
    background: var(--bg-2);
    font-family: var(--mono);
    font-size: 0.9rem;
    color: var(--fg);
}
.brew .prompt {
    color: var(--fg-subtle);
}

.shot {
    margin: 44px auto 0;
    max-width: 1000px;
    border-radius: var(--radius);
    border: 1px solid var(--hairline-2);
    box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.7);
    overflow: hidden;
    display: block;
}
.shot img {
    width: 100%;
    display: block;
}

/* ── sections ────────────────────────────────────────── */
section {
    padding: 60px 0;
    border-top: 1px solid var(--hairline);
}
.section-head {
    max-width: 680px;
    margin: 0 auto 40px;
    text-align: center;
}
.section-head h2 {
    font-family: var(--serif);
    font-size: 2rem;
    letter-spacing: -0.02em;
    margin: 0 0 10px;
    font-weight: 600;
}
.section-head p {
    color: var(--fg-muted);
    margin: 0;
}
.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 10px;
}

/* ── feature grid ────────────────────────────────────── */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}
.card {
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: var(--radius);
    padding: 22px;
}
.card h3 {
    margin: 0 0 8px;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 9px;
}
.card .ico {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: var(--accent-soft);
    color: var(--accent);
    flex: 0 0 auto;
}
.card .ico svg {
    width: 17px;
    height: 17px;
}
.card p {
    margin: 0;
    color: var(--fg-muted);
    font-size: 0.93rem;
}

/* ── split (screenshot + copy) ───────────────────────── */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
.split.rev .copy {
    order: 2;
}
.split img {
    width: 100%;
    border-radius: var(--radius);
    border: 1px solid var(--hairline-2);
    box-shadow: 0 20px 50px -25px rgba(0, 0, 0, 0.6);
}
.split h2 {
    font-family: var(--serif);
    font-size: 1.7rem;
    margin: 0 0 12px;
    letter-spacing: -0.01em;
}
.split p {
    color: var(--fg-muted);
    margin: 0 0 14px;
}

/* ── tables ──────────────────────────────────────────── */
.tablewrap {
    overflow-x: auto;
    border: 1px solid var(--hairline);
    border-radius: var(--radius);
}
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}
th,
td {
    text-align: left;
    padding: 11px 16px;
    border-bottom: 1px solid var(--hairline);
}
th {
    background: var(--surface);
    color: var(--fg);
    font-weight: 640;
}
tr:last-child td {
    border-bottom: none;
}
td code,
.kbd {
    font-family: var(--mono);
    font-size: 0.86em;
    background: var(--bg-2);
    border: 1px solid var(--hairline-2);
    border-radius: 6px;
    padding: 2px 7px;
}

/* ── blockquote ──────────────────────────────────────── */
blockquote {
    margin: 0;
    padding: 20px 26px;
    border-left: 3px solid var(--accent);
    background: var(--surface);
    border-radius: 0 var(--radius) var(--radius) 0;
    color: var(--fg);
    font-size: 1.12rem;
    font-family: var(--serif);
    font-style: italic;
}

/* ── mermaid / diagram ───────────────────────────────── */
.diagram {
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: var(--radius);
    padding: 26px;
    text-align: center;
    overflow-x: auto;
}
.mermaid {
    /* keep it readable while mermaid computes */
    visibility: hidden;
}
.mermaid[data-processed] {
    visibility: visible;
}

/* ── install / code ──────────────────────────────────── */
.codeblock {
    background: var(--bg-2);
    border: 1px solid var(--hairline-2);
    border-radius: 10px;
    padding: 16px 18px;
    font-family: var(--mono);
    font-size: 0.9rem;
    color: var(--fg);
    overflow-x: auto;
    white-space: pre;
}
.note {
    color: var(--fg-muted);
    font-size: 0.92rem;
}

/* ── locale chips ────────────────────────────────────── */
.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    justify-content: center;
}
.chip {
    padding: 7px 14px;
    border: 1px solid var(--hairline-2);
    border-radius: 999px;
    background: var(--surface);
    font-size: 0.9rem;
    color: var(--fg);
}

/* ── footer ──────────────────────────────────────────── */
footer {
    border-top: 1px solid var(--hairline);
    padding: 44px 0 60px;
    color: var(--fg-subtle);
    font-size: 0.9rem;
}
.foot-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 40px;
    justify-content: space-between;
    align-items: center;
}
.foot-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.foot-links a {
    color: var(--fg-muted);
}

@media (max-width: 720px) {
    .nav-links {
        display: none;
    }
    .split {
        grid-template-columns: 1fr;
    }
    .split.rev .copy {
        order: 0;
    }
}
