/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #071225;
  --bg-card: rgba(12, 26, 48, 0.6);
  --border: #162544;
  --text: #f0f9ff;
  --text-muted: #7da8c4;
  --text-dim: #5889a8;
  --accent: #38bdf8;
  --accent-hover: #0ea5e9;
  --gradient-start: #2196F3;
  --gradient-end: #26C6DA;
  --max-width: 800px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ── Navigation ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(7, 18, 37, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

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

.nav-brand:hover { text-decoration: none; color: var(--text); }

.nav-brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
}

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

/* ── Hero (Landing Page) ── */
.hero {
  position: relative;
  padding: 160px 24px 80px;
  text-align: center;
  background: url('mountain-bg.jpg') center top / cover no-repeat fixed;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(7, 18, 37, 0.55) 0%,
    rgba(7, 18, 37, 0.75) 50%,
    rgba(7, 18, 37, 1) 100%
  );
}

.hero > * { position: relative; z-index: 1; }

.hero-icon {
  width: 120px;
  height: 120px;
  border-radius: 28px;
  margin-bottom: 32px;
  box-shadow: 0 8px 32px rgba(56, 189, 248, 0.2);
}

.hero h1 {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .tagline {
  font-size: 20px;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 40px;
}

.store-badges {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  transition: border-color 0.2s;
}

.store-badge:hover {
  border-color: var(--accent);
  text-decoration: none;
  color: var(--text);
}

/* ── Features Section ── */
.features {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 24px 80px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
}

.feature-card .emoji {
  font-size: 32px;
  margin-bottom: 12px;
}

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

.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── Legal / Content Pages ── */
.page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 120px 24px 80px;
}

.page h1 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 8px;
}

.page .last-updated {
  color: var(--text-dim);
  font-size: 14px;
  margin-bottom: 40px;
}

.page h2 {
  font-size: 22px;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 12px;
  color: var(--text);
}

.page h3 {
  font-size: 17px;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 8px;
  color: var(--text);
}

.page p {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 15px;
  line-height: 1.7;
}

.page ul, .page ol {
  color: var(--text-muted);
  margin-bottom: 16px;
  padding-left: 24px;
  font-size: 15px;
  line-height: 1.7;
}

.page li { margin-bottom: 6px; }

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

.page table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  font-size: 14px;
}

.page table th,
.page table td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}

.page table th {
  color: var(--text);
  font-weight: 600;
  background: var(--bg-card);
}

.page table td { color: var(--text-muted); }

/* ── Support Page ── */
.support-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
  margin-bottom: 20px;
}

.support-card h3 {
  margin-top: 0;
  color: var(--text);
}

.support-card p {
  margin-bottom: 0;
}

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

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

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

.footer-links a {
  color: var(--text-dim);
  font-size: 14px;
}

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

.footer-copy {
  color: var(--text-dim);
  font-size: 13px;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .hero h1 { font-size: 32px; }
  .hero .tagline { font-size: 17px; }
  .hero { padding: 140px 20px 60px; }
  .page { padding: 100px 20px 60px; }
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 13px; }
}
