/* ── Tokens ─────────────────────────────────────────────── */
:root {
  --indigo-50:  #EEF2FF;
  --indigo-400: #818CF8;
  --indigo-500: #6366F1;
  --indigo-600: #4F46E5;
  --indigo-700: #4338CA;
  --gradient: linear-gradient(135deg, #4338CA 0%, #6366F1 55%, #818CF8 100%);

  --bg-dark:    #0F0F1A;
  --bg-darker:  #1A1030;
  --bg-light:   #F8F5FF;
  --surface:    #FFFFFF;
  --border:     #E5E7EB;

  --text-primary:   #111827;
  --text-secondary: #6B7280;
  --text-white:     #FFFFFF;
  --text-white-dim: rgba(255,255,255,0.75);

  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  16px;
  --radius-xl:  24px;

  --shadow-card: 0 1px 3px rgba(0,0,0,0.08), 0 4px 12px rgba(99,102,241,0.06);

  --nav-h: 64px;
  --section-pad: 96px;
  --max-w: 1120px;
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── Utilities ──────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: var(--section-pad) 0; }
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 17px;
  line-height: 1.65;
  max-width: 520px;
}

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: opacity 0.15s, transform 0.15s;
  white-space: nowrap;
}
.btn:hover { opacity: 0.88; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--surface); color: var(--indigo-700); }
.btn-ghost {
  background: rgba(255,255,255,0.12);
  color: var(--text-white);
  border: 1.5px solid rgba(255,255,255,0.35);
}
.store-icon { width: 18px; height: 18px; flex-shrink: 0; }

/* ── Responsive breakpoint ──────────────────────────────── */
@media (max-width: 768px) {
  :root {
    --section-pad: 64px;
  }
}

/* ── Nav ────────────────────────────────────────────────── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(15, 10, 30, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.25s, backdrop-filter 0.25s, box-shadow 0.25s;
}
#nav.scrolled {
  background: rgba(15, 10, 30, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}
.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Fraunces', serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--text-white);
  letter-spacing: -0.5px;
  flex-shrink: 0;
}
.nav-logo-mark {
  height: 38px;
  width: auto;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  gap: 32px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-white-dim);
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text-white); }
.nav-cta {
  padding: 8px 20px;
  font-size: 14px;
  flex-shrink: 0;
}

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

/* ── Hero ───────────────────────────────────────────────── */
#hero {
  /* padding set directly — not using .section utility */
  background: var(--gradient);
  padding: calc(var(--nav-h) + 80px) 0 96px;
  overflow: hidden;
}
#hero .eyebrow { color: rgba(255,255,255,0.65); }
#hero h1 { color: var(--text-white); }
#hero .section-sub { color: var(--text-white-dim); }
.hero-inner {
  display: flex;
  align-items: center;
  gap: 64px;
}
.hero-copy {
  flex: 1.1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-note {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-top: -4px;
}

/* Phone mockup */
.hero-phone {
  flex: 0.9;
  display: flex;
  justify-content: center;
  align-items: center;
}
.phone-frame {
  width: 220px;
  height: 440px;
  background: rgba(255,255,255,0.1);
  border: 2px solid rgba(255,255,255,0.22);
  border-radius: 36px;
  padding: 12px;
  backdrop-filter: blur(6px);
  box-shadow:
    0 32px 64px rgba(0,0,0,0.25),
    inset 0 1px 0 rgba(255,255,255,0.15);
}
.phone-screen {
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.06);
  border-radius: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.phone-ui {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  width: 100%;
}
.phone-card {
  height: 200px;
  background: rgba(255,255,255,0.15);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.12);
}
.phone-card--sm {
  height: 80px;
}

@media (max-width: 768px) {
  .hero-phone { display: none; }
  .hero-inner { justify-content: center; text-align: center; }
  .hero-copy { align-items: center; }
  .hero-btns { justify-content: center; }
}

/* ── How It Works ───────────────────────────────────────── */
#how-it-works { background: var(--bg-darker); }
#how-it-works .eyebrow { color: var(--indigo-400); }
#how-it-works .section-title { color: var(--text-white); }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.step-card {
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.22);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.step-num {
  width: 40px;
  height: 40px;
  background: var(--indigo-500);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  color: #fff;
  flex-shrink: 0;
}
.step-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-white);
}
.step-card p {
  font-size: 14px;
  color: rgba(255,255,255,0.58);
  line-height: 1.65;
}

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

/* ── Features ───────────────────────────────────────────── */
#features { background: var(--bg-light); }
#features .eyebrow { color: var(--indigo-500); }
#features .section-title { color: var(--text-primary); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  box-shadow: var(--shadow-card);
  transition: transform 0.18s, box-shadow 0.18s;
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(99,102,241,0.12);
}
.feature-icon {
  width: 44px;
  height: 44px;
  background: var(--indigo-50);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--indigo-500);
}
.feature-icon svg {
  width: 22px;
  height: 22px;
}
.feature-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.feature-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .features-grid { grid-template-columns: 1fr; }
}

/* ── Download CTA ───────────────────────────────────────── */
#download {
  /* padding set directly — not using .section utility */
  background: var(--gradient);
  padding: 80px 0;
}
#download .section-title { color: var(--text-white); }
#download .section-sub { color: var(--text-white-dim); }
.download-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.download-copy { flex: 1; }
.download-btns {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .download-inner { flex-direction: column; text-align: center; align-items: center; }
}

/* ── FAQ ────────────────────────────────────────────────── */
#faq { background: var(--surface); }
#faq .section-title { margin-bottom: 40px; }

.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 760px; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
  transition: background 0.15s;
}
.faq-q:hover { background: var(--bg-light); }
.faq-q[aria-expanded="true"] { color: var(--indigo-600); }
.faq-icon {
  font-size: 20px;
  font-weight: 400;
  color: var(--indigo-500);
  transition: transform 0.2s;
  flex-shrink: 0;
}
.faq-q[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }
.faq-a {
  padding: 0 20px 18px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}
.faq-a[hidden] { display: none; }

/* ── Footer ─────────────────────────────────────────────── */
footer {
  background: var(--bg-dark);
  padding: 32px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer-logo {
  font-family: 'Fraunces', serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--text-white);
}
.footer-copy {
  font-size: 13px;
  color: var(--text-secondary);
}
.footer-links {
  display: flex;
  gap: 20px;
}
.footer-links a {
  font-size: 13px;
  color: var(--text-secondary);
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--text-white); }

@media (max-width: 560px) {
  .footer-inner { flex-direction: column; text-align: center; }
}

/* ── Contact ─────────────────────────────────────────────── */
#contact {
  background: var(--bg-darker);
  padding: 40px 0;
}
.contact-header {
  margin-bottom: 20px;
}
.contact-heading {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.contact-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  color: inherit;
  transition: background 0.18s, border-color 0.18s;
}
.contact-card:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.4);
}
.contact-icon {
  width: 36px;
  height: 36px;
  background: rgba(99, 102, 241, 0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--indigo-400);
  flex-shrink: 0;
}
.contact-icon svg { width: 17px; height: 17px; }
.contact-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.contact-label {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.contact-email {
  font-size: 13px;
  font-weight: 600;
  color: var(--indigo-400);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.contact-arrow {
  font-size: 14px;
  color: rgba(255,255,255,0.25);
  transition: color 0.15s, transform 0.15s;
  flex-shrink: 0;
}
.contact-card:hover .contact-arrow {
  color: var(--indigo-400);
  transform: translateX(3px);
}

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