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

:root {
  --white:    #ffffff;
  --bg:       #fafafa;
  --bg-alt:   #f5f5f7;
  --text:     #1d1d1f;
  --sub:      #6e6e73;
  --border:   #e0e0e5;
  --accent:   #1d1d1f;
  --accent-h: #3a3a3c;
  --radius:   14px;
  --max-w:    860px;
  --transition: 0.2s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  background: var(--white);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ─── NAV ──────────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-w);
  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: 600;
  font-size: 15px;
  letter-spacing: -0.2px;
}
.nav-icon { font-size: 18px; }

/* ─── BUTTONS ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: 980px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.btn-sm {
  padding: 7px 16px;
  font-size: 13px;
  background: var(--bg-alt);
  color: var(--text);
}
.btn-sm:hover { background: var(--border); }

.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 4px 16px rgba(0,0,0,0.08);
}
.btn-primary:hover {
  background: var(--accent-h);
  box-shadow: 0 2px 8px rgba(0,0,0,0.18), 0 6px 24px rgba(0,0,0,0.10);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }

.btn-lg {
  padding: 14px 32px;
  font-size: 16px;
}

/* ─── HERO ──────────────────────────────────────────────────── */
.hero {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 80px 24px 100px;
  text-align: center;
}

.app-icon {
  width: 120px;
  height: 120px;
  margin: 0 auto 28px;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.10));
}
.app-icon svg { width: 100%; height: 100%; }

.hero-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sub);
  margin-bottom: 16px;
}

.hero-title {
  font-size: clamp(40px, 7vw, 68px);
  font-weight: 700;
  letter-spacing: -2.5px;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 20px;
}

.hero-sub {
  font-size: clamp(16px, 2.5vw, 19px);
  color: var(--sub);
  max-width: 520px;
  margin: 0 auto 36px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.hero-note {
  font-size: 12px;
  color: var(--sub);
}

/* ─── SECTION COMMON ────────────────────────────────────────── */
.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sub);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 56px;
}

/* ─── FEATURES ──────────────────────────────────────────────── */
.features {
  background: var(--bg-alt);
  padding: 90px 24px;
}

.features > * { max-width: var(--max-w); margin-left: auto; margin-right: auto; }
.features .section-title { margin-left: auto; margin-right: auto; }

.feature-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: box-shadow var(--transition), transform var(--transition);
}

.feature-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
  transform: translateY(-2px);
}

.feature-icon {
  font-size: 28px;
  margin-bottom: 14px;
  line-height: 1;
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.3px;
  margin-bottom: 8px;
  color: var(--text);
}

.feature-card p {
  font-size: 14px;
  color: var(--sub);
  line-height: 1.55;
}

/* ─── HOW IT WORKS ──────────────────────────────────────────── */
.how {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 90px 24px;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.step-number {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--text);
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-body {
  padding-top: 10px;
  padding-bottom: 32px;
}

.step-body h3 {
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.4px;
  margin-bottom: 8px;
}

.step-body p {
  font-size: 15px;
  color: var(--sub);
  max-width: 480px;
  line-height: 1.55;
}

.step-connector {
  width: 44px;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
}
.step-connector::before {
  content: "";
  width: 2px;
  height: 32px;
  background: var(--border);
  border-radius: 2px;
}

/* ─── FAQ ───────────────────────────────────────────────────── */
.faq {
  background: var(--bg-alt);
  padding: 90px 24px;
}

.faq > * { max-width: var(--max-w); margin-left: auto; margin-right: auto; }

.faq-list {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--transition);
}

.faq-item:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.06); }

.faq-item summary {
  padding: 18px 22px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text);
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-size: 20px;
  font-weight: 300;
  color: var(--sub);
  transition: transform var(--transition);
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item p {
  padding: 0 22px 18px;
  font-size: 14px;
  color: var(--sub);
  line-height: 1.6;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

/* ─── DOWNLOAD ──────────────────────────────────────────────── */
.download {
  padding: 90px 24px;
}

.download-card {
  max-width: 580px;
  margin: 0 auto;
  text-align: center;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 60px 40px;
}

.download-icon {
  font-size: 52px;
  margin-bottom: 20px;
  line-height: 1;
}

.download-card h2 {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 12px;
}

.download-card > p {
  font-size: 16px;
  color: var(--sub);
  margin-bottom: 32px;
}

.download-meta {
  margin-top: 14px;
  font-size: 12px;
  color: var(--sub);
  margin-bottom: 0 !important;
}

/* ─── FOOTER ────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 36px 24px;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  justify-content: center;
}

.footer-links a {
  font-size: 13px;
  color: var(--sub);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--text); }

.footer-copy {
  font-size: 12px;
  color: var(--sub);
}

/* ─── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 600px) {
  .hero { padding: 56px 20px 72px; }
  .hero-title { letter-spacing: -1.5px; }
  .features, .how, .faq, .download { padding: 64px 20px; }
  .download-card { padding: 40px 24px; }
  .section-title { margin-bottom: 36px; }
}

/* ─── SCROLL-IN ANIMATIONS ──────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .feature-card, .step, .faq-item, .download-card {
    opacity: 0;
    transform: translateY(20px);
    animation: fadein 0.55s ease forwards;
  }
  .feature-card:nth-child(1) { animation-delay: 0.05s; }
  .feature-card:nth-child(2) { animation-delay: 0.12s; }
  .feature-card:nth-child(3) { animation-delay: 0.19s; }
  .feature-card:nth-child(4) { animation-delay: 0.26s; }
  .feature-card:nth-child(5) { animation-delay: 0.33s; }
  .feature-card:nth-child(6) { animation-delay: 0.40s; }

  @keyframes fadein {
    to { opacity: 1; transform: translateY(0); }
  }
}
