/* Same tokens as the app (frontend/public/style.css), so the landing page and
   the product look like one thing. The app is dark-only; so is this. */
:root {
  --bg: #08090b;
  --panel: #101216;
  --panel-2: #15181d;
  --sunken: #0c0e11;

  --line: #1e2128;
  --line-strong: #2b2f38;

  --fg: #e9ebef;
  --muted: #8b919e;
  --dim: #767d8b;

  --accent: #a3e635;
  --accent-hover: #bef264;
  --accent-fg: #0a1003;
  --accent-soft: rgba(163, 230, 53, 0.1);
  --accent-ring: rgba(163, 230, 53, 0.26);
  --accent-glow: 0 0 14px rgba(163, 230, 53, 0.3);

  --radius: 14px;
  --radius-sm: 9px;
  --radius-xs: 6px;

  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg); color: var(--fg); font: 15.5px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

.nav { position: sticky; top: 0; z-index: 10; background: rgba(8, 9, 11, 0.85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-row { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 650; letter-spacing: -0.01em; text-decoration: none; white-space: nowrap; }
.mark { width: 10px; height: 10px; border-radius: 3px; background: var(--accent); box-shadow: var(--accent-glow); }
.nav nav { display: flex; align-items: center; gap: 4px; }
.nav nav a:not(.btn) { padding: 7px 10px; border-radius: var(--radius-sm); color: var(--muted); text-decoration: none; font-size: 14.5px; }
.nav nav a:not(.btn):hover { background: var(--panel); color: var(--fg); }

/* button.go and button.ghost from the app */
.btn { display: inline-block; font-weight: 650; font-size: 14.5px; padding: 9px 17px; border: 1px solid var(--accent); border-radius: var(--radius-sm); background: var(--accent); color: var(--accent-fg); text-decoration: none; transition: background 0.14s, box-shadow 0.14s; }
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); box-shadow: var(--accent-glow); }
.btn-small { font-size: 13px; padding: 5px 11px; margin-left: 8px; }
.btn-ghost { background: var(--panel); border-color: var(--line); color: var(--muted); font-weight: 500; }
.btn-ghost:hover { background: var(--panel); border-color: var(--accent); color: var(--accent); box-shadow: none; }

.hero { padding: 96px 0 72px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 12.5px var(--mono); color: var(--accent); padding: 4px 10px; border: 1px solid var(--accent-ring); border-radius: 999px; background: var(--accent-soft); margin-bottom: 22px; }
h1 { font-size: clamp(34px, 6vw, 56px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 700; max-width: 820px; }
.lead { font-size: 18px; color: var(--muted); max-width: 640px; margin: 22px 0 30px; }
.cta-row { display: flex; gap: 10px; flex-wrap: wrap; }
.cta-row .btn { padding: 11px 20px; }

/* Echoes the app's chat: the user's turn on an accent tint, the agent's on a panel */
.chat-demo { margin-top: 56px; max-width: 680px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--sunken); display: flex; flex-direction: column; gap: 10px; }
.msg { padding: 12px 14px; border-radius: var(--radius-sm); font-size: 14.5px; }
.msg.you { align-self: flex-end; max-width: 85%; background: var(--accent-soft); border: 1px solid var(--accent-ring); }
.msg.ai { background: var(--panel); border: 1px solid var(--line); color: var(--muted); }
.msg.ai strong { color: var(--fg); font-weight: 600; }
code { font: 13px var(--mono); background: var(--panel-2); border: 1px solid var(--line); padding: 1px 6px; border-radius: var(--radius-xs); color: var(--fg); }

.section { padding: 80px 0; border-top: 1px solid var(--line); }
.section.alt { background: var(--sunken); }
h2 { font-size: clamp(25px, 4vw, 34px); letter-spacing: -0.02em; font-weight: 700; margin-bottom: 30px; }
h3 { font-size: 16px; font-weight: 650; margin-bottom: 6px; }

.steps { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.steps li { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.steps span { display: inline-block; font: 12.5px var(--mono); color: var(--accent); margin-bottom: 12px; }
.steps span::before { content: "0"; }
.steps li { list-style: none; }
.steps p, .card p { color: var(--muted); font-size: 14.5px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.card { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); transition: border-color 0.14s; }
.card:hover { border-color: var(--line-strong); }

.trust p { font-size: 16.5px; color: var(--muted); max-width: 720px; margin-bottom: 16px; }
.text-link { color: var(--accent); font-weight: 600; text-decoration: none; }
.text-link:hover { color: var(--accent-hover); }

.cta-final { text-align: center; background: radial-gradient(ellipse at center top, var(--accent-soft), transparent 60%); }
.cta-final h2 { margin-bottom: 10px; }
.cta-final p { color: var(--muted); margin-bottom: 24px; }

.footer { border-top: 1px solid var(--line); padding: 26px 0; font-size: 13.5px; color: var(--dim); }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--accent); }
.footer-row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.legal { max-width: 760px; padding-top: 56px; padding-bottom: 80px; }
.legal h1 { font-size: clamp(30px, 5vw, 40px); }
.legal h2 { font-size: 19px; margin: 32px 0 8px; }
.legal p { color: var(--muted); margin-bottom: 10px; }
.legal p strong { color: var(--fg); font-weight: 600; }
.legal a { color: var(--accent); }
.muted { color: var(--dim); font: 13px var(--mono); margin-top: 10px; }

/* ── Additions for the full landing page ─────────────────────────────── */
.btn-lg { padding: 12px 22px; font-size: 15px; }
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: var(--accent-glow); }
.proof { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 22px; font-size: 13.5px; color: var(--dim); }
.proof li::before { content: "✓"; color: var(--accent); margin-right: 7px; }
.kicker { font: 12.5px var(--mono); color: var(--accent); margin-bottom: 10px; }
.narrow { max-width: 760px; }

/* Product window */
.app-window { margin-top: 56px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--panel); overflow: hidden; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(163, 230, 53, 0.04); }
.win-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--sunken); }
.win-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.win-bar span { margin-left: 10px; font: 12px var(--mono); color: var(--dim); }
.win-body { display: grid; grid-template-columns: 180px minmax(0, 1.05fr) minmax(0, 1fr); min-height: 360px; }
.win-side { display: flex; flex-direction: column; gap: 4px; padding: 14px 10px; border-right: 1px solid var(--line); background: var(--sunken); font-size: 13px; }
.side-brand { display: flex; align-items: center; gap: 8px; font-weight: 650; padding: 0 6px 12px; }
.side-new { padding: 6px 9px; border-radius: var(--radius-sm); background: var(--accent); color: var(--accent-fg); font-weight: 650; margin-bottom: 8px; }
.side-label { font-size: 11px; color: var(--dim); padding: 8px 8px 2px; }
.side-item { padding: 6px 9px; border-radius: var(--radius-sm); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-item.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.win-chat { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-right: 1px solid var(--line); font-size: 13.5px; }
.bubble { padding: 11px 13px; border-radius: var(--radius-sm); }
.bubble.you { align-self: flex-end; max-width: 92%; background: var(--accent-soft); border: 1px solid var(--accent-ring); }
.bubble.ai { background: var(--panel-2); border: 1px solid var(--line); color: var(--muted); }
.steps-done { list-style: none; margin: 8px 0; display: grid; gap: 4px; }
.steps-done li::before { content: "✓"; color: var(--accent); margin-right: 8px; }
.ai-done { color: var(--fg); font-weight: 600; }
.composer { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--sunken); color: var(--dim); }
.send { display: grid; place-items: center; width: 24px; height: 24px; border-radius: var(--radius-xs); background: var(--accent); color: var(--accent-fg); font-weight: 700; }
.win-preview { display: flex; flex-direction: column; gap: 14px; padding: 16px; background: #0b0d10; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.kpis div { padding: 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel); display: flex; flex-direction: column; min-width: 0; }
.kpis small { font-size: 11px; color: var(--dim); }
.kpis b { font-size: 15px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpis em { font-style: normal; font-size: 11.5px; color: var(--accent); }
.chart { flex: 1; min-height: 120px; display: flex; align-items: flex-end; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel); }
.chart span { flex: 1; border-radius: 4px 4px 0 0; background: linear-gradient(to top, rgba(163, 230, 53, 0.35), var(--accent)); }
.rows { display: grid; gap: 6px; }
.rows span { height: 10px; border-radius: 4px; background: var(--panel-2); }
.rows span:nth-child(2) { width: 82%; }
.rows span:nth-child(3) { width: 64%; }

/* Integrations strip */
.strip { padding: 34px 0; border-top: 1px solid var(--line); }
.strip p { text-align: center; font-size: 13px; color: var(--dim); margin-bottom: 14px; }
.strip ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.strip li { padding: 6px 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); font-size: 13.5px; color: var(--muted); }

.card svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 14px; }
.grid.sec { margin-bottom: 22px; }

.uses { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; }
.uses div { padding-left: 16px; border-left: 2px solid var(--accent-ring); }
.uses p { color: var(--muted); font-size: 14.5px; }

details { border-bottom: 1px solid var(--line); padding: 16px 0; }
summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font: 18px var(--mono); line-height: 1; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin-top: 10px; font-size: 15px; }

.footer-cols { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 28px; padding-bottom: 26px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.footer-cols p { margin-top: 10px; max-width: 280px; }
.footer-cols h4 { font-size: 12.5px; font-weight: 600; color: var(--fg); margin-bottom: 10px; }
.footer-cols div > a:not(.brand) { display: block; margin-bottom: 6px; }
.footer .brand { color: var(--fg); }

@media (max-width: 900px) {
  .win-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .win-side { display: none; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav nav a:not(.btn) { display: none; }
  .hero { padding: 60px 0 48px; }
  .section { padding: 56px 0; }
  .win-body { grid-template-columns: 1fr; }
  .win-chat { border-right: none; border-bottom: 1px solid var(--line); }
  .footer-cols { grid-template-columns: 1fr; }
}
