:root {
  color-scheme: dark;
  --navy: #06131e;
  --navy-2: #091b2a;
  --surface: rgba(16, 38, 55, 0.72);
  --surface-solid: #0d2232;
  --ink: #eef7ff;
  --muted: #94aac0;
  --line: rgba(155, 190, 218, 0.18);
  --blue: #1680ff;
  --teal: #20dbc8;
  --teal-deep: #009e90;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--navy); }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 85% 8%, rgba(9, 112, 209, 0.18), transparent 28rem),
    radial-gradient(circle at 12% 28%, rgba(22, 128, 255, 0.08), transparent 32rem),
    var(--navy);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
.skip { position: fixed; left: 1rem; top: -5rem; z-index: 100; padding: .7rem 1rem; border-radius: 999px; background: white; color: #06131e; }
.skip:focus { top: 1rem; }

.site-header,
body > header {
  position: relative;
  z-index: 20;
  width: min(calc(100% - 48px), var(--max));
  min-height: 88px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand { font-size: 1.28rem; font-weight: 760; letter-spacing: -.04em; white-space: nowrap; }
.brand span { color: var(--blue); }
nav { display: flex; align-items: center; gap: 1.55rem; color: var(--muted); font-size: .91rem; }
nav a, footer a { transition: color .2s ease; }
nav a:hover, nav a:focus-visible, footer a:hover, footer a:focus-visible { color: var(--ink); }

main { display: block; }
.hero {
  width: min(calc(100% - 48px), var(--max));
  min-height: calc(100svh - 88px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .78fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 8rem);
  padding: 5.5rem 0 6.5rem;
}
.hero-copy { position: relative; z-index: 2; }
.app-icon { width: 84px; height: 84px; margin-bottom: 2rem; border-radius: 20px; box-shadow: 0 18px 45px rgba(0,0,0,.35); }
.eyebrow {
  margin: 0 0 1.15rem;
  color: var(--teal);
  font-size: .76rem;
  font-weight: 760;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.hero h1,
.section-heading h2,
.live-copy h2,
.distribution-section h2,
.support-intro h2,
.policy h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -.055em;
  line-height: .94;
}
.hero h1 { font-size: clamp(4.6rem, 8.8vw, 8.7rem); }
.hero-lede { max-width: 640px; margin: 2.2rem 0 2.4rem; color: #b8cada; font-size: clamp(1.18rem, 2vw, 1.55rem); line-height: 1.45; }
.hero-facts { display: flex; flex-wrap: wrap; gap: .7rem; }
.hero-facts span { padding: .65rem .9rem; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.025); color: #bfd0df; font-size: .84rem; }

.compare-stage { position: relative; justify-self: center; width: min(100%, 440px); padding: 2.2rem 2.4rem 0; }
.compare-glow { position: absolute; inset: 15% -25% 8%; border-radius: 50%; background: radial-gradient(circle, rgba(14, 122, 255, .26), rgba(24, 219, 200, .07) 45%, transparent 70%); filter: blur(34px); }
.phone-shell { position: relative; display: grid; overflow: hidden; border: 7px solid rgba(176, 206, 229, .16); border-radius: 52px; background: #eef4fd; box-shadow: 0 55px 100px rgba(0,0,0,.46), 0 0 0 1px rgba(255,255,255,.08); isolation: isolate; }
.phone-shell > img { grid-area: 1 / 1; display: block; width: 100%; height: auto; user-select: none; pointer-events: none; }
.compare-dark { position: relative; grid-area: 1 / 1; min-width: 0; min-height: 0; clip-path: inset(0 0 0 var(--split)); }
.compare-dark img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: fill; user-select: none; pointer-events: none; }
.compare-divider { position: absolute; z-index: 3; top: 0; bottom: 0; left: var(--split); width: 2px; background: rgba(255,255,255,.92); box-shadow: 0 0 18px rgba(0,0,0,.35); transform: translateX(-1px); pointer-events: none; }
.compare-divider span { position: absolute; top: 50%; left: 50%; width: 38px; height: 38px; transform: translate(-50%,-50%); border-radius: 50%; background: white; box-shadow: 0 5px 18px rgba(0,0,0,.3); }
.compare-divider span::before,
.compare-divider span::after { content: ""; position: absolute; top: 50%; width: 7px; height: 7px; border-left: 2px solid #153149; border-bottom: 2px solid #153149; }
.compare-divider span::before { left: 9px; transform: translateY(-50%) rotate(45deg); }
.compare-divider span::after { right: 9px; transform: translateY(-50%) rotate(225deg); }
.compare-range { position: absolute; z-index: 4; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare-labels { position: absolute; z-index: 5; top: 3.2rem; left: 3.45rem; right: 3.45rem; display: flex; justify-content: space-between; pointer-events: none; }
.compare-labels span { padding: .45rem .65rem; border-radius: 999px; background: rgba(5,19,30,.68); backdrop-filter: blur(10px); color: #fff; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.compare-hint { position: relative; margin: 1.25rem 0 0; color: var(--muted); text-align: center; font-size: .83rem; }

.statement { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: linear-gradient(90deg, rgba(22,128,255,.04), rgba(32,219,200,.05)); }
.statement p { width: min(calc(100% - 48px), var(--max)); margin: 0 auto; padding: clamp(4rem, 8vw, 8.5rem) 0; display: flex; flex-direction: column; font-family: var(--serif); font-size: clamp(2.8rem, 6.7vw, 7rem); line-height: 1.03; letter-spacing: -.05em; }
.statement span:nth-child(2) { color: var(--blue); align-self: center; }
.statement span:nth-child(3) { color: var(--teal); align-self: end; }

.explore-section,
.feature-section,
.distribution-section,
.support-section {
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
  padding: clamp(6rem, 10vw, 10rem) 0;
}
.section-heading { max-width: 790px; margin: 0 auto clamp(3.2rem, 6vw, 5rem); text-align: center; }
.section-heading h2, .live-copy h2, .distribution-section h2, .support-intro h2 { font-size: clamp(3.2rem, 6vw, 6.4rem); }
.section-heading > p:last-child { max-width: 680px; margin: 1.5rem auto 0; color: var(--muted); font-size: 1.12rem; line-height: 1.6; }

.demo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; }
.demo-card { min-width: 0; padding: clamp(1.25rem, 2.5vw, 2rem); border: 1px solid var(--line); border-radius: 34px; background: linear-gradient(155deg, rgba(17,44,65,.9), rgba(7,25,38,.78)); box-shadow: inset 0 1px rgba(255,255,255,.04), 0 24px 70px rgba(0,0,0,.22); }
.demo-card-header { display: flex; align-items: start; justify-content: space-between; gap: 1rem; }
.demo-kind { margin: 0 0 .25rem; color: var(--teal); font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.demo-card h3 { margin: 0; font-size: clamp(1.45rem, 2.6vw, 2rem); letter-spacing: -.035em; }
.parameters { margin: .35rem 0 0; color: var(--muted); font: .82rem var(--mono); }
.segmented { display: flex; flex: none; padding: 3px; border-radius: 999px; background: rgba(4,15,24,.58); border: 1px solid rgba(255,255,255,.04); }
.segmented button { min-height: 32px; padding: 0 .68rem; border: 0; border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; font-size: .72rem; font-weight: 650; }
.segmented button.is-active { background: #284660; color: white; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.equation { display: flex; align-items: center; justify-content: center; gap: .7rem; min-height: 44px; margin: 1.4rem 0 .25rem; font: clamp(.95rem, 1.7vw, 1.18rem) var(--mono); white-space: nowrap; }
.equation span { padding: .52rem .68rem; border: 1px solid rgba(22,128,255,.28); border-radius: 12px; background: rgba(12,54,94,.5); color: #3f98ff; }
.equation b { color: var(--teal); font-size: 1.08em; }
.equation b::before { content: "= "; color: var(--muted); font-weight: 500; }
canvas { display: block; width: 100%; }
.demo-card canvas { height: 285px; }
.slider-row { display: flex; justify-content: space-between; margin-top: .7rem; color: var(--muted); font-size: .78rem; }
.slider-row output { color: var(--ink); font-family: var(--mono); }
input[type="range"] { width: 100%; accent-color: var(--teal); }
.demo-card > input[type="range"] { margin-top: .55rem; }

.live-section { width: 100%; padding: clamp(5rem, 9vw, 9rem) max(24px, calc((100vw - var(--max)) / 2)); display: grid; grid-template-columns: .68fr 1.32fr; align-items: center; gap: clamp(3rem, 7vw, 7rem); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: radial-gradient(circle at 75% 45%, rgba(22,128,255,.15), transparent 34rem), #030d15; }
.live-copy > p:not(.eyebrow) { color: var(--muted); font-size: 1.08rem; line-height: 1.6; }
.live-metrics { display: flex; gap: 2.5rem; margin: 2.4rem 0 1.8rem; }
.live-metrics div { display: flex; flex-direction: column; }
.live-metrics span { color: var(--teal); font: 2rem var(--mono); }
.live-metrics small { margin-top: .35rem; color: var(--muted); font-size: .69rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.live-actions { display: flex; gap: .65rem; }
.control-button { min-width: 98px; min-height: 42px; padding: 0 1.1rem; border: 1px solid rgba(22,128,255,.35); border-radius: 999px; background: rgba(22,128,255,.18); color: #dbeeff; cursor: pointer; }
.control-button.secondary { border-color: var(--line); background: transparent; color: var(--muted); }
.live-canvas-wrap { min-width: 0; padding: clamp(1rem, 3vw, 2.2rem); border: 1px solid var(--line); border-radius: 36px; background: rgba(6,19,30,.62); box-shadow: 0 30px 80px rgba(0,0,0,.25); }
.live-canvas-wrap canvas { height: 430px; }
.live-key { display: flex; gap: 1.3rem; margin-top: .6rem; color: var(--muted); font-size: .72rem; }
.live-key span::before { content: ""; display: inline-block; width: 18px; height: 2px; margin-right: .45rem; vertical-align: middle; background: var(--blue); }
.live-key .sample-key::before { height: 8px; border: 1px solid var(--teal); background: rgba(32,219,200,.3); }

.section-heading.compact { max-width: 760px; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 28px; background: var(--line); }
.feature-grid article { padding: clamp(1.5rem, 3vw, 2.5rem); background: var(--navy); }
.feature-number { color: var(--teal); font: .72rem var(--mono); }
.feature-grid h3 { margin: 3rem 0 .75rem; font-size: 1.22rem; letter-spacing: -.02em; }
.feature-grid p { margin: 0; color: var(--muted); line-height: 1.55; font-size: .92rem; }

.distribution-section { text-align: center; }
.distribution-section h2 { margin-bottom: 3.5rem; }
.distribution-list { display: flex; justify-content: center; flex-wrap: wrap; gap: .65rem; }
.distribution-list span { padding: .72rem 1rem; border-radius: 999px; background: rgba(16,43,63,.72); border: 1px solid var(--line); color: #c9d9e7; font-size: .9rem; }

.support-section { display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(3rem, 8vw, 8rem); border-top: 1px solid var(--line); }
.support-intro > p:not(.eyebrow) { color: var(--muted); line-height: 1.6; }
.notice { padding: 1rem; border: 1px solid rgba(32,219,200,.2); border-radius: 15px; background: rgba(32,219,200,.055); }
.notice a, .policy a { color: var(--teal); text-decoration: underline; text-underline-offset: .2em; }
.questions { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { position: relative; padding: 1.3rem 2rem 1.3rem 0; cursor: pointer; list-style: none; font-weight: 650; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: .1rem; color: var(--teal); font-size: 1.4rem; font-weight: 300; transition: transform .2s ease; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: -.25rem 2rem 1.4rem 0; color: var(--muted); line-height: 1.6; }

footer { width: min(calc(100% - 48px), var(--max)); min-height: 150px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2rem; border-top: 1px solid var(--line); color: var(--muted); }
footer .brand { justify-self: start; color: var(--ink); }
footer p { margin: 0; }
footer div { justify-self: end; display: flex; gap: 1.3rem; }

.policy { width: min(calc(100% - 48px), 820px); margin: 0 auto; padding: 7rem 0 9rem; }
.policy h1 { margin-bottom: 2.5rem; font-size: clamp(3.5rem, 7vw, 6rem); }
.policy p { color: #b5c7d6; line-height: 1.72; }
.policy .notice { color: #c7d9e7; }

@media (max-width: 980px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(290px, .72fr); gap: 2.5rem; }
  .demo-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .live-section { grid-template-columns: 1fr; }
  .live-copy { max-width: 720px; }
  .support-section { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .site-header, body > header { width: min(calc(100% - 32px), var(--max)); min-height: 72px; }
  nav { gap: 1rem; }
  nav a:nth-child(-n+2) { display: none; }
  .hero { width: min(calc(100% - 32px), var(--max)); min-height: auto; grid-template-columns: 1fr; padding: 5rem 0; text-align: center; }
  .hero h1 { font-size: clamp(4.2rem, 21vw, 6.8rem); }
  .hero-lede { margin-left: auto; margin-right: auto; }
  .hero-facts { justify-content: center; }
  .compare-stage { width: min(100%, 380px); padding: 1.6rem 2rem 0; }
  .phone-shell { border-radius: 44px; }
  .statement p, .explore-section, .feature-section, .distribution-section, .support-section { width: min(calc(100% - 32px), var(--max)); }
  .statement p { gap: .5rem; }
  .statement span:nth-child(2), .statement span:nth-child(3) { align-self: start; }
  .demo-card-header { flex-direction: column; }
  .segmented { width: 100%; }
  .segmented button { flex: 1; }
  .demo-card canvas { height: 240px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-grid h3 { margin-top: 1.6rem; }
  .live-section { padding-left: 16px; padding-right: 16px; }
  .live-canvas-wrap canvas { height: 330px; }
  footer { width: min(calc(100% - 32px), var(--max)); grid-template-columns: 1fr auto; min-height: 140px; }
  footer p { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
