/* ---- Design tokens ---- */
:root {
  --blue-50:  #eef6ff;
  --blue-100: #dbeafe;
  --blue-300: #93c5fd;
  --blue-500: #3e8ede;
  --blue-600: #2f74c0;
  --blue-700: #1f5590;
  --ink-900:  #0f1b2d;
  --ink-700:  #33455c;
  --ink-500:  #5c7188;
  --paper:    #ffffff;
  --paper-soft: #f5f9ff;
  --border:   #dbe7f6;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-card: 0 8px 30px rgba(15, 60, 110, 0.08);
  --max-width: 1120px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0b1420;
    --paper-soft: #101c2c;
    --border: #1e3049;
    --ink-900: #f2f6fb;
    --ink-700: #c4d3e6;
    --ink-500: #8ca2bd;
    --blue-50: #0f2138;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink-900);
  background: var(--paper);
  line-height: 1.5;
}

h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; }
p { margin: 0 0 1em; color: var(--ink-700); }
a { color: var(--blue-600); }
img { max-width: 100%; display: block; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--blue-600); color: #fff;
  padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 100;
}
.skip-link:focus { left: 0; }

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--blue-500); outline-offset: 2px;
}

/* ---- Layout helpers ---- */
section { padding: 72px 24px; }
section > h2 { text-align: center; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.section-sub { text-align: center; color: var(--ink-500); max-width: 560px; margin: -8px auto 40px; }

/* ---- Nav ---- */
.nav {
  position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(12px); border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; color: var(--ink-900); }
.nav-links { list-style: none; display: flex; align-items: center; gap: 28px; margin: 0; padding: 0; }
.nav-links a:not(.btn) { text-decoration: none; color: var(--ink-700); font-weight: 500; }
.nav-links a:not(.btn):hover { color: var(--blue-600); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink-900); border-radius: 2px; }

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--paper); border-bottom: 1px solid var(--border); padding: 16px 24px; gap: 16px;
    display: none;
  }
  .nav-links.is-open { display: flex; }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px;
  font-weight: 600; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease;
}
.btn-store {
  background: linear-gradient(135deg, var(--ink-900), var(--blue-700));
  color: #fff; box-shadow: 0 8px 24px rgba(31, 85, 144, 0.35);
}
.btn-store:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(31, 85, 144, 0.45); }
.btn-ghost { background: transparent; color: var(--blue-600); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--blue-50); }
.btn-small { padding: 9px 16px; font-size: 0.9rem; }

/* ---- Hero ---- */
.hero {
  position: relative;
  background:
    radial-gradient(circle at 80% 0%, var(--blue-100), transparent 55%),
    radial-gradient(circle at 8% 95%, var(--blue-50), transparent 45%);
}
.hero-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 64px 24px 72px;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center;
  position: relative; z-index: 1;
}
.wave-divider { position: absolute; left: 0; right: 0; bottom: -1px; line-height: 0; pointer-events: none; }
.wave-divider svg { display: block; width: 100%; height: 56px; }
.wave-divider path { fill: var(--paper-soft); }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.8rem; font-weight: 700;
  color: var(--blue-600); margin-bottom: 8px;
}
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4rem);
  background: linear-gradient(135deg, var(--ink-900), var(--blue-600));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: 1.1rem; max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.hero-visual { display: flex; justify-content: center; align-items: flex-start; position: relative; }
.hero-visual::before {
  content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, var(--blue-300) 0%, transparent 70%);
  opacity: 0.35; filter: blur(10px); z-index: 0;
}
.phone-frame {
  position: relative; z-index: 1; width: 220px; flex-shrink: 0; border-radius: 32px; padding: 10px;
  background: var(--ink-900); box-shadow: var(--shadow-card);
}
.phone-frame > img { width: 100%; height: auto; display: block; border-radius: 24px; }
.phone-frame img.hero-app-icon {
  position: absolute; top: -60px; right: -6px; width: 56px; height: 56px;
  border-radius: 14px; box-shadow: 0 10px 24px rgba(15, 60, 110, 0.35);
  border: 3px solid var(--paper);
}

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; padding-top: 40px; }
  .hero-actions { justify-content: center; }
}

/* ---- Benefits ---- */
.benefits { background: var(--paper-soft); }
.benefits-grid, .features-grid, .pricing-grid {
  max-width: var(--max-width); margin: 0 auto; display: grid; gap: 20px;
  grid-template-columns: repeat(4, 1fr);
}
.pricing-grid { grid-template-columns: repeat(3, 1fr); max-width: 960px; gap: 24px; }
.features-grid { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .benefits-grid, .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .pricing-grid { grid-template-columns: 1fr; max-width: 420px; } }
@media (max-width: 560px) { .benefits-grid, .features-grid { grid-template-columns: 1fr; } }

.benefit-card, .feature-item, .pricing-card {
  background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 24px; box-shadow: var(--shadow-card);
  transition: transform .18s ease, box-shadow .18s ease;
}
.benefit-card:hover, .feature-item:hover, .pricing-card:hover {
  transform: translateY(-4px); box-shadow: 0 14px 34px rgba(15, 60, 110, 0.14);
}
.benefit-icon { font-size: 1.8rem; margin-bottom: 10px; }
.feature-item h3, .benefit-card h3 { font-size: 1.05rem; }

/* ---- Showcase (deliberately dark, regardless of site light/dark mode —
   a fixed moody section so the glow/neon theme cards pop) ---- */
.showcase {
  position: relative;
  background: linear-gradient(180deg, #0b1220, #060a14);
}
.showcase #showcase-heading,
.showcase .section-sub { color: #f2f6fb; }
.showcase .section-sub { color: #9fb0c8; }
.showcase-eyebrow {
  display: block; text-align: center; text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 0.78rem; font-weight: 700; color: var(--blue-300); margin-bottom: 8px;
}
.showcase-grid {
  max-width: var(--max-width); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 760px) { .showcase-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .showcase-grid { grid-template-columns: 1fr; } }

.theme-card { margin: 0; }
.theme-photo {
  aspect-ratio: 4/3; border-radius: var(--radius-md); overflow: hidden; background: #101a2c;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.theme-photo img {
  width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-md);
  display: block; transition: transform .25s ease;
}
.theme-card:hover .theme-photo img { transform: scale(1.05); }
.theme-card figcaption {
  display: flex; align-items: center; justify-content: space-between; margin-top: 10px;
  font-weight: 600; color: #f2f6fb;
}
.tag { font-size: 0.7rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.tag-free { background: rgba(147, 197, 253, 0.18); color: #bcdcff; }
.tag-premium { background: rgba(246, 197, 68, 0.18); color: #f6c544; }

.showcase-more {
  max-width: 640px; margin: 32px auto 0; text-align: center;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px; padding: 14px 24px;
}
.showcase-more-dots { display: inline-flex; gap: 5px; margin-right: 12px; vertical-align: middle; }
.showcase-more-dots span {
  display: inline-block; width: 10px; height: 10px; border-radius: 50%;
  box-shadow: 0 0 8px currentColor;
}
.showcase-more-dots span:nth-child(1) { background: #ff2bff; color: #ff2bff; }
.showcase-more-dots span:nth-child(2) { background: #ffd700; color: #ffd700; }
.showcase-more-dots span:nth-child(3) { background: #7cf9ff; color: #7cf9ff; }
.showcase-more-dots span:nth-child(4) { background: #ff6b35; color: #ff6b35; }
.showcase-more-text { color: #f2f6fb; font-weight: 600; vertical-align: middle; }

/* ---- How it works ---- */
.how-steps {
  max-width: var(--max-width); margin: 0 auto; list-style: none; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step;
}
@media (max-width: 760px) { .how-steps { grid-template-columns: 1fr; } }
.how-steps li { text-align: center; }
.how-number {
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  border-radius: 50%; background: var(--blue-500); color: #fff; font-weight: 700; margin-bottom: 12px;
}

/* ---- Pricing ---- */
.pricing-card { position: relative; display: flex; flex-direction: column; }
.pricing-card h3 { margin-bottom: 12px; }
.price { font-size: 2rem; font-weight: 800; margin-bottom: 4px; }
.price span { font-size: 1rem; font-weight: 500; color: var(--ink-500); }
.price-note { font-size: 0.85rem; color: var(--ink-500); margin-bottom: 12px; }
.pricing-card ul { padding-left: 18px; margin: 0 0 16px; color: var(--ink-700); flex-grow: 1; }
.pricing-card-featured {
  border: 2px solid transparent;
  background:
    linear-gradient(var(--paper), var(--paper)) padding-box,
    linear-gradient(135deg, var(--blue-500), var(--blue-700)) border-box;
  box-shadow: 0 14px 40px rgba(31, 85, 144, 0.3);
  transform: scale(1.03);
}
.pricing-card-featured:hover { transform: scale(1.03) translateY(-4px); }
.pricing-badge {
  position: absolute; top: -14px; right: 20px;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700)); color: #fff;
  font-size: 0.72rem; font-weight: 700; padding: 5px 14px; border-radius: 999px;
  box-shadow: 0 6px 16px rgba(31, 85, 144, 0.4);
}
.pricing-disclaimer {
  max-width: 720px; margin: 24px auto 0; text-align: center; font-size: 0.8rem; color: var(--ink-500);
}

/* ---- FAQ ---- */
.faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item {
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px 20px; background: var(--paper);
}
.faq-item summary { cursor: pointer; font-weight: 600; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; float: right; color: var(--blue-600); }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin-top: 12px; margin-bottom: 0; }

/* ---- CTA banner ---- */
.cta-banner {
  text-align: center; background: linear-gradient(135deg, var(--blue-600), var(--blue-700));
  color: #fff; border-radius: var(--radius-lg); max-width: var(--max-width); margin: 0 auto;
}
.cta-banner h2, .cta-banner p { color: #fff; }

/* ---- App Store badge (Apple-style two-line black/white badge) ---- */
.btn-appstore-badge {
  display: inline-block; line-height: 0; border-radius: 10px; overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-appstore-badge:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35); }
.btn-appstore-badge-light { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15); }

/* ---- Footer ---- */
.site-footer { border-top: 1px solid var(--border); padding: 40px 24px; }
.footer-inner {
  max-width: var(--max-width); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 16px;
  align-items: center; justify-content: space-between; color: var(--ink-500); font-size: 0.9rem;
}
.footer-brand { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink-900); }
.footer-links { list-style: none; display: flex; gap: 20px; padding: 0; margin: 0; }
.footer-links a { color: var(--ink-500); text-decoration: none; }
.footer-links a:hover { color: var(--blue-600); }
.footer-copyright { width: 100%; text-align: center; margin: 0; }

/* ---- Legal pages (Privacy Policy / Terms of Use) ---- */
.legal { max-width: 760px; margin: 0 auto; padding: 56px 24px 80px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.6rem); margin-bottom: 4px; }
.legal-updated { color: var(--ink-500); font-size: 0.9rem; margin-bottom: 32px; }
.legal h2 { font-size: 1.3rem; margin-top: 40px; }
.legal h3 { font-size: 1.05rem; margin-top: 24px; margin-bottom: 8px; }
.legal p, .legal li { color: var(--ink-700); line-height: 1.65; }
.legal ul { padding-left: 20px; margin: 0 0 1em; }
.legal li { margin-bottom: 6px; }
.legal a { text-decoration: underline; text-underline-offset: 2px; }
