/* Basic reset */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
:root {
  --bg: #0b0f14;
  --panel: #0f1520;
  --text: #e6edf3;
  --muted: #9aa6b2;
  --brand: #7c9cff;
  --brand-2: #4fd1c5;
  --danger: #ff6464;
  --ok: #53d0a2;
  --border: #1f2937;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7f9fc;
    --panel: #ffffff;
    --text: #101828;
    --muted: #475467;
    --border: #e5e7eb;
  }
}
body {
  background: radial-gradient(1200px 800px at 70% -10%, rgba(124,156,255,0.18), transparent), var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}
.container {
  max-width: 980px;
  padding: 24px;
  margin: 0 auto;
}
header.container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; gap: 10px; align-items: center; font-weight: 700; }
.brand .logo { width: 32px; height: 32px; display: grid; place-items: center; font-size: 21px; }
.brand .name { letter-spacing: 0.3px; }
header nav { display: flex; gap: 16px; }
header nav a { color: var(--muted); text-decoration: none; }
header nav a:hover { color: var(--text); }

.hero { text-align: center; padding: 40px 0 10px; }
.hero h1 { font-size: 40px; line-height: 1.15; margin: 0 0 10px; }
.hero .subtitle { color: var(--muted); font-size: 18px; margin: 0 0 16px; }
.hero .cta { margin: 20px 0 0; }
.hero .cta .ghost { color: var(--text); border: 1px solid var(--border); padding: 10px 16px; border-radius: 10px; text-decoration: none; }
.hero .note { color: var(--muted); font-size: 14px; margin-top: 10px; }

.features { margin-top: 24px; }
.features h2 { margin-bottom: 8px; }
.features ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px 20px; padding-left: 18px; }

.card { background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 20px; margin-top: 30px; }
.downloads h2 { margin: 0 0 6px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

.signup { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; margin-top: 14px; }
.signup input[type="email"] {
  background: transparent;
  border: 1px solid var(--border);
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--text);
}
.signup button {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #0b1220;
  border: none;
  font-weight: 700;
  padding: 12px 16px;
  border-radius: 12px;
  cursor: pointer;
}
.signup button[disabled] { opacity: 0.6; cursor: not-allowed; }
.status { min-height: 22px; grid-column: 1 / -1; font-size: 14px; }
.status.error { color: var(--danger); }
.status.success { color: var(--ok); }

.gate { position: relative; }
.gate .gate-cover {
  position: absolute; inset: 0; backdrop-filter: blur(4px); pointer-events: auto;
  border-radius: 12px; border: 1px dashed var(--border); background: rgba(0,0,0,0.02);
}
.gate.unlocked .gate-cover { display: none; }
.gate .buttons { display: grid; gap: 10px; grid-template-columns: 1fr; margin-top: 16px; }
.button {
  display: inline-block;
  text-align: center;
  background: #111827;
  color: #ffffff; /* ensure readable in light mode */
  text-decoration: none;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
}
.button:hover { border-color: var(--brand); }

.faq { margin-top: 40px; }
.footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 40px; margin-top: 30px; color: var(--muted); font-size: 14px; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--text); }

.visually-hidden {
  position: absolute !important; height: 1px; width: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
}

@media (max-width: 640px) {
  .hero h1 { font-size: 32px; }
}
