:root {
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --text: #111827;
  --text-muted: #6b7280;
  --primary: #0500ff;
  --primary-bright: #1a4bff;
  --primary-soft: rgba(5, 0, 255, 0.08);
  --border: #e5e7eb;
  --green: #16a34a;
  --shadow: 0 18px 40px rgba(5, 0, 255, 0.12);
  --radius: 20px;
  --container: 1180px;
  --modal-width: 520px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0;
  min-height: 100%;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
}
button { font: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.app {
  min-height: 100vh;
  background: var(--bg);
  position: relative;
  overflow-x: hidden;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.8);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.logo__icon {
  width: 28px;
  height: 28px;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}
.logo__trust {
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}
.logo__wallet {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--primary);
}
.nav {
  display: none;
  align-items: center;
  gap: 28px;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav a:hover { color: var(--text); }
.header__right {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.lang-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
}
.lang-flag { font-size: 1rem; line-height: 1; }

/* Buttons */
.btn {
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(0.98); }
.btn--header {
  background: var(--primary);
  color: #fff;
  padding: 10px 18px;
  font-size: 0.88rem;
}
.btn--primary {
  background: var(--primary-bright);
  color: #fff;
  padding: 16px 24px;
  box-shadow: 0 12px 28px rgba(26, 75, 255, 0.28);
}
.btn--secondary {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 16px 24px;
}
.btn--lg { padding: 18px 28px; font-size: 1rem; }
.btn--full { width: 100%; }

/* Hero */
.hero {
  position: relative;
  padding: 40px 0 56px;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(5, 0, 255, 0.07), transparent 40%),
    radial-gradient(circle at 80% 10%, rgba(99, 102, 241, 0.08), transparent 32%),
    radial-gradient(#d1d5db 1px, transparent 1px);
  background-size: auto, auto, 18px 18px;
  opacity: 0.55;
}
.hero__grid {
  position: relative;
  display: grid;
  gap: 36px;
  align-items: center;
}
.hero__content { max-width: 620px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(5, 0, 255, 0.12);
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 600;
}
.badge__icon { font-size: 0.9rem; }
.hero__title {
  margin: 22px 0 14px;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 800;
}
.hero__title-accent {
  display: block;
  color: var(--primary-bright);
}
.hero__desc {
  margin: 0 0 22px;
  color: var(--text-muted);
  font-size: clamp(1rem, 2vw, 1.12rem);
  line-height: 1.6;
  max-width: 560px;
}
.hero__checks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}
.hero__checks span {
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  font-size: 0.88rem;
  font-weight: 600;
}
.hero__cta {
  display: grid;
  gap: 12px;
  position: relative;
  max-width: 420px;
}
.hero__cta::before {
  content: "";
  position: absolute;
  inset: -20px -10px 20px;
  background: radial-gradient(circle, rgba(26, 75, 255, 0.12), transparent 70%);
  z-index: -1;
}
.hero__visual {
  display: none;
  justify-content: center;
}
.card-stack {
  position: relative;
  width: min(100%, 380px);
  aspect-ratio: 1.05;
}
.hero-card {
  position: absolute;
  inset: 0;
  border-radius: 22px;
  padding: 28px;
  color: #fff;
  box-shadow: var(--shadow);
}
.hero-card--back {
  transform: rotate(-8deg) translate(-18px, 18px);
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  opacity: 0.55;
}
.hero-card--front {
  transform: rotate(6deg);
  background: linear-gradient(135deg, #0f172a, #1e40af 55%, #2563eb);
}
.hero-card__chip {
  width: 46px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  margin-bottom: 48px;
}
.hero-card__brand { font-size: 1.3rem; font-weight: 800; letter-spacing: 0.08em; }
.hero-card__type { margin-top: 8px; font-size: 0.82rem; opacity: 0.85; }
.hero-card__visa {
  position: absolute;
  right: 28px;
  bottom: 28px;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

/* Sections */
.section { padding: 72px 0; }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 720px; margin-bottom: 36px; }
.section__title {
  margin: 14px 0 10px;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
}
.section__title--sm {
  text-align: center;
  font-size: 1.35rem;
  margin-bottom: 24px;
}
.section__desc { color: var(--text-muted); margin: 0; line-height: 1.6; }

.wallets__grid,
.features__grid,
.steps__grid {
  display: grid;
  gap: 18px;
}
.wallets__grid { grid-template-columns: repeat(2, 1fr); }
.wallet-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--border);
  text-align: center;
}
.wallet-pill__logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  display: block;
}
.wallet-pill span {
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.2;
}
.features__grid { grid-template-columns: 1fr; }
.feature-card,
.step-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.feature-card__icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--primary-soft);
  font-size: 1.3rem;
  margin-bottom: 14px;
  overflow: hidden;
}
.feature-card__img {
  max-width: 40px;
  max-height: 28px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.feature-card h3,
.step-card h3 { margin: 0 0 8px; font-size: 1.1rem; }
.feature-card p,
.step-card p { margin: 0; color: var(--text-muted); line-height: 1.55; }
.steps__grid { grid-template-columns: 1fr; }
.step-card__num {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--primary-bright);
  font-weight: 800;
}

.rewards {
  display: grid;
  gap: 32px;
  align-items: center;
}
.reward-bars { display: grid; gap: 16px; margin-top: 24px; }
.reward-bar__head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-weight: 600;
}
.reward-bar__track {
  height: 10px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.2);
  overflow: hidden;
}
.reward-bar__track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--primary-bright));
}
.rewards__badge {
  justify-self: center;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 30% 30%, #fff, #dbeafe);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.rewards__max-label {
  display: block;
  text-align: center;
  color: var(--text-muted);
  font-weight: 600;
}
.rewards__max-value {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--primary-bright), var(--green));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cta__inner {
  text-align: center;
  padding: 48px 28px;
  border-radius: 28px;
  background: linear-gradient(135deg, #0f172a, #1e3a8a);
  color: #fff;
  box-shadow: var(--shadow);
}
.cta__inner h2 {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
}
.cta__inner p {
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 22px;
  max-width: 560px;
  margin-inline: auto;
}

.faq__item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 12px;
}
.faq__item summary {
  cursor: pointer;
  font-weight: 700;
}
.faq__item p {
  color: var(--text-muted);
  margin: 10px 0 0;
  line-height: 1.55;
}

.footer {
  background: #0b1220;
  color: rgba(255, 255, 255, 0.82);
  padding: 56px 0 28px;
}
.footer__grid {
  display: grid;
  gap: 28px;
}
.footer h4 { margin: 0 0 12px; color: #fff; }
.footer a {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.68);
}
.footer a:hover { color: #fff; }
.footer__about {
  color: rgba(255, 255, 255, 0.62);
  max-width: 360px;
  line-height: 1.55;
}
.footer__bottom {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

/* Modals */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: end center;
  padding: 0;
}
.modal.is-open { display: grid; }
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.45);
  backdrop-filter: blur(4px);
}
.modal__sheet {
  position: relative;
  width: min(100%, var(--modal-width));
  max-height: 92vh;
  overflow: auto;
  background: #fff;
  border-radius: 24px 24px 0 0;
  padding: 22px 18px 28px;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.12);
  animation: slideUp 0.25s ease;
}
@keyframes slideUp {
  from { transform: translateY(24px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.modal__head h2 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  flex: 1;
  text-align: center;
}
.modal__close,
.modal__back {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #f3f4f6;
  color: var(--text);
  font-size: 1.4rem;
  line-height: 1;
  display: grid;
  place-items: center;
}
.modal__subtitle {
  margin: 0 0 18px;
  color: var(--text-muted);
  text-align: center;
  font-size: 0.95rem;
}

.card-options { display: grid; gap: 12px; margin-bottom: 18px; }
.card-option {
  display: grid;
  grid-template-columns: 88px 1fr 24px;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #fafafa;
  text-align: left;
}
.card-option--active {
  border-color: rgba(26, 75, 255, 0.45);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(26, 75, 255, 0.08);
}
.card-thumb {
  width: 88px;
  height: 56px;
  border-radius: 10px;
  padding: 8px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.card-thumb--white { background: linear-gradient(135deg, #ddd6fe, #c4b5fd); color: #312e81; }
.card-thumb--blue { background: linear-gradient(135deg, #1e3a8a, #2563eb); }
.card-thumb--metal { background: linear-gradient(135deg, #111827, #374151); }
.card-thumb__brand { font-size: 0.62rem; font-weight: 800; letter-spacing: 0.08em; }
.card-thumb__type { font-size: 0.55rem; opacity: 0.85; }
.card-option__text strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1rem;
}
.card-option__text strong em {
  font-style: normal;
  color: var(--primary-bright);
  font-weight: 700;
}
.card-option__text span {
  display: block;
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.4;
}
.radio {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #d1d5db;
  justify-self: end;
}
.radio--checked {
  border-color: var(--primary-bright);
  background: var(--primary-bright);
  box-shadow: inset 0 0 0 4px #fff;
}

.review-status { text-align: center; margin: 8px 0 18px; }
.review-status__icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: #dcfce7;
  color: var(--green);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  font-weight: 800;
}
.review-status h3 { margin: 0 0 6px; font-size: 1.2rem; }
.review-status p { margin: 0; color: var(--text-muted); }
.review-details {
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 16px;
}
.review-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.review-row:last-child { border-bottom: 0; }
.review-row span { color: var(--text-muted); }
.text-green { color: var(--green); }
.review-label {
  margin: 0 0 10px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 700;
}
.perks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}
.perk {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 12px;
  font-size: 0.88rem;
  font-weight: 600;
  background: #fafafa;
}
.perk span,
.perk__icon {
  display: block;
  margin-bottom: 6px;
}
.perk__icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.step-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}
.step-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 8px;
  border-radius: 999px;
  background: #f3f4f6;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}
.step-tab i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9ca3af;
}
.step-tab--active {
  background: rgba(26, 75, 255, 0.08);
  color: var(--primary-bright);
  border: 1px solid rgba(26, 75, 255, 0.35);
}
.step-tab--active i { background: var(--primary-bright); }
.connect-step {
  display: none;
}
.connect-step.is-active {
  display: block;
  animation: fadeIn 0.2s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.connect-hint {
  margin: 0 0 14px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.92rem;
}
.wallet-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 22px;
}
.wallet-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 10px;
  background: #fff;
  text-align: center;
}
.wallet-card__icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 8px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #f8fafc;
  overflow: hidden;
}
.wallet-card__logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
}
.wallet-card__logo--square {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}
.wallet-card span { font-size: 0.78rem; font-weight: 600; color: var(--text-muted); }

.connect-progress { text-align: center; padding: 12px 0 4px; }
.progress-ring {
  width: 120px;
  height: 120px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: conic-gradient(var(--primary-bright) 0 28%, #e5e7eb 28% 100%);
  display: grid;
  place-items: center;
  position: relative;
}
.progress-ring--spin {
  animation: ringSpin 1.2s linear infinite;
}
@keyframes ringSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.progress-ring::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: #fff;
}
.progress-ring__inner {
  position: relative;
  z-index: 1;
  font-size: 1.5rem;
  animation: ringSpin 1.2s linear infinite reverse;
}
.progress-step {
  margin: 0 0 8px;
  color: var(--text-muted);
}
.progress-step strong { color: var(--primary-bright); font-size: 1.1rem; }
.connect-progress h3 {
  margin: 0 0 14px;
  font-size: 1.15rem;
}
.step-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}
.step-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d1d5db;
  position: relative;
}
.step-dots span.active {
  width: 12px;
  height: 12px;
  background: var(--primary-bright);
  box-shadow: 0 0 0 6px rgba(26, 75, 255, 0.12);
}
.step-dots span:not(:last-child)::after {
  content: "";
  position: absolute;
  left: calc(100% + 4px);
  top: 50%;
  width: 14px;
  height: 1px;
  background: #d1d5db;
  transform: translateY(-50%);
}
.secure-note {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: #9ca3af;
  font-weight: 700;
}

/* Tablet */
@media (min-width: 640px) {
  .hero__cta {
    grid-template-columns: 1fr 1fr;
    max-width: none;
  }
  .wallets__grid { grid-template-columns: repeat(3, 1fr); }
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .steps__grid { grid-template-columns: repeat(3, 1fr); }
  .rewards { grid-template-columns: 1.2fr 0.8fr; }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .modal { place-items: center; padding: 20px; }
  .modal__sheet {
    border-radius: 24px;
    max-height: 88vh;
    padding: 28px 28px 32px;
  }
}

/* Desktop */
@media (min-width: 900px) {
  .nav { display: flex; }
  .header__right { margin-left: 0; }
  .hero {
    padding: 72px 0 88px;
  }
  .hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
  }
  .hero__visual { display: flex; }
  .hero__cta {
    grid-template-columns: auto auto;
    justify-content: start;
    max-width: none;
  }
  .features__grid { grid-template-columns: repeat(3, 1fr); }
  .wallets__grid { grid-template-columns: repeat(6, 1fr); }
  .modal__sheet { width: min(100%, 560px); }
  .card-option {
    grid-template-columns: 100px 1fr 28px;
    padding: 16px;
  }
  .card-thumb { width: 100px; height: 64px; }
}

/* Large desktop */
@media (min-width: 1200px) {
  .hero__title { font-size: 3.8rem; }
  .section { padding: 88px 0; }
}

/* Mobile: full-width buttons */
@media (max-width: 639px) {
  .hero__cta .btn { width: 100%; }
  .modal__sheet .btn--primary.btn--full,
  .modal__sheet .btn--primary[data-open-modal] {
    width: 100%;
  }
}
