/* D.Terminal landing pages — shared stylesheet.
   Tokens are copied verbatim from landing.html so these pages read as the same
   site. Keep them in sync: if the palette changes there, change it here. */

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

:root {
    --bg:            #0D1210;
    --bg-card:       #121A16;
    --bg-card-hover: #182119;
    --bg-elevated:   #0F1712;
    --border:        #1E3028;
    --border-dim:    #172318;

    --accent:        #2ECC8A;
    --accent-2:      #1DB870;
    --accent-dim:    rgba(46, 204, 138, 0.12);
    --accent-glow:   rgba(46, 204, 138, 0.08);
    --accent-hover:  #3DDEA0;

    --text:          #F0FFF8;
    --text-dim:      #7AAF94;
    --text-muted:    #3E6B52;

    --red:           #E05252;
    --amber:         #E8A83A;

    --card-shadow:   0 2px 0 rgba(46,204,138,0.08), 0 8px 32px rgba(0,0,0,0.5);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    font-feature-settings: 'cv01','cv02','cv03','cv04';
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

/* ── nav ─────────────────────────────────────────────────────────────────── */
.nav {
    position: sticky; top: 0; z-index: 50;
    display: flex; align-items: center; justify-content: space-between;
    gap: 20px; padding: 14px 32px;
    background: rgba(13,18,16,0.82);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-dim);
}
.nav-brand { display: flex; align-items: center; gap: 10px; }
.nav-brand img { height: 26px; display: block; }
.nav-brand b { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; color: var(--text); }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a {
    font-size: 13px; color: var(--text-dim); font-weight: 500;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
    background: var(--accent); color: #06120C !important;
    font-size: 13px; font-weight: 700;
    padding: 9px 18px; border-radius: 8px;
    transition: background 0.2s, transform 0.2s;
    white-space: nowrap;
}
.nav-cta:hover { background: var(--accent-hover); transform: translateY(-1px); }
@media (max-width: 860px) { .nav-links { display: none; } }

/* ── layout ──────────────────────────────────────────────────────────────── */
.wrap { max-width: 860px; margin: 0 auto; padding: 0 24px; }
.wide { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

.crumbs {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
    color: var(--text-muted); padding: 26px 0 0;
}
.crumbs a { color: var(--text-muted); }
.crumbs a:hover { color: var(--accent); }

/* ── hero ────────────────────────────────────────────────────────────────── */
.lp-hero { padding: 30px 0 44px; position: relative; }
.lp-hero::before {
    content: ''; position: absolute; inset: -60px 0 0;
    background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(46,204,138,0.06) 0%, transparent 70%);
    pointer-events: none; z-index: -1;
}
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
    color: var(--accent); margin-bottom: 18px;
}
.eyebrow::before {
    content: ''; width: 6px; height: 6px; border-radius: 50%;
    background: var(--accent); box-shadow: 0 0 8px var(--accent);
}
h1 {
    font-size: clamp(30px, 5.2vw, 48px); line-height: 1.12;
    font-weight: 700; letter-spacing: -0.025em; margin-bottom: 20px;
}
.lede { font-size: 18px; color: var(--text-dim); max-width: 44em; }
.lede b { color: var(--text); font-weight: 600; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 22px; border-radius: 10px;
    font-size: 14px; font-weight: 600;
    transition: transform 0.2s, background 0.2s, border-color 0.2s;
}
.btn-primary { background: var(--accent); color: #06120C !important; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); }
.btn-ghost { border: 1px solid var(--border); color: var(--text-dim) !important; }
.btn-ghost:hover { border-color: var(--accent-dim); color: var(--text) !important; }

/* ── stat strip ──────────────────────────────────────────────────────────── */
.lp-stats {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
    margin: 40px 0 0;
    border: 1px solid var(--border-dim); border-radius: 10px; overflow: hidden;
    background: var(--border-dim);
}
.lp-stats > div {
    padding: 16px 10px; background: var(--bg);
    display: flex; flex-direction: column; gap: 3px; min-width: 0;
}
.lp-stats b { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.lp-stats span {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 10px; letter-spacing: .07em; text-transform: uppercase;
    color: var(--text-muted); line-height: 1.4;
}
@media (max-width: 640px) { .lp-stats { grid-template-columns: repeat(2, 1fr); } }

/* ── prose ───────────────────────────────────────────────────────────────── */
.prose { padding: 20px 0 10px; }
.prose h2 {
    font-size: clamp(22px, 3.4vw, 29px); line-height: 1.22;
    font-weight: 700; letter-spacing: -0.02em;
    margin: 54px 0 16px; scroll-margin-top: 80px;
}
.prose h3 {
    font-size: 17px; font-weight: 650; margin: 30px 0 10px;
    color: var(--text); letter-spacing: -0.01em;
}
.prose p { color: var(--text-dim); margin-bottom: 16px; }
.prose p b, .prose li b { color: var(--text); font-weight: 600; }
.prose ul { margin: 0 0 18px; padding-left: 20px; }
.prose li { color: var(--text-dim); margin-bottom: 9px; }
.prose li::marker { color: var(--accent); }

.shot {
    margin: 26px 0 30px;
    border: 1px solid var(--border);
    border-radius: 12px; overflow: hidden;
    background: var(--bg-card); box-shadow: var(--card-shadow);
}
.shot img { width: 100%; display: block; }
.shot figcaption {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 11px; color: var(--text-muted);
    padding: 10px 14px; border-top: 1px solid var(--border-dim);
    letter-spacing: .03em;
}

.callout {
    border: 1px solid var(--border);
    border-left: 2px solid var(--accent);
    background: var(--accent-glow);
    border-radius: 10px; padding: 16px 18px; margin: 24px 0;
}
.callout p { margin: 0; color: var(--text-dim); font-size: 14.5px; }

/* ── comparison table ────────────────────────────────────────────────────── */
.table-scroll { overflow-x: auto; margin: 24px 0 30px; }
table {
    width: 100%; border-collapse: collapse; min-width: 520px;
    font-size: 14px;
}
th, td {
    text-align: left; padding: 11px 14px;
    border-bottom: 1px solid var(--border-dim);
}
th {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 11px; letter-spacing: .07em; text-transform: uppercase;
    color: var(--text-muted); font-weight: 500;
    border-bottom: 1px solid var(--border);
}
td { color: var(--text-dim); }
td:first-child { color: var(--text); font-weight: 550; }

/* ── FAQ ─────────────────────────────────────────────────────────────────── */
.faq { margin: 22px 0 0; }
.faq-item { border-bottom: 1px solid var(--border-dim); }
.faq-q {
    width: 100%; text-align: left; cursor: pointer;
    background: none; border: 0; color: var(--text);
    font-family: inherit; font-size: 15.5px; font-weight: 600;
    padding: 17px 34px 17px 0; position: relative;
    line-height: 1.45;
}
.faq-q::after {
    content: '+'; position: absolute; right: 4px; top: 15px;
    color: var(--accent); font-size: 19px; font-weight: 400;
    transition: transform 0.25s;
}
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { display: none; padding: 0 0 18px; }
.faq-item.open .faq-a { display: block; }
.faq-a p { color: var(--text-dim); font-size: 14.5px; margin-bottom: 12px; }
.faq-a p:last-child { margin-bottom: 0; }

/* ── related ─────────────────────────────────────────────────────────────── */
.related { margin: 60px 0 0; }
.related-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 12px; margin-top: 18px;
}
.related-grid a {
    display: block; padding: 15px 17px;
    border: 1px solid var(--border); border-radius: 10px;
    background: var(--bg-card);
    transition: border-color 0.2s, transform 0.2s, background 0.2s;
}
.related-grid a:hover {
    border-color: var(--accent-dim); transform: translateY(-2px);
    background: var(--bg-card-hover);
}
.related-grid strong {
    display: block; font-size: 14.5px; color: var(--text);
    font-weight: 600; margin-bottom: 4px;
}
.related-grid span { font-size: 12.5px; color: var(--text-muted); line-height: 1.5; }

/* ── closing CTA + footer ────────────────────────────────────────────────── */
.end-cta {
    margin: 72px 0 0; padding: 44px 32px; text-align: center;
    border: 1px solid var(--border); border-radius: 16px;
    background:
        radial-gradient(ellipse 70% 100% at 50% 0%, rgba(46,204,138,0.07) 0%, transparent 70%),
        var(--bg-card);
}
.end-cta h2 { font-size: clamp(21px, 3.2vw, 27px); margin: 0 0 12px; letter-spacing: -0.02em; }
.end-cta p { color: var(--text-dim); max-width: 40em; margin: 0 auto 24px; }
.end-cta .cta-row { justify-content: center; margin-top: 0; }

.foot {
    margin-top: 70px; padding: 30px 0 46px;
    border-top: 1px solid var(--border-dim);
    display: flex; flex-wrap: wrap; gap: 14px 26px;
    align-items: center; justify-content: space-between;
}
.foot span { font-size: 12.5px; color: var(--text-muted); }
.foot nav { display: flex; flex-wrap: wrap; gap: 18px; }
.foot nav a { font-size: 12.5px; color: var(--text-dim); }
.foot nav a:hover { color: var(--accent); }
