/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img, svg { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; }

/* ---------- Design tokens ---------- */
:root {
  --bg: #0b0e17;
  --surface: #131a2b;
  --surface-2: #1b2438;
  --border: #26314a;
  --border-soft: #1e2740;

  --accent: #2451d6;
  --accent-hover: #3d6bef;
  --accent-soft: rgba(36, 81, 214, 0.14);

  --success: #33d6a6;
  --danger: #ff5c72;

  --text-primary: #eef1fb;
  --text-secondary: #8d96ab;
  --text-tertiary: #5b6478;

  --font-display: 'Rajdhani', 'Segoe UI', sans-serif;
  --font-body: 'Manrope', 'Segoe UI', sans-serif;

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 96px;

  --radius: 10px;
  --container-w: 1120px;
}

/* ---------- Base ---------- */
body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: var(--space-3);
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1.08; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); line-height: 1.15; margin-bottom: var(--space-2); }
h3 { font-size: 1.15rem; margin-bottom: var(--space-1); }

p { color: var(--text-secondary); }

.section-eyebrow, .eyebrow {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-hover);
  margin-bottom: var(--space-2);
}

.section-sub {
  max-width: 560px;
  margin-bottom: var(--space-5);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-1px); }

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

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-primary);
}
.btn-ghost:hover { border-color: var(--accent-hover); color: var(--accent-hover); }

.btn-large { padding: 16px 34px; font-size: 1.05rem; }

.btn-donate {
  background: linear-gradient(135deg, #ffc439, #ff9e2c);
  color: #1a1300;
}
.btn-donate:hover { filter: brightness(1.06); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 14, 23, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
}
.brand-bolt { width: 18px; height: 18px; color: var(--accent-hover); }

.brand-app {
  margin-left: 10px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-hover);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--text-primary); }

.nav-donate,
.nav-discord {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  line-height: 1;
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 600 !important;
}
.nav-donate svg,
.nav-discord svg { width: 16px; height: 16px; }

.nav-donate {
  background: var(--accent-soft);
  color: var(--accent-hover) !important;
}

.nav-discord {
  background: rgba(88, 101, 242, 0.14);
  color: #5865f2 !important;
  transition: filter 0.15s ease;
}
.nav-discord:hover { filter: brightness(1.15); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: var(--space-7) var(--space-6);
}
.hero-glow {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 480px;
  background: radial-gradient(ellipse at top, var(--accent-soft), transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 720px; }

.hero-sub {
  margin-block: var(--space-3) var(--space-4);
  font-size: 1.1rem;
  max-width: 620px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.hero-note {
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

/* ---------- Compact hero (single-screen app subpages) ---------- */
.hero--compact { padding-block: var(--space-6); min-height: 80vh; display: flex; align-items: center; }

.mini-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: var(--space-4);
}
.mini-list li {
  position: relative;
  padding-left: 24px;
  font-size: 0.95rem;
  color: var(--text-secondary);
}
.mini-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  background: var(--success);
}

/* ---------- Stats strip ---------- */
.stats-strip {
  border-block: 1px solid var(--border-soft);
  background: var(--surface);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding-block: var(--space-4);
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  border-right: 1px solid var(--border-soft);
}
.stat:last-child { border-right: none; }
.stat-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
}
.stat-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---------- Features ---------- */
.features { padding-block: var(--space-7); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: var(--space-4);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.feature-card:hover {
  border-color: var(--border);
  transform: translateY(-2px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-hover);
  margin-bottom: var(--space-3);
}
.feature-icon svg { width: 22px; height: 22px; }

.feature-card p { font-size: 0.95rem; }

/* ---------- Apps grid ---------- */
.apps { padding-block: var(--space-7); }

.apps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}

.app-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: var(--space-4);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
a.app-card:hover {
  border-color: var(--accent-hover);
  transform: translateY(-2px);
}

.app-card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-hover);
  margin-bottom: var(--space-3);
}
.app-card-icon svg { width: 24px; height: 24px; }
.app-card-icon--muted { background: var(--surface-2); color: var(--text-tertiary); }

.app-card-body { flex: 1; }
.app-card-body p { font-size: 0.95rem; margin-top: 4px; }

.app-card-cta {
  margin-top: var(--space-3);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent-hover);
}

.app-card--soon { opacity: 0.7; }
.app-card-badge {
  align-self: flex-start;
  margin-top: var(--space-3);
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-tertiary);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ---------- About ---------- */
.about { padding-block: var(--space-7); background: var(--surface); border-block: 1px solid var(--border-soft); }

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-6);
  align-items: center;
}

.about p { margin-bottom: var(--space-2); max-width: 520px; }

.about-list {
  margin-top: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.about-list li {
  position: relative;
  padding-left: 24px;
  font-size: 0.95rem;
  color: var(--text-secondary);
}
.about-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  background: var(--success);
}

.about-card {
  position: relative;
  aspect-ratio: 1;
  max-width: 320px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.about-card svg { width: 30%; height: 30%; color: var(--accent-hover); position: relative; z-index: 1; }
.about-card-glow {
  position: absolute;
  inset: 20%;
  background: radial-gradient(circle, var(--accent-soft), transparent 70%);
}

/* ---------- Download ---------- */
.download { padding-block: var(--space-7); }
.download-inner { text-align: center; max-width: 560px; margin-inline: auto; }
.download-inner .section-sub { margin-inline: auto; }
.download-inner .btn { margin-bottom: var(--space-2); }

/* ---------- Donate ---------- */
.donate { padding-bottom: var(--space-7); }
.donate-card {
  position: relative;
  overflow: hidden;
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  padding: var(--space-6) var(--space-4);
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
}
.donate-glow {
  position: absolute;
  inset: -40% -10% auto -10%;
  height: 300px;
  background: radial-gradient(ellipse at top, rgba(255, 196, 57, 0.12), transparent 70%);
}
.donate-card > * { position: relative; }
.donate-card .section-sub { margin-inline: auto; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border-soft);
  padding-block: var(--space-4);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
  justify-content: space-between;
}
.brand--footer { font-size: 0.9rem; color: var(--text-secondary); }
.brand--footer .brand-bolt { color: var(--text-tertiary); }
.footer-inner p { font-size: 0.82rem; color: var(--text-tertiary); }

/* ---------- Legal pages ---------- */
.legal { padding-block: var(--space-6) var(--space-7); }
.legal .container { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.6rem); margin-bottom: var(--space-4); }
.legal h2 { font-size: 1.3rem; margin-top: var(--space-5); margin-bottom: var(--space-2); }
.legal h2:first-of-type { margin-top: 0; }
.legal p { margin-bottom: var(--space-2); max-width: none; }
.legal ul { margin: var(--space-2) 0 var(--space-2) var(--space-3); }
.legal li { list-style: disc; color: var(--text-secondary); margin-bottom: 6px; }
.legal a { color: var(--accent-hover); text-decoration: underline; }
.legal .placeholder { color: var(--danger); font-style: italic; }
.legal .legal-note {
  margin-bottom: var(--space-5);
  padding: var(--space-2) var(--space-3);
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  font-size: 0.9rem;
}

.footer-legal {
  display: flex;
  gap: var(--space-2);
  font-size: 0.82rem;
}
.footer-legal a { color: var(--text-tertiary); }
.footer-legal a:hover { color: var(--text-secondary); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .apps-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-card { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: var(--space-3); }
  .stat:nth-child(2) { border-right: none; }
}

@media (max-width: 640px) {
  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
    background: var(--bg);
    border-bottom: 1px solid var(--border-soft);
    padding: var(--space-3);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.15s ease, opacity 0.15s ease;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-toggle { display: flex; }
  .brand-app { display: none; }

  .feature-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
}
