/* === CSS VARIABLES === */
:root {
  --bg:       #0a0f1e;
  --surface:  #0f172a;
  --border:   #1e293b;
  --accent:   #3b82f6;
  --accent-dim: rgba(59, 130, 246, 0.12);
  --text:     #e2e8f0;
  --muted:    #94a3b8;
  --faint:    #64748b;
  --heading:  #f8fafc;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* === BASE === */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

/* === CONTAINER === */
.container {
  width: min(1100px, 90%);
  margin: 0 auto;
}

/* === NAV === */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  transition: background 0.3s, backdrop-filter 0.3s;
}
nav.nav--scrolled {
  background: rgba(10, 15, 30, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo-icon {
  width: 34px;
  height: 34px;
  background: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav-logo-icon svg {
  width: 18px;
  height: 18px;
}
.nav-logo-text {
  font-size: 17px;
  font-weight: 800;
  color: var(--heading);
  letter-spacing: -0.3px;
}
.nav-logo-text span { color: var(--accent); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-features {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-features:hover { color: var(--heading); }
.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s;
}
.nav-cta:hover { background: #2563eb; }

/* === SECTION LABELS === */
.section-label {
  text-align: center;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-title {
  text-align: center;
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  color: var(--heading);
  letter-spacing: -0.5px;
  max-width: 600px;
  margin: 0 auto 48px;
  line-height: 1.15;
}

/* === HERO === */
.hero {
  padding: 100px 5% 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(59,130,246,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--accent-dim);
  border: 1px solid rgba(59,130,246,0.3);
  color: #60a5fa;
  padding: 5px 14px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}
.hero h1 {
  font-size: clamp(36px, 6vw, 68px);
  font-weight: 900;
  line-height: 1.07;
  letter-spacing: -1.5px;
  color: var(--heading);
  max-width: 820px;
  margin: 0 auto 22px;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero p {
  font-size: 18px;
  color: var(--muted);
  max-width: 540px;
  margin: 0 auto 40px;
  line-height: 1.65;
}

/* === STORE BADGES === */
.store-badges {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 10px 22px;
  color: var(--heading);
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}
.badge:hover {
  border-color: var(--accent);
  background: rgba(30, 58, 95, 0.6);
}
.badge svg { flex-shrink: 0; }
.badge-text { text-align: left; }
.badge-sub {
  font-size: 10px;
  color: var(--faint);
  letter-spacing: 0.3px;
  display: block;
}
.badge-main {
  font-size: 15px;
  font-weight: 700;
  display: block;
}

/* === DIVIDER === */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border) 20%, var(--border) 80%, transparent);
  max-width: 900px;
  margin: 0 auto;
}

/* === FEATURES === */
.features {
  padding: 80px 5%;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s;
}
.feature-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.feature-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-dim);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.feature-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--accent);
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feature-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 14px;
  color: var(--faint);
  line-height: 1.6;
}

/* === FADE-IN ANIMATION === */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* === SCREENSHOTS === */
.screenshots {
  padding: 80px 5%;
  background: #070c18;
}
.phone-row {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-top: 0;
}
.phone {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 28px;
  overflow: hidden;
  flex-shrink: 0;
}
.phone-main  { width: 200px; height: 380px; }
.phone-side  { width: 160px; height: 300px; opacity: 0.7; }
.phone-inner {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px;
}
.phone-label {
  font-size: 10px;
  color: #475569;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-align: center;
}
.phone-grid {
  width: 100%;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.phone-grid svg {
  width: 80%;
  height: 80%;
  opacity: 0.25;
}

/* === CTA === */
.cta {
  padding: 100px 5%;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 70% at 50% 50%, rgba(59,130,246,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.cta h2 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 900;
  color: var(--heading);
  letter-spacing: -0.8px;
  margin-bottom: 14px;
  position: relative;
}
.cta p {
  color: var(--faint);
  font-size: 17px;
  margin-bottom: 40px;
  position: relative;
}

/* === FOOTER === */
footer {
  background: #070c18;
  border-top: 1px solid var(--border);
  padding: 28px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-logo {
  font-size: 15px;
  font-weight: 800;
  color: #334155;
}
.footer-logo span { color: #1e40af; }
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  color: #475569;
  font-size: 13px;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--muted); }
.footer-copy {
  color: #334155;
  font-size: 12px;
}

/* === LEGAL PAGE CARDS === */
.legal-content {
  padding: 48px 5% 80px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 32px;
  margin-bottom: 16px;
}
.card h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 12px;
}
.card p, .card li {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
}
.card ul {
  padding-left: 20px;
}
.card li { margin-bottom: 6px; }
.card a { color: var(--accent); }
.card a:hover { text-decoration: underline; }
.card strong { color: var(--text); }

/* === LEGAL PAGE HERO === */
.legal-hero {
  background: linear-gradient(135deg, #0f172a 0%, #070c18 100%);
  border-bottom: 1px solid var(--border);
  padding: 56px 5% 40px;
}
.legal-hero h1 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  color: var(--heading);
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}
.legal-hero p {
  color: var(--muted);
  font-size: 16px;
}

/* === RESPONSIVE === */
@media (max-width: 600px) {
  .phone-side { display: none; }
}
@media (max-width: 480px) {
  .nav-features { display: none; }
  .hero { padding: 64px 5% 48px; }
  .features { padding: 48px 5%; }
  .screenshots { padding: 48px 5%; }
  .cta { padding: 64px 5%; }
}
