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

:root {
  --bg: #050508;
  --bg-elevated: #0f0f14;
  --bg-card: #14141c;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f4f4f5;
  --text-muted: #a1a1aa;
  --text-dim: #71717a;
  --accent-blue: #38bdf8;
  --accent-purple: #a855f7;
  --accent-indigo: #6366f1;
  --accent-teal: #2dd4bf;
  --gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #38bdf8 100%);
  --gradient-subtle: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(168, 85, 247, 0.1));
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

/* Background glow */
.bg-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.25;
  pointer-events: none;
  z-index: -1;
}

.bg-glow--left {
  top: -200px;
  left: -200px;
  background: var(--accent-indigo);
}

.bg-glow--right {
  bottom: -200px;
  right: -200px;
  background: var(--accent-purple);
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  background: rgba(5, 5, 8, 0.75);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 700;
  font-size: 1.125rem;
}

.logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

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

.nav-links a {
  font-size: 0.9375rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

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

.nav-cta {
  margin-left: auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn--sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
}

.btn--lg {
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
}

.btn--primary {
  background: var(--gradient);
  color: white;
  box-shadow: 0 4px 24px rgba(99, 102, 241, 0.35);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.45);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-icon {
  width: 20px;
  height: 20px;
}

.btn-icon--lg {
  width: 28px;
  height: 28px;
}

.app-store-btn span {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.app-store-btn small {
  font-size: 0.6875rem;
  font-weight: 400;
  opacity: 0.85;
}

/* Hero */
.hero {
  padding: 4rem 0 6rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  background: var(--gradient-subtle);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent-blue);
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  background: linear-gradient(to right, #fff 30%, #c4b5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.hero-note {
  font-size: 0.875rem;
  color: var(--text-dim);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-phone-glow {
  position: absolute;
  inset: 10% 5%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.2), transparent 70%);
  filter: blur(40px);
}

.hero-screenshot {
  position: relative;
  width: min(340px, 85%);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

/* Stats */
.stats {
  padding: 2rem 0 4rem;
  border-block: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Section headers */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.5rem;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.0625rem;
}

/* Features */
.features {
  padding: 6rem 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateY(-4px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature-icon--blue { background: rgba(56, 189, 248, 0.15); color: var(--accent-blue); }
.feature-icon--purple { background: rgba(168, 85, 247, 0.15); color: var(--accent-purple); }
.feature-icon--teal { background: rgba(45, 212, 191, 0.15); color: var(--accent-teal); }
.feature-icon--green { background: rgba(34, 197, 94, 0.15); color: #22c55e; }
.feature-icon--pink { background: rgba(236, 72, 153, 0.15); color: #ec4899; }
.feature-icon--orange { background: rgba(249, 115, 22, 0.15); color: #f97316; }
.feature-icon--yellow { background: rgba(234, 179, 8, 0.15); color: #eab308; }
.feature-icon--indigo { background: rgba(99, 102, 241, 0.15); color: var(--accent-indigo); }

.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Screenshots */
.screenshots {
  padding: 6rem 0;
  background: var(--bg-elevated);
}

.screenshot-showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.screenshot-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}

.screenshot-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.screenshot-item img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}

.screenshot-item figcaption {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.screenshot-item figcaption strong {
  font-size: 0.9375rem;
}

.screenshot-item figcaption span {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* How it works */
.how-it-works {
  padding: 6rem 0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  counter-reset: step;
}

.step {
  display: flex;
  gap: 1.25rem;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.step-num {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient);
  border-radius: 14px;
  font-size: 1.25rem;
  font-weight: 700;
}

.step h3 {
  font-size: 1.0625rem;
  margin-bottom: 0.5rem;
}

.step p {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* CTA */
.cta {
  padding: 6rem 0;
}

.cta-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  background: var(--gradient-subtle);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-lg);
  padding: 3.5rem;
}

.cta-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-desc {
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 440px;
}

.cta-disclaimer {
  margin-top: 1.5rem;
  font-size: 0.75rem;
  color: var(--text-dim);
  max-width: 400px;
}

.cta-screenshot {
  width: min(320px, 100%);
  margin-inline: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-tagline {
  margin-top: 1rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
  max-width: 320px;
}

.footer-links {
  display: flex;
  gap: 4rem;
}

.footer-col h4 {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  margin-bottom: 1rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer-col a {
  font-size: 0.9375rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--text);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: var(--text-dim);
}

/* Responsive */
@media (max-width: 960px) {
  .nav-links {
    display: none;
  }

  .hero-inner,
  .cta-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    order: 1;
  }

  .hero-visual {
    order: 0;
  }

  .hero-subtitle,
  .cta-desc,
  .cta-disclaimer {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .screenshot-showcase {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .hero {
    padding-top: 2rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .features-grid,
  .screenshot-showcase {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .cta-inner {
    padding: 2rem 1.5rem;
  }

  .footer-links {
    flex-direction: column;
    gap: 2rem;
  }
}
