:root {
    --color-text: #0f0f12;
    --color-muted: #6b6b73;
    --color-faint: #a5a5ad;
    --color-border: #ececef;
    --color-bg: #ffffff;
    --color-bg-alt: #fafafa;
    --color-accent: #7c3aed;
    --color-accent-soft: #f0e9fc;
    --color-link: #5b21b6;
    --max-doc: 720px;
    --max-wide: 1120px;
    --space-1: 0.5rem;
    --space-2: 1rem;
    --space-3: 1.5rem;
    --space-4: 2rem;
    --space-5: 3rem;
    --space-6: 4rem;
    --space-7: 6rem;
}

* { box-sizing: border-box; }
html { font-size: 16px; }

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body > main { flex: 1 0 auto; }
body > footer { flex-shrink: 0; }

a { color: var(--color-link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration: none; }

/* ============================================================
   Legal pages (privacy / terms) — narrow container
   ============================================================ */
body:not(.landing) main,
body:not(.landing) header,
body:not(.landing) footer {
    max-width: var(--max-doc);
    margin: 0 auto;
    padding: 0 var(--space-3);
}
body:not(.landing) header {
    padding-top: var(--space-5);
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--color-border);
}
body:not(.landing) header h1 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}
body:not(.landing) header p {
    margin: var(--space-1) 0 0;
    color: var(--color-muted);
}
body:not(.landing) main {
    padding-top: var(--space-6);
    padding-bottom: var(--space-5);
}
body:not(.landing) section { margin-bottom: var(--space-4); }
body:not(.landing) h2 { margin: 0 0 var(--space-2); font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; }
body:not(.landing) h3 { margin: var(--space-3) 0 var(--space-1); font-size: 1.05rem; font-weight: 600; }
body:not(.landing) h4 { margin: var(--space-2) 0 var(--space-1); font-size: 0.95rem; font-weight: 600; }
body:not(.landing) p { margin: 0 0 var(--space-2); }
body:not(.landing) ul { margin: 0 0 var(--space-2); padding-left: var(--space-3); }
body:not(.landing) li { margin-bottom: var(--space-1); }
body:not(.landing) footer {
    padding-top: var(--space-3);
    padding-bottom: var(--space-4);
    border-top: 1px solid var(--color-border);
    color: var(--color-muted);
    font-size: 0.875rem;
}
body:not(.landing) footer a { margin-right: var(--space-2); }

.meta { color: var(--color-muted); font-size: 0.875rem; }

/* ============================================================
   Landing
   ============================================================ */
.landing main {
    display: flex;
    flex-direction: column;
}

.landing .nav { border-bottom: 1px solid transparent; }
.landing .nav-inner {
    max-width: var(--max-wide);
    margin: 0 auto;
    padding: var(--space-3);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.landing .brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text);
    text-decoration: none;
    font-weight: 600;
}
.landing .brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 0.4rem;
    background: var(--color-text);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}
.landing .brand-name { letter-spacing: 0.02em; }
.landing .badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    padding: 0.25rem 0.625rem;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    color: var(--color-muted);
    background: var(--color-bg-alt);
}
.landing .badge-dot {
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
    animation: badgePulse 2.4s ease-in-out infinite;
}
@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18); }
    50%      { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.05); }
}

/* hero */
.landing .hero {
    position: relative;
    flex: 1 0 auto;
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: var(--space-7) var(--space-3);
}
.landing .hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}
.landing .orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.55;
}
.landing .orb-1 {
    width: 520px;
    height: 520px;
    left: -80px;
    top: -120px;
    background: radial-gradient(circle, #c084fc 0%, transparent 70%);
}
.landing .orb-2 {
    width: 440px;
    height: 440px;
    right: -60px;
    top: 30px;
    background: radial-gradient(circle, #818cf8 0%, transparent 70%);
    opacity: 0.45;
}
.landing .orb-3 {
    width: 380px;
    height: 380px;
    left: 40%;
    bottom: -120px;
    background: radial-gradient(circle, #f0abfc 0%, transparent 70%);
    opacity: 0.35;
}

.landing .hero-inner {
    position: relative;
    z-index: 1;
    max-width: 760px;
    text-align: center;
}
.landing .eyebrow {
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    color: var(--color-muted);
    margin: 0 0 var(--space-3);
    font-weight: 600;
}
.landing .hero-inner h1 {
    font-size: clamp(2.5rem, 5.5vw, 4.25rem);
    line-height: 1.04;
    letter-spacing: -0.03em;
    font-weight: 600;
    margin: 0 0 var(--space-4);
}
.landing .accent {
    background: linear-gradient(120deg, #7c3aed 0%, #c084fc 50%, #f0abfc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.landing .lede {
    max-width: 38ch;
    margin: 0 auto;
    font-size: 1.0625rem;
    color: var(--color-muted);
}

/* footer */
.landing .footer { border-top: 1px solid var(--color-border); }
.landing .footer-inner {
    max-width: var(--max-wide);
    margin: 0 auto;
    padding: var(--space-3);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: var(--space-3);
}
.landing .footer-brand { font-weight: 600; justify-self: start; }
.landing .footer-meta {
    color: var(--color-muted);
    font-size: 0.875rem;
    justify-self: center;
    text-align: center;
}
.landing .footer-links { display: flex; gap: var(--space-3); justify-self: end; }
.landing .footer-links a { color: var(--color-muted); text-decoration: none; font-size: 0.875rem; }
.landing .footer-links a:hover { color: var(--color-text); }

@media (max-width: 880px) {
    .landing .hero { padding: var(--space-5) var(--space-3); }
    .landing .orb { filter: blur(60px); }
}
@media (max-width: 560px) {
    .landing .footer-inner {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }
    .landing .footer-brand,
    .landing .footer-links { justify-self: center; }
}
