:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(29, 29, 31, 0.12);
  --accent: #c84b16;
  --accent-hover: #a93d10;
  --dark: #171310;
  --dark-soft: #221a15;
  --dark-ink: #fff8f0;
  --radius: 28px;
  --shadow: 0 28px 80px rgba(48, 29, 18, 0.14);
  --gutter: clamp(20px, 4vw, 44px);
  --hero-progress: 0;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.47;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--ink);
  color: white;
  transform: translateY(-140%);
}
.skip-link:focus { transform: translateY(0); }

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 52px;
  border-bottom: 1px solid transparent;
  background: rgba(255, 255, 255, 0);
  transition: background-color 240ms ease, border-color 240ms ease;
}

.site-nav.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}

.nav-inner,
.section-inner,
.footer-inner {
  width: min(100%, 1100px);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.nav-inner {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  font-size: 15px;
  font-weight: 650;
  text-decoration: none;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand img { width: 26px; height: 26px; border-radius: 7px; }

.nav-links,
.language-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links { margin-left: auto; }

.nav-links a,
.language-links a {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-inline: 10px;
  border-radius: 999px;
  color: #424245;
  font-size: 13px;
  text-decoration: none;
}

.nav-links a:hover,
.language-links a:hover { color: var(--accent); }
.language-links a[aria-current="page"] { background: var(--bg-soft); color: var(--ink); font-weight: 650; }

.nav-store {
  background: var(--ink);
  color: #fff !important;
  font-weight: 600;
}
.nav-store:hover { background: #37373a; color: #fff !important; }

.hero {
  position: relative;
  min-height: calc(100svh - 52px);
  padding: clamp(72px, 11vw, 144px) 0 0;
  overflow: clip;
  text-align: center;
}

.hero-copy { max-width: 860px; margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow { margin: 0 0 12px; color: var(--accent); font-size: 17px; font-weight: 650; }

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { text-wrap: balance; }

h1 {
  margin-bottom: 24px;
  font-size: clamp(48px, 8.2vw, 96px);
  font-weight: 740;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.hero-lead {
  max-width: 720px;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(21px, 2.5vw, 29px);
  line-height: 1.26;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

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

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 21px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 17px;
  text-decoration: none;
  transition: background-color 160ms ease, transform 160ms ease;
}

.button:hover { background: var(--accent-hover); }
.button:active { transform: scale(0.97); }
.text-link { min-height: 44px; display: inline-flex; align-items: center; color: var(--accent); text-decoration: none; }
.text-link::after { content: "›"; margin-left: 5px; font-size: 23px; line-height: 1; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.app-store-badge {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  border-radius: 10px;
  transition: transform 160ms ease, opacity 160ms ease;
}
.app-store-badge:hover { opacity: .82; transform: translateY(-1px); }
.app-store-badge:active { transform: scale(.98); }
.app-store-badge img { width: 180px; height: auto; }
.availability-note { width: 100%; margin: -10px 0 0; color: var(--muted); font-size: 13px; }

.product-stage {
  position: relative;
  width: min(980px, 116vw);
  height: clamp(430px, 60vw, 690px);
  margin: clamp(56px, 8vw, 88px) auto 0;
  perspective: 1400px;
}

.product-shot {
  position: absolute;
  top: 0;
  width: clamp(210px, 29vw, 330px);
  overflow: hidden;
  border-radius: clamp(20px, 2.5vw, 34px);
  box-shadow: var(--shadow);
  background: var(--dark);
  margin: 0;
  will-change: transform;
}

.product-shot img { width: 100%; height: auto; }
.product-shot--left { left: 10%; transform: translate3d(var(--hero-left-x, 0), var(--hero-side-y, 62px), 0) rotate(-8deg); }
.product-shot--center { z-index: 2; left: 50%; transform: translate3d(-50%, var(--hero-center-y, 0), 60px); }
.product-shot--right { right: 10%; transform: translate3d(var(--hero-right-x, 0), var(--hero-side-y, 62px), 0) rotate(8deg); }

.section { padding: clamp(88px, 12vw, 152px) 0; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--dark); color: var(--dark-ink); }
.section-heading { max-width: 820px; margin-bottom: 56px; }
.section-heading.centered { margin-inline: auto; text-align: center; }
.kicker { margin-bottom: 10px; color: var(--accent); font-size: 17px; font-weight: 650; }

h2 {
  margin-bottom: 20px;
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 720;
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.section-lead {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(20px, 2.2vw, 25px);
  line-height: 1.35;
  letter-spacing: -0.015em;
}
.centered .section-lead { margin-inline: auto; }
.section--dark .section-lead { color: #c9bdb4; }

.wave-scene { min-height: 220vh; background: var(--bg-soft); }
.wave-sticky {
  position: sticky;
  top: 52px;
  min-height: calc(100svh - 52px);
  display: grid;
  align-items: center;
  overflow: hidden;
}

.wave-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  align-items: center;
  gap: clamp(40px, 7vw, 88px);
}

.wave-track { margin-top: 40px; }
.wave-bar { height: 14px; border-radius: 999px; background: linear-gradient(90deg, #667d34 0%, #bd9a23 33%, #dc6a1f 56%, #a83220 76%, #634032 100%); }
.wave-marker { width: 22px; height: 22px; margin-top: -18px; border: 4px solid #fff; border-radius: 50%; background: var(--accent); box-shadow: 0 3px 14px rgba(29,29,31,.28); transform: translateX(var(--wave-marker-x, 0)); }
.wave-labels { display: flex; justify-content: space-between; margin-top: 13px; color: var(--muted); font-size: 13px; }

.wave-device {
  width: min(100%, 360px);
  margin-inline: auto;
  overflow: hidden;
  border: 10px solid #202022;
  border-radius: 42px;
  background: #202022;
  box-shadow: var(--shadow);
  transform: translateY(var(--wave-lift, 14px)) rotate(var(--wave-rotate, -1deg));
}
.wave-device img { border-radius: 32px; }

.bento {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(280px, auto);
  gap: 16px;
}

.feature-card {
  position: relative;
  min-height: 100%;
  padding: clamp(28px, 4vw, 48px);
  overflow: hidden;
  border-radius: var(--radius);
  background: #fff;
}
.feature-card--wide { grid-column: span 2; display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 32px; }
.feature-card h3 { margin-bottom: 12px; font-size: clamp(25px, 3vw, 36px); line-height: 1.1; letter-spacing: -0.03em; }
.feature-card p { max-width: 500px; margin-bottom: 0; color: var(--muted); }
.feature-card .number { display: block; margin-bottom: 10px; color: var(--accent); font-size: clamp(54px, 8vw, 92px); font-weight: 730; line-height: .9; letter-spacing: -0.06em; }
.feature-media { align-self: end; width: min(100%, 570px); margin: 16px auto -48px; filter: drop-shadow(0 22px 32px rgba(29,29,31,.13)); }

.apple-platform { border-top: 1px solid var(--line); }
.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 5vw, 64px);
}
.platform-item { padding-top: 24px; border-top: 1px solid var(--line); }
.platform-item h3 { margin-bottom: 9px; font-size: 23px; letter-spacing: -.025em; }
.platform-item p { margin-bottom: 0; color: var(--muted); }
.platform-mark { display: block; margin-bottom: 18px; color: var(--accent); font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

.facts-section { background: var(--bg-soft); }
.facts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(36px, 7vw, 88px);
}
.fact-item { padding: 28px 0; border-top: 1px solid var(--line); }
.fact-item dt { margin-bottom: 9px; font-size: 21px; font-weight: 650; letter-spacing: -.02em; }
.fact-item dd { margin: 0; color: var(--muted); }
.fact-item a { color: var(--accent); text-underline-offset: 3px; }

.privacy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.privacy-item { padding: 32px 0; border-top: 1px solid rgba(255,255,255,.2); }
.privacy-item h3 { margin-bottom: 9px; font-size: 23px; }
.privacy-item p { margin-bottom: 0; color: #c9bdb4; }

.final-cta { text-align: center; }
.final-cta .section-heading { margin-inline: auto; margin-bottom: 0; }
.final-cta .cta-row { margin-top: 32px; }

.site-footer { padding: 36px 0 max(44px, env(safe-area-inset-bottom)); background: var(--bg-soft); color: var(--muted); font-size: 13px; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.footer-links a { min-height: 32px; display: inline-flex; align-items: center; }

.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 700ms ease, transform 700ms ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

:focus-visible { outline: 3px solid #0a6ed1; outline-offset: 4px; }

@media (max-width: 820px) {
  .nav-links { display: none; }
  .language-links { margin-left: auto; overflow-x: auto; }
  .language-links a { min-width: 38px; padding-inline: 7px; }
  .wave-layout { grid-template-columns: 1fr; text-align: center; }
  .wave-layout .section-lead { margin-inline: auto; }
  .wave-track { text-align: left; }
  .wave-device { width: 250px; }
  .bento { grid-template-columns: 1fr; }
  .feature-card--wide { grid-column: auto; grid-template-columns: 1fr; }
  .privacy-grid { grid-template-columns: 1fr; }
  .platform-grid { grid-template-columns: 1fr; }
  .facts-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
}

@media (max-width: 560px) {
  h1 { font-size: clamp(46px, 15vw, 68px); }
  .hero { padding-top: 64px; }
  .product-stage { height: 470px; width: 128vw; left: 50%; transform: translateX(-50%); }
  .product-shot { width: 230px; }
  .product-shot--left { left: 2%; }
  .product-shot--right { right: 2%; }
  .wave-labels span:nth-child(even) { display: none; }
  .feature-card { min-height: 260px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .product-shot--left { transform: translateY(62px) rotate(-8deg); }
  .product-shot--center { transform: translate3d(-50%, 0, 60px); }
  .product-shot--right { transform: translateY(62px) rotate(8deg); }
  .wave-device { transform: none; }
  .reveal { opacity: 1; transform: none; }
}

@media (prefers-reduced-transparency: reduce) {
  .site-nav.is-scrolled { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
}

@media (forced-colors: active) {
  .button { border: 1px solid ButtonText; }
  .wave-bar { border: 1px solid CanvasText; }
}
