@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Outfit:wght@300;400;500;600;700&display=swap');

/* ── Tokens ── */
:root {
    --black:   #080808;
    --surface: #0f0f0f;
    --border:  #1c1c1c;
    --text:    #e8e8e8;
    --muted:   #5a5a5a;
    --dim:     #2e2e2e;
    --white:   #ffffff;
    --max-w:   1100px;
    --gap:     24px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
body {
    font-family: 'Outfit', system-ui, sans-serif;
    background: var(--black);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

strong { color: var(--white); font-weight: 600; }

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

.nav-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--gap);
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-size: 1.2rem;
    color: var(--white);
    letter-spacing: -0.01em;
}

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

.nav-links a {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--muted);
    transition: color 0.2s;
}

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

/* ── Shared section wrapper ── */
.section-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 88px var(--gap);
}

/* Small all-caps label used above each section heading */
.section-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 48px;
}

/* ── Hero ── */
.hero { border-bottom: 1px solid var(--border); }

.hero-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 120px var(--gap) 104px;
}

/* Status pill — alpha/release state */
.badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    border: 1px solid var(--border);
    border-radius: 2px;
    padding: 5px 12px;
    margin-bottom: 36px;
}

/* Fluid headline — shrinks gracefully on small screens */
h1 {
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-size: clamp(5rem, 13vw, 10.5rem);
    font-weight: 400;
    letter-spacing: -0.04em;
    line-height: 0.9;
    color: var(--white);
    margin-bottom: 32px;
}

.tagline {
    font-size: 1.05rem;
    font-weight: 300;
    color: var(--muted);
    line-height: 1.75;
    max-width: 460px;
    margin-bottom: 52px;
}

/* ── Primary CTA button ── */
.btn {
    display: inline-block;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--black);
    background: var(--white);
    border-radius: 2px;
    padding: 11px 26px;
    transition: opacity 0.2s;
}

.btn:hover { opacity: 0.82; }

/* ── Features ── */
.features { border-bottom: 1px solid var(--border); }

/* 2-column bordered grid — each cell shares internal borders */
.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
}

.feature {
    display: flex;
    gap: 20px;
    padding: 40px;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    transition: background 0.2s;
}

/* Right-column cells: no right border (container provides it) */
.feature:nth-child(even) { border-right: none; }

/* Bottom row: no bottom border */
.feature:nth-last-child(-n+2) { border-bottom: none; }

.feature:hover { background: var(--surface); }

/* Ordinal number marker */
.feature-num {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--dim);
    padding-top: 5px;
    flex-shrink: 0;
    width: 22px;
}

.feature-body h2 {
    font-family: 'Instrument Serif', serif;
    font-size: 1.45rem;
    font-weight: 400;
    letter-spacing: -0.02em;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 12px;
}

.feature-body p {
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.75;
    margin-bottom: 14px;
}

.feature-body p + p { margin-top: 8px; }

/* Inline expand/collapse trigger */
.feature-toggle {
    font-family: 'Outfit', sans-serif;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--dim);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}

/* + / – indicator driven by aria-expanded state */
.feature-toggle::after {
    content: '+';
    font-size: 1rem;
    line-height: 1;
}

.feature-toggle[aria-expanded="true"]::after { content: '–'; }

.feature-toggle:hover { color: var(--text); }

/* Collapsed by default; .open class applied by JS */
.feature-expandable {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    margin-top: 0;
    transition: max-height 0.35s ease, opacity 0.25s ease, margin-top 0.2s ease;
}

.feature-expandable.open {
    max-height: 600px;
    opacity: 1;
    margin-top: 16px;
}

/* ── Specs ── */
.specs { border-bottom: 1px solid var(--border); }

.specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.specs-col h3 {
    font-family: 'Instrument Serif', serif;
    font-size: 1.25rem;
    font-weight: 400;
    letter-spacing: -0.01em;
    color: var(--white);
    margin-bottom: 4px;
}

/* Secondary descriptor under the column heading */
.specs-note {
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 24px;
}

.specs-list { list-style: none; }

/* Two-column row: label | value */
.specs-list li {
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 16px;
    font-size: 0.875rem;
    color: var(--muted);
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    line-height: 1.5;
}

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

/* Spec key — uppercase monospaced label */
.specs-list li span {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--dim);
    padding-top: 2px;
    font-family: 'Outfit', monospace;
}

/* ── Compare ── */
.compare { border-bottom: 1px solid var(--border); }

.compare-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-bottom: 20px;
}

.compare-col h3 {
    font-family: 'Instrument Serif', serif;
    font-size: 1.25rem;
    font-weight: 400;
    letter-spacing: -0.01em;
    color: var(--white);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Small inline badge next to heading */
.badge-inline {
    font-family: 'Outfit', sans-serif;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    border: 1px solid var(--border);
    border-radius: 2px;
    padding: 2px 7px;
}

.compare-list { list-style: none; }

.compare-list li {
    font-size: 0.875rem;
    color: var(--muted);
    padding: 11px 0 11px 18px;
    border-bottom: 1px solid var(--border);
    position: relative;
    line-height: 1.5;
}

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

/* + for pros, – for cons — no color: just weight contrast */
.compare-list li.pro::before {
    content: '+';
    position: absolute;
    left: 0;
    color: var(--text);
    font-weight: 700;
}

.compare-list li.con::before {
    content: '–';
    position: absolute;
    left: 0;
    color: var(--dim);
    font-weight: 700;
}

.compare-note {
    font-size: 0.76rem;
    color: var(--dim);
}

/* ── Footer ── */
footer { border-top: 1px solid var(--border); }

.footer-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 28px var(--gap);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.footer-copy {
    font-size: 0.8rem;
    color: var(--muted);
}

.footer-copy a {
    color: var(--text);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-links a {
    font-size: 0.8rem;
    color: var(--muted);
    transition: color 0.2s;
}

.footer-links a:hover { color: var(--text); }

/* ── Responsive ── */
@media (max-width: 700px) {
    .section-inner,
    .hero-inner {
        padding-left: 20px;
        padding-right: 20px;
    }

    .section-inner { padding-top: 64px; padding-bottom: 64px; }
    .hero-inner { padding-top: 80px; padding-bottom: 72px; }

    .features-grid,
    .specs-grid,
    .compare-grid {
        grid-template-columns: 1fr;
    }

    /* Restore borders on single-column feature layout */
    .feature { border-right: none; }
    .feature:nth-last-child(-n+2) { border-bottom: 1px solid var(--border); }
    .feature:last-child { border-bottom: none; }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}
