:root {
  --bg: #0a0d12;
  --bg-elev: #11161f;
  --glow-1: #009af2;
  --glow-2: #00a2ff;
  --text: #e8eef5;
  --muted: #8a97a6;
  --maxw: 1040px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

a { color: var(--glow-2); text-decoration: none; }
a:hover { text-decoration: underline; }

.hero {
  text-align: center;
  padding: 96px 0 72px;
}
.wordmark {
  font-size: clamp(48px, 11vw, 132px);
  font-weight: 800;
  letter-spacing: 0.06em;
  margin: 0;
  color: rgba(255,255,255,0.06);            /* ghost fill, like the app */
  -webkit-text-stroke: 1px rgba(0,162,255,0.55);
  text-shadow: 0 0 24px rgba(0,154,242,0.45), 0 0 60px rgba(0,162,255,0.25);
  position: relative;
  background:
    radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%),
      rgba(255,255,255,0.85), rgba(0,162,255,0.25) 40%, transparent 70%);
  -webkit-background-clip: text;
  background-clip: text;
}
.tagline { color: var(--muted); font-size: clamp(16px, 2.4vw, 22px); margin: 20px 0 36px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block; padding: 13px 26px; border-radius: 10px;
  font-weight: 600; font-size: 16px; cursor: pointer; text-decoration: none;
}
.btn-primary {
  color: #04141f;
  background: linear-gradient(180deg, var(--glow-2), var(--glow-1));
  box-shadow: 0 0 24px rgba(0,162,255,0.5);
}
.btn-primary:hover { text-decoration: none; box-shadow: 0 0 34px rgba(0,162,255,0.75); }
.btn-ghost { color: var(--text); border: 1px solid rgba(255,255,255,0.18); }
.btn-ghost:hover { text-decoration: none; border-color: var(--glow-2); }

@media (prefers-reduced-motion: reduce) {
  .wordmark { background: none; -webkit-text-fill-color: rgba(255,255,255,0.08); }
}

.download { text-align: center; padding: 72px 0; border-top: 1px solid rgba(255,255,255,0.08); }
.download h2 { font-size: clamp(28px, 5vw, 40px); margin: 0 0 10px; }
.dl-requirements { color: var(--muted); margin: 0 0 28px; }
.dl-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* When JS promotes one platform, the others become secondary "just in case" links. */
.dl-buttons .btn-primary.is-secondary {
  background: transparent; color: var(--text);
  border: 1px solid rgba(255,255,255,0.18); box-shadow: none;
}

.features { padding: 72px 0; }
.features h2 { text-align: center; font-size: clamp(26px, 4.5vw, 38px); margin: 0 0 40px; }
.feature-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.feature {
  background: var(--bg-elev); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px; padding: 24px;
}
.feature h3 { margin: 0 0 8px; font-size: 19px; color: var(--glow-2); }
.feature p { margin: 0; color: var(--muted); }

.site-footer {
  text-align: center; padding: 56px 0 72px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-brand { font-weight: 800; letter-spacing: 0.08em; margin: 0 0 14px; }
.footer-links { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; margin-bottom: 16px; }
.footer-copy { color: var(--muted); font-size: 14px; margin: 0; }

.legal { padding: 64px 0 96px; }
.legal h1 { font-size: clamp(28px, 5vw, 40px); margin: 0 0 6px; }
.legal .updated { color: var(--muted); margin: 0 0 28px; }
.legal h2 { color: var(--glow-2); font-size: 20px; margin: 32px 0 8px; }
.legal p, .legal li { color: var(--text); }
.legal a.back { display: inline-block; margin-bottom: 8px; }
.lang-switch { margin: 0 0 28px; font-size: 14px; }
.review-banner {
  background: rgba(0,162,255,0.10); border: 1px solid rgba(0,162,255,0.35);
  border-radius: 10px; padding: 12px 16px; margin-bottom: 28px; color: var(--text);
  font-size: 14px;
}

/* --- contact form --- */

/* Honeypot: offscreen, NOT display:none. Bots specifically skip display:none
   fields because the technique is widely known; offscreen positioning still
   renders (so naive scrapers find and fill it) while no human ever sees it. */
.ts-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form { margin-top: 1.5rem; max-width: 34rem; }
.contact-form .field { display: flex; flex-direction: column; margin-bottom: 1.1rem; }
.contact-form label { font-weight: 600; margin-bottom: 0.35rem; color: var(--text); }

/* Dark-theme inputs: elevated surface, site text colour, the same translucent
   border .btn-ghost uses. Never a hardcoded light background — the page is
   #0a0d12. */
.contact-form input,
.contact-form textarea {
  font: inherit;
  padding: 0.55rem 0.7rem;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 8px;
  background: var(--bg-elev);
  color: var(--text);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--muted); }
.contact-form textarea { resize: vertical; }
.contact-form input:focus-visible,
.contact-form textarea:focus-visible {
  outline: 2px solid var(--glow-2);
  outline-offset: 1px;
  border-color: var(--glow-2);
}
.contact-form [aria-invalid="true"] { border-color: #ff8f8f; }

/* Light-on-dark status colours. #ff8f8f ≈ 8:1 and #5ce08f ≈ 11:1 against
   #0a0d12; the dark-red/dark-green pair a light theme would use sits near 2:1
   here and is effectively illegible. */
.field-error {
  color: #ff8f8f;
  font-size: 0.9rem;
  min-height: 1.2em;
  margin-top: 0.25rem;
}
.contact-status { display: inline-block; margin-left: 0.75rem; font-size: 0.95rem; }
.contact-status.is-error { color: #ff8f8f; }
.contact-status.is-ok { color: #5ce08f; }
/* .contact-form button is this repo's first <button>-styled .btn — everywhere
   else .btn is an <a>. .btn sets font-size/font-weight but not font-family,
   and nothing resets the UA button border, so without this it renders as
   Arial with a 2px outset border instead of matching the anchors. */
.contact-form button { font-family: inherit; line-height: normal; border: 0; }
.contact-form button[disabled] { opacity: 0.6; cursor: default; }
.mailto-fallback { color: #ff8f8f; margin-top: 0.5rem; }
