/* ─── Tokens ───────────────────────────────────── */
:root {
    /* Espresso + burnt sienna */
    --bg:            #15110d;
    --bg-card:       #1d1814;
    --bg-elev:       #251e18;
    --border:        #2c2520;
    --border-strong: #3b3128;

    --text:          #d6cdbe;
    --text-bright:   #f4ecdc;
    --text-dim:      #897e6e;
    --text-faint:    #5a5246;

    --accent:        #c97b5e;
    --accent-dim:    #8e553f;
    --accent-soft:   rgba(201, 123, 94, 0.10);
    --accent-glow:   rgba(201, 123, 94, 0.18);

    --serif: "Fraunces", "Source Serif 4", Georgia, serif;
    --sans:  "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    --mono:  "JetBrains Mono", ui-monospace, "SF Mono", monospace;

    --radius:    10px;
    --radius-lg: 16px;

    --measure: 640px;
}

/* ─── Reset ────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    -webkit-text-size-adjust: 100%;
}

body {
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Subtle warm grain overlay — gives the dark bg tactile warmth */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
    opacity: 0.035;
    pointer-events: none;
    z-index: 1;
    mix-blend-mode: overlay;
}

main, nav, footer { position: relative; z-index: 2; }

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.18s ease, opacity 0.18s ease;
}

a:hover { color: var(--text-bright); }

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

::selection {
    background: var(--accent-glow);
    color: var(--text-bright);
}

/* ─── Nav ──────────────────────────────────────── */
nav {
    position: sticky;
    top: 0;
    background: rgba(21, 17, 13, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 50;
}

.nav-inner {
    max-width: 760px;
    margin: 0 auto;
    padding: 18px 32px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    font-family: var(--serif);
    font-weight: 400;
    font-size: 17px;
    color: var(--text-bright);
    letter-spacing: -0.01em;
    font-variation-settings: "opsz" 14, "SOFT" 80;
}

.logo:hover { color: var(--accent); }

.nav-links {
    display: flex;
    gap: 28px;
    align-items: baseline;
}

.nav-links a {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--text-dim);
    letter-spacing: 0.02em;
    text-transform: lowercase;
}

.nav-links a:hover { color: var(--text-bright); }
.nav-links a.active { color: var(--accent); }

/* ─── Page wrapper ─────────────────────────────── */
.page {
    max-width: var(--measure);
    margin: 0 auto;
    padding: 96px 32px 80px;
}

.page-narrow { max-width: 560px; }

/* ─── Typography ───────────────────────────────── */
h1, h2, h3 {
    font-family: var(--serif);
    color: var(--text-bright);
    font-weight: 300;
    letter-spacing: -0.015em;
    font-variation-settings: "opsz" 144, "SOFT" 50;
}

h1 {
    font-size: clamp(2.25rem, 5vw, 3rem);
    line-height: 1.08;
    margin-bottom: 24px;
}

h2 {
    font-size: 1.625rem;
    line-height: 1.25;
    font-weight: 400;
    margin: 64px 0 18px;
    font-variation-settings: "opsz" 60, "SOFT" 50;
}

h3 {
    font-size: 1.125rem;
    line-height: 1.4;
    font-weight: 500;
    margin: 32px 0 12px;
    font-variation-settings: "opsz" 24, "SOFT" 50;
}

p {
    margin-bottom: 18px;
    color: var(--text);
    max-width: 60ch;
}

p a {
    border-bottom: 1px solid var(--border-strong);
    padding-bottom: 1px;
}

p a:hover {
    border-color: var(--accent);
}

em {
    color: var(--text-dim);
    font-style: italic;
}

ul, ol {
    margin: 0 0 18px 20px;
    color: var(--text);
}

li { margin-bottom: 6px; }

strong { color: var(--text-bright); font-weight: 500; }

/* ─── Eyebrow label ────────────────────────────── */
.eyebrow {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text-dim);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 16px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.eyebrow::before {
    content: "";
    width: 18px;
    height: 1px;
    background: var(--accent);
    display: inline-block;
}

/* ─── Lede paragraph (under h1) ────────────────── */
.lede {
    font-family: var(--serif);
    font-weight: 300;
    font-size: 1.25rem;
    line-height: 1.5;
    color: var(--text);
    margin-bottom: 32px;
    font-variation-settings: "opsz" 24, "SOFT" 50;
}

/* ─── Divider ──────────────────────────────────── */
.divider {
    width: 100%;
    height: 1px;
    background: var(--border);
    margin: 56px 0;
    position: relative;
}

.divider::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: var(--bg);
    border: 1px solid var(--accent);
    border-radius: 50%;
}

/* ─── Location subtitle (about) ───────────────── */
.location {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--text-dim);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-top: -8px;
    margin-bottom: 0;
}

/* ─── Meta links row (elsewhere) ──────────────── */
.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    font-family: var(--mono);
    font-size: 12px;
}

.meta-row a {
    color: var(--text);
    border-bottom: 1px solid var(--border-strong);
    padding-bottom: 2px;
}

.meta-row a:hover {
    color: var(--accent);
    border-color: var(--accent);
}

/* ─── Home composition ────────────────────────── */
.home {
    min-height: calc(100vh - 60px - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 32px;
}

.home-mark {
    font-family: var(--serif);
    font-weight: 300;
    font-size: clamp(2.5rem, 9vw, 5rem);
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--text-bright);
    margin: 0;
    text-align: center;
    font-variation-settings: "opsz" 144, "SOFT" 50;
    opacity: 0;
    animation: rise 1s ease 0.2s forwards;
}

@keyframes rise {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ─── Product page bits (luckysplit) ──────────── */
.product-head {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.product-icon {
    width: 64px;
    height: 64px;
    background: var(--bg-card);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--text-dim);
    flex-shrink: 0;
    overflow: hidden;
}

.product-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-head h1 { margin-bottom: 4px; }

.status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--mono);
    font-size: 11px;
    color: var(--accent);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft);
    animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.55; }
}

.pull-quote {
    font-family: var(--serif);
    font-weight: 300;
    font-size: 1.375rem;
    line-height: 1.45;
    color: var(--text-bright);
    margin: 32px 0 20px;
    max-width: 36ch;
    font-variation-settings: "opsz" 48, "SOFT" 50;
}

.feature-list {
    list-style: none;
    margin: 16px 0 24px;
    padding: 0;
}

.feature-list li {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    display: flex;
    gap: 14px;
    align-items: baseline;
}

.feature-list li:last-child { border-bottom: none; }

.feature-list li::before {
    content: "→";
    color: var(--accent);
    font-family: var(--mono);
    flex-shrink: 0;
}

.screenshots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
    margin: 24px 0;
}

.screenshot {
    aspect-ratio: 9 / 19;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text-faint);
    letter-spacing: 0.08em;
    position: relative;
    overflow: hidden;
}

.screenshot img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cta-card {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
    margin: 40px 0;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 8px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--accent);
    color: var(--bg);
    font-weight: 500;
}

.btn-primary:hover {
    background: var(--text-bright);
    color: var(--bg);
}

.btn-ghost {
    color: var(--text);
    border-color: var(--border-strong);
}

.btn-ghost:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.fine-print {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text-dim);
    letter-spacing: 0.04em;
    margin: 24px 0 0;
    max-width: none;
}

.legal-row {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    font-family: var(--mono);
    font-size: 11px;
}

.legal-row a {
    color: var(--text-dim);
}

.legal-row a:hover { color: var(--accent); }

/* ─── Footer ──────────────────────────────────── */
footer {
    max-width: var(--measure);
    margin: 0 auto;
    padding: 40px 32px 56px;
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text-faint);
    letter-spacing: 0.08em;
    text-align: center;
    border-top: 1px solid var(--border);
}

footer a { color: var(--text-dim); }
footer a:hover { color: var(--accent); }

/* ─── Mobile ──────────────────────────────────── */
@media (max-width: 640px) {
    .nav-inner {
        padding: 12px 20px;
        flex-wrap: wrap;
        gap: 6px 16px;
    }
    .nav-links { gap: 14px 18px; flex-wrap: wrap; }
    .page, .home { padding-left: 20px; padding-right: 20px; }
    h2 { margin: 48px 0 16px; }
    .divider { margin: 40px 0; }
}
