/* Discovery Hub marketing site. Plain CSS, no build step.
   Body text uses Roboto (the app's font); headings use Space Grotesk (the logo wordmark font).
   Accent colors come from the logo gradient. */
/* Fonts are stored in this site (assets/fonts) so no visitor data goes to a font service. */
@font-face { font-family: Roboto; font-style: normal; font-weight: 400 500; font-display: swap; src: url(fonts/roboto-latin.woff2) format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 500 600; font-display: swap; src: url(fonts/space-grotesk-latin.woff2) format("woff2"); }

:root {
  --bg: #0a0f1c;
  --bg-2: #0e1526;
  --surface: #121a2e;
  --surface-2: #18223b;
  --border: #25345a;
  --text: #e8edf7;
  --muted: #a3b0c6;
  --teal: #14e3b1;
  --sky: #2aa5e0;
  --blue: #4668f2;
  --link: #7cc0ff;
  --danger: #ff8f8f;
  --ok: #5fe3a8;
  --grad: linear-gradient(135deg, var(--teal), var(--sky) 55%, var(--blue));
  --radius: 12px;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.6 Roboto, system-ui, -apple-system, "Segoe UI", sans-serif;
}
img, svg { max-width: 100%; }
h1, h2, h3 { font-family: "Space Grotesk", Roboto, system-ui, sans-serif; line-height: 1.15; letter-spacing: -.015em; margin: 0 0 .6em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); font-weight: 600; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.25rem); font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -.005em; }
p { margin: 0 0 1em; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
ul { padding-left: 1.2em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 62ch; }
.eyebrow { font: 500 .8rem/1 Roboto, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); margin: 0 0 1rem; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.skip { position: absolute; left: 12px; top: -60px; background: var(--teal); color: #04121a; padding: 10px 14px; border-radius: 8px; font-weight: 500; z-index: 100; }
.skip:focus { top: 12px; color: #04121a; }

/* ── Header ─────────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(10, 15, 28, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 68px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font: 600 1.25rem "Space Grotesk", Roboto, sans-serif; letter-spacing: -.01em; margin-right: auto; padding: 6px 0; }
.brand img { width: 40px; height: 40px; display: block; }
.nav-toggle { display: none; background: none; border: 1px solid var(--border); color: var(--text); border-radius: 8px; width: 44px; height: 44px; padding: 0; cursor: pointer; }
.nav-toggle svg { display: block; margin: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.site-nav a:not(.btn) { display: block; padding: 10px 14px; color: var(--text); text-decoration: none; border-radius: 8px; font-weight: 500; font-size: 1rem; }
.site-nav a:not(.btn):hover { background: var(--surface); }
.site-nav a[aria-current="page"] { color: var(--teal); }
.site-nav .btn { margin-left: 8px; }

@media (max-width: 760px) {
  .js .nav-toggle { display: block; }
  .js .site-nav { display: none; width: 100%; padding-bottom: 14px; }
  .js .site-nav.open { display: block; }
  .site-nav { width: 100%; }
  .site-nav ul { flex-direction: column; align-items: stretch; }
  .site-nav .btn { margin: 8px 0 0; }
}

/* ── Buttons ────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 22px; border-radius: 10px; border: 1px solid transparent; font: 500 1rem Roboto, sans-serif; text-decoration: none; cursor: pointer; transition: transform .12s, background .12s; }
.btn-primary { background: var(--teal); color: #04121a; }
.btn-primary:hover { background: #5cf0cb; color: #04121a; transform: translateY(-1px); }
.btn-ghost { border-color: var(--border); color: var(--text); background: transparent; }
.btn-ghost:hover { background: var(--surface); color: #fff; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 1.6rem; }

/* ── Sections ───────────────────────────────────────────── */
section { padding: 72px 0; }
section.tight { padding: 48px 0; }
.band { background: var(--bg-2); border-block: 1px solid var(--border); }
.section-head { max-width: 760px; margin-bottom: 36px; }

.hero { padding: 72px 0 64px; background: radial-gradient(900px 420px at 85% -10%, rgba(70, 104, 242, .22), transparent 60%), radial-gradient(700px 380px at 0% 0%, rgba(20, 227, 177, .10), transparent 60%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero-grid > *, .form-grid > *, .feature > *, .grid > * { min-width: 0; }
.page-hero { padding: 64px 0 40px; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero { padding-top: 48px; } }

.grid { display: grid; gap: 20px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; } section { padding: 52px 0; } }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card p, .card li { color: var(--muted); }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover { color: var(--teal); }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--teal); color: #04121a; font: 600 1rem "Space Grotesk", sans-serif; margin-bottom: 14px; }
.icon { width: 40px; height: 40px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); display: grid; place-items: center; margin-bottom: 14px; color: var(--teal); }

/* ── Feature rows (Features page) ───────────────────────── */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; padding: 48px 0; border-top: 1px solid var(--border); }
.feature:first-of-type { border-top: 0; }
.feature ul { margin: 0; padding: 0; list-style: none; }
.feature li { position: relative; padding: 0 0 12px 28px; color: var(--muted); }
.feature li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 9px; height: 9px; border-radius: 50%; background: var(--grad); }
.feature li strong { color: var(--text); font-weight: 500; }
@media (max-width: 800px) { .feature { grid-template-columns: 1fr; gap: 16px; padding: 36px 0; } }
.toc { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 24px 0 0; }
.toc a { display: block; padding: 8px 14px; border: 1px solid var(--border); border-radius: 999px; text-decoration: none; color: var(--text); font-size: .95rem; }
.toc a:hover { border-color: var(--teal); }

/* ── Illustrative dashboard (home hero) ─────────────────── */
.mock { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 18px; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.mock-bar { display: flex; align-items: center; gap: 8px; font: 500 .85rem Roboto, sans-serif; color: var(--muted); padding-bottom: 14px; }
.mock-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--border); }
.mock-bar span { margin-left: 6px; }
.mock-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tile { background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px; padding: 12px; min-width: 0; }
.tile b { display: block; font: 600 1.5rem "Space Grotesk", sans-serif; color: #fff; }
.tile small { display: block; font-size: .74rem; line-height: 1.3; color: var(--muted); }
.mock-panel { margin-top: 10px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px; padding: 14px; }
.mock-panel > small { color: var(--muted); font-size: .8rem; }
.meter { display: flex; height: 14px; border-radius: 7px; overflow: hidden; margin: 10px 0 12px; background: var(--surface-2); }
.meter i:nth-child(1) { width: 62%; background: var(--teal); }
.meter i:nth-child(2) { width: 23%; background: var(--sky); }
.meter i:nth-child(3) { width: 9%; background: var(--blue); }
.mock-row { display: flex; align-items: center; gap: 10px; font-size: .82rem; color: var(--muted); padding: 5px 0; }
.mock-row span:first-child { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-row .bar { width: 70px; height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; flex: none; }
.mock-row .bar i { display: block; height: 100%; background: var(--sky); }
.mock-note { font-size: .78rem; color: var(--muted); text-align: center; margin: 10px 0 0; }
@media (max-width: 420px) { .mock-tiles { grid-template-columns: repeat(2, 1fr); } }

/* ── CTA band ───────────────────────────────────────────── */
.cta { text-align: center; }
.cta .card { padding: 48px 24px; background: linear-gradient(180deg, var(--surface-2), var(--surface)); }
.cta p { max-width: 56ch; margin-inline: auto; }
.cta .btn-row { justify-content: center; }

/* ── Forms ──────────────────────────────────────────────── */
.form-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .form-grid { grid-template-columns: 1fr; gap: 28px; } }
form.card { padding: 28px; }
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; gap: 0; } }
label { display: block; font-weight: 500; font-size: .95rem; margin-bottom: 6px; color: var(--text); }
label .opt { font-weight: 400; color: var(--muted); }
input, select, textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--text); background: var(--bg); border: 1px solid #3a4b78; border-radius: 8px; padding: 11px 12px; min-height: 46px; }
textarea { min-height: 120px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--teal); outline-offset: 1px; border-color: var(--teal); }
.hp { position: absolute; left: -9999px; }
.form-note { font-size: .88rem; color: var(--muted); margin: 14px 0 0; }
.form-status { margin: 16px 0 0; padding: 12px 14px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg); }
.form-status:empty { display: none; }
.form-status.ok { border-color: var(--ok); color: var(--ok); }
.form-status.err { border-color: var(--danger); color: var(--danger); }
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; }
.contact-list li { padding: 14px 0; border-top: 1px solid var(--border); }
.contact-list span { display: block; font-size: .85rem; color: var(--muted); }

/* ── Footer ─────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--border); padding: 40px 0; color: var(--muted); font-size: .95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; align-items: flex-start; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; }
.site-footer a { color: var(--text); text-decoration: none; display: inline-block; padding: 6px 0; }
.site-footer a:hover { color: var(--teal); text-decoration: underline; }
.site-footer p { margin: 8px 0 0; }

/* ── Long-form text (privacy policy) ────────────────────── */
.prose { max-width: 780px; }
.prose h2 { font-size: 1.4rem; margin-top: 2.2rem; }
.prose li { margin-bottom: .5em; }
.prose p, .prose li { color: var(--muted); }
.prose strong { color: var(--text); font-weight: 500; }
.form-note a { color: var(--link); }
