/* Landing page: same flat dark theme as the app (public/app/styles.css). */

:root {
  --bg: #08080a;
  --panel: #101013;
  --panel-2: #16161a;
  --input: #0b0b0d;
  --line: #222227;
  --line-2: #2e2e34;
  --text: #f2f2f4;
  --soft: #c2c2c8;
  --muted: #7c7c84;
  --faint: #4a4a52;
  --white: #fafafa;
  --x-blue: #1d9bf0;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: var(--bg); font: 15px/1.55 "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: inherit; }
::selection { background: #fff; color: #000; }
:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 28px; }
.mono { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.eyebrow { display: inline-block; font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--line); }
.top-inner { display: flex; align-items: center; gap: 16px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.wordmark { font: 700 20px/1 var(--display); letter-spacing: -0.03em; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.nav-link { color: var(--soft); text-decoration: none; font-size: 13px; font-weight: 600; padding: 6px 10px; border-radius: 999px; }
.nav-link:hover { color: var(--white); background: var(--panel-2); }
.nav-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: var(--soft); }
.nav-icon:hover { color: var(--white); background: var(--panel-2); }
.nav-icon svg { width: 15px; height: 15px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; font-weight: 700; border-radius: 12px; padding: 12px 20px; border: 1px solid var(--line-2); transition: background 0.15s, border-color 0.15s, color 0.15s; }
.btn.primary { background: var(--white); border-color: var(--white); color: #0a0a0b; }
.btn.primary:hover { background: #e2e2e6; border-color: #e2e2e6; }
.btn.ghost { color: var(--soft); background: transparent; }
.btn.ghost:hover { color: var(--white); border-color: #44444b; background: var(--panel-2); }
.btn.small { padding: 7px 14px; font-size: 13px; border-radius: 999px; margin-left: 4px; }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.hero h1 { font: 700 clamp(34px, 5vw, 58px)/1.04 var(--display); letter-spacing: -0.04em; margin: 16px 0 16px; }
.hero h1 span { color: var(--muted); }
.lead { color: var(--soft); font-size: 17px; max-width: 520px; margin: 0 0 26px; }
.cta { display: flex; gap: 10px; flex-wrap: wrap; }
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0; margin: 22px 0 0; color: var(--muted); font-size: 13px; }
.facts li::before { content: "✓"; color: var(--soft); margin-right: 7px; }

/* example results, styled like the app's cards */
.preview { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 14px; display: grid; gap: 10px; }
.preview-bar { display: flex; justify-content: space-between; align-items: center; padding: 2px 4px 4px; }
.tag { font: 500 11px var(--mono); color: var(--soft); border: 1px solid var(--line-2); border-radius: 999px; padding: 3px 10px; }
.card { background: var(--input); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.card.dim { opacity: 0.55; }
.who { display: flex; align-items: center; gap: 12px; }
.avatar { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: var(--muted); background: var(--panel-2); border: 1px solid var(--line-2); }
.who-text { flex: 1; min-width: 0; }
.name { font-weight: 700; display: flex; align-items: center; gap: 4px; }
.handle { color: var(--muted); font-size: 13px; }
.age { font: 500 11px var(--mono); padding: 3px 9px; border-radius: 999px; color: var(--white); border: 1px solid #bdbdc2; white-space: nowrap; }
.text { margin: 10px 0; color: #e4e4e8; font-size: 14px; }
.stats { display: flex; gap: 16px; color: var(--muted); font-size: 13px; padding-top: 10px; border-top: 1px solid var(--line); }
.stats b { color: var(--text); font: 500 13px var(--mono); }
.badge { width: 16px; height: 16px; flex: none; }
.badge.gold { fill: url(#xgold); }
.badge.blue { fill: var(--x-blue); }
#xbadge .tick { fill: #fff; }

/* ---------- how it works ---------- */
.how { padding-top: 64px; padding-bottom: 64px; border-top: 1px solid var(--line); }
.how h2, .final h2 { font: 700 clamp(26px, 3.4vw, 38px)/1.1 var(--display); letter-spacing: -0.03em; margin: 12px 0 28px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.steps li { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.num { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--white); color: #0b0b0c; font: 600 13px var(--mono); }
.steps h3 { margin: 14px 0 6px; font: 600 17px var(--display); }
.steps p { margin: 0; color: var(--soft); font-size: 14px; }

/* ---------- final call to action ---------- */
.final { text-align: center; padding-top: 72px; padding-bottom: 80px; border-top: 1px solid var(--line); }
.final h2 { margin-bottom: 8px; }
.final p { color: var(--muted); margin: 0 0 24px; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); }
.foot-inner { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 22px; font-size: 13px; color: var(--muted); }
.foot-brand { display: inline-flex; align-items: center; gap: 8px; color: var(--soft); font-weight: 600; }
.foot-note { flex: 1; min-width: 220px; }
.foot-x { color: var(--soft); text-decoration: none; }
.foot-x:hover { color: var(--white); text-decoration: underline; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 36px; padding-top: 44px; padding-bottom: 52px; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .nav-link { display: none; }
  .lead { font-size: 16px; }
}

[hidden] { display: none !important; }

/* live "projects found" counter above the headline */
.found { display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px 6px 11px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--panel); color: var(--soft); font-size: 13px; text-decoration: none; transition: border-color 0.15s, color 0.15s; }
.found:hover { border-color: #44444b; color: var(--white); }
.found b { color: var(--white); font: 600 13px var(--mono); }
.found .dot { width: 7px; height: 7px; border-radius: 50%; background: #e6e6e6; box-shadow: 0 0 6px rgba(255, 255, 255, 0.5); }
