:root {
  --bg: #f8fafc;
  --bg-deep: #0f172a;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --primary: #3b82f6;
  --primary-dark: #1d4ed8;
  --brand: #1e3a8a;
  --brand-soft: #dbeafe;
  --primary-soft: #eff6ff;
  --accent: #f59e0b;
  --sky: #06b6d4;
  --border: #e2e8f0;
  --glow: rgba(59, 130, 246, 0.28);
  --font-display: 'Sora', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--bg-deep);
  color: #fff;
  padding: 8px 12px;
  z-index: 50;
}

.skip:focus {
  left: 12px;
  top: 12px;
}

/* —— Top bar —— */
.topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  color: rgba(248, 250, 252, 0.88);
}

.topbar a {
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0.85;
}

.topbar a:hover {
  opacity: 1;
}

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

.lang .active {
  color: #fff;
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* —— Hero (full-bleed) —— */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #f8fafc;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(59, 130, 246, 0.45), transparent 55%),
    radial-gradient(ellipse 50% 40% at 15% 80%, rgba(245, 158, 11, 0.18), transparent 50%),
    linear-gradient(165deg, #0b1220 0%, #0f172a 45%, #172554 100%);
}

.hero-media {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-media img {
  position: absolute;
  right: max(12px, calc((100% - 1120px) / 2));
  top: 50%;
  width: min(58vw, 720px);
  height: auto;
  max-height: 72vh;
  object-fit: contain;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.4));
  opacity: 0;
  transform: translateY(-42%);
  animation: rise-in-hero 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards;
}

@keyframes rise-in-hero {
  to {
    opacity: 1;
    transform: translateY(-50%);
  }
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 18, 32, 0.92) 0%, rgba(11, 18, 32, 0.72) 42%, rgba(11, 18, 32, 0.2) 72%, rgba(11, 18, 32, 0.55) 100%),
    linear-gradient(180deg, rgba(11, 18, 32, 0.35) 0%, transparent 35%, rgba(11, 18, 32, 0.75) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 120px 24px 56px;
  max-width: 520px;
  margin-left: max(24px, calc((100% - 1120px) / 2 + 24px));
  margin-right: auto;
}

.brand-mark {
  display: flex;
  align-items: center;
  margin-bottom: 28px;
  opacity: 0;
  animation: rise-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.brand-mark img {
  height: 72px;
  width: auto;
  max-width: min(280px, 78vw);
  filter: brightness(0) invert(1);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.045em;
  margin: 0 0 16px;
  opacity: 0;
  animation: rise-in 0.95s cubic-bezier(0.22, 1, 0.36, 1) 0.08s forwards;
}

.hero-lead {
  margin: 0 0 28px;
  font-size: 1.1rem;
  color: rgba(248, 250, 252, 0.78);
  max-width: 38ch;
  opacity: 0;
  animation: rise-in 0.95s cubic-bezier(0.22, 1, 0.36, 1) 0.16s forwards;
}

.store-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  opacity: 0;
  animation: rise-in 0.95s cubic-bezier(0.22, 1, 0.36, 1) 0.24s forwards;
}

.store-ctas a {
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.store-ctas a:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

.store-ctas img {
  height: 44px;
  width: auto;
}

@keyframes rise-in {
  to {
    opacity: 1;
    transform: none;
  }
}

/* —— Sections —— */
.section {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 72px 24px;
}

.section-label {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 12px;
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin: 0 0 12px;
  max-width: 18ch;
}

.section .support {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 46ch;
}

.section.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.section.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* How it works */
.steps {
  display: grid;
  gap: 28px;
  margin-top: 40px;
}

@media (min-width: 800px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
  }
}

.step-num {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 6vw, 4.6rem);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 0.9;
  margin-bottom: 12px;
}

.step:nth-child(1) .step-num {
  color: var(--primary);
}

.step:nth-child(2) .step-num {
  color: var(--accent);
}

.step:nth-child(3) .step-num {
  color: var(--sky, #06b6d4);
}

.step h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* Split feature */
.feature-band {
  background: linear-gradient(180deg, var(--primary-soft) 0%, var(--bg) 100%);
}

.feature-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

@media (min-width: 860px) {
  .feature-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
  }
}

.feature-list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.feature-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: start;
}

.feature-list .dot {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--primary-dark);
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 800;
}

.feature-list strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: -0.02em;
  margin-bottom: 2px;
}

.feature-list span {
  color: var(--muted);
  font-size: 0.95rem;
}

.feature-visual {
  justify-self: center;
}

.feature-visual img {
  width: min(280px, 70vw);
  height: auto;
  border-radius: 28px;
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.18);
}

/* CTA band */
.cta-band {
  background: var(--bg-deep);
  color: #f8fafc;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: var(--glow);
  filter: blur(8px);
  top: -160px;
  right: -80px;
  pointer-events: none;
}

.cta-inner {
  position: relative;
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 72px 24px;
  text-align: center;
}

.cta-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  letter-spacing: -0.04em;
  margin: 0 0 12px;
  max-width: none;
}

.cta-inner .support {
  color: rgba(248, 250, 252, 0.72);
  margin: 0 auto 28px;
}

.cta-inner .store-ctas {
  justify-content: center;
  opacity: 1;
  animation: none;
}

/* Footer */
.site-foot {
  background: #0b1220;
  color: rgba(248, 250, 252, 0.7);
  padding: 40px 24px 48px;
  font-size: 0.9rem;
}

.site-foot-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 24px;
}

@media (min-width: 720px) {
  .site-foot-inner {
    grid-template-columns: 1.2fr 1fr;
    align-items: start;
  }
}

.site-foot strong {
  color: #fff;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.foot-links a:hover {
  color: #fff;
}

.site-foot .meta {
  margin: 0;
  font-size: 0.85rem;
}

@media (max-width: 859px) {
  .hero {
    min-height: auto;
    display: flex;
    flex-direction: column;
  }

  .hero-media {
    position: relative;
    order: 2;
    min-height: 0;
  }

  .hero-media img {
    position: relative;
    right: auto;
    top: auto;
    width: min(100%, 520px);
    max-height: none;
    margin: 0 auto 32px;
    transform: none;
    opacity: 0;
    animation: rise-in 1s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
  }

  .hero-scrim {
    display: none;
  }

  .hero-content {
    order: 1;
    margin: 0;
    max-width: none;
    padding: 88px 24px 20px;
  }

  .brand-mark img {
    height: 56px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .hero-media img,
  .brand-mark,
  .hero h1,
  .hero-lead,
  .store-ctas,
  .section.reveal {
    opacity: 1;
    transform: none;
  }

  @media (min-width: 860px) {
    .hero-media img {
      transform: translateY(-50%);
    }
  }
}
