:root {
  color-scheme: dark;
  --plum: #17091f;
  --plum-raised: #24132d;
  --ivory: #f5f0e7;
  --muted: #cdbfca;
  --line: rgba(245, 240, 231, 0.14);
  --azure: #37a8d9;
  --coral: #e76d61;
  --gold: #d9a83e;
  --mint: #57b89c;
  font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ivory);
  background: var(--plum);
  line-height: 1.55;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.2em; }
h1, h2, h3, p { text-wrap: pretty; }
h1, h2 { margin: 0; line-height: 0.98; letter-spacing: -0.055em; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 1rem;
  left: 1rem;
  padding: 0.75rem 1rem;
  color: var(--plum);
  background: var(--ivory);
  border-radius: 999px;
  transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: absolute;
  z-index: 20;
  inset: 0 0 auto;
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 780; text-decoration: none; letter-spacing: -0.025em; }
.brand img { border-radius: 13px; box-shadow: 0 12px 32px rgba(55, 168, 217, 0.23); }
nav { display: flex; gap: clamp(16px, 3vw, 36px); }
nav a { color: var(--muted); font-size: 0.88rem; font-weight: 650; text-decoration: none; }
nav a:hover, nav a:focus-visible, nav a[aria-current="page"] { color: var(--ivory); }

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(390px, 1.1fr);
  align-items: center;
  gap: clamp(30px, 6vw, 90px);
  padding: 112px max(24px, calc((100vw - 1240px) / 2)) 60px;
  overflow: hidden;
  background:
    radial-gradient(circle at 76% 44%, rgba(55, 168, 217, 0.14), transparent 31rem),
    radial-gradient(circle at 90% 20%, rgba(231, 109, 97, 0.11), transparent 25rem),
    linear-gradient(150deg, #1f0d28 0%, var(--plum) 52%, #100614 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.2;
  background-image: radial-gradient(circle, rgba(245, 240, 231, 0.36) 0 1px, transparent 1.6px);
  background-size: 54px 54px;
  mask-image: linear-gradient(90deg, transparent, black 55%, black);
}
.hero-copy { position: relative; z-index: 3; max-width: 650px; animation: reveal 0.9s cubic-bezier(.2,.8,.2,1) both; }
.eyebrow { margin: 0 0 15px; color: var(--mint); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; }
.hero h1 { font-size: clamp(4rem, 8vw, 8rem); font-weight: 820; }
.hero h1 em { color: var(--azure); font-style: normal; }
.lede { max-width: 560px; margin: 28px 0 0; color: var(--muted); font-size: clamp(1.08rem, 1.5vw, 1.3rem); }
.hero-actions { margin-top: 34px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.store-badge { min-width: 170px; padding: 10px 20px 11px; display: grid; border: 1px solid rgba(245,240,231,0.46); border-radius: 15px; background: rgba(245,240,231,0.08); box-shadow: 0 18px 44px rgba(0,0,0,0.24); }
.store-badge span { font-size: 0.68rem; line-height: 1; }
.store-badge strong { font-size: 1.35rem; line-height: 1.2; }
.text-link { color: var(--ivory); font-weight: 700; text-decoration-color: rgba(245,240,231,0.3); }
.trust-line { margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 9px 22px; color: var(--muted); font-size: 0.8rem; list-style: none; }
.trust-line li::before { content: "•"; margin-right: 8px; color: var(--gold); }

.hero-instrument { position: relative; z-index: 2; height: min(780px, 82svh); min-height: 610px; display: grid; place-items: center; animation: rise 1.1s .12s cubic-bezier(.2,.8,.2,1) both; }
.phone-shell { position: relative; z-index: 5; width: min(430px, 66%); padding: 8px; border-radius: 54px; background: linear-gradient(145deg, rgba(245,240,231,0.45), rgba(245,240,231,0.06)); box-shadow: 0 45px 100px rgba(0,0,0,0.55), 0 0 70px rgba(55,168,217,0.12); transform: rotate(1.5deg); transition: transform .45s ease; }
.phone-shell:hover { transform: rotate(0deg) translateY(-8px); }
.phone-shell img { width: 100%; border-radius: 47px; }
.orbit { position: absolute; border: 1px solid; border-radius: 50%; animation: breathe 5s ease-in-out infinite; }
.orbit-one { width: 62%; aspect-ratio: 1; border-color: rgba(55,168,217,0.3); }
.orbit-two { width: 79%; aspect-ratio: 1; border-color: rgba(231,109,97,0.23); animation-delay: -.8s; }
.orbit-three { width: 96%; aspect-ratio: 1; border-color: rgba(87,184,156,0.2); animation-delay: -1.6s; }
.pulse { position: absolute; z-index: 6; width: 15px; height: 15px; border-radius: 50%; box-shadow: 0 0 24px currentColor; animation: drift 4.4s ease-in-out infinite; }
.pulse-a { color: var(--azure); background: currentColor; top: 12%; left: 15%; }
.pulse-b { color: var(--coral); background: currentColor; top: 23%; right: 5%; animation-delay: -1s; }
.pulse-c { color: var(--gold); background: currentColor; bottom: 19%; left: 5%; animation-delay: -2s; }
.pulse-d { color: var(--mint); background: currentColor; bottom: 11%; right: 17%; animation-delay: -3s; }

.statement { width: min(900px, calc(100% - 48px)); margin: 0 auto; padding: 150px 0 90px; text-align: center; }
.statement h2, .feature-copy h2, .resolution h2, .promise h2, .finale h2, .document-hero h1 { font-size: clamp(3rem, 6vw, 6.6rem); font-weight: 790; }
.statement > p:last-child { max-width: 690px; margin: 28px auto 0; color: var(--muted); font-size: 1.2rem; }

.screen-river { width: min(1320px, calc(100% - 32px)); margin: 0 auto 170px; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); align-items: start; gap: clamp(10px, 2.2vw, 30px); }
.screen-river figure { margin: 0; filter: drop-shadow(0 34px 46px rgba(0,0,0,0.34)); transition: transform .45s ease, filter .45s ease; }
.screen-river figure:nth-child(1) { transform: rotate(-1.4deg); }
.screen-river figure:nth-child(2) { margin-top: 70px; transform: rotate(1deg); }
.screen-river figure:nth-child(3) { transform: rotate(-0.8deg); }
.screen-river figure:hover { transform: translateY(-12px) rotate(0deg); filter: drop-shadow(0 42px 58px rgba(0,0,0,0.45)); }
.screen-river img { border-radius: 28px; }

.feature-split { width: min(1180px, calc(100% - 48px)); margin: 0 auto 180px; display: grid; grid-template-columns: minmax(0,1.1fr) minmax(330px,.9fr); gap: clamp(60px, 9vw, 130px); align-items: center; }
.feature-copy > p:not(.eyebrow) { max-width: 620px; color: var(--muted); font-size: 1.16rem; }
.mechanic-list { margin: 42px 0 0; border-top: 1px solid var(--line); }
.mechanic-list div { padding: 15px 0; display: flex; justify-content: space-between; gap: 30px; border-bottom: 1px solid var(--line); }
.mechanic-list dt { font-weight: 740; }
.mechanic-list dd { margin: 0; color: var(--muted); }
.movement-score { padding-left: clamp(0px, 4vw, 60px); border-left: 1px solid var(--line); }
.score-number { color: var(--azure); font-size: clamp(7rem, 15vw, 13rem); font-weight: 820; line-height: .78; letter-spacing: -0.08em; }
.movement-score > p { margin: 18px 0 38px; color: var(--muted); font-size: 1.1rem; }
.movement-score ol { margin: 0; padding: 0; list-style: none; }
.movement-score li { padding: 12px 0; display: flex; gap: 22px; border-top: 1px solid var(--line); font-size: 1.02rem; }
.movement-score li span { color: var(--gold); font-variant-numeric: tabular-nums; }

.resolution { width: min(1180px, calc(100% - 48px)); margin: 0 auto 180px; display: grid; grid-template-columns: minmax(320px,.82fr) minmax(0,1.18fr); align-items: center; gap: clamp(50px, 10vw, 150px); }
.resolution-art { position: relative; }
.resolution-art::before { content: ""; position: absolute; inset: 12% -14%; border-radius: 50%; background: rgba(87,184,156,0.16); filter: blur(60px); }
.resolution-art img { position: relative; border-radius: 30px; box-shadow: 0 42px 80px rgba(0,0,0,.4); }
.resolution-copy p:last-child { max-width: 580px; color: var(--muted); font-size: 1.16rem; }

.promise { padding: 150px max(24px, calc((100vw - 1180px)/2)); background: var(--ivory); color: var(--plum); }
.promise .eyebrow { color: #3e806c; }
.promise-lede { max-width: 700px; margin: 28px 0 70px; color: #5b4d5f; font-size: 1.2rem; }
.promise ul { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1px; list-style: none; background: rgba(23,9,31,.16); }
.promise li { min-height: 180px; padding: 30px; display: flex; flex-direction: column; justify-content: space-between; background: var(--ivory); }
.promise strong { font-size: 1.35rem; }
.promise span { color: #6c5b70; }

.finale { min-height: 760px; padding: 120px 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: radial-gradient(circle at 50% 48%, rgba(55,168,217,.16), transparent 23rem), var(--plum); }
.finale img { margin-bottom: 26px; border-radius: 28px; box-shadow: 0 25px 70px rgba(55,168,217,.25); }
.finale .store-badge { margin-top: 36px; text-align: left; }

footer { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 32px 0 48px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 20px; border-top: 1px solid var(--line); }
.footer-links { display: flex; gap: 24px; }
footer > p { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: .78rem; }

.document-page { width: min(920px, calc(100% - 48px)); margin: 0 auto; padding: 145px 0 100px; }
.document-hero { padding: 70px 0 65px; border-bottom: 1px solid var(--line); }
.document-hero > p:last-child { color: var(--muted); }
.policy { padding-top: 20px; }
.policy section { padding: 34px 0; border-bottom: 1px solid var(--line); }
.policy h2 { margin: 0 0 12px; font-size: clamp(1.45rem, 3vw, 2.1rem); letter-spacing: -0.03em; }
.policy p, .policy li { color: var(--muted); }
.policy a { color: var(--ivory); }
.policy code { color: var(--mint); }
.policy ul, .policy ol { padding-left: 1.35rem; }
.contact-callout { padding: 40px 0 0; }
.contact-callout a { font-size: clamp(1.4rem, 4vw, 2.5rem); font-weight: 760; }

@keyframes reveal { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(45px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes breathe { 0%,100% { transform: scale(.97); opacity: .55; } 50% { transform: scale(1.04); opacity: 1; } }
@keyframes drift { 0%,100% { transform: translateY(-8px); } 50% { transform: translateY(14px); } }

@media (max-width: 850px) {
  .site-header { width: min(100% - 32px, 1240px); }
  nav a:first-child { display: none; }
  .hero { grid-template-columns: 1fr; padding-inline: 22px; padding-top: 130px; }
  .hero-copy { text-align: center; margin: 0 auto; }
  .hero-actions, .trust-line { justify-content: center; }
  .hero-instrument { height: 620px; min-height: 0; }
  .phone-shell { width: min(340px, 72%); }
  .screen-river { grid-template-columns: repeat(3, 76vw); overflow-x: auto; scroll-snap-type: x mandatory; padding: 22px 12vw 55px; justify-content: start; }
  .screen-river figure, .screen-river figure:nth-child(2) { margin-top: 0; scroll-snap-align: center; }
  .feature-split, .resolution { grid-template-columns: 1fr; }
  .movement-score { border-left: 0; border-top: 1px solid var(--line); padding: 55px 0 0; }
  .resolution-art { max-width: 520px; margin: 0 auto; }
  .promise ul { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 540px) {
  .site-header { align-items: flex-start; }
  .brand span { font-size: .98rem; }
  nav { gap: 14px; }
  nav a { font-size: .78rem; }
  .hero h1 { font-size: clamp(3.6rem, 19vw, 5.2rem); }
  .hero-instrument { height: 540px; }
  .phone-shell { width: min(300px, 78%); border-radius: 40px; }
  .phone-shell img { border-radius: 34px; }
  .statement, .feature-split, .resolution { width: calc(100% - 36px); }
  .promise { padding-inline: 18px; }
  .promise ul { grid-template-columns: 1fr; }
  .promise li { min-height: 130px; }
  footer { grid-template-columns: 1fr; }
  .document-page { width: calc(100% - 36px); }
}

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