@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ============================================================
   TOKENS
   ============================================================ */
:root {
  --blue:        #308ae4;
  --blue-2:      #1f6fd1;
  --text:        #101114;
  --muted:       rgba(16, 17, 20, 0.62);
  --border:      rgba(16, 17, 20, 0.10);
  --shadow-soft: 0 10px 24px rgba(16, 17, 20, 0.06);
}


/* ============================================================
   RESET & BASE
   ============================================================ */
* {
  box-sizing: border-box;
}

html {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: clamp(15px, 1.8vw, 18px);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(135deg, #E8F5FF 0%, #FFFFFF 50%, #F0F8FF 100%);
}


/* ============================================================
   UTILITIES
   ============================================================ */
.container {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
}

.break-mobile  { display: none; }
.break-desktop { display: inline; }


/* ============================================================
   SCROLL REVEAL
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity  520ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

[data-reveal].visible {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal-group] > *:nth-child(1) { transition-delay:   0ms; }
[data-reveal-group] > *:nth-child(2) { transition-delay:  80ms; }
[data-reveal-group] > *:nth-child(3) { transition-delay: 160ms; }


/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  border: none;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    transform   160ms ease,
    box-shadow  160ms ease,
    opacity     160ms ease,
    filter      160ms ease;
  user-select: none;
}

.btn:hover  { transform: translateY(-1px); }
.btn:active { transform: translateY(0); opacity: 0.96; }

.btn-primary {
  background: var(--blue);
  color: white;
  box-shadow: 0 10px 22px rgba(10, 102, 194, 0.22);
  padding: 10px 16px;
  font-size: 0.95rem;
}

.btn-primary:hover {
  filter: brightness(0.98);
  box-shadow: 0 14px 28px rgba(10, 102, 194, 0.26);
}

.btn-google {
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
  border: 1px solid rgba(16, 17, 20, 0.14);
  box-shadow: var(--shadow-soft);
  padding: 16px 22px;
  height: 59px;
}

.btn-google:hover {
  filter: brightness(0.99);
  box-shadow: 0 14px 28px rgba(16, 17, 20, 0.10);
}

.btn-cta {
  width: min(360px, 92vw);
  padding: 16px 22px;
  font-size: 1.05rem;
}

.google-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
}

.cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 18px;
}


/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: padding 300ms ease, background 300ms ease;
}

.site-header.scrolled {
  padding: 10px 12px;
  background: transparent;
  border-bottom: none;
  backdrop-filter: none;
}

.site-header.scrolled .header-box {
  width: calc(100% - 24px);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 999px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(16, 17, 20, 0.10);
  padding: 10px 20px;
  transition: all 300ms ease;
}

.header-box {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  padding: 14px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-box-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-icon { color: var(--blue); }

.brand {
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  color: black;
}


/* ============================================================
   HERO
   ============================================================ */
.hero { padding: 84px 0 46px; }

.hero-inner { text-align: center; }

.hero-title {
  margin: 0 0 14px;
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 700;
  font-size: clamp(2.2rem, 6vw, 4.8rem);
}

.hero-accent { color: var(--blue-2); }

.hero-subtitle {
  margin: 0 auto 26px;
  max-width: 46ch;
  color: var(--muted);
  line-height: 1.55;
  font-size: clamp(1rem, 2.3vw, 1.35rem);
}


/* ============================================================
   MARQUEE
   ============================================================ */
.marquee-section {
  padding: 10px 0 28px;
  text-align: center;
  overflow: hidden;
}

img {
  height: 40px;
  width: 40px;
}

.marquee-label {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.marquee-track-wrapper {
  overflow: hidden;
  margin: 0 auto;
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 15%,
    black 85%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 15%,
    black 85%,
    transparent 100%
  );
}

.marquee-track {
  display: flex;
  gap: 64px;
  width: max-content;
  animation: marquee-scroll 12s linear infinite;
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 600;
  font-size: 1rem;
  white-space: nowrap;
  padding: 6px 0;
}

.marquee-item svg {
  border-radius: 6px;
  flex-shrink: 0;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}


/* ============================================================
   STATS
   ============================================================ */
.stats { padding: 34px 0 26px; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: center;
  text-align: center;
}

.stat { padding: 18px 10px; }

.stat-value {
  font-weight: 700;
  color: var(--blue);
  letter-spacing: -0.02em;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  color: var(--muted);
  font-weight: 500;
}


/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how { padding: 56px 0 76px; }

.section-title {
  margin: 0 0 34px;
  text-align: center;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: clamp(1.8rem, 4.2vw, 3rem);
}

.section-accent { color: var(--blue); }

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
}

.how-card { padding: 10px 8px 0; }

.step-pill {
  width: 66px;
  height: 66px;
  border-radius: 999px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  font-weight: 700;
  background: var(--blue);
  color: #fff;
  box-shadow: 0 14px 26px rgba(10, 102, 194, 0.20);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.how-card:hover .step-pill {
  transform: translateY(-2px);
  box-shadow: 0 18px 32px rgba(10, 102, 194, 0.24);
}

.how-title {
  margin: 0 0 10px;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.how-text {
  margin: 0 auto;
  max-width: 34ch;
  color: var(--muted);
  line-height: 1.55;
}


/* ============================================================
   WAITLIST
   ============================================================ */
.waitlist {
  padding: 80px 0 70px;
  background: linear-gradient(
    180deg,
    rgba(232, 245, 255, 0.00) 0%,
    rgba(232, 245, 255, 0.65) 22%,
    rgba(232, 245, 255, 0.00) 100%
  );
}

.waitlist-title {
  text-align: center;
  margin: 0 0 12px;
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: clamp(2rem, 5.3vw, 3.6rem);
  line-height: 1.05;
}

.waitlist-subtitle {
  text-align: center;
  margin: 0 auto 28px;
  max-width: 52ch;
  color: var(--muted);
  font-size: clamp(1rem, 2.1vw, 1.2rem);
  line-height: 1.55;
}

.trust-row {
  display: flex;
  gap: 22px;
  justify-content: center;
  align-items: center;
  margin-top: 18px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-weight: 600;
}

.check {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(20, 150, 90, 0.12);
  color: rgb(20, 150, 90);
  font-weight: 900;
}


/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 34px 0 36px;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(10px);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-icon.small { color: var(--blue); }

.footer-copy {
  color: rgba(16, 17, 20, 0.55);
  font-weight: 600;
  font-size: 0.95rem;
}


/* ============================================================
   ERROR PAGE
   ============================================================ */
.error-main {
  min-height: calc(100vh - 140px);
  display: grid;
  place-items: center;
  padding: 54px 0 64px;
}

.error { width: 100%; }

.error-card {
  width: min(760px, 100%);
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  border-radius: 22px;
  padding: 44px 34px;
  text-align: center;
}

.error-title {
  margin: 0 0 14px;
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: clamp(2rem, 5.6vw, 3.4rem);
  line-height: 1.05;
}

.error-subtitle {
  margin: 0 auto 26px;
  max-width: 52ch;
  color: var(--muted);
  line-height: 1.6;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
}

.error-actions {
  display: flex;
  justify-content: center;
  align-items: center;
}

.btn-home {
  width: min(360px, 92vw);
  padding: 14px 22px;
  font-size: 1.05rem;
  box-shadow: 0 14px 26px rgba(10, 102, 194, 0.22);
}


/* ============================================================
   RESPONSIVE — TABLET  (≤ 860px)
   ============================================================ */
@media (max-width: 860px) {
  .how-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .how-text { max-width: 48ch; }
}


/* ============================================================
   RESPONSIVE — MOBILE  (≤ 720px)
   ============================================================ */
@media (max-width: 720px) {

  .hero { padding: 72px 0 60px; }

  .hero-title {
    font-size: clamp(2.6rem, 10vw, 3.4rem);
    letter-spacing: -0.03em;
    line-height: 1.08;
    margin-bottom: 20px;
  }

  .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 36px;
    max-width: 38ch;
  }

  .cta-row { margin-top: 0; }

  .btn-cta {
    width: min(340px, 88vw);
    height: 62px;
    font-size: 1.1rem;
  }

  /* Stats — vertical stack */
  .stat { padding: 32px 10px; }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 0;
    max-width: 320px;
    margin: 0 auto;
  }

  .stat-value {
  font-size: clamp(3.2rem, 12vw, 4rem);
  margin-bottom: 8px;
}

  .stat-label {
    font-size: 1.15rem;
    line-height: 1.4;
  }

  .how { padding: 64px 0 72px; }

  .section-title {
    font-size: clamp(1.9rem, 7.5vw, 2.4rem);
    margin-bottom: 42px;
  }

  .how-grid { gap: 40px; }

  .how-card { padding: 0 8px; }

  .step-pill {
    width: 58px;
    height: 58px;
    font-size: 1.1rem;
    margin-bottom: 14px;
  }

  .how-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
  }

  .how-text {
    font-size: 1rem;
    max-width: 44ch;
  }

  .waitlist { padding: 80px 0 80px; }

  .waitlist-title {
    font-size: clamp(2.1rem, 8.5vw, 2.8rem);
    margin-bottom: 16px;
  }

  .waitlist-subtitle {
    font-size: 1.05rem;
    margin-bottom: 36px;
  }

  .trust-row { margin-top: 24px; }

  .footer { padding: 44px 0 48px; }

  .break-desktop { display: none; }
  .break-mobile  { display: inline; }
}


/* ============================================================
   RESPONSIVE — SMALL MOBILE  (≤ 520px)
   ============================================================ */
@media (max-width: 520px) {
  .cta-row .btn-cta {
    width: min(360px, 92vw);
    justify-content: center;
  }

  .error-card {
    padding: 34px 18px;
    border-radius: 20px;
  }
}


/* ============================================================
   RESPONSIVE — TINY  (≤ 420px)
   ============================================================ */
@media (max-width: 420px) {
  .header-box {
    padding: 12px 0;
    padding-top: 30px;
  }

  .btn-primary { padding: 9px 14px; }
}


/* ============================================================
   RESPONSIVE — XS  (≤ 400px)
   ============================================================ */
@media (max-width: 400px) {
  .hero       { padding: 60px 0 52px; }
  .hero-title { font-size: 2.4rem; }
  .stat-value { font-size: 2.2rem; }
  .stat-label { font-size: 0.92rem; }
  .stat-value { font-size: 2.8rem; }
  .stat-label { font-size: 1.05rem; }
}