@property --n {
  syntax: "<integer";
  inherits: false;
  initial-value: 0;
}

:root {
  --brand: #3045d0;
  --brand-soft: #526de1;
  --ink: #0a0c14;
  --muted: #4b5265;
  --line: rgba(10, 12, 20, 0.08);
  --tint: #eef1fe;
  --container: 1360px;
  --radius: 20px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Manrope", system-ui, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

section { scroll-margin-top: 24px; }

h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; font-weight: 800; }

h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--tint);
  border: 1px solid rgba(48, 69, 208, 0.16);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  border-radius: 999px;
  padding: 14px 28px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.25s, box-shadow 0.25s;
  will-change: transform;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(48, 69, 208, 0.55);
}

.btn-primary:hover { background: var(--brand-soft); transform: translateY(-2px); }
.btn-primary:active { transform: translateY(0) scale(0.98); }

.btn-ghost {
  color: var(--ink);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
}

.btn-ghost:hover { border-color: rgba(48, 69, 208, 0.4); color: var(--brand); transform: translateY(-2px); }
.btn-block { width: 100%; }

.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head h2 { margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 1.06rem; }

.hero {
  background:
    radial-gradient(58% 78% at 82% 6%, rgba(82, 109, 225, 0.20), transparent 62%),
    linear-gradient(180deg, var(--tint) 0%, #fff 92%);
  padding: clamp(64px, 9vw, 110px) 0 clamp(72px, 9vw, 120px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}

.hero-copy > * { animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both; }
.hero-copy > *:nth-child(2) { animation-delay: 0.08s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.16s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.24s; }
.hero-copy > *:nth-child(5) { animation-delay: 0.32s; }

.hero-sub {
  margin-top: 20px;
  font-size: 1.14rem;
  color: var(--muted);
  max-width: 46ch;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: clamp(20px, 3.4vw, 44px);
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  justify-content: start;
}

.stats li { display: grid; grid-template-columns: auto auto; column-gap: 3px; align-items: baseline; }

.stat-value, .stat-suffix {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  font-weight: 800;
  color: var(--brand);
  letter-spacing: -0.02em;
}

.stat-label {
  grid-column: 1 / -1;
  font-size: 0.84rem;
  color: var(--muted);
  font-weight: 600;
}

.hero-visual { display: flex; justify-content: center; animation: fadeUp 0.9s 0.25s cubic-bezier(0.16, 1, 0.3, 1) both; }

.esim-card {
  width: min(360px, 100%);
  background: linear-gradient(150deg, var(--brand) 0%, var(--brand-soft) 100%);
  border-radius: 26px;
  padding: 28px;
  color: #fff;
  box-shadow: 0 40px 80px -30px rgba(48, 69, 208, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  animation: floaty 7s ease-in-out infinite;
}

.esim-card-top { display: flex; justify-content: space-between; align-items: center; }
.esim-brand { font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; }

.esim-chip {
  width: 44px;
  height: 32px;
  border-radius: 7px;
  background: linear-gradient(135deg, #f6d98b, #d9a94f);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18);
}

.esim-qr {
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  margin: 26px auto 22px;
  width: fit-content;
  box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.45);
}

.esim-meta { text-align: center; }
.esim-meta strong { display: block; font-size: 1.05rem; }
.esim-meta span { font-size: 0.82rem; opacity: 0.85; }

.esim-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 0.84rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 9px 16px;
}

.esim-status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7ef0b8;
  animation: pulse 2.2s ease-in-out infinite;
}

.how { padding: clamp(80px, 10vw, 120px) 0; background: #fff; }

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 56px);
  position: relative;
  counter-reset: step;
}

.steps::before {
  content: "";
  position: absolute;
  top: 26px;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(48, 69, 208, 0.35), transparent);
}

.steps li { position: relative; }

.step-num {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--tint);
  border: 1px solid rgba(48, 69, 208, 0.2);
  color: var(--brand);
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.steps h3 { font-size: 1.18rem; margin-bottom: 10px; }
.steps p { color: var(--muted); font-size: 0.97rem; }

.plans {
  padding: clamp(80px, 10vw, 120px) 0;
  background: linear-gradient(180deg, #fff 0%, #f4f6ff 46%, #fff 100%);
}

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

.plan-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s, border-color 0.35s;
}

.plan-card:hover {
  transform: translateY(-6px);
  border-color: rgba(48, 69, 208, 0.35);
  box-shadow: 0 30px 50px -28px rgba(48, 69, 208, 0.4);
}

.plan-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.plan-flag { font-size: 1.9rem; line-height: 1; }

.plan-badge {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--tint);
  border-radius: 999px;
  padding: 5px 11px;
}

.plan-badge-new { color: #0a0c14; background: #e8f5ee; }

.plan-card h3 { font-size: 1.25rem; margin-bottom: 18px; }

.plan-specs { margin-bottom: 22px; }

.plan-specs div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}

.plan-specs div:last-child { border-bottom: 0; }
.plan-specs dt { color: var(--muted); }
.plan-specs dd { font-weight: 700; text-align: right; }

.plan-price {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  margin-top: auto;
}

.plan-price span { font-size: 0.82rem; font-weight: 600; color: var(--muted); margin-right: 4px; }
.plan-price small { font-size: 0.78rem; font-weight: 600; color: var(--muted); }

.plans-note {
  margin-top: 36px;
  font-size: 0.88rem;
  color: var(--muted);
  max-width: 760px;
}

.pay-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 28px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
}

.pay-strip img { opacity: 0.85; }

.reviews {
  padding: clamp(110px, 12vw, 160px) 0;
  background:
    radial-gradient(70% 90% at 18% 10%, rgba(82, 109, 225, 0.55), transparent 60%),
    linear-gradient(180deg, #fff 0%, var(--brand) 7%, var(--brand) 93%, #fff 100%);
  color: #fff;
}

.reviews .section-head p { color: rgba(255, 255, 255, 0.82); }

.review-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: stretch;
}

.review-feature {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 44px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.review-stars { color: #ffd77a; letter-spacing: 3px; font-size: 1.05rem; }

.review-feature q {
  quotes: none;
  display: block;
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.015em;
}

.review-col { display: grid; gap: 24px; }

.review-mini {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s;
}

.review-mini:hover { transform: translateY(-4px); background: rgba(255, 255, 255, 0.12); }

.review-mini q { quotes: none; font-size: 0.97rem; line-height: 1.55; color: rgba(255, 255, 255, 0.94); }

.review-feature footer, .review-mini footer { display: flex; align-items: center; gap: 13px; }

.review-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.82rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
}

.review-feature footer strong, .review-mini footer strong { display: block; font-size: 0.92rem; }
.review-feature footer em, .review-mini footer em { font-style: normal; font-size: 0.8rem; color: rgba(255, 255, 255, 0.72); }

.faq { padding: clamp(80px, 10vw, 120px) 0 clamp(96px, 11vw, 140px); background: #fff; }

.faq-list { max-width: 780px; }

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 4px;
  font-weight: 700;
  font-size: 1.04rem;
  transition: color 0.25s;
}

.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--brand); }

.faq-list summary::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--brand);
  line-height: 1;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.faq-list details[open] summary::after { transform: rotate(45deg); }

.faq-list details p {
  padding: 0 4px 24px;
  color: var(--muted);
  font-size: 0.97rem;
  max-width: 66ch;
  animation: fadeUp 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.8); }
}

@keyframes tick { from { --n: 0; } }

@keyframes reveal {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}

@supports (animation-timeline: view()) {
  .reveal {
    animation: reveal linear both;
    animation-timeline: view();
    animation-range: entry 6% entry 46%;
  }

  .steps li:nth-child(2), .plan-card:nth-child(3n+2) { animation-range: entry 10% entry 52%; }
  .steps li:nth-child(3), .plan-card:nth-child(3n) { animation-range: entry 14% entry 58%; }

  .stat-value {
    font-size: 0;
    counter-reset: n var(--n);
    animation: tick 1.7s cubic-bezier(0.22, 1, 0.36, 1) 0.35s both;
  }

  .stat-value::after {
    content: counter(n);
    font-size: clamp(1.6rem, 2.6vw, 2.1rem);
    font-weight: 800;
    color: var(--brand);
    letter-spacing: -0.02em;
  }

  .stat-static { animation: none; }
  .stat-static::after { content: "24/7"; }
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .esim-card { width: min(320px, 100%); }
  .plan-grid { grid-template-columns: repeat(2, 1fr); }
  .review-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .steps::before { display: none; }
}

@media (max-width: 640px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .plan-grid { grid-template-columns: 1fr; }
  .hero-cta .btn { flex: 1; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .stat-value { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
}