/* BenefactorOS landing: tokens, layout and shared components. Feature styles live in their own files
   (console.css, tour.css, motion.css, lookup.css) and use only these tokens, so both themes just work. */

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --panel: #f2f4f7;
  --ink: #14161a;
  --soft: #4b525e;
  --mute: #6b7280;
  --line: #e3e6eb;
  --accent: #5e3485;
  --accent-strong: #4a2869;
  --accent-soft: #f1ebf7;
  --on-accent: #ffffff;
  --ok: #137a3d;
  --warn: #9a5b00;
  --stop: #b42318;
  --shadow: 0 30px 80px rgba(20, 22, 26, 0.14);
  /* The "tech" bands (hero, compliance) are dark in both themes. */
  --tech-bg: #0b0d12;
  --tech-panel: #12151c;
  --tech-line: rgba(255, 255, 255, 0.09);
  --tech-ink: #f3f5f8;
  --tech-soft: rgba(243, 245, 248, 0.72);
  --tech-accent: #c4a8ea;
  --tech-glow: rgba(94, 52, 133, 0.5);
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --display: "Plus Jakarta Sans", Inter, sans-serif;
  --sans: Inter, system-ui, sans-serif;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0e1015;
  --surface: #151820;
  --panel: #171b23;
  --ink: #eef1f5;
  --soft: #b4bac5;
  --mute: #8a92a0;
  --line: #262b35;
  --accent: #a98bd6;
  --accent-strong: #bb9fe3;
  --accent-soft: rgba(169, 139, 214, 0.14);
  --on-accent: #0b0d12;
  --ok: #4ade80;
  --warn: #fbbf24;
  --stop: #f87171;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  --tech-bg: #07080c;
  --tech-panel: #0f1218;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; line-height: 1.55; transition: background 0.25s ease, color 0.25s ease; }
a { color: inherit; }
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.025em; line-height: 1.08; text-wrap: balance; }
p, li { text-wrap: pretty; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.cop { color: var(--accent); }
.kick { font-family: var(--mono); font-weight: 600; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); margin-bottom: 14px; }
.kick::before { content: ""; display: inline-block; width: 7px; height: 7px; background: var(--accent); margin-right: 10px; vertical-align: 1px; }

.btn { display: inline-flex; align-items: center; justify-content: center; height: 46px; padding: 0 22px; border-radius: 12px; background: var(--accent); color: var(--on-accent); font-weight: 600; text-decoration: none; white-space: nowrap; border: 0; font-size: 15px; cursor: pointer; font-family: var(--sans); transition: background 0.2s ease, transform 0.2s ease; }
.btn:hover { background: var(--accent-strong); transform: translateY(-1px); }
.btn.ghost { background: var(--panel); color: var(--ink); }
.btn.ghost:hover { background: var(--line); }

/* Nav */
nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 18px; text-decoration: none; white-space: nowrap; }
.brand svg { width: 32px; height: 32px; flex: none; }
.brand b { color: var(--accent); font-weight: 800; }
.links { display: flex; align-items: center; gap: 26px; font-size: 14px; font-weight: 500; color: var(--soft); }
.links a { text-decoration: none; white-space: nowrap; }
.links a:hover { color: var(--ink); }
.navcta { display: flex; gap: 10px; align-items: center; }
.navcta .btn { height: 40px; padding: 0 16px; font-size: 14px; }
.theme-toggle { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.theme-toggle:hover { border-color: var(--accent); }
.theme-toggle svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }

/* Sections */
section { padding: 96px 0; }
section.tint { background: var(--panel); }
h2 { font-size: clamp(30px, 3.8vw, 46px); font-weight: 800; max-width: 1040px; }
.sub { font-size: 18px; color: var(--soft); max-width: 680px; margin-top: 16px; }
.src { font-size: 12.5px; color: var(--mute); margin-top: 22px; }

/* Dark "tech" bands: a faint dot grid and a blue glow, in both themes. */
.tech { background: var(--tech-bg); color: var(--tech-ink); position: relative; overflow: hidden; }
.tech::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px); background-size: 22px 22px; mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%); pointer-events: none; }
.tech::after { content: ""; position: absolute; width: 900px; height: 600px; left: 50%; top: -200px; transform: translateX(-50%); background: radial-gradient(closest-side, var(--tech-glow), transparent); filter: blur(30px); opacity: 0.55; pointer-events: none; }
.tech > .wrap { position: relative; z-index: 1; }
.tech .kick { color: var(--tech-soft); }
.tech .kick::before { background: var(--tech-accent); }
.tech .cop { color: var(--tech-accent); }
.tech .sub, .tech .src { color: var(--tech-soft); }

/* Hero */
.hero { padding: 88px 0 96px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(38px, 4.3vw, 56px); font-weight: 800; }
.hero .lede { font-size: clamp(17px, 1.8vw, 20px); color: var(--tech-soft); margin-top: 22px; max-width: 560px; }
.hero .ctas { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.hero .btn.ghost { background: rgba(255, 255, 255, 0.08); color: var(--tech-ink); }
.hero .btn.ghost:hover { background: rgba(255, 255, 255, 0.14); }
.hero .note { font-family: var(--mono); font-size: 12px; color: var(--tech-soft); margin-top: 22px; }

/* Numbers */
.nums { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); margin-top: 44px; }
.nums > div { padding: 24px 20px 0 0; }
.big { font-family: var(--display); font-weight: 800; font-size: clamp(38px, 4.5vw, 54px); letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.lab { font-size: 14px; color: var(--soft); margin-top: 10px; max-width: 240px; }

/* Panels */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 44px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 30px 32px; }
.panel.dark { background: var(--tech-bg); border-color: var(--tech-bg); color: var(--tech-ink); }
.panel h3 { font-size: 22px; font-weight: 800; }
.panel ul { list-style: none; margin-top: 14px; }
.panel li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.panel.dark li { border-bottom-color: var(--tech-line); color: var(--tech-soft); }
.badge { display: inline-block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; padding: 5px 11px; border-radius: 999px; background: var(--panel); color: var(--soft); margin-bottom: 14px; }
.panel.dark .badge { background: rgba(255, 255, 255, 0.1); color: var(--tech-soft); }

/* Screens */
.shot { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--surface); }
.shot img { display: block; width: 100%; height: auto; }
.row { display: grid; grid-template-columns: 1fr 1.35fr; gap: 64px; align-items: center; }
.row h3 { font-size: clamp(30px, 3.6vw, 42px); font-weight: 800; }
.row p { font-size: 17px; color: var(--soft); margin-top: 14px; }

/* Compliance checks (motion.js ticks them in) */
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; margin-top: 40px; }
.checks > div { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--tech-line); font-size: 15.5px; color: var(--tech-soft); }
.checks svg { flex: none; width: 24px; height: 24px; stroke: var(--tech-accent); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-top: 1px; }
.checks b { font-family: var(--display); color: var(--tech-ink); }
.comp-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; align-items: start; }
.punch { margin-top: 34px; font-family: var(--display); font-weight: 700; font-size: 19px; border-left: 3px solid var(--accent); padding-left: 16px; max-width: 820px; }
.tech .punch { border-left-color: var(--tech-accent); }

/* Demo form */
.demo { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
form.card { display: grid; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 28px; box-shadow: var(--shadow); }
label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
input, textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font-size: 15px; font-family: var(--sans); color: var(--ink); background: var(--bg); }
input:focus, textarea:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
#status { font-size: 14px; min-height: 20px; }
#status.ok { color: var(--ok); }
#status.err { color: var(--stop); }

footer { border-top: 1px solid var(--line); padding: 34px 0; font-size: 13.5px; color: var(--mute); }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }

@media (max-width: 960px) {
  .links { display: none; }
  .hero-grid, .row, .duo, .checks, .demo, .comp-grid { grid-template-columns: 1fr; gap: 32px; }
  .nums { grid-template-columns: 1fr 1fr; }
  section { padding: 64px 0; }
  .hero { padding: 56px 0 64px; }
}
@media (max-width: 520px) {
  .navcta .ghost { display: none; }
  .navcta { gap: 8px; }
  .navcta .btn { padding: 0 12px; font-size: 13px; height: 38px; }
  .theme-toggle { width: 38px; height: 38px; }
  .brand { font-size: 16px; gap: 8px; }
  .brand svg { width: 28px; height: 28px; }
  .two { grid-template-columns: 1fr; }
  .nums { grid-template-columns: 1fr; }
  form.card { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
