/* ── Reset & base ──────────────────────────────────────────── */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-deep: #1a1a2e;
  --bg-card: #16213e;
  --accent: #e94560;
  --accent-hover: #d63851;
  --text: #e0e0e0;
  --text-muted: #a0a0b8;
  --border: #2a2a4a;
  --radius: 8px;
  --max-w: 960px;
}

html {
  font-size: 16px;
  color-scheme: dark;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.6;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

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

/* ── Header ────────────────────────────────────────────────── */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
}
.logo:hover { text-decoration: none; color: var(--accent); }

.site-header nav {
  display: flex;
  gap: 1.5rem;
}

.site-header nav a {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.site-header nav a:hover,
.site-header nav a[aria-current] {
  color: var(--text);
}

/* ── Hero ──────────────────────────────────────────────────── */

.hero {
  text-align: center;
  padding: 4rem 2rem 2rem;
  max-width: var(--max-w);
  margin: 0 auto;
}

.hero h1 {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.hero .lede {
  font-size: 1.1rem;
  color: var(--text-muted);
}

.hero-sm { padding: 3rem 2rem 1.5rem; }
.hero-sm h1 { font-size: 1.75rem; }

/* ── Buttons ───────────────────────────────────────────────── */

.btn {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-hover);
  text-decoration: none;
}

.btn-secondary {
  background: var(--border);
  color: var(--text);
}
.btn-secondary:hover {
  background: #3a3a5a;
  text-decoration: none;
}

.btn-link {
  background: none;
  color: var(--text-muted);
  padding: 0.65rem 0.5rem;
}
.btn-link:hover { color: var(--text); }

/* ── Product cards ─────────────────────────────────────────── */

.products {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: var(--max-w);
  margin: 2rem auto;
  padding: 0 2rem;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.product-card h2 {
  font-size: 1.35rem;
}

.product-card p {
  color: var(--text-muted);
  flex: 1;
}

.product-card-primary {
  border-color: var(--accent);
}

/* ── Comparison table ──────────────────────────────────────── */

.comparison {
  max-width: var(--max-w);
  margin: 3rem auto;
  padding: 0 2rem;
}

.comparison h2 {
  margin-bottom: 1rem;
  font-size: 1.35rem;
}

.comparison table {
  width: 100%;
  border-collapse: collapse;
}

.comparison th,
.comparison td {
  text-align: left;
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--border);
}

.comparison th {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.comparison td:first-child {
  font-weight: 600;
}

/* ── Waitlist ──────────────────────────────────────────────── */

.waitlist {
  max-width: 540px;
  margin: 3rem auto;
  padding: 2rem;
  text-align: center;
}

.waitlist h2 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.waitlist p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

#waitlist-form {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

#waitlist-email {
  padding: 0.6rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  color: var(--text);
  font-size: 0.95rem;
  width: 260px;
}

#waitlist-email::placeholder { color: var(--text-muted); }

#waitlist-form button {
  padding: 0.6rem 1.25rem;
  border: none;
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.15s;
}

#waitlist-form button:hover { background: var(--accent-hover); }

.status { font-size: 0.9rem; min-height: 1.4em; }
.status.ok { color: #4ade80; }
.status.warn { color: #fbbf24; }

/* ── Platform cards (download page) ────────────────────────── */

.platforms {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: var(--max-w);
  margin: 2rem auto;
  padding: 0 2rem;
}

.platform-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
}

.platform-card h2 { font-size: 1.2rem; }
.platform-card p { color: var(--text-muted); font-size: 0.9rem; }

.hash {
  font-size: 0.7rem;
  color: var(--text-muted);
  word-break: break-all;
  white-space: pre-wrap;
  min-height: 1.2em;
}

.browser-fallback {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
}

/* ── Footer ────────────────────────────────────────────────── */

.site-footer {
  margin-top: auto;
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ── Responsive ────────────────────────────────────────────── */

@media (max-width: 800px) {
  .products { grid-template-columns: 1fr; }
  .platforms { grid-template-columns: 1fr; }

  .hero h1 { font-size: 1.75rem; }

  #waitlist-form {
    flex-direction: column;
    align-items: center;
  }

  #waitlist-email { width: 100%; max-width: 320px; }

  .comparison table { font-size: 0.9rem; }
  .comparison th,
  .comparison td { padding: 0.5rem 0.6rem; }
}
