:root {
  --primary: #FF4D1C;
  --primary-light: #FF6B42;
  --primary-dark: #D93A0E;
  --accent: #0D1B2A;
  --background: #0D1B2A;
  --surface: #162336;
  --surface-light: #1E3148;
  --text-primary: #FFFFFF;
  --text-secondary: #A0B4C8;
  --text-muted: #5A7A95;
  --border: #24405c;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --max-width: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--background);
  color: var(--text-primary);
  line-height: 1.55;
}

a { color: var(--primary-light); }

img, svg { max-width: 100%; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Nav ─────────────────────────────────── */
header.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 27, 42, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  text-decoration: none;
  color: var(--text-primary);
}

.brand .mark {
  font-size: 22px;
}

nav.links {
  display: flex;
  align-items: center;
  gap: 28px;
}

nav.links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}

nav.links a:hover { color: var(--text-primary); }

/* Hamburger toggle (hidden on desktop) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 0 auto;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 640px) {
  .nav-toggle { display: flex; }

  nav.links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 8px 24px 16px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
  }

  nav.links.open { display: flex; }

  nav.links a {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
  }

  nav.links a:last-child { border-bottom: none; }
}

/* ── Hero ────────────────────────────────── */
.hero {
  padding: 88px 24px 64px;
  text-align: center;
  background:
    radial-gradient(ellipse 800px 400px at 50% -10%, rgba(255, 77, 28, 0.18), transparent),
    var(--background);
}

.hero .logo-mark {
  width: 76px;
  height: 76px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  margin: 0 auto 28px;
  box-shadow: 0 12px 32px rgba(255, 77, 28, 0.35);
}

.hero h1 {
  font-size: clamp(32px, 5.5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  line-height: 1.15;
}

.hero h1 .accent { color: var(--primary-light); }

.hero p.sub {
  color: var(--text-secondary);
  font-size: clamp(16px, 2vw, 19px);
  max-width: 560px;
  margin: 0 auto 36px;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 24px rgba(255, 77, 28, 0.3);
}

.btn-primary:hover { background: var(--primary-light); }

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border);
}

.btn-secondary:hover { border-color: var(--text-muted); }

.pills {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.pill {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ── Sections ────────────────────────────── */
section { padding: 72px 24px; }

section .wrap { max-width: var(--max-width); }

.section-head {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 48px;
}

.section-head .eyebrow {
  color: var(--primary-light);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  display: block;
}

.section-head h2 {
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 800;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.section-head p {
  color: var(--text-secondary);
  margin: 0;
}

/* ── Features ────────────────────────────── */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

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

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.feature-card .icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  background: var(--surface-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 8px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 14px;
  margin: 0;
}

/* ── Store badges ────────────────────────── */
.store-badges {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.store-badge-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #000;
  border: 1px solid #333;
  border-radius: 10px;
  padding: 9px 18px 9px 14px;
  text-decoration: none;
  color: #fff;
  transition: transform 0.15s ease, background 0.15s ease;
}

.store-badge-btn:hover {
  background: #1a1a1a;
  transform: translateY(-1px);
}

.store-badge-btn .icon { flex-shrink: 0; }

.store-badge-btn .text {
  text-align: left;
  line-height: 1.15;
}

.store-badge-btn .text .small {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: #ddd;
  letter-spacing: 0.02em;
}

.store-badge-btn .text .big {
  display: block;
  font-size: 18px;
  font-weight: 600;
  margin-top: 1px;
}

.beta-note {
  color: var(--text-secondary);
  font-size: 14px;
  margin: 0 0 32px;
}

.beta-note a { font-weight: 700; }

/* ── Legal pages ─────────────────────────── */
.legal-hero {
  padding: 56px 24px 8px;
  text-align: center;
}

.legal-hero h1 {
  font-size: clamp(28px, 4.5vw, 38px);
  font-weight: 800;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.legal-hero .updated {
  color: var(--text-muted);
  font-size: 13px;
}

.legal {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 40px;
  margin-bottom: 24px;
  scroll-margin-top: 90px;
}

.legal h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 28px 0 10px;
  color: var(--text-primary);
}

.legal h3:first-of-type { margin-top: 0; }

.legal p, .legal li {
  color: var(--text-secondary);
  font-size: 15px;
}

.legal ul { padding-left: 20px; }

.legal strong { color: var(--text-primary); }

/* ── Contact ─────────────────────────────── */
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
}

.contact-card .icon-big {
  font-size: 40px;
  margin-bottom: 16px;
}

.contact-card h2 {
  font-size: 24px;
  margin: 0 0 10px;
}

.contact-card p {
  color: var(--text-secondary);
  margin: 0 0 24px;
}

/* ── Footer ──────────────────────────────── */
footer {
  padding: 40px 24px;
  text-align: center;
  border-top: 1px solid var(--border);
}

footer .foot-links {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

footer .foot-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
}

footer .foot-links a:hover { color: var(--text-primary); }

footer .copyright {
  color: var(--text-muted);
  font-size: 13px;
  margin: 0;
}
