/* Ballistic Labs — landing-page (index.html) styles only.
 *
 * style.css provides the design tokens and shared components (nav,
 * buttons, typography). This file adds the marketing-page-specific
 * sections: hero, capability cards, comparison table, roadmap, etc.
 */

body.marketing {
    background: var(--bg);
}

.section {
    padding: 96px 22px;
    border-top: 1px solid var(--divider);
}
.section-inner {
    max-width: var(--max-w);
    margin: 0 auto;
}
.section-h2 {
    font-size: clamp(1.8rem, 4.4vw, 2.8rem);
    line-height: 1.15;
    color: var(--text-strong);
    margin: 0 0 32px;
    max-width: 28ch;
}
.lede {
    font-size: clamp(1.05rem, 1.6vw, 1.2rem);
    line-height: 1.7;
    color: var(--text);
    max-width: 64ch;
    margin: 0 0 22px;
}
.muted-small {
    color: var(--muted-soft);
    font-size: 0.85rem;
    margin: 8px 0 0;
}

/* ── Hero ────────────────────────────────────────────────────────── */
.hero {
    position: relative;
    overflow: hidden;
    min-height: 88vh;
    padding: 90px 22px 80px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--divider);
}
.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 70% 30%, rgba(217, 119, 87, 0.10), transparent 70%),
        radial-gradient(ellipse 50% 60% at 30% 70%, rgba(217, 119, 87, 0.04), transparent 70%);
    pointer-events: none;
    z-index: 0;
}
.hero-inner {
    position: relative;
    z-index: 1;
    max-width: var(--max-w);
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 64px;
    align-items: center;
}
.hero-copy { max-width: 600px; }
.hero-h1 {
    font-family: var(--font-serif);
    font-size: clamp(2.6rem, 6.6vw, 4.6rem);
    line-height: 1.05;
    letter-spacing: -0.025em;
    color: var(--text-strong);
    font-weight: 400;
    margin: 0 0 28px;
}
.hero-h1-emphasis {
    font-family: var(--font-sans);
    font-weight: 600;
    letter-spacing: -0.02em;
}
.hero-sub {
    font-size: clamp(1.1rem, 1.8vw, 1.3rem);
    color: var(--text);
    line-height: 1.55;
    max-width: 56ch;
    margin: 0 0 32px;
}
.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}
.hero-meta {
    color: var(--muted);
    font-size: 0.88rem;
    margin: 0;
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
}
.hero-flag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-strong);
    font-weight: 600;
}
.hero-flag svg {
    border-radius: 2px;
    overflow: hidden;
    flex-shrink: 0;
}
.hero-meta-sep { color: var(--muted-soft); }

.hero-visual {
    position: relative;
    height: clamp(420px, 64vh, 720px);
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-device {
    position: relative;
    height: 100%;
    width: auto;
    aspect-ratio: 538 / 1082;
    max-width: 100%;
}
.hero-device-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 24px 60px rgba(0, 0, 0, 0.6))
            drop-shadow(0 0 40px rgba(217, 119, 87, 0.08));
    position: relative;
    z-index: 2;
    transition: transform 600ms var(--ease-out);
}
.hero-glow {
    position: absolute;
    inset: 8% 12%;
    background: radial-gradient(circle at center, rgba(217, 119, 87, 0.18), transparent 70%);
    filter: blur(40px);
    z-index: 1;
    pointer-events: none;
}

@media (max-width: 920px) {
    .hero { min-height: auto; padding: 64px 22px; }
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .hero-visual {
        height: clamp(360px, 50vh, 520px);
        order: -1;
    }
}

/* ── Three-up summary strip ──────────────────────────────────────── */
.strip {
    background: var(--bg-elevated);
    padding: 56px 22px;
    border-top: 1px solid var(--border-soft);
    border-bottom: 1px solid var(--border-soft);
}
.strip-grid {
    max-width: var(--max-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
}
.strip-item { padding-right: 24px; border-right: 1px solid var(--divider); }
.strip-item:last-child { border-right: 0; }
.strip-num {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 3.2vw, 2.4rem);
    color: var(--accent);
    line-height: 1.1;
    margin: 0 0 6px;
    font-weight: 400;
    letter-spacing: -0.015em;
}
.strip-num span {
    font-size: 0.6em;
    color: var(--muted);
    margin-left: 4px;
    font-family: var(--font-sans);
}
.strip-label {
    color: var(--text-strong);
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0 0 10px;
    letter-spacing: -0.005em;
}
.strip-desc {
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.55;
    margin: 0;
}

@media (max-width: 800px) {
    .strip-grid { grid-template-columns: 1fr; gap: 32px; }
    .strip-item { padding-right: 0; border-right: 0; padding-bottom: 24px; border-bottom: 1px solid var(--divider); }
    .strip-item:last-child { padding-bottom: 0; border-bottom: 0; }
}

/* ── Problem section ─────────────────────────────────────────────── */
.problem .section-inner { max-width: var(--max-w-narrow); }

/* ── Capabilities grid ───────────────────────────────────────────── */
.cap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 16px;
}
.cap-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 26px;
    transition: border-color 200ms, background-color 200ms, transform 200ms var(--ease-out);
}
.cap-card:hover {
    border-color: var(--accent-line);
    background: var(--bg-card-hi);
    transform: translateY(-2px);
}
.cap-icon {
    width: 48px;
    height: 48px;
    color: var(--accent);
    margin-bottom: 18px;
    background: var(--accent-soft);
    border-radius: var(--radius-sm);
    padding: 8px;
}
.cap-icon svg { width: 100%; height: 100%; }
.cap-card h3 {
    font-size: 1.15rem;
    color: var(--text-strong);
    font-weight: 600;
    margin: 0 0 10px;
    letter-spacing: -0.01em;
}
.cap-card p {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* ── "Built for the field" hardware section ──────────────────────── */
.field {
    background:
        linear-gradient(180deg, transparent, rgba(217, 119, 87, 0.025) 40%, transparent),
        var(--bg);
}
.field .lede { max-width: 60ch; margin-bottom: 18px; }

.usa-line {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-strong);
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 10px 16px;
    background: rgba(244, 237, 224, 0.04);
    border: 1px solid var(--border);
    border-radius: 99px;
    margin: 0 0 40px;
}
.usa-line svg {
    flex-shrink: 0;
    border-radius: 2px;
    overflow: hidden;
}
.field-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}
.field-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 26px;
    transition: border-color 200ms, transform 200ms var(--ease-out);
}
.field-card:hover {
    border-color: var(--accent-line);
    transform: translateY(-2px);
}
.field-num {
    font-family: var(--font-serif);
    font-size: clamp(1.6rem, 2.6vw, 2rem);
    color: var(--accent);
    font-weight: 400;
    letter-spacing: -0.015em;
    line-height: 1.05;
    margin-bottom: 14px;
}
.field-card h3 {
    font-size: 1.05rem;
    color: var(--text-strong);
    font-weight: 600;
    margin: 0 0 10px;
    letter-spacing: -0.005em;
}
.field-card p {
    color: var(--muted);
    font-size: 0.93rem;
    line-height: 1.6;
    margin: 0;
}
.field-card .field-fineprint {
    color: var(--muted-soft);
    font-size: 0.82rem;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--divider);
}

/* ── Demo CTA interrupt ──────────────────────────────────────────── */
.demo-cta {
    padding: 96px 22px;
    text-align: center;
    background:
        linear-gradient(180deg, transparent, rgba(217, 119, 87, 0.04) 50%, transparent),
        var(--bg);
    border-top: 1px solid var(--divider);
    border-bottom: 1px solid var(--divider);
}
.demo-cta-inner {
    max-width: 720px;
    margin: 0 auto;
}
.demo-cta .lede { margin: 0 auto 32px; }
.demo-cta .section-h2 {
    margin-left: auto;
    margin-right: auto;
}

/* ── Specifications grid ─────────────────────────────────────────── */
.spec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.spec-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px 26px;
}
.spec-block h3 {
    color: var(--accent);
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 600;
    margin: 0 0 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--divider);
}
.spec-block dl {
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px 0;
}
.spec-block dt {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 4px;
}
.spec-block dd {
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

/* ── Use-case cards ──────────────────────────────────────────────── */
.usecase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}
.usecase-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 28px;
    transition: border-color 200ms, transform 200ms var(--ease-out);
}
.usecase-card:hover {
    border-color: var(--accent-line);
    transform: translateY(-2px);
}
.usecase-tag {
    display: inline-block;
    padding: 4px 10px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 99px;
    margin-bottom: 20px;
}
.usecase-tag-future {
    background: rgba(224, 164, 88, 0.12);
    color: var(--warn);
}
.usecase-card h3 {
    font-size: 1.4rem;
    font-family: var(--font-serif);
    font-weight: 400;
    color: var(--text-strong);
    margin: 0 0 14px;
    letter-spacing: -0.01em;
}
.usecase-card p {
    color: var(--muted);
    font-size: 0.96rem;
    line-height: 1.65;
    margin: 0;
}

/* ── Comparison table ────────────────────────────────────────────── */
.compare-table {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.compare-row {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    border-bottom: 1px solid var(--divider);
}
.compare-row:last-child { border-bottom: 0; }
.compare-row > div {
    padding: 18px 22px;
    color: var(--muted);
    font-size: 0.92rem;
    border-right: 1px solid var(--divider);
}
.compare-row > div:last-child { border-right: 0; }
.compare-head {
    background: var(--bg-elevated);
}
.compare-head > div {
    color: var(--text-strong);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}
.compare-label {
    color: var(--text) !important;
    font-weight: 500;
}
.compare-us {
    color: var(--text-strong) !important;
    background: var(--accent-soft);
    font-weight: 500;
}
.compare-head .compare-us {
    color: var(--accent) !important;
}
.compare-note {
    color: var(--muted-soft);
    font-size: 0.86rem;
    margin: 18px 0 0;
    font-style: italic;
}

@media (max-width: 760px) {
    .compare-table {
        border: 0;
    }
    .compare-row {
        grid-template-columns: 1fr;
        border: 1px solid var(--border);
        border-radius: var(--radius);
        margin-bottom: 12px;
        background: var(--bg-card);
    }
    .compare-row > div {
        border-right: 0;
        border-bottom: 1px solid var(--divider);
    }
    .compare-row > div:last-child { border-bottom: 0; }
    .compare-row > div::before {
        content: attr(data-label);
        display: block;
        color: var(--muted);
        font-size: 0.7rem;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        margin-bottom: 4px;
    }
    .compare-head { display: none; }
}

/* ── Roadmap ─────────────────────────────────────────────────────── */
.roadmap-list {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
}
.roadmap-list::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 12px;
    bottom: 12px;
    width: 1px;
    background: var(--divider);
}
.roadmap-step {
    position: relative;
    padding: 0 0 32px 44px;
}
.roadmap-step::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 8px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--border);
}
.roadmap-step.done::before {
    background: var(--accent);
    border-color: var(--accent);
}
.roadmap-step.current::before {
    background: var(--bg);
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft);
}
.roadmap-tag {
    display: inline-block;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 6px;
}
.roadmap-step.done .roadmap-tag { color: var(--success); }
.roadmap-step.current .roadmap-tag { color: var(--accent); }
.roadmap-step h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-strong);
    margin: 0 0 8px;
    letter-spacing: -0.005em;
}
.roadmap-step p {
    color: var(--muted);
    font-size: 0.94rem;
    line-height: 1.6;
    margin: 0;
    max-width: 60ch;
}

/* ── Reserve form ────────────────────────────────────────────────── */
.reserve {
    background:
        radial-gradient(ellipse at top right, rgba(217, 119, 87, 0.08), transparent 60%),
        var(--bg);
}
.reserve-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}
.reserve-copy .lede { max-width: 48ch; }

.price-line {
    font-size: 1.05rem;
    color: var(--muted);
    margin: 0 0 18px;
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}
.price-line strong {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: 1.6rem;
    color: var(--text-strong);
    letter-spacing: -0.01em;
}
.price-note {
    color: var(--muted-soft);
    font-size: 0.85rem;
    font-style: italic;
}

/* Textarea matches the input/select styling */
.form-row textarea {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 8px;
    padding: 10px 14px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    line-height: 1.5;
    resize: vertical;
    min-height: 70px;
    transition: border-color 200ms;
}
.form-row textarea::placeholder { color: var(--muted-soft); }
.form-row textarea:focus {
    outline: none;
    border-color: var(--accent);
}
.reserve-form {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.form-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.form-row span {
    font-size: 0.78rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
}
.form-row em {
    text-transform: none;
    letter-spacing: 0;
    font-style: normal;
    color: var(--muted-soft);
}
.form-row input,
.form-row select {
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text-strong);
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.98rem;
    font-family: inherit;
    transition: border-color 140ms, background-color 140ms;
}
.form-row input::placeholder { color: var(--muted-soft); }
.form-row input:focus,
.form-row select:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--bg-elevated);
}
.form-status {
    margin: 4px 0 0;
    font-size: 0.9rem;
    min-height: 1.4em;
    color: var(--muted);
}
.form-status.success { color: var(--success); }
.form-status.error { color: var(--danger); }

@media (max-width: 860px) {
    .reserve-inner { grid-template-columns: 1fr; gap: 32px; }
}

/* ── FAQ ─────────────────────────────────────────────────────────── */
.faq .section-inner { max-width: var(--max-w-narrow); }
.faq-list {
    border-top: 1px solid var(--divider);
}
.faq-item {
    border-bottom: 1px solid var(--divider);
}
.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 22px 0;
    font-size: 1.05rem;
    color: var(--text-strong);
    font-weight: 500;
    letter-spacing: -0.005em;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    transition: color 140ms;
}
.faq-item summary:hover { color: var(--accent); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '';
    width: 12px;
    height: 12px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    transition: transform 200ms var(--ease-out);
    margin-bottom: 4px;
    flex-shrink: 0;
}
.faq-item[open] summary::after {
    transform: rotate(-135deg);
    margin-bottom: 0;
    margin-top: 4px;
}
.faq-item p {
    color: var(--muted);
    font-size: 0.96rem;
    line-height: 1.7;
    margin: 0 0 22px;
    max-width: 70ch;
}

/* ── Footer ──────────────────────────────────────────────────────── */
.site-footer {
    background: var(--bg-elevated);
    border-top: 1px solid var(--border-soft);
    padding: 64px 22px 32px;
    margin-top: 0;
}
.footer-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 2fr;
    gap: 56px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--divider);
}
.footer-brand .brand-mark {
    width: 32px; height: 32px;
    color: var(--accent);
    margin-bottom: 14px;
}
.footer-mfg {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-strong);
    margin: 0 0 6px;
    letter-spacing: -0.005em;
}
.footer-tag {
    color: var(--muted);
    font-size: 0.92rem;
    margin: 0;
}
.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.footer-col h4 {
    color: var(--text-strong);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 600;
    margin: 0 0 14px;
}
.footer-col a {
    display: block;
    color: var(--muted);
    font-size: 0.92rem;
    padding: 6px 0;
    transition: color 140ms;
}
.footer-col a:hover { color: var(--text-strong); }

.footer-bottom {
    max-width: var(--max-w);
    margin: 0 auto;
    padding-top: 24px;
    text-align: center;
    color: var(--muted-soft);
    font-size: 0.85rem;
}
.footer-bottom p { margin: 0; }

@media (max-width: 760px) {
    .footer-inner { grid-template-columns: 1fr; gap: 40px; padding-bottom: 32px; }
    .footer-cols { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

/* ── Scroll-driven reveal ────────────────────────────────────────── */
[data-reveal] {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
}
[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
    [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ── Beta pill ───────────────────────────────────────────────────── */
.beta-pill {
    display: inline-block;
    padding: 2px 10px;
    margin-left: 8px;
    border: 1px solid var(--accent, #d97757);
    border-radius: 999px;
    font-size: 0.72em;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent, #d97757);
    background: rgba(217, 119, 87, 0.08);
    vertical-align: middle;
}
.demo-beta-note {
    margin-top: 14px;
    padding: 14px 16px;
    border-left: 3px solid var(--accent, #d97757);
    background: rgba(217, 119, 87, 0.06);
    border-radius: 4px;
    line-height: 1.5;
}
.demo-beta-note strong { color: var(--accent, #d97757); }

/* ── Section-specific tweaks ─────────────────────────────────────── */
@media (max-width: 600px) {
    .section { padding: 64px 18px; }
    .hero { padding: 56px 18px 48px; }
    .strip { padding: 40px 18px; }
    .reserve-form { padding: 24px 20px; }
}
