/* ============================================
   DESIGN TOKENS
   ============================================ */
:root {
  /* Colors */
  --color-red:         #e8000d;
  --color-red-light:   #fff0f0;
  --color-red-border:  #ffd0d0;
  --color-red-glow:    rgba(232, 0, 13, 0.3);

  --color-dark:        #1d1d1f;
  --color-dark-2:      #2c2c2e;

  --color-bg-white:    #ffffff;
  --color-bg-light:    #f9f9fb;
  --color-bg-mid:      #f5f5f7;
  --color-bg-hero:     #f2f2f7;
  --color-bg-card:     #f9f9fb;

  --color-border:      #f0f0f0;
  --color-nav-border:  #f0f0f0;

  --color-text-primary:   #1d1d1f;
  --color-text-secondary: #6e6e73;
  --color-text-muted:     #aeaeb2;
  --color-text-white:     #ffffff;

  /* Feature card icon bg colors */
  --icon-bg-red:    #fff0f0;
  --icon-bg-blue:   #f0f5ff;
  --icon-bg-green:  #f0fff4;
  --icon-bg-orange: #fff8f0;
  --icon-bg-purple: #f8f0ff;
  --icon-bg-gray:   #f5f5f7;

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --text-xs:   12px;
  --text-sm:   13px;
  --text-base: 14px;
  --text-md:   15px;
  --text-lg:   16px;
  --text-xl:   17px;
  --text-2xl:  18px;
  --text-3xl:  19px;
  --text-4xl:  38px;
  --text-5xl:  44px;
  --text-6xl:  62px;

  /* Spacing */
  --page-padding: 52px;
  --page-max-width: 960px; /* 52px + 856px + 52px */

  /* Radius */
  --radius-sm:  6px;
  --radius-md:  8px;
  --radius-lg:  12px;
  --radius-xl:  14px;
  --radius-2xl: 16px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-card: 0px 16px 48px 0px rgba(0, 0, 0, 0.2);
  --shadow-btn:  0px 4px 16px 0px rgba(232, 0, 13, 0.3);
  --shadow-step: 0px 4px 16px 0px rgba(232, 0, 13, 0.25);
}


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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  color: var(--color-text-primary);
  background: var(--color-bg-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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


/* ============================================
   LAYOUT UTILITIES
   ============================================ */
.page-wrapper {
  max-width: var(--page-max-width);
  margin: 0 auto;
  padding: 0 var(--page-padding);
}

.section-label {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-red);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 26px;
}

.section-heading {
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--color-text-primary);
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 24px;
}

.section-subtext {
  font-size: var(--text-xl);
  color: var(--color-text-secondary);
  line-height: 1.6;
  max-width: 500px;
}


/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--color-nav-border);
  height: 69px;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo */
.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav__logo-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
}

.nav__logo-text {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-text-primary);
  white-space: nowrap;
}

/* Nav links */
.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav__link {
  font-size: 14px;
  color: var(--color-text-secondary);
  white-space: nowrap;
  transition: color 0.15s ease;
}

.nav__link:hover {
  color: var(--color-text-primary);
}

.nav__link--btn {
  background: var(--color-dark);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--radius-md);
  transition: background 0.15s ease;
}

.nav__link--btn:hover {
  background: #333;
  color: #fff;
}


/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  background: linear-gradient(to bottom, #ffffff 0%, #f9f9fb 60%, var(--color-bg-hero) 100%);
  padding: 72px 0 60px;
  text-align: center;
  overflow: hidden;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  background: var(--color-red-light);
  border: 1px solid var(--color-red-border);
  border-radius: var(--radius-full);
  padding: 6px 15px;
  margin-bottom: 48px;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-red);
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.hero__heading {
  font-size: var(--text-6xl);
  font-weight: 800;
  color: var(--color-text-primary);
  letter-spacing: -2px;
  line-height: 1.05;
  margin-bottom: 32px;
}

.hero__heading span {
  color: var(--color-red);
}

.hero__subtext {
  font-size: var(--text-3xl);
  color: var(--color-text-secondary);
  line-height: 1.6;
  max-width: 540px;
  margin: 0 auto 48px;
}

.hero__ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 24px;
}

.btn--primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--color-red);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-btn);
  white-space: nowrap;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.btn--primary:hover {
  background: #c9000b;
  box-shadow: 0px 6px 20px 0px rgba(232, 0, 13, 0.4);
  color: #fff;
}

.btn--primary img {
  width: 16px;
  height: 16px;
}

.btn--secondary {
  display: inline-flex;
  align-items: center;
  background: var(--color-bg-mid);
  color: var(--color-text-primary);
  font-size: 15px;
  font-weight: 500;
  padding: 14px 20px;
  border-radius: var(--radius-lg);
  white-space: nowrap;
  transition: background 0.15s ease;
}

.btn--secondary:hover {
  background: #ebebed;
  color: var(--color-text-primary);
}

.app-store-badge-link {
  display: inline-block;
  transition: opacity 0.15s ease;
}

.app-store-badge-link:hover {
  opacity: 0.82;
}

.app-store-badge {
  height: 54px;
  width: auto;
  display: block;
}

.hero__footnote {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: 8px;
}


/* ============================================
   THE APP SECTION
   ============================================ */
.section-app {
  background: var(--color-bg-light);
  padding: 80px 0 80px;
}

.section-app .section-subtext {
  margin-bottom: 56px;
}

.app__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.app__card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.app__card--centered {
  grid-column: 1 / -1;
  justify-self: center;
  max-width: 50%;
}

.app__screenshot {
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.app__screenshot img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-xl);
}

.app__card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text-primary);
}

.app__card-desc {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.6;
}


/* ============================================
   FEATURES SECTION
   ============================================ */
.section-features {
  background: var(--color-bg-white);
  padding: 80px 0;
}

.section-features .section-subtext {
  margin-bottom: 56px;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: 28px 24px 28px;
}

.feature-card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 28px;
}

.feature-card__icon--red    { background: var(--icon-bg-red); }
.feature-card__icon--blue   { background: var(--icon-bg-blue); }
.feature-card__icon--green  { background: var(--icon-bg-green); }
.feature-card__icon--orange { background: var(--icon-bg-orange); }
.feature-card__icon--purple { background: var(--icon-bg-purple); }
.feature-card__icon--gray   { background: var(--icon-bg-gray); }

.feature-card__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 10px;
}

.feature-card__desc {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.6;
}


/* ============================================
   HOW IT WORKS SECTION
   ============================================ */
.section-how {
  background: var(--color-bg-light);
  padding: 80px 0;
}

.how__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 56px;
}

.how__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.how__step-number {
  width: 48px;
  height: 48px;
  background: var(--color-red);
  border-radius: 24px;
  box-shadow: var(--shadow-step);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.how__step-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 12px;
}

.how__step-desc {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.6;
  max-width: 264px;
}


/* ============================================
   CTA SECTION
   ============================================ */
.section-cta {
  background: var(--color-dark);
  padding: 80px 0;
  text-align: center;
}

.section-cta .section-heading {
  color: #fff;
  font-size: var(--text-5xl);
  letter-spacing: -1.5px;
  max-width: 700px;
  margin: 0 auto 24px;
}

.section-cta .section-heading span {
  color: var(--color-red);
}

.section-cta__subtext {
  font-size: 18px;
  color: var(--color-text-muted);
  margin-bottom: 40px;
}

.btn--white {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  color: var(--color-text-primary);
  font-size: 16px;
  font-weight: 700;
  padding: 16px 32px;
  border-radius: var(--radius-lg);
  white-space: nowrap;
  transition: background 0.15s ease;
}

.btn--white:hover {
  background: #f0f0f0;
  color: var(--color-text-primary);
}

.btn--white img {
  width: 18px;
  height: 18px;
}

.section-cta__footnote {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-top: 16px;
}


/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--color-dark);
  border-top: 1px solid var(--color-dark-2);
  height: 80px;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer__logo-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
}

.footer__logo-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-muted);
}

.footer__links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer__link {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  transition: color 0.15s ease;
}

.footer__link:hover {
  color: var(--color-text-muted);
}

.privacy-content {
  max-width: 700px;
  margin: 0 auto;
}

.privacy-updated {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 32px;
}

.privacy-text {
  font-size: 16px;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

.privacy-heading {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 48px 0 16px;
}

.privacy-email {
  color: var(--color-red);
  text-decoration: none;
}

.privacy-email:hover {
  text-decoration: underline;
}


/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  :root {
    --page-padding: 32px;
    --text-6xl: 48px;
    --text-4xl: 32px;
    --text-5xl: 36px;
  }

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

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

  .app__card--centered {
    max-width: 100%;
  }

  .how__steps {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 600px) {
  :root {
    --page-padding: 20px;
    --text-6xl: 36px;
    --text-4xl: 28px;
    --text-5xl: 30px;
  }

  .nav__links {
    display: none; /* hide on mobile — add a hamburger menu if needed */
  }

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

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

  .btn--primary,
  .btn--secondary {
    justify-content: center;
  }
}
