:root {
    color-scheme: dark;
    --bg: #0d0f12;
    --bg-alt: #14171c;
    --surface: #1b1f26;
    --surface-accent: #1d2530;
    --border: #2a2f38;
    --text: #e7eaee;
    --muted: #9aa3ad;
    --accent: #e8462b;
    --accent-hover: #ff5a3c;
    --radius: 14px;
    --maxw: 64rem;

    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    line-height: 1.15;
    margin: 0 0 0.5rem;
}

p {
    margin: 0 0 1rem;
}

a {
    color: inherit;
}

strong {
    color: #fff;
}

em {
    font-style: normal;
    color: var(--accent-hover);
    font-weight: 600;
}

/* ---- Hero ---- */
.hero {
    background:
        radial-gradient(1200px 600px at 70% -10%, rgba(232, 70, 43, 0.18), transparent 60%),
        linear-gradient(180deg, #11141a 0%, var(--bg) 100%);
    border-bottom: 1px solid var(--border);
}

.nav {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    font-weight: 700;
    letter-spacing: 0.02em;
    font-size: 1.1rem;
}

.nav-cta {
    text-decoration: none;
    color: var(--muted);
    font-weight: 600;
    font-size: 0.95rem;
}

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

.hero-inner {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 3.5rem 1.5rem 4.5rem;
    text-align: center;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.hero h1 {
    font-size: clamp(2.75rem, 8vw, 4.5rem);
    letter-spacing: -0.02em;
}

.lede {
    max-width: 38rem;
    margin: 1.25rem auto 2rem;
    font-size: clamp(1.05rem, 2.5vw, 1.25rem);
    color: var(--muted);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

/* ---- Buttons ---- */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.15s ease, transform 0.05s ease, border-color 0.15s ease;
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    background: var(--accent-hover);
}

.btn-ghost {
    border: 1px solid var(--border);
    color: var(--text);
}

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

.btn-lg {
    padding: 1rem 2.25rem;
    font-size: 1.1rem;
}

/* ---- Sections ---- */
.section {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

.section-alt {
    background: var(--bg-alt);
    max-width: none;
    border-block: 1px solid var(--border);
}

.section-alt > * {
    max-width: var(--maxw);
    margin-inline: auto;
}

.section-title {
    font-size: clamp(1.6rem, 4vw, 2.25rem);
    text-align: center;
    margin-bottom: 0.75rem;
}

.section-intro {
    text-align: center;
    color: var(--muted);
    max-width: 42rem;
    margin: 0 auto 2.5rem;
}

/* ---- Cards ---- */
.cards {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
    margin-top: 2rem;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
}

.card-accent {
    background: var(--surface-accent);
    border-color: rgba(232, 70, 43, 0.4);
}

.card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
}

.card p:last-child {
    margin-bottom: 0;
}

/* ---- Feature list ---- */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr;
}

.feature-list li {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.feature-list h4 {
    font-size: 1.1rem;
    color: #fff;
}

.feature-list p {
    margin: 0;
    color: var(--muted);
}

/* ---- Download ---- */
.section-download {
    text-align: center;
}

.download-note {
    margin-top: 1rem;
    color: var(--muted);
    font-size: 0.9rem;
}

/* ---- Beta signup form ---- */
.beta {
    max-width: 30rem;
    margin: 3rem auto 0;
    padding: 1.75rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: left;
}

.beta-title {
    font-size: 1.3rem;
    text-align: center;
}

.beta-intro {
    color: var(--muted);
    text-align: center;
    margin-bottom: 1.5rem;
}

.beta-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.field-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
}

.beta-form input[type="email"] {
    width: 100%;
    padding: 0.7rem 0.9rem;
    font-size: 1rem;
    color: var(--text);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
}

.beta-form input[type="email"]:focus {
    outline: none;
    border-color: var(--accent);
}

.check {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.95rem;
    color: var(--muted);
    cursor: pointer;
}

.check input {
    margin-top: 0.2rem;
    accent-color: var(--accent);
    flex-shrink: 0;
}

/* Honeypot: visually and programmatically hidden, but still in the DOM. */
.hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.beta-form .btn {
    text-align: center;
}

.beta-form button:disabled {
    opacity: 0.6;
    cursor: default;
}

.beta-status {
    margin: 0;
    min-height: 1.2em;
    font-size: 0.9rem;
    text-align: center;
}

.beta-status.ok {
    color: #5fd08a;
}

.beta-status.err {
    color: var(--accent-hover);
}

/* ---- Footer ---- */
.footer {
    border-top: 1px solid var(--border);
    text-align: center;
    padding: 2rem 1.5rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.footer p {
    margin: 0;
}

/* ---- Responsive: two-up on wider screens ---- */
@media (min-width: 48rem) {
    .cards {
        grid-template-columns: 1fr 1fr;
    }

    .feature-list {
        grid-template-columns: 1fr 1fr;
    }
}
