@property --void { syntax: "<color>"; inherits: true; initial-value: #04050b; }
@property --deep { syntax: "<color>"; inherits: true; initial-value: #0d1230; }
@property --a { syntax: "<color>"; inherits: true; initial-value: #00e5ff; }
@property --b { syntax: "<color>"; inherits: true; initial-value: #ff2bd6; }
@property --ok { syntax: "<color>"; inherits: true; initial-value: #b6ff3b; }
@property --text { syntax: "<color>"; inherits: true; initial-value: #e9f1ff; }
@property --dim { syntax: "<color>"; inherits: true; initial-value: #a3acd0; }
@property --faint { syntax: "<color>"; inherits: true; initial-value: #6b74a0; }

:root {
  --void: #04050b; --deep: #0d1230; --a: #00e5ff; --b: #ff2bd6; --ok: #b6ff3b;
  --text: #e9f1ff; --dim: #a3acd0; --faint: #6b74a0;
  --line: color-mix(in oklab, var(--text) 11%, transparent);
  --mono: "Martian Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --sans: "Schibsted Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --gutter: max(20px, min(5vw, 48px));
  --section: clamp(80px, 9vw, 120px);
  color-scheme: dark;
  transition: --void .7s ease, --deep .7s ease, --a .7s ease, --b .7s ease, --ok .7s ease, --text .7s ease, --dim .7s ease, --faint .7s ease;
}
:root[data-theme="solar"] {
  --void: #080503; --deep: #2a140b; --a: #ffb000; --b: #8b6cff; --ok: #ffd27a;
  --text: #fff3e3; --dim: #c4ab95; --faint: #8a7564;
}
:root[data-theme="biolume"] {
  --void: #020908; --deep: #06291f; --a: #3dffb8; --b: #ff5c7a; --ok: #c8ff5a;
  --text: #e6fff6; --dim: #97c4b6; --faint: #5f8a7d;
}
:root[data-theme="arctic"] {
  --void: #03060b; --deep: #0e2033; --a: #a6ecff; --b: #ff4733; --ok: #e4f7ff;
  --text: #f1f8ff; --dim: #a0b5c9; --faint: #6a7e92;
}
:root[data-theme="vapor"] {
  --void: #080312; --deep: #2a0c47; --a: #ff71ce; --b: #4f7bff; --ok: #fffb96;
  --text: #f7edff; --dim: #b8a5d2; --faint: #7d6a99;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
html, body { overflow-x: clip; }
body {
  margin: 0;
  background: var(--void);
  color: var(--text);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, dl, dd, ol, figure { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--a); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--a); outline-offset: 4px; border-radius: 6px; }
::selection { background: color-mix(in oklab, var(--b) 45%, transparent); color: #fff; }

.wrap {
  width: 100%;
  max-width: calc(1120px + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px)) max(var(--gutter), env(safe-area-inset-right, 0px));
}

.wordmark {
  display: inline-block;
  font: 800 18px/1 var(--mono);
  font-variation-settings: "wdth" 112.5;
  letter-spacing: .34em;
  margin-right: -.34em;
  text-transform: uppercase;
  text-decoration: none;
  background: linear-gradient(95deg, var(--a), var(--b));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.wordmark.small { font-size: 13px; }

.bar {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-top: max(32px, env(safe-area-inset-top, 0px));
  padding-bottom: 32px;
}
.bar nav { display: flex; gap: 32px; }
.bar nav a { color: var(--dim); text-decoration: none; font-size: 15px; line-height: 1; padding-block: 4px; }
.bar nav a:hover, .bar nav a[aria-current] { color: var(--text); }

.how, .more, .foot { position: relative; }
.how::before, .more::before, .foot::before {
  content: ""; position: absolute; top: 0; height: 1px; background: var(--line);
  left: max(var(--gutter), env(safe-area-inset-left, 0px)); right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

h1 {
  font: 700 clamp(30px, 4.6vw, 64px)/1.05 var(--mono);
  font-variation-settings: "wdth" 80;
  letter-spacing: -.035em;
  text-wrap: balance;
}
h1 span { display: block; }
.head {
  font: 700 clamp(28px, 3.2vw, 40px)/1.1 var(--mono);
  font-variation-settings: "wdth" 80;
  letter-spacing: -.03em;
  text-wrap: balance;
}

.phone { position: relative; isolation: isolate; display: block; width: 100%; container-type: inline-size; }
.phone::before {
  content: ""; position: absolute; inset: -16% -34%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(42% 36% at 36% 36%, color-mix(in oklab, var(--a) 20%, transparent), transparent 70%),
    radial-gradient(40% 34% at 66% 68%, color-mix(in oklab, var(--b) 18%, transparent), transparent 70%);
  transition: opacity .4s ease;
}
.device {
  position: relative; display: block;
  padding: .9cqw;
  border-radius: 16.4cqw;
  background: linear-gradient(140deg, #6b707c 0%, #2b2e36 18%, #4a4e59 42%, #1d2026 66%, #3d414b 84%, #70757f 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .22),
    0 3cqw 9cqw -2cqw rgba(0, 0, 0, .7),
    0 18cqw 36cqw -14cqw rgba(0, 0, 0, .9);
}
.device::before, .device::after {
  content: ""; position: absolute; z-index: -1; width: 1.3cqw; border-radius: .6cqw;
  background: linear-gradient(90deg, #262930, #5d626d 60%, #33363e);
}
.device::before {
  left: -.75cqw; top: 40cqw; height: 44cqw;
  border-radius: .5cqw;
  background:
    linear-gradient(#2c2f37, #2c2f37) 0 0 / 100% 7cqw no-repeat,
    linear-gradient(#2c2f37, #2c2f37) 0 14cqw / 100% 13cqw no-repeat,
    linear-gradient(#2c2f37, #2c2f37) 0 31cqw / 100% 13cqw no-repeat;
}
.device::after { right: -.75cqw; top: 58cqw; height: 21cqw; }
.shot {
  display: block; width: 100%; height: auto; aspect-ratio: 720 / 1566; object-fit: cover;
  border: 2.7cqw solid #000;
  border-radius: 15.5cqw;
  background: #000;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: center;
  gap: 64px;
  padding-top: clamp(24px, 5vw, 64px);
  padding-bottom: var(--section);
}
.hero-phone { justify-self: end; }
.lede {
  margin-top: 32px;
  font-size: clamp(18px, 1.55vw, 21px);
  line-height: 1.55;
  color: var(--dim);
  max-width: 33ch;
  text-wrap: pretty;
}

.launch { margin-top: 48px; display: flex; align-items: center; gap: 24px; }
.appicon { position: relative; flex: none; width: 64px; height: 64px; display: grid; place-items: center; }
.appicon img {
  position: relative; width: 64px; height: 64px;
  border-radius: 22.4%;
  box-shadow: 0 0 0 1px color-mix(in oklab, var(--text) 14%, transparent), 0 12px 32px -10px color-mix(in oklab, var(--a) 45%, transparent);
}
.orbit-ring { position: absolute; inset: -14px; width: calc(100% + 28px); height: calc(100% + 28px); overflow: visible; }
.orbit-ring circle { fill: none; stroke: color-mix(in oklab, var(--text) 22%, transparent); stroke-width: .9; stroke-dasharray: .5 4.5; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.orbit-arm { position: absolute; inset: -14px; animation: orbit 9s linear infinite; }
.orbit-arm i {
  position: absolute; top: -3px; left: 50%; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%;
  background: var(--ok); box-shadow: 0 0 8px var(--ok), 0 0 2px #fff;
}
@keyframes orbit { to { transform: rotate(360deg); } }
.launch-text { display: flex; flex-direction: column; gap: 4px; line-height: 1.35; }
.launch-text strong { font: 600 15px/1.35 var(--mono); font-variation-settings: "wdth" 85; letter-spacing: -.005em; }
.launch-text span { color: var(--dim); font-size: 16px; }
.launch-text .faint { color: var(--faint); font-size: 15px; }

.route { padding-bottom: var(--section); }
.legs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.leg svg { display: block; width: 100%; height: auto; overflow: visible; }
.cap { margin-top: 32px; padding-right: 32px; }
.cap h2 { font: 600 20px/1.2 var(--mono); font-variation-settings: "wdth" 85; letter-spacing: -.01em; }
.cap p { margin-top: 8px; color: var(--dim); max-width: 30ch; }
.trace { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.s0 { stop-color: var(--a); }
.s1 { stop-color: color-mix(in oklab, var(--a) 70%, var(--b)); }
.s2 { stop-color: color-mix(in oklab, var(--a) 35%, var(--b)); }
.s3 { stop-color: var(--b); }
.mark rect { fill: none; stroke: var(--faint); stroke-width: 1.5; }
.mark.plane { fill: var(--text); }
.orbit { fill: none; stroke: var(--faint); stroke-width: 1.5; stroke-dasharray: 1 7; stroke-linecap: round; }
.core { fill: var(--void); stroke: var(--text); stroke-width: 3; }
.route.armed .trace { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1s cubic-bezier(.55, 0, .3, 1); }
.route.armed .leg:nth-child(2) .trace { transition-delay: .9s; }
.route.armed .leg:nth-child(3) .trace { transition-delay: 1.8s; transition-duration: 1.3s; }
.route.armed .mark, .route.armed .orbit, .route.armed .core { opacity: 0; transition: opacity .5s ease; }
.route.armed .leg:nth-child(1) .mark { transition-delay: .6s; }
.route.armed .leg:nth-child(2) .mark { transition-delay: 1.6s; }
.route.armed .leg:nth-child(3) .orbit, .route.armed .leg:nth-child(3) .core { transition-delay: 2.8s; }
.route.drawn .trace { stroke-dashoffset: 0; }
.route.drawn .mark, .route.drawn .orbit, .route.drawn .core { opacity: 1; }

.offline {
  margin-top: 64px;
  display: flex; align-items: center; gap: 16px;
  width: fit-content; max-width: 100%;
  padding: 16px 24px 16px 20px;
  border-radius: 16px;
  border: 1px dashed color-mix(in oklab, var(--text) 22%, transparent);
  color: var(--dim);
  font-size: 15px; line-height: 1.5;
}
.bars { flex: none; width: 22px; height: 16px; }
.bars rect { fill: var(--a); }
.offline .if-offline { display: none; }
.offline[data-state="offline"] { border-style: solid; border-color: color-mix(in oklab, var(--ok) 45%, transparent); color: var(--text); }
.offline[data-state="offline"] .if-online { display: none; }
.offline[data-state="offline"] .if-offline { display: inline; }
.offline[data-state="offline"] .bars rect { fill: none; stroke: var(--faint); stroke-width: 1.2; }

.how { padding-block: var(--section); }
.steps {
  list-style: none; padding: 0;
  margin-top: 64px;
  position: relative;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px;
}
.steps::before {
  content: ""; position: absolute; left: 20px; right: 0; top: 20px; height: 1px;
  background: linear-gradient(90deg, var(--a), var(--b) 80%, transparent);
  opacity: .55;
}
.steps li { position: relative; --c: var(--a); }
.steps li:nth-child(2) { --c: color-mix(in oklab, var(--a) 60%, var(--b)); }
.steps li:nth-child(n+3) { --c: var(--b); }
.n {
  position: relative;
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--void);
  border: 1px solid color-mix(in oklab, var(--c) 55%, transparent);
  font: 600 15px/1 var(--mono);
  color: var(--c);
}
.steps p { margin-top: 24px; color: var(--dim); max-width: 24ch; padding-right: 8px; }

.more {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  align-items: center;
  gap: clamp(64px, 9vw, 128px);
  padding-block: var(--section);
}
.more dl { margin-top: 48px; border-top: 1px solid var(--line); }
.more dl > div { display: grid; grid-template-columns: 176px minmax(0, 1fr); gap: 8px 24px; padding-block: 20px; border-bottom: 1px solid var(--line); }
.more dt { font: 600 15px/1.65 var(--mono); font-variation-settings: "wdth" 85; }
.more dd { color: var(--dim); }
.price { margin-top: 32px; color: var(--dim); max-width: 52ch; }

.themes {
  background: radial-gradient(80% 70% at 50% 100%, var(--deep), var(--void) 75%);
  border-block: 1px solid var(--line);
  padding-block: var(--section);
}
.themes-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 48px; }
.themes-head p { color: var(--dim); max-width: 36ch; }
.shelf { margin-top: 64px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
.shelf button {
  appearance: none; border: 0; background: none; padding: 0; margin: 0;
  color: var(--faint); font: 500 14px/1 var(--mono);
  display: flex; flex-direction: column; align-items: center; gap: 20px;
  cursor: pointer;
}
.shelf .phone::before { opacity: 0; }
.shelf .device {
  filter: brightness(.42) saturate(.7); transform: scale(.94);
  transition: filter .35s ease, transform .45s cubic-bezier(.3, .7, .2, 1);
}
.shelf button:hover .device { filter: brightness(.7) saturate(.85); }
.shelf button[aria-checked="true"] { color: var(--text); }
.shelf button[aria-checked="true"] .device { filter: none; transform: none; }
.shelf button[aria-checked="true"] .phone::before { opacity: 1; }
.shelf button:focus-visible { outline: none; }
.shelf button:focus-visible .device { outline: 2px solid var(--a); outline-offset: 6px; }

.contact {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 64px;
  padding-block: var(--section);
}
.contact .head { font-size: clamp(24px, 2.4vw, 30px); }
.contact p { margin-top: 16px; color: var(--dim); max-width: 40ch; }
.contact a { overflow-wrap: anywhere; }

.foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px;
  padding-top: 32px;
  padding-bottom: max(40px, env(safe-area-inset-bottom, 0px));
  color: var(--faint);
  font-size: 14px;
}

.policy { max-width: calc(720px + 2 * var(--gutter)); padding-top: clamp(32px, 6vw, 72px); padding-bottom: var(--section); display: flex; flex-direction: column; gap: 48px; }
.policy.short { min-height: 56vh; }
.policy header { display: flex; flex-direction: column; gap: 16px; }
.policy h1 { font-size: clamp(32px, 4.4vw, 52px); }
.policy .meta { color: var(--faint); font-size: 15px; }
.summary { position: relative; padding: 24px 28px; border-radius: 20px; border: 1px solid var(--line); background: color-mix(in oklab, var(--deep) 55%, transparent); display: flex; flex-direction: column; gap: 16px; overflow: hidden; }
.summary::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: linear-gradient(90deg, var(--a), var(--b)); }
.policy .summary p { color: var(--text); font-size: 18px; }
.policy section { display: flex; flex-direction: column; gap: 16px; }
.policy h2 { font: 600 20px/1.3 var(--mono); font-variation-settings: "wdth" 80; letter-spacing: -.01em; }
.policy p, .policy ul { color: var(--dim); max-width: 65ch; }
.policy ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.policy li::marker { color: var(--a); }
.policy strong { color: var(--text); font-weight: 600; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
.table-wrap th, .table-wrap td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.table-wrap tr:last-child td { border-bottom: 0; }
.table-wrap th { font: 600 13px/1.4 var(--mono); color: var(--faint); }
.table-wrap td { color: var(--dim); }
.table-wrap td:first-child { color: var(--text); font-weight: 500; width: 24%; }
.addr { overflow-wrap: anywhere; }

@media (prefers-reduced-motion: reduce) {
  :root { transition: none; }
  html { scroll-behavior: auto; }
  .orbit-arm { animation: none; transform: rotate(38deg); }
  .shelf .device, .phone::before { transition: none; }
  .shelf .device { transform: none; }
}

@media (max-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1fr) 260px; gap: 48px; }
  .more { grid-template-columns: 260px minmax(0, 1fr); gap: 56px; }
  .more dl > div { grid-template-columns: 1fr; gap: 4px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
  .steps::before { display: none; }
  .shelf { gap: 16px; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .bar { padding-top: max(24px, env(safe-area-inset-top, 0px)); padding-bottom: 8px; }
  .bar nav { gap: 24px; }
  .bar nav a[href$="#how"] { display: none; }

  h1 { font-size: min(7.9vw, 34px); }
  .policy h1 { font-size: min(9vw, 36px); }
  .hero { grid-template-columns: 1fr; padding-top: 40px; gap: 64px; }
  .hero-phone { justify-self: center; width: min(280px, 78vw); }
  .lede { margin-top: 24px; }
  .launch { margin-top: 40px; gap: 22px; }

  .legs { row-gap: 32px; }
  .leg { display: contents; }
  .leg svg { grid-row: 1; }
  .leg:nth-child(1) svg { grid-column: 1; }
  .leg:nth-child(2) svg { grid-column: 2; }
  .leg:nth-child(3) svg { grid-column: 3; }
  .cap { grid-column: 1 / -1; margin-top: 0; padding: 0 0 0 20px; border-left: 3px solid var(--c); }
  .leg:nth-child(1) .cap { --c: var(--a); margin-top: 16px; }
  .leg:nth-child(2) .cap { --c: color-mix(in oklab, var(--a) 50%, var(--b)); }
  .leg:nth-child(3) .cap { --c: var(--b); }
  .cap h2 { font-size: 18px; }
  .cap p { margin-top: 4px; }
  .offline { margin-top: 48px; align-items: flex-start; padding: 16px 20px 16px 16px; }
  .bars { margin-top: 3px; }

  .steps { grid-template-columns: 1fr; gap: 32px; margin-top: 48px; }
  .steps::before { display: block; left: 20px; right: auto; top: 20px; bottom: 20px; width: 1px; height: auto; background: linear-gradient(180deg, var(--a), var(--b)); }
  .steps li { display: grid; grid-template-columns: 40px 1fr; gap: 20px; align-items: center; }
  .steps p { margin-top: 0; max-width: none; padding-right: 0; }

  .more { grid-template-columns: 1fr; gap: 64px; }
  .more-phone { order: 2; justify-self: center; width: min(260px, 72vw); }
  .more dl { margin-top: 32px; }

  .shelf {
    display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin-top: 48px; margin-inline: calc(-1 * var(--gutter)); padding: 8px var(--gutter) 4px;
    scroll-padding-inline: var(--gutter); scrollbar-width: none;
  }
  .shelf::-webkit-scrollbar { display: none; }
  .shelf button { flex: 0 0 min(44%, 220px); scroll-snap-align: start; }

  .contact { grid-template-columns: 1fr; }
  .foot { flex-direction: column; align-items: flex-start; gap: 12px; }

  .policy { gap: 40px; }
  .summary { padding: 20px; }
}
