:root {
  --bg: #ffffff;
  --text: #0f1720;
  --muted: rgba(15, 23, 32, 0.64);
  --line: rgba(15, 23, 32, 0.08);
  --soft: rgba(15, 23, 32, 0.03);
  --black: #111111;
  --brand-purple: #301e80;
  --brand-violet: #591e86;
  --brand-magenta: #ad1e92;
  --brand-soft: #f3e8f8;
  --white: #ffffff;
  --shadow: 0 18px 40px rgba(10, 14, 18, 0.08);
  --shadow-strong: 0 30px 80px rgba(10, 14, 18, 0.16);
  --radius: 28px;
  --radius-sm: 18px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

button,
input {
  font: inherit;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.84);
  border-bottom: 1px solid var(--line);
}

.nav {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  height: 36px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 14px;
}

.text-link {
  color: var(--muted);
  font-size: 15px;
  transition: color 180ms ease;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
  cursor: pointer;
  white-space: nowrap;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: #111111;
  color: var(--white);
  box-shadow: var(--shadow);
}

.button-primary:hover {
  background: #222222;
}

.button-secondary {
  background: transparent;
  color: var(--muted);
}

.button-secondary:hover {
  color: var(--text);
}

.button-ghost {
  background: var(--white);
  color: var(--black);
}

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

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 56px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--soft);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 24px;
}

.hero h1,
.section-title,
.form-title,
.cta h2 {
  margin: 0;
  letter-spacing: -0.05em;
  line-height: 0.96;
  font-weight: 600;
}

.hero h1 {
  font-size: clamp(54px, 9vw, 108px);
  max-width: 10ch;
}

.hero p {
  margin: 22px 0 0;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.35;
  color: var(--muted);
  max-width: 22ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.phone-wrap {
  position: relative;
}

.phone-glow {
  position: absolute;
  inset: 14% -8% auto;
  height: 72%;
  background: radial-gradient(circle at center, rgba(255, 196, 208, 0.45), transparent 60%);
  filter: blur(30px);
  z-index: 0;
}

.wallet-card {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  margin: 0 auto;
  padding: 26px;
  border-radius: 34px;
  background: #111111;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-strong);
}

.wallet-top,
.wallet-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wallet-top img {
  height: 28px;
  filter: brightness(0) invert(1);
}

.wallet-label,
.wallet-bottom span:first-child,
.mini-label,
.footer {
  color: rgba(255, 255, 255, 0.65);
}

.stamp-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin: 28px 0;
}

.stamp {
  aspect-ratio: 1;
  border-radius: 18px;
  border: 2px solid rgba(255, 255, 255, 0.18);
  background: transparent;
}

.stamp.filled {
  background: var(--white);
  border-color: var(--white);
}

.section {
  padding: 110px 0;
}

.section-soft {
  background: var(--soft);
}

.section-title {
  font-size: clamp(40px, 6vw, 72px);
  text-align: center;
}

.section-copy {
  margin: 18px auto 0;
  max-width: 740px;
  text-align: center;
  font-size: clamp(20px, 2.1vw, 28px);
  line-height: 1.4;
  color: var(--muted);
}

.mini-card {
  width: min(100%, 560px);
  margin: 50px auto 0;
  padding: 28px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.mini-wallet {
  border-radius: 24px;
  padding: 24px;
  background: #111111;
  color: var(--white);
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin: 20px 0 16px;
}

.mini-stamp {
  aspect-ratio: 1;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.mini-stamp.filled {
  background: var(--white);
}

.mini-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(15, 23, 32, 0.5);
  margin-top: 18px;
  font-size: 15px;
}

.reward-card {
  width: min(100%, 520px);
  margin: 56px auto 0;
  padding: 30px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.reward-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 15px;
}

.reward-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin: 22px 0 28px;
}

.reward-stamp {
  aspect-ratio: 1;
  border-radius: 16px;
  border: 2px solid rgba(15, 23, 32, 0.08);
  background: var(--black);
}

.reward-banner {
  border-radius: 18px;
  background: var(--black);
  color: var(--white);
  text-align: center;
  padding: 18px 20px;
  font-weight: 600;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  margin-top: 70px;
}

.step {
  text-align: center;
}

.step-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 22px;
  border-radius: 22px;
  background: var(--black);
  color: var(--white);
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 600;
}

.step h3,
.benefit {
  margin: 0;
  letter-spacing: -0.04em;
}

.step h3 {
  font-size: 30px;
}

.step p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 17px;
}

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

.benefit {
  text-align: center;
  font-size: clamp(30px, 3vw, 42px);
}

.cta {
  padding: 110px 0;
  background: linear-gradient(135deg, var(--brand-purple) 0%, var(--brand-magenta) 100%);
  color: var(--white);
}

.cta h2 {
  text-align: center;
  font-size: clamp(42px, 7vw, 84px);
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 38px;
}

.site-footer {
  padding: 28px 0 34px;
  background: var(--black);
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  font-size: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.form-shell {
  padding: 72px 0 100px;
}

.form-grid {
  display: grid;
  grid-template-columns: 0.98fr 1.02fr;
  gap: 40px;
  align-items: start;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 26px;
}

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

.form-title {
  font-size: clamp(46px, 6.5vw, 78px);
}

.form-lead {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 22px;
  line-height: 1.4;
  max-width: 22ch;
}

.form-card,
.preview-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-card {
  padding: 28px;
}

.preview-card-brand {
  border-color: rgba(15, 23, 32, 0.08);
}

.field {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.field label {
  color: var(--muted);
  font-size: 14px;
}

.field input,
.field select {
  width: 100%;
  min-height: 56px;
  padding: 0 18px;
  border: 1px solid rgba(15, 23, 32, 0.12);
  border-radius: 18px;
  background: #fff;
  color: var(--text);
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.field input:focus,
.field select:focus {
  border-color: rgba(89, 30, 134, 0.45);
  box-shadow: 0 0 0 4px rgba(89, 30, 134, 0.10);
}

.form-note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.preview-card {
  padding: 28px;
}

.preview-card-brand {
  border-color: rgba(15, 23, 32, 0.08);
}

.preview-title {
  margin: 0 0 18px;
  font-size: 18px;
  letter-spacing: -0.03em;
}

.preview-wallet {
  border-radius: 26px;
  padding: 26px;
  background: #ffffff;
  color: #111111;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(15, 23, 32, 0.08);
}

.preview-wallet .preview-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.preview-wallet .preview-brand img {
  height: 28px;
}

.preview-wallet .stamp-grid {
  margin: 20px 0;
}

.preview-wallet .stamp {
  border-color: rgba(17, 17, 17, 0.15);
  background: transparent;
}

.preview-wallet .stamp.filled {
  background: rgba(17, 17, 17, 0.92);
  border-color: rgba(17, 17, 17, 0.92);
}

.preview-meta {
  color: rgba(17, 17, 17, 0.64);
  font-size: 14px;
}

.success-box {
  display: none;
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(15, 23, 32, 0.05);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
}

.success-box.is-visible {
  display: block;
}

@media (max-width: 980px) {
  .hero-grid,
  .form-grid,
  .steps,
  .benefits {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 54px;
  }

  .hero-copy,
  .form-copy {
    text-align: center;
  }

  .hero p,
  .form-lead {
    max-width: none;
    margin-left: auto;
    margin-right: auto;
  }

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

  .steps,
  .benefits {
    gap: 42px;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .site-header {
    background: rgba(255, 255, 255, 0.92);
  }

  .nav {
    min-height: 78px;
  }

  .nav-links {
    gap: 10px;
  }

  .text-link {
    display: none;
  }

  .button {
    min-height: 48px;
    padding: 0 20px;
  }

  .hero,
  .section,
  .cta,
  .form-shell {
    padding-top: 52px;
    padding-bottom: 72px;
  }

  .wallet-card,
  .mini-card,
  .reward-card,
  .form-card,
  .preview-card {
    padding: 22px;
  }

  .step h3 {
    font-size: 28px;
  }
}


.signup-page .button-primary {
  background: #111111;
}

.signup-page .button-primary:hover {
  background: #222222;
}

.thanks-shell {
  padding: 96px 0 120px;
}

.thanks-card {
  max-width: 760px;
  text-align: center;
}

.thanks-copy {
  max-width: 28ch;
  margin-left: auto;
  margin-right: auto;
}

.thanks-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

@media (max-width: 720px) {
  .hero h1 { font-size: clamp(42px, 12vw, 68px); }
  .hero p, .section-copy, .form-lead { font-size: 18px; }
  .section-title { font-size: clamp(34px, 10vw, 52px); }
  .eyebrow { font-size: 12px; min-height: 34px; padding: 0 12px; margin-bottom: 18px; }
  .benefit { font-size: clamp(24px, 8vw, 34px); }
  .form-title { font-size: clamp(36px, 11vw, 52px); }
  .tagline, .preview-title, .reward-top, .step p, .preview-meta, .field label, .form-note, .site-footer { font-size: 13px; }
  .button { font-size: 14px; }
  .wallet-card { padding: 20px; }
  .wallet-top img, .preview-wallet .preview-brand img { height: 24px; }
  .step-icon { width: 60px; height: 60px; font-size: 24px; margin-bottom: 18px; }
  .step h3 { font-size: 24px; }
  .preview-wallet { min-height: 250px; padding: 22px; }
  .thanks-shell { padding: 72px 0 90px; }
}


.preview-card-top { margin-bottom: 20px; }

@media (max-width: 720px) {
  .hero h1 { text-align: center; }
  .hero-copy .eyebrow, .hero p { text-align: center; }
  .hero-copy { text-align: center; }
  .hero-copy p { max-width: 22ch; }
  .section-copy, .step p, .benefit, .form-lead, .tagline, .preview-title, .preview-meta, .field label, .form-note, .site-footer { font-size: 12px; }
  .hero p { font-size: 16px; }
  .section-title { font-size: clamp(30px, 9vw, 46px); }
  .preview-wallet { min-height: 220px; padding: 20px; }
}

.signup-page .field input:focus, .signup-page .field select:focus { border-color: rgba(17,17,17,0.4); box-shadow: 0 0 0 4px rgba(17,17,17,0.08); }


/* Final mobile adjustments */
@media (max-width: 720px) {
  .hero-copy {
    text-align: center;
  }

  .hero-copy .eyebrow,
  .hero-copy p,
  .hero h1 {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .hero h1 {
    font-size: clamp(54px, 14vw, 78px);
    max-width: 11ch;
  }

  .hero p {
    font-size: 18px;
    max-width: 24ch;
  }

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

  .form-title {
    font-size: clamp(42px, 12vw, 58px);
    text-align: center;
  }

  .form-lead {
    font-size: 20px;
    text-align: center;
    max-width: 24ch;
    margin-left: auto;
    margin-right: auto;
  }
}
