:root {
  --primary: #4361EE;
  --primary-dark: #3451d1;
  --bg: #F3F4F6;
  --surface: #ffffff;
  --text: #111827;
  --text-secondary: #6B7280;
  --accent: #FF5722;
  --radius: 16px;
  --shadow: 0 20px 60px rgba(17, 24, 39, 0.12);
  --shadow-sm: 0 8px 24px rgba(17, 24, 39, 0.08);
  --max-width: 1140px;
  --header-height: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(17, 24, 39, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 1.05rem;
}

.brand-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.header-nav a:not(.btn) {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.header-nav a:not(.btn):hover {
  color: var(--text);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s, transform 0.15s, color 0.2s;
}

.btn-primary,
.header-nav a.btn-primary {
  background: var(--primary);
  color: #ffffff;
}

.btn-primary:hover,
.header-nav a.btn-primary:hover {
  background: var(--primary-dark);
  color: #ffffff;
}

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

/* Hero */
.hero {
  padding: 4rem 0 3rem;
  background: linear-gradient(180deg, #fff 0%, var(--bg) 100%);
  overflow: hidden;
}

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

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 32rem;
  margin-bottom: 2rem;
}

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.store-buttons--center {
  justify-content: center;
}

.store-badge {
  transition: transform 0.15s;
}

.store-badge:hover {
  transform: translateY(-2px);
}

.store-badge img {
  height: auto;
}

/* iPhone mockup */
.iphone-mockup {
  position: relative;
  width: min(280px, 100%);
  margin-inline: auto;
  padding: 12px;
  background: #1a1a1a;
  border-radius: 44px;
  box-shadow: var(--shadow), inset 0 0 0 2px #333;
}

.iphone-mockup::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 28px;
  background: #1a1a1a;
  border-radius: 0 0 18px 18px;
  z-index: 2;
}

.iphone-mockup--sm {
  width: min(240px, 100%);
  padding: 10px;
  border-radius: 36px;
}

.iphone-mockup--sm::before {
  width: 80px;
  height: 22px;
  top: 10px;
}

.iphone-screen {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 1290 / 2796;
}

.iphone-mockup--sm .iphone-screen {
  border-radius: 26px;
}

.iphone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.hero-device .iphone-mockup {
  width: min(300px, 90%);
}

/* Trust strip */
.trust-strip {
  background: var(--surface);
  border-block: 1px solid rgba(17, 24, 39, 0.06);
  padding: 1.25rem 0;
}

.trust-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}

.trust-icon {
  font-size: 1.25rem;
}

.trust-divider {
  width: 1px;
  height: 24px;
  background: rgba(17, 24, 39, 0.12);
}

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

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 6rem;
}

.feature-row:last-child {
  margin-bottom: 0;
}

.feature-row--reverse .feature-copy {
  order: 2;
}

.feature-row--reverse .feature-device {
  order: 1;
}

.feature-copy h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.feature-copy p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.feature-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.feature-bullets li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 500;
  font-size: 0.95rem;
}

.feature-bullets li::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

.feature-device {
  display: flex;
  justify-content: center;
}

/* CTA band */
.cta-band {
  padding: 5rem 0;
  background: linear-gradient(135deg, #4361EE 0%, #3451d1 50%, #1e3a8a 100%);
  color: #fff;
  text-align: center;
}

.cta-inner h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.cta-inner p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

/* Footer */
.site-footer {
  background: var(--text);
  color: rgba(255, 255, 255, 0.7);
  padding: 3rem 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-logo {
  width: 40px;
  height: 40px;
  margin-bottom: 0.75rem;
  opacity: 0.9;
}

.footer-brand p {
  font-size: 0.875rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-nav a {
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: #fff;
}

/* Legal pages */
.legal {
  padding: 3rem 0 5rem;
}

.legal article {
  max-width: 46rem;
  background: var(--surface);
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.legal h1 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.legal .legal-updated {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.legal h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
}

.legal p,
.legal ul {
  color: var(--text-secondary);
  font-size: 0.98rem;
  margin-bottom: 1rem;
}

.legal ul {
  padding-left: 1.25rem;
}

.legal li {
  margin-bottom: 0.4rem;
}

.legal a {
  color: var(--primary);
  text-decoration: underline;
}

.legal .legal-back {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.legal .legal-back:hover {
  color: var(--text);
}

@media (max-width: 640px) {
  .legal article {
    padding: 1.5rem;
  }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay {
  transition-delay: 0.15s;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid,
  .feature-row {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }

  .feature-row--reverse .feature-copy,
  .feature-row--reverse .feature-device {
    order: unset;
  }

  .hero-sub {
    margin-inline: auto;
  }

  .store-buttons {
    justify-content: center;
  }

  .feature-bullets {
    align-items: center;
  }

  .hero {
    padding-top: 2.5rem;
  }

  .hero-device {
    order: -1;
  }
}

@media (max-width: 640px) {
  .header-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--surface);
    padding: 1.5rem;
    border-bottom: 1px solid rgba(17, 24, 39, 0.06);
    box-shadow: var(--shadow-sm);
  }

  .header-nav.open {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }

  .menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .trust-divider {
    display: none;
  }

  .trust-inner {
    flex-direction: column;
    gap: 0.75rem;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .footer-nav {
    justify-content: center;
  }
}
