/* ============================================================
   Tripwire — landing styles. Light, indigo-accented, matched to
   the docs site (--brand #5457e6). Single static page, no build.
   ============================================================ */

:root {
  --acc: #5457e6;
  --acc-2: #6366f1;
  --acc-soft: rgba(99, 102, 241, 0.10);
  --ink: #0b0c10;
  --ink-2: #51555e;
  --line: #e7e8ec;
  --bg: #ffffff;
  --bg-soft: #f7f8fa;
  --radius: 8px;
  --maxw: 1080px;
  --term-bg: #16171c;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--acc); text-decoration: none; }
a:hover { text-decoration: underline; }
code {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88em;
  background: var(--acc-soft);
  color: var(--acc);
  padding: 1px 5px;
  border-radius: 5px;
}

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ── Nav ───────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 700; font-size: 18px; }
.brand:hover { text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: var(--ink-2); font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-cta { color: var(--acc) !important; }
@media (max-width: 720px) { .nav-links a:not(.nav-cta) { display: none; } }

/* ── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 42px; padding: 0 18px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; color: var(--ink);
  font-weight: 500; font-size: 15px;
  transition: background .15s, border-color .15s, transform .04s;
}
.btn:hover { background: var(--bg-soft); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--acc); border-color: var(--acc); color: #fff; }
.btn-primary:hover { background: #4346d4; }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.35); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }

/* ── Hero ──────────────────────────────────────────────── */
.hero { padding: 84px 0 72px; }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.hero-copy h1 {
  margin: 0; font-size: 52px; line-height: 1.07; font-weight: 700; letter-spacing: -0.02em;
}
.hero-copy h1 .accent { color: var(--acc-2); }
.lede { margin: 22px 0 0; font-size: 18px; line-height: 1.6; color: var(--ink-2); max-width: 33rem; }
.lede strong { color: var(--ink); font-weight: 600; }
.cta-row { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.hero-note { margin-top: 16px; font-size: 13px; color: var(--ink-2); }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-copy h1 { font-size: 40px; }
  .hero { padding: 56px 0 48px; }
}

/* ── Terminal visual ───────────────────────────────────── */
.terminal {
  background: var(--term-bg); border-radius: 12px; overflow: hidden;
  box-shadow: 0 24px 60px -20px rgba(11, 12, 16, 0.45), 0 0 0 1px rgba(11,12,16,.06);
}
.terminal-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; border-bottom: 1px solid rgba(255,255,255,.06); }
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot.r { background: #ff5f57; } .dot.y { background: #febc2e; } .dot.g { background: #28c840; }
.t-title { margin-left: 8px; color: #8a8f99; font-family: "JetBrains Mono", monospace; font-size: 12px; }
.terminal-body {
  margin: 0; padding: 18px 18px 20px; color: #d6d9df;
  font-family: "JetBrains Mono", monospace; font-size: 13px; line-height: 1.7;
  white-space: pre; overflow-x: auto;
}
.c-mut { color: #6b7280; } .c-ok { color: #34d399; } .c-bad { color: #f87171; } .c-acc { color: #a5b4fc; }

/* ── Bands / sections ──────────────────────────────────── */
.band { padding: 72px 0; border-top: 1px solid var(--line); }
.band-soft { background: var(--bg-soft); }
.band-accent { background: var(--bg-soft); }
.eyebrow { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 13px; font-weight: 600; color: var(--ink-2); text-transform: none; }
.sq { width: 8px; height: 8px; border-radius: 2px; background: var(--acc); }
.band h2 { margin: 0; font-size: 34px; line-height: 1.12; font-weight: 700; letter-spacing: -0.02em; }
.section-lede { margin: 18px 0 0; font-size: 17px; color: var(--ink-2); max-width: 58ch; }
.section-lede strong { color: var(--ink); font-weight: 600; }

.grid { display: grid; gap: 20px; margin-top: 40px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 820px) { .grid-3 { grid-template-columns: 1fr; } .band h2 { font-size: 28px; } }

.cell {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; padding: 22px;
}
.cell .n { font-family: "JetBrains Mono", monospace; font-size: 13px; font-weight: 500; color: var(--acc); }
.cell h3 { margin: 10px 0 6px; font-size: 16px; font-weight: 600; }
.cell p { margin: 0; font-size: 14.5px; color: var(--ink-2); }
.band-soft .cell, .band-accent .cell { background: var(--bg); }
.cell a { display: inline-block; margin-top: 12px; font-size: 13.5px; font-weight: 500; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .grid-4, .grid-2 { grid-template-columns: 1fr; } }
.lp-accent .sq { background: #ef4444; }

/* ── Differentiator flow ───────────────────────────────── */
.flow { max-width: 560px; margin: 40px auto 0; }
.flow-card { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 18px 20px; }
.flow-tag { display: block; font-family: "JetBrains Mono", monospace; font-size: 12px; color: var(--ink-2); margin-bottom: 6px; }
.flow-card p { margin: 0; font-size: 15px; }
.flow-card code { background: var(--acc-soft); }
.flow-done { border-color: rgba(52,211,153,.5); background: rgba(52,211,153,.06); }
.flow-arrow { text-align: center; color: var(--ink-2); font-size: 18px; line-height: 1.8; }
.c-bad-i { color: #dc2626; font-weight: 600; }

/* ── YAML section ──────────────────────────────────────── */
.yaml-inner { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 48px; align-items: center; }
.yaml-copy h2 { margin-top: 0; }
.yaml-term .terminal-body { font-size: 12.5px; line-height: 1.65; }
@media (max-width: 900px) { .yaml-inner { grid-template-columns: 1fr; gap: 32px; } }

/* ── Pricing ───────────────────────────────────────────── */
.price-card { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 28px; }
.price-pro { border-color: var(--acc); box-shadow: 0 0 0 1px var(--acc); }
.price-name { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.price-amt { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; margin: 6px 0 12px; }
.price-card p { margin: 0 0 20px; font-size: 14.5px; color: var(--ink-2); }

.cta-sub { margin: 0 auto 26px; max-width: 46ch; font-size: 16px; color: rgba(255,255,255,.85); }

/* ── CTA band ──────────────────────────────────────────── */
.cta-band { background: var(--acc); color: #fff; padding: 64px 0; }
.cta-inner { text-align: center; }
.cta-band h2 { margin: 0 0 26px; font-size: 32px; font-weight: 700; letter-spacing: -0.02em; }
.cta-band .cta-row { justify-content: center; }
.cta-band .btn:not(.btn-ghost) { background: #fff; color: var(--acc); border-color: #fff; }
.cta-band .btn:not(.btn-ghost):hover { background: #f0f0fe; }

/* ── Footer ────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--line); padding: 40px 0; background: var(--bg-soft); }
.footer-inner { display: flex; flex-direction: column; gap: 14px; align-items: center; text-align: center; }
.footer-brand { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; }
.footer-links a { color: var(--ink-2); font-size: 14px; }
.footer-copy { margin: 0; font-size: 12.5px; color: var(--ink-2); }
