/* Thundar site. Dark-first, the same world as the app: deep navy ground,
   one electric-cyan accent, everything else quiet. Light theme below. */
:root {
  --bg: #0a1220;
  --bg-2: #0f1a2e;
  --surface: #121f36;
  --line: #1f2f4b;
  --text: #e7edf6;
  --muted: #93a4bd;
  --faint: #5f7190;
  --accent: #35d8f0;
  --accent-ink: #062126;
  --accent-soft: rgba(53, 216, 240, 0.12);
  --warn: #f4c661;
  --warn-soft: rgba(244, 198, 97, 0.12);
  --danger: #ff8a80;
  --display: "Sora", "Segoe UI", system-ui, sans-serif;
  --body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", Consolas, monospace;
  --radius: 14px;
  --max: 1080px;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f5f8fc; --bg-2: #eaf0f8; --surface: #ffffff; --line: #d6dfeb;
    --text: #0d1729; --muted: #4a5a74; --faint: #7c8ba3;
    --accent: #0a8ea6; --accent-ink: #ffffff; --accent-soft: rgba(10, 142, 166, 0.10);
    --warn: #8a5a00; --warn-soft: rgba(244, 198, 97, 0.22); --danger: #b3261e;
  }
}
:root[data-theme="light"] {
  --bg: #f5f8fc; --bg-2: #eaf0f8; --surface: #ffffff; --line: #d6dfeb;
  --text: #0d1729; --muted: #4a5a74; --faint: #7c8ba3;
  --accent: #0a8ea6; --accent-ink: #ffffff; --accent-soft: rgba(10, 142, 166, 0.10);
  --warn: #8a5a00; --warn-soft: rgba(244, 198, 97, 0.22); --danger: #b3261e;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 var(--body); overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.01em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2rem, 5.2vw, 3.4rem); line-height: 1.08; }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.2; }
h3 { font-size: 1.05rem; }
p { margin: 0; }
code, .mono { font-family: var(--mono); font-size: 0.86em; }
.wrap { width: min(100% - 32px, var(--max)); margin-inline: auto; }
.eyebrow { font-family: var(--display); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.muted { color: var(--muted); }
.faint { color: var(--faint); }

/* header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-family: var(--display); font-weight: 700; font-size: 1.15rem; letter-spacing: 0.01em; }
.brand:hover { text-decoration: none; }
.bolt { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(53,216,240,.22), rgba(139,92,246,.22)); border: 1px solid rgba(53,216,240,.35); box-shadow: 0 0 22px -8px var(--accent); }
.bolt svg { width: 18px; height: 18px; }
nav { display: flex; gap: 22px; align-items: center; font-size: 0.95rem; }
nav a { color: var(--muted); }
nav a:hover { color: var(--text); text-decoration: none; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: 600 0.95rem var(--display); cursor: pointer; }
.btn:hover { border-color: var(--accent); text-decoration: none; }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.btn.primary:hover { filter: brightness(1.06); }
.btn:disabled { opacity: 0.6; cursor: default; }

/* hero */
.hero { padding: 64px 0 40px; display: grid; gap: 40px; grid-template-columns: 1.1fr 0.9fr; align-items: center; }
.hero .lede { font-size: 1.15rem; color: var(--muted); max-width: 34rem; margin-top: 18px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero .fine { margin-top: 14px; font-size: 0.85rem; color: var(--faint); }

/* the three-layer answer, rendered as the product renders it */
.answer { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; gap: 14px; box-shadow: 0 30px 60px -40px rgba(0,0,0,.6); }
.answer .q { font-size: 0.85rem; color: var(--faint); }
.answer .q b { color: var(--muted); font-weight: 500; }
.layer { border-left: 3px solid var(--line); padding: 4px 0 4px 12px; }
.layer.say { border-color: var(--accent); }
.layer .tag { font-family: var(--display); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); margin-bottom: 4px; }
.layer.say .tag { color: var(--accent); }
.layer p { font-size: 0.93rem; }
.layer .lock { font-size: 0.72rem; color: var(--faint); margin-top: 6px; }

/* sections */
section { padding: 48px 0; border-top: 1px solid var(--line); }
.grid3 { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); margin-top: 26px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; gap: 8px; align-content: start; }
.card .n { font-family: var(--mono); font-size: 0.8rem; color: var(--accent); }
.card p { color: var(--muted); font-size: 0.95rem; }
.steps { display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); margin-top: 26px; }
.step { display: grid; gap: 6px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); }
.step .n { font-family: var(--display); font-size: 1.6rem; color: var(--accent); line-height: 1; }
.step p { color: var(--muted); font-size: 0.95rem; }
.notice { display: grid; gap: 10px; padding: 18px 20px; border-radius: var(--radius); background: var(--warn-soft); border: 1px solid rgba(244,198,97,.35); }
.notice h3 { color: var(--warn); }
.notice ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 0.95rem; }
footer { padding: 28px 0 40px; border-top: 1px solid var(--line); color: var(--faint); font-size: 0.85rem; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* beta page */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 14px; }
.who { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 0.92rem; }
.who .pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font: 600 0.78rem var(--display); }
.rel { display: grid; gap: 12px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); }
.rel header { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.rel h3 { font-size: 1.15rem; }
.rel .meta { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; font-size: 0.88rem; color: var(--muted); }
.rel .meta dt { color: var(--faint); }
.rel .meta dd { margin: 0; overflow-wrap: anywhere; }
.rel .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.rel .notes { font-size: 0.93rem; color: var(--muted); white-space: pre-wrap; }
.err { color: var(--danger); font-size: 0.93rem; }
.ok { color: var(--accent); font-size: 0.93rem; }
.copy { font: 500 0.78rem var(--display); color: var(--accent); background: none; border: 1px solid var(--line); border-radius: 8px; padding: 3px 8px; cursor: pointer; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; }
  .grid3, .steps { grid-template-columns: 1fr; }
  nav .hide-sm { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .bolt { transition: box-shadow .3s; }
  .brand:hover .bolt { box-shadow: 0 0 30px -6px var(--accent); }
}
