:root {
  --bg: #17121e;
  --bg-raised: #211a2b;
  --border: #372c46;
  --text: #ece7f4;
  --text-dim: #a99fbc;
  --gold: #e6b93c;
  --gold-bright: #f5d06a;
  --purple: #6d5a8a;
}

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

html {
  scroll-behavior: smooth;
}

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

/* ---------- header ---------- */

header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(23, 18, 30, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

nav {
  max-width: 960px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
}

.brand img {
  border-radius: 7px;
}

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

.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.95rem;
  white-space: nowrap;
}

@media (max-width: 480px) {
  nav {
    padding: 0.75rem 1rem;
    gap: 1rem;
  }

  .brand {
    font-size: 1rem;
  }

  .nav-links {
    gap: 0.9rem;
  }

  .nav-links a {
    font-size: 0.85rem;
  }
}

.nav-links a:hover {
  color: var(--gold-bright);
}

/* ---------- layout ---------- */

main {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 4.5rem 0;
  border-bottom: 1px solid var(--border);
}

section:last-of-type {
  border-bottom: none;
}

h2 {
  font-size: 1.9rem;
  text-align: center;
  margin-bottom: 2.5rem;
  letter-spacing: -0.02em;
}

/* ---------- hero ---------- */

.hero {
  text-align: center;
  padding: 5rem 0 4.5rem;
}

.hero-icon {
  border-radius: 27px;
  box-shadow: 0 12px 48px rgba(230, 185, 60, 0.18);
  margin-bottom: 2rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.accent {
  color: var(--gold);
}

.tagline {
  max-width: 620px;
  margin: 0 auto 2.25rem;
  font-size: 1.15rem;
  color: var(--text-dim);
}

.cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.app-store-badge {
  display: inline-flex;
  line-height: 0;
  transition: transform 0.1s ease, opacity 0.15s ease;
}

.app-store-badge:hover {
  opacity: 0.9;
}

.app-store-badge:active {
  transform: scale(0.97);
}

.app-store-badge img {
  height: 40px;
  width: auto;
  display: block;
}

/* Match the official App Store badge height in the hero CTA row */
.cta .btn {
  height: 40px;
  padding: 0 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  border-radius: 8px;
  box-sizing: border-box;
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.6rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.1s ease, background 0.15s ease;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--gold);
  color: #211a05;
}

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

.btn-ghost {
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--purple);
}

/* ---------- features ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
}

.card-icon {
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
}

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--text-dim);
  font-size: 0.95rem;
}

/* ---------- how it works ---------- */

.steps {
  list-style: none;
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.steps li {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.step-num {
  flex-shrink: 0;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--gold);
  color: #211a05;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.steps h3 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.steps p {
  color: var(--text-dim);
}

.steps a {
  color: var(--gold);
  text-decoration: none;
}

.steps a:hover {
  color: var(--gold-bright);
}

code {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.1em 0.4em;
  font-size: 0.9em;
}

/* ---------- open source ---------- */

.open-source {
  text-align: center;
}

.open-source p {
  max-width: 560px;
  margin: 0 auto 2rem;
  color: var(--text-dim);
  font-size: 1.1rem;
}

/* ---------- prose pages (privacy, support) ---------- */

.prose {
  max-width: 680px;
  padding: 3rem 1.5rem 4rem;
}

.prose h1 {
  font-size: 2.2rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.prose .updated {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.prose h2 {
  font-size: 1.35rem;
  text-align: left;
  margin: 2.25rem 0 0.75rem;
}

.prose p,
.prose li {
  color: var(--text-dim);
}

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

.prose ul,
.prose ol {
  padding-left: 1.4rem;
  margin: 0.75rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.prose a {
  color: var(--gold);
}

.prose a:hover {
  color: var(--gold-bright);
}

/* ---------- footer ---------- */

footer {
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 2rem 1.5rem;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.footer-links {
  margin-top: 0.5rem;
}

.footer-links a {
  color: var(--text-dim);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--gold-bright);
}
