:root {
  color-scheme: light;
  --page: #fcfdff;
  --panel: #fff;
  --surface: #f0f4fd;
  --tint: #dfe8fb;
  --text: #171717;
  --muted: #303d55;
  --line: #7d91b7;
  --control-line: #586f9a;
  --accent: #002fa7;
  --action: #002fa7;
  --action-hover: #1648bd;
  --focus: #002fa7;
  --hero-edge: #e7edff;
  --hero-light: #cddaff;
  --online: #137052;
  --radius: 20px;
  --control: 10px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --motion-ease: var(--ease);
  --motion-scale: 1;
  --fast: 200ms;
  font: 400 100%/1.55 "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #121421;
  --panel: #191d2f;
  --surface: #151827;
  --tint: #242a43;
  --text: #f7f7f8;
  --muted: #b7bfd3;
  --line: #323a56;
  --control-line: var(--line);
  --accent: #a3bfff;
  --action: #1648bd;
  --action-hover: #2358d0;
  --focus: #a3bfff;
  --hero-edge: #141d33;
  --hero-light: #1d3266;
  --online: #25a768;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--text); }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3, strong { font-weight: 600; }
svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.icon-library { position: absolute; width: 0; height: 0; }
.wrap { width: min(80rem, 100% - 2 * clamp(1rem, 5.55vw, 5rem)); margin-inline: auto; }
.skip {
  position: fixed;
  z-index: 5;
  top: .75rem;
  left: .75rem;
  padding: .75rem 1rem;
  border-radius: var(--control);
  background: var(--panel);
  transform: translateY(-180%);
}
.skip:focus { transform: none; }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner { min-height: 4.75rem; align-items: center; }
.header-inner { display: grid; grid-template-columns: minmax(6rem, 1fr) auto minmax(max-content, 1fr); gap: 1rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; justify-self: start; min-height: 44px; }
.brand img { display: block; width: 6rem; height: auto; }
.brand .brand-dark, [data-theme="dark"] .brand .brand-light { display: none; }
[data-theme="dark"] .brand .brand-dark { display: block; }
.main-nav, .header-actions, .hero-actions { display: flex; align-items: center; }
.main-nav { gap: clamp(1rem, 2.6vw, 2.5rem); color: var(--muted); font-size: .94rem; }
.main-nav a, .footer-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  position: relative;
  transition: color var(--fast) var(--ease);
}
.main-nav a::after, .footer-link::after {
  position: absolute;
  inset: auto 0 .45rem;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--fast) var(--ease);
}
.main-nav a:is(:hover, :focus-visible), .footer-link:is(:hover, :focus-visible) { color: var(--accent); }
.main-nav a:is(:hover, :focus-visible)::after, .footer-link:is(:hover, :focus-visible)::after { transform: scaleX(1); }
.header-actions { justify-self: end; gap: .5rem; }
.button, .theme-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 3rem;
  padding: .625rem 1rem;
  border: 1px solid var(--control-line);
  border-radius: var(--control);
  background: var(--panel);
  color: var(--text);
  font-size: .94rem;
  font-weight: 600;
  text-align: center;
  transition: background-color var(--fast) var(--ease), border-color var(--fast) var(--ease), transform var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
.button svg, .theme-button svg { width: 1.125rem; height: 1.125rem; }
.button:hover, .theme-button:hover { background: var(--tint); border-color: var(--accent); transform: translateY(-2px); }
.button:active, .theme-button:active { transform: translateY(1px) scale(.99); }
.button-primary { border-color: var(--action); background: var(--action); color: #fff; }
.button-primary:hover { border-color: var(--action-hover); background: var(--action-hover); box-shadow: 0 4px 20px #2358d04d; }
.header-cta, .theme-button { min-height: 44px; }
.header-cta { white-space: nowrap; }
.theme-button { width: 44px; padding: 0; flex: none; }
.theme-button .sun, [data-theme="dark"] .theme-button .moon { display: none; }
[data-theme="dark"] .theme-button .sun { display: block; }

.hero {
  min-height: calc(100svh - 4.8125rem);
  padding-block: 3rem 2rem;
  display: grid;
  background: radial-gradient(ellipse at 76% 39%, var(--hero-light), transparent 58%), linear-gradient(155deg, var(--page) 25%, var(--hero-edge) 100%);
}
.hero-inner { display: grid; align-content: center; gap: clamp(2rem, 6vh, 4rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, .87fr) minmax(0, 1.13fr); gap: clamp(1.5rem, 3vw, 2.75rem); align-items: center; }
.hero-kicker { display: inline-flex; align-items: center; gap: .55rem; color: var(--accent); font-size: .94rem; font-weight: 600; }
.hero-kicker svg { width: 1.125rem; height: 1.125rem; }
.hero h1 {
  margin-block: 1.125rem 1.25rem;
  font-size: clamp(2.75rem, 5.55vw, 5rem);
  line-height: .99;
  letter-spacing: -.064em;
}
.hero h1 span { display: block; color: var(--accent); }
.hero__lead { max-width: 28rem; color: var(--muted); font-size: clamp(1rem, 1.45vw, 1.2rem); }
.hero-open-source { margin-top: .75rem; color: var(--muted); font-size: .9375rem; font-weight: 600; }
.hero-actions { flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
@media (prefers-reduced-motion: no-preference) {
  :is(.hero-copy, .quick-facts, .demo-copy, .demo)[data-reveal-ready]:not([data-played], :focus-within),
  .device-scene[data-reveal-ready]:not([data-played]) .device-model { opacity: 0; }
  .hero-copy[data-played]:not(:focus-within) { animation: enter calc(740ms * var(--motion-scale)) var(--motion-ease) both; }
  .device-scene[data-played] .device-model { animation: device-enter calc(820ms * var(--motion-scale)) var(--motion-ease) calc(var(--device-delay) * var(--motion-scale)) both; }
  .device-scene[data-played] .mock-logo { animation: screen-logo-in calc(640ms * var(--motion-scale)) var(--motion-ease) calc((var(--device-delay) + 250ms) * var(--motion-scale)) both; }
  .quick-facts[data-played] { animation: enter calc(780ms * var(--motion-scale)) var(--motion-ease) calc(160ms * var(--motion-scale)) both; }
  .demo-copy[data-played] { animation: enter calc(720ms * var(--motion-scale)) var(--motion-ease) calc(120ms * var(--motion-scale)) both; }
  .demo[data-played]:not(:focus-within) { animation: device-enter calc(880ms * var(--motion-scale)) var(--motion-ease) calc(210ms * var(--motion-scale)) both; }
}
@keyframes enter { from { opacity: 0; transform: translateY(14px); } }
@keyframes device-enter { from { opacity: 0; transform: translateY(16px) scale(.97); } }

.device-scene, .demo-stage {
  --stage-glow: #b3c8fc;
  --stage-base: #edf3ff;
  --stage-end: #e6e1fb;
  --stage-grid: #2747aa22;
  --grid-texture: linear-gradient(var(--stage-grid) 1px, transparent 1px), linear-gradient(90deg, var(--stage-grid) 1px, transparent 1px);
}
[data-theme="dark"] :is(.device-scene, .demo-stage) {
  --stage-glow: #2747aa;
  --stage-base: #111939;
  --stage-end: #19133d;
  --stage-grid: #adc1ff14;
}
.device-scene {
  --mock-base: #f3f7ff;
  --mock-tint: #d4e3ff;
  --track-edge: #7b9bdb7a;
  --track-core: #3a6bda;
  --track-glow: #5a8af078;
  --hardware-glow: #2864e036;
  --scene-glow: #a5c6ff;
  position: relative;
  isolation: isolate;
  margin: 0;
  min-width: 0;
  max-width: 46rem;
  width: 100%;
  aspect-ratio: 3 / 2;
  container-type: inline-size;
}
.device-scene::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 2rem;
  background-image: var(--grid-texture), radial-gradient(ellipse at 69% 46%, var(--scene-glow), transparent 73%);
  background-size: 24px 24px, 24px 24px, 100% 100%;
  background-position: center;
  mask-image: radial-gradient(ellipse, #000 42%, transparent 80%);
  opacity: .85;
  content: "";
}
[data-theme="dark"] .device-scene {
  --mock-base: #101a31;
  --mock-tint: #1a3058;
  --track-edge: #668bdb80;
  --track-core: #a3bfff;
  --track-glow: #799fff88;
  --hardware-glow: #2970ff4a;
  --scene-glow: #2254be;
}
.device-render { position: absolute; inset: 0; display: block; width: 100%; height: 100%; filter: grayscale(1); }
.device-model { position: absolute; filter: drop-shadow(.55rem 0 .85rem var(--hardware-glow)) drop-shadow(0 .45rem .65rem #0c193d38); }
.model-monitor { --device-delay: 100ms; top: 1%; left: 22%; width: 74%; aspect-ratio: 10 / 7; }
.model-laptop { --device-delay: 235ms; z-index: 1; bottom: 2%; left: 1.5%; width: 54.5%; aspect-ratio: 727 / 491; }
.model-phone { --device-delay: 370ms; z-index: 2; bottom: 5.5%; left: 78%; width: 14.5%; aspect-ratio: 219 / 454; }
.mock-screen {
  position: absolute;
  overflow: hidden;
  background-image: var(--grid-texture), linear-gradient(145deg, var(--mock-base) 20%, var(--mock-tint));
  background-size: 2.4cqw 2.4cqw, 2.4cqw 2.4cqw, 100% 100%;
}
.mock-screen::after { content: ""; }
/* Each inset follows the glass in its device render. */
.mock-monitor { inset: 4.4% 2.9% 24.7% 3%; }
.mock-laptop { inset: 5.5% 11.7% 28.1% 10.9%; }
.mock-phone { inset: 3.75% 6.85% 4.4%; border-radius: 14% / 6%; }
.mock-logo {
  position: absolute;
  z-index: 1;
  inset: 50% auto auto 50%;
  translate: -50% -50%;
  display: grid;
  place-items: center;
  width: 14%;
  aspect-ratio: 1;
  border: 1px solid var(--track-core);
  border-radius: 25%;
  background: #fcfdff;
  box-shadow: 0 0 clamp(.5rem, 3.4cqw, 1.5rem) var(--track-glow);
}
.mock-logo img { display: block; width: 50%; height: auto; }
.mock-phone .mock-logo { width: 46%; }
.mock-phone::before {
  position: absolute;
  z-index: 1;
  inset: 1.4% auto auto 50%;
  translate: -50%;
  width: 5%;
  aspect-ratio: 1;
  border: 1px solid #353e56;
  border-radius: 50%;
  background: #101421;
  content: "";
}
@keyframes screen-logo-in { from { opacity: 0; scale: .86; } }

.demo-grid { display: grid; grid-template-columns: minmax(0, .68fr) minmax(0, 1.32fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.demo-copy h2 { max-width: 12ch; text-wrap: balance; }
.demo {
  min-width: 0;
  padding: .75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 24px 80px #0b1c5930, 0 0 64px #3159d31a;
  container-type: inline-size;
  scroll-margin-top: 1rem;
}
.demo-header, .demo-controls { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.demo-header { min-height: 2.5rem; padding: 0 .5rem .625rem; }
.demo-name { display: flex; align-items: center; gap: .55rem; font-size: .95rem; font-weight: 600; }
.demo-header img { width: 1.55rem; height: 1.55rem; object-fit: contain; padding: .25rem; border-radius: 6px; background: #f4f7ff; }
.demo-network { display: inline-flex; align-items: center; gap: .425rem; color: var(--muted); font-size: .8rem; }
.demo-network i { width: .45rem; height: .45rem; border-radius: 50%; background: var(--online); }
.demo-stage {
  --stage-line: #5c719c;
  --device-base: #fcfdff;
  --device-raised: #e4edff;
  --device-ink: #13234a;
  --device-muted: #2d3c5c;
  --device-accent: #002fa7;
  --signal-base: #fff;
  --signal-glow: #5279d966;
  --success-base: #e4f6ef;
  --success-line: #39816b;
  --success-ink: #155441;
  --success-glow: #3a9c7830;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(3rem, 8vw, 7.5rem) minmax(0, 1fr);
  align-items: center;
  min-height: clamp(16rem, 24vw, 22rem);
  padding: clamp(.75rem, 2.6vw, 2.375rem);
  border: 1px solid var(--stage-line);
  border-radius: 12px;
  background:
    radial-gradient(ellipse at 50% 56%, var(--stage-glow), transparent 73%),
    linear-gradient(148deg, var(--stage-base), var(--stage-end));
  color: var(--device-ink);
}
[data-theme="dark"] .demo-stage {
  --stage-line: #576caa;
  --device-base: #151e3b;
  --device-raised: #202d52;
  --device-ink: #f7f7f8;
  --device-muted: #bdc9e9;
  --device-accent: #a3bfff;
  --signal-base: #233975;
  --signal-glow: #8299ff80;
  --success-base: #1c3938;
  --success-line: #7bbda7;
  --success-ink: #cbf8e4;
  --success-glow: #65dbae38;
}
.demo-stage::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image: var(--grid-texture);
  background-size: 24px 24px;
  background-position: center;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 93%);
  content: "";
}
.demo-stage::after {
  position: absolute;
  z-index: -1;
  inset: 12% 7%;
  border: 1px solid var(--stage-grid);
  border-radius: 16px;
  box-shadow: 0 0 0 16px color-mix(in srgb, var(--stage-grid) 40%, transparent), inset 0 0 40px var(--stage-grid);
  content: "";
}
.device {
  position: relative;
  z-index: 1;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--stage-line);
  border-radius: 12px;
  background: var(--device-base);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--stage-line) 35%, transparent);
  transition: border-color 400ms var(--ease), box-shadow 400ms var(--ease);
}
.device-top { display: flex; align-items: center; gap: .5rem; padding: .75rem; border-bottom: 1px solid var(--stage-line); background: var(--device-raised); font-size: .9rem; font-weight: 600; }
.device-top svg, .payload svg { color: var(--device-accent); }
.device-content { padding: .75rem; }
.device-label { display: block; margin-bottom: .4rem; color: var(--device-muted); font-size: .8rem; }
.payload { display: flex; align-items: center; gap: .45rem; min-height: 2.75rem; padding: .45rem; border: 1px solid var(--stage-line); border-radius: 6px; background: var(--device-raised); font-size: .85rem; font-weight: 600; overflow-wrap: anywhere; }
.payload svg { width: 1rem; height: 1rem; }
.device-target .payload { border-style: dashed; background: var(--device-base); }
.demo[data-phase="done"] .device-target { border-color: var(--success-line); box-shadow: 0 0 32px var(--success-glow); }
.demo[data-phase="done"] .device-target .payload { border-color: var(--success-line); border-style: solid; background: var(--success-base); color: var(--success-ink); }
.demo[data-phase="done"] .device-target .payload svg { color: inherit; }
.relay { position: relative; display: grid; place-items: center; height: 2.6rem; color: var(--device-accent); }
.relay-track, .mock-screen::after {
  position: absolute;
  inset: 50% 0 auto;
  height: 1px;
  background: linear-gradient(90deg, var(--track-edge, var(--stage-line)), var(--track-core, var(--device-accent)), var(--track-edge, var(--stage-line)));
  box-shadow: 0 0 12px 2px var(--track-glow, var(--signal-glow));
}
.relay-mark, .relay-packet {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--device-accent);
  border-radius: 50%;
  background: var(--signal-base);
  box-shadow: 0 0 24px var(--signal-glow);
}
.relay-mark { position: relative; transition: opacity var(--fast) var(--ease); }
.relay-check, .relay-arrow, .demo[data-mode="file"] .relay-swap, .demo[data-phase="done"] .relay-swap { display: none; }
.demo[data-mode="file"]:not([data-phase="done"]) .relay-arrow, .demo[data-phase="done"] .relay-check { display: block; }
.demo[data-phase="done"] .relay-mark { border-color: var(--success-line); background: var(--success-base); color: var(--success-ink); box-shadow: 0 0 20px var(--success-glow); }
.relay-packet { position: absolute; z-index: 2; top: 0; left: 0; opacity: 0; border-radius: 10px; background: #d8e5ff; color: #002fa7; }
.demo[data-phase="sending"] .relay-mark { opacity: .22; }
.demo[data-phase="sending"] .relay-packet { animation: packet calc(1100ms * var(--motion-scale)) var(--motion-ease) both; }
.demo[data-phase="sending"] .device-source { border-color: var(--device-accent); box-shadow: 0 0 28px var(--signal-glow); }
.demo[data-phase="done"] .device-target .payload { animation: received calc(380ms * var(--motion-scale)) var(--motion-ease); }
@keyframes packet {
  0% { opacity: 0; transform: translateX(-24%); }
  15%, 78% { opacity: 1; }
  100% { opacity: 0; transform: translateX(calc(clamp(3rem, 8vw, 7.5rem) - 76%)); }
}
@keyframes received { from { transform: translateX(-4px); } }
.demo-controls { padding: .75rem .15rem .1rem; }
.demo-modes { display: flex; gap: 2px; padding: .2rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.demo-modes button {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: .125rem .625rem;
  background: transparent;
  color: var(--muted);
  font-size: .875rem;
  font-weight: 600;
  transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease);
}
.demo-modes button:hover { color: var(--text); }
.demo-modes button[aria-pressed="true"] { border-color: var(--control-line); background: var(--tint); color: var(--accent); }
.demo-status { color: var(--muted); font-size: .85rem; font-weight: 600; text-align: center; }
.demo-run { min-height: 44px; min-width: 8.25rem; padding-inline: .65rem; font-size: .85rem; }
.demo-run[aria-disabled="true"] { cursor: wait; }
.demo-run svg { transition: transform var(--fast) var(--ease); }
.demo-run:hover svg { transform: translateX(2px); }
@container (max-width: 32rem) {
  .demo-controls { display: grid; grid-template-columns: 1fr auto; gap: .5rem; }
  .demo-modes { justify-self: start; }
  .demo-run { grid-area: 1 / 2; }
  .demo-status { grid-column: 1 / -1; padding: 0 .25rem; text-align: left; }
}

.quick-facts { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; padding: 0; list-style: none; border-block: 1px solid var(--line); }
.quick-facts li { display: flex; align-items: center; gap: .8rem; padding: 1rem .75rem 1rem 0; }
.quick-facts li + li { border-inline-start: 1px solid var(--line); padding-inline-start: clamp(.75rem, 2vw, 1.75rem); }
.fact-icon, .platform-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: var(--control);
  background: var(--surface);
  color: var(--accent);
}
.quick-facts strong, .quick-facts li div span { display: block; }
.quick-facts li div span { color: var(--muted); font-size: .875rem; }

.section { display: grid; align-items: center; padding-block: clamp(3rem, 6vw, 5.5rem); scroll-margin-top: 1rem; }
.section h2 { font-size: clamp(2.5rem, 5.15vw, 4.75rem); line-height: 1.02; letter-spacing: -.06em; }
.section h3 { font-size: clamp(1.125rem, 1.8vw, 1.375rem); line-height: 1.22; letter-spacing: -.02em; }
.section h3 + p { margin-top: .65rem; color: var(--muted); }
.features { background: var(--surface); border-block: 1px solid var(--line); }
.feature-grid { display: grid; grid-template-columns: 1.12fr 1fr 1fr; gap: 1rem; margin-top: clamp(1.25rem, 3vw, 2.5rem); }
.feature-card { --art-cycle: calc(2.8s * var(--motion-scale)); min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); transition: border-color var(--fast) var(--ease); }
.feature-card[data-hovered] { --art-iterations: infinite; border-color: var(--accent); }
.feature-art { min-height: clamp(10.5rem, 17vw, 14.75rem); padding: 1.25rem; display: flex; align-items: center; justify-content: center; gap: .75rem; background: var(--tint); color: var(--accent); }
.feature-copy { padding: clamp(1rem, 2.1vw, 1.75rem); }
.keys > span { display: inline-flex; gap: .25rem; white-space: nowrap; }
.keys kbd { padding: .45em .55em; border: 1px solid var(--control-line); border-bottom-width: 3px; border-radius: 7px; background: var(--panel); font: inherit; font-size: clamp(.72rem, 1.35vw, 1.125rem); font-weight: 600; }
.file-art { color: #fff; background: radial-gradient(ellipse at 50% 90%, #4068db, transparent 68%), linear-gradient(145deg, #002fa7, #2900bc); }
.file-sheet { display: grid; width: 6.75rem; min-height: 7rem; padding: .75rem; border-radius: 8px; background: #f4f7ff; color: #002fa7; box-shadow: 0 0 44px #adc4ff87; }
.file-state { grid-area: 1 / 1; display: grid; }
.file-idle { --file-motion: file-idle; grid-template-columns: 1fr auto; align-content: space-between; align-items: end; }
.file-idle svg { grid-column: 1 / -1; }
.file-idle strong { font-size: 1.75rem; line-height: 1; letter-spacing: -.06em; }
.file-idle span { font-size: .75rem; }
.file-loading, .file-done { place-content: center stretch; justify-items: center; gap: .4rem; font-size: .7rem; font-weight: 600; opacity: 0; }
.file-loading { --file-motion: file-loading; }
.file-done { --file-motion: file-done; color: #155441; }
.file-done svg { width: 2rem; height: 2rem; padding: .35rem; border-radius: 50%; background: #dff3ea; }
.file-progress { width: 100%; height: .375rem; overflow: hidden; border-radius: 4px; background: #cad8f4; }
.file-progress span { display: block; height: 100%; border-radius: inherit; background: #002fa7; transform-origin: left; transform: scaleX(0); }
.phone-art { gap: 0; }
.phone-art div { display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border: 1px solid var(--control-line); border-radius: var(--control); background: var(--panel); }
.phone-art svg { width: 1.65rem; height: 1.65rem; }
.phone-art i { position: relative; width: clamp(2rem, 5vw, 5rem); height: 1px; background: var(--accent); }
.phone-art i::after { position: absolute; inset: -1px 0; background: var(--accent); opacity: 0; transform-origin: left; content: ""; }
.feature-card:is([data-played], [data-hovered]) .keys kbd { animation: keypress var(--art-cycle) var(--motion-ease) var(--art-iterations, 1); }
.feature-card:is([data-played], [data-hovered]) .keys > span:last-child kbd { animation-delay: calc(280ms * var(--motion-scale)); }
.feature-card:is([data-played], [data-hovered]) :is(.file-state, .file-progress span) {
  animation: var(--file-motion) var(--art-cycle) linear var(--art-iterations, 1);
}
.file-progress span { --file-motion: file-progress; }
.feature-card:is([data-played], [data-hovered]) .phone-art i::after { animation: draw-route var(--art-cycle) var(--motion-ease) var(--art-iterations, 1); }
@keyframes keypress {
  8% { transform: translateY(3px); background: var(--accent); color: var(--page); }
  16%, 100% { transform: none; background: var(--panel); color: inherit; }
}
@keyframes file-idle { 0%, 7%, 91%, 100% { opacity: 1; } 14%, 84% { opacity: 0; } }
@keyframes file-loading { 0%, 7%, 51%, 100% { opacity: 0; } 14%, 46% { opacity: 1; } }
@keyframes file-progress { 0%, 14% { transform: scaleX(0); } 46%, 100% { transform: scaleX(1); } }
@keyframes file-done { 0%, 46%, 91%, 100% { opacity: 0; transform: scale(.94); } 51%, 84% { opacity: 1; transform: none; } }
@keyframes draw-route {
  0% { transform: scaleX(0); opacity: 1; }
  24% { transform: scaleX(1); opacity: 1; }
  36%, 100% { transform: scaleX(1); opacity: 0; }
}
.feature-copy code { padding: .1em .3em; border-radius: 4px; background: var(--tint); color: var(--accent); font-size: .875rem; overflow-wrap: anywhere; box-decoration-break: clone; }

.setup {
  --muted: #edf2ff;
  --focus: #fff;
  background: radial-gradient(ellipse at 82% 42%, #405bd1 0%, transparent 65%), linear-gradient(128deg, #002fa7 12%, #29149a 100%);
  color: #fff;
}
.setup-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 7vw, 6.5rem); align-items: center; }
.section-intro { margin-top: 1rem; max-width: 27rem; color: var(--muted); font-size: 1.125rem; }
.setup-button { margin-top: 1.75rem; border-color: #fff; background: #fff; color: #002fa7; }
.setup-button:hover { border-color: #dfe8ff; background: #dfe8ff; }
.repository { border-bottom: 1px solid var(--line); }
.repository-list { display: grid; grid-auto-rows: 1fr; gap: 1rem; margin-block: 0; padding: 0; list-style: none; }
.repository-card {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  align-content: center;
  align-items: center;
  gap: clamp(1.5rem, 5vw, 4rem);
  padding: clamp(1.25rem, 3vw, 2.5rem) clamp(1.25rem, 5vw, 4.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: radial-gradient(ellipse at 0 10%, var(--hero-light), transparent 68%), var(--panel);
}
.installer-card { grid-template-columns: minmax(0, 1fr) auto; gap: 1.25rem; }
@media (prefers-reduced-motion: no-preference) {
  .repository-card[data-reveal-ready]:not([data-played], :focus-within) { opacity: .25; transform: translateY(18px); }
  .repository-card[data-played]:not(:focus-within) { animation: repository-in calc(780ms * var(--motion-scale)) var(--motion-ease) calc(160ms * var(--motion-scale)) both; }
  .repository-card[data-played]:not(:focus-within) :is(.clone-panel, .installer-actions) { animation: enter calc(680ms * var(--motion-scale)) var(--motion-ease) calc(230ms * var(--motion-scale)) both; }
}
@keyframes repository-in { from { opacity: .25; transform: translateY(18px); } }
.repository-card h2 { font-size: clamp(2rem, 4.5vw, 4rem); }
.repository-name, .clone-command { font-family: ui-monospace, Consolas, monospace; }
.repository-name { margin-top: .75rem; color: var(--muted); font-size: .95rem; }
.repository-link, .versions-button { margin-top: 1.25rem; }
.clone-panel {
  min-width: 0;
  padding: clamp(.875rem, 2.5vw, 1.5rem);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}
.clone-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; }
.clone-header h3 { font-size: 1.125rem; }
.clone-copy { min-height: 44px; padding-inline: .75rem; font-size: .875rem; }
.status-action { --success-color: #137052; }
[data-theme="dark"] .status-action { --success-color: #8de5bc; }
.status-icons { display: grid; flex: none; }
.status-icons svg { grid-area: 1 / 1; transition: opacity var(--fast) var(--ease); }
.status-check { opacity: 0; color: var(--success-color); }
.status-action[data-success] { border-color: var(--success-color); }
.installer-link[data-success] { background: var(--panel); color: var(--text); }
.status-action[data-success] .status-icon { opacity: 0; }
.status-action[data-success] .status-check { opacity: 1; animation: status-check-in calc(360ms * var(--motion-scale)) var(--motion-ease) both; }
@keyframes status-check-in {
  from { transform: scale(.7); stroke-dasharray: 1; stroke-dashoffset: 1; }
  to { transform: none; stroke-dasharray: 1; stroke-dashoffset: 0; }
}
.clone-command {
  display: block;
  margin-top: .875rem;
  padding: .875rem;
  border: 1px solid var(--line);
  border-radius: var(--control);
  background: var(--surface);
  color: var(--text);
  font-size: .875rem;
  overflow-wrap: anywhere;
}
.clone-command span { color: var(--accent); font-weight: 600; }
.clone-access, .clone-feedback { margin-top: .625rem; font-size: .85rem; }
.clone-access { color: var(--muted); }
.clone-feedback { color: var(--accent); }
.clone-feedback:empty { margin-top: 0; }

[data-theme="light"] .repository { --repository-line: #d9e1ed; }
[data-theme="light"] .repository-list { grid-auto-rows: auto; }
[data-theme="light"] .repository-card {
  padding: clamp(1.25rem, 3vw, 2.25rem);
  background: var(--panel);
}
[data-theme="light"] .repository-card h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -.04em;
}
[data-theme="light"] .clone-panel {
  padding: 0 0 0 clamp(1.25rem, 3vw, 2.25rem);
  border: 0;
  border-inline-start: 1px solid var(--repository-line);
  border-radius: 0;
}
[data-theme="light"] .clone-command {
  border-color: var(--repository-line);
  background: #f7f7f8;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.steps {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: .25rem;
  margin: 0;
  padding: 1rem clamp(1rem, 2.5vw, 2.25rem);
  list-style: none;
  border: 1px solid #869cf68c;
  border-radius: var(--radius);
  background: #0b1d6d55;
}
.steps li { position: relative; display: flex; gap: 1rem; min-width: 0; padding-block: 1.25rem; }
.steps li + li { border-top: 1px solid #9bb5ff4d; }
.steps li:not(:last-child)::before, .steps li:not(:last-child)::after { position: absolute; inset: 2.5rem auto auto calc(1.375rem - .5px); width: 1px; height: calc(100% + .25rem); background: #8599e0; content: ""; }
.steps li:not(:last-child)::after { background: #fff; box-shadow: 0 0 10px 1px #a3bfff; transform-origin: top; transform: scaleY(0); }
.steps[data-played] li:not(:last-child)::after { animation: connect calc(620ms * var(--motion-scale)) var(--motion-ease) calc(var(--delay, 0ms) * var(--motion-scale)) both; }
.steps li:nth-child(2) { --delay: 220ms; }
.steps li:nth-child(3) { --delay: 440ms; }
.step-icon { position: relative; z-index: 1; display: grid; place-items: center; flex: 0 0 2.75rem; height: 2.75rem; border: 1px solid #93a9f5; border-radius: var(--control); background: #2448b1; }
.steps[data-played] .step-icon { animation: step-signal calc(700ms * var(--motion-scale)) var(--motion-ease) calc(var(--delay, 0ms) * var(--motion-scale)) both; }
@keyframes connect { to { transform: scaleY(1); } }
@keyframes step-signal { 45% { box-shadow: 0 0 22px #cad9ffb3; background: #3d61ce; } }

.platform-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem; }
.platform-card { display: flex; align-items: flex-start; gap: 1.125rem; padding: clamp(1rem, 2.5vw, 2rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.platform-card p { max-width: 32rem; }
.platform-icon { width: 3rem; height: 3rem; background: var(--tint); }
.faq { margin-top: clamp(2.5rem, 6vw, 4rem); }
.faq h3 { margin-bottom: .75rem; }
.faq details { border-block-start: 1px solid var(--line); }
.faq details:last-child { border-block-end: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.5rem; padding-block: .75rem; cursor: pointer; font-weight: 600; transition: color var(--fast) var(--ease); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { flex: none; width: .5rem; height: .5rem; margin-inline: .25rem; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); transition: transform var(--fast) var(--ease); content: ""; }
.faq details[open] summary::after { transform: translateY(2px) rotate(225deg); }
.faq summary:hover { color: var(--accent); }
.faq p { max-width: 48rem; padding-bottom: 1rem; color: var(--muted); }
.faq details[open] .faq-answer { animation: enter calc(260ms * var(--motion-scale)) var(--motion-ease); }
.site-footer { border-top: 1px solid var(--line); background: var(--surface); }
.footer-link { gap: .5rem; color: var(--muted); font-size: .875rem; }
.footer-link svg { width: 1rem; height: 1rem; transform: rotate(-90deg); }

@media (min-width: 62.01rem) and (max-width: 72rem) {
  .hero-actions { gap: .5rem; }
  .hero-actions .button { padding-inline: .75rem; font-size: .875rem; }
  .hero-actions .button-primary svg { display: none; }
}
@media (max-width: 62rem) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy h1 { font-size: clamp(2.65rem, 7.4vw, 4.5rem); }
  .hero-inner { gap: 2rem; }
  .hero__lead { max-width: 36rem; }
  .device-scene { max-width: 35rem; justify-self: center; }
  .demo-grid { grid-template-columns: 1fr; }
  .demo-copy h2 { max-width: none; }
  .demo-stage { min-height: clamp(14rem, 34vw, 20rem); }
}
@media (max-width: 51rem) {
  .header-inner { min-height: 0; grid-template-columns: 1fr auto; gap: .25rem 1rem; padding-top: .5rem; }
  .main-nav { grid-area: 2 / 1 / 3 / -1; justify-content: space-between; gap: .5rem; }
}
@media (max-width: 47rem) {
  .setup-grid { grid-template-columns: 1fr; gap: 2rem; }
  .repository-card { grid-template-columns: 1fr; }
  [data-theme="light"] .clone-panel {
    padding: 1rem 0 0;
    border-inline-start: 0;
    border-block-start: 1px solid var(--repository-line);
  }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { display: grid; grid-template-columns: 1fr 1fr; }
  .feature-copy { align-self: center; }
}
@media (max-width: 35rem) {
  .header-cta { padding-inline: .65rem; font-size: .875rem; }
  .hero { padding-top: 2rem; }
  .hero-copy h1 { font-size: clamp(2.25rem, 10vw, 3.5rem); }
  .hero h1 { margin-block: .75rem 1rem; }
  .hero-actions { margin-top: 1.25rem; gap: .5rem; }
  .hero-actions .button { padding-inline: .7rem; font-size: .84rem; }
  .hero-actions .button-primary svg { display: none; }
  .demo { padding: .5rem; }
  .demo-header { padding-inline: .15rem; }
  .demo-name { font-size: .86rem; }
  .demo-stage { min-height: 12.5rem; padding: .5rem; }
  .demo-stage::after { inset: 12% 4%; }
  .device-top, .device-content { padding: .5rem; }
  .device-top { gap: .25rem; font-size: .8rem; }
  .device-top svg { width: .9rem; height: .9rem; }
  .device-label { font-size: .72rem; }
  .payload { min-height: 3rem; gap: .25rem; padding: .25rem; font-size: .775rem; }
  .payload svg { width: .8rem; height: .8rem; }
  .relay-mark, .relay-packet { width: 1.9rem; height: 1.9rem; align-self: center; }
  .relay-mark svg, .relay-packet svg { width: 1rem; height: 1rem; }
  .relay-packet { top: auto; }
  .quick-facts, .feature-card, .platform-grid { grid-template-columns: 1fr; }
  .quick-facts li, .quick-facts li + li { padding: .75rem 0; border: 0; }
  .quick-facts li + li { border-top: 1px solid var(--line); }
}
@media (max-width: 22.5rem) {
  .main-nav { font-size: .83rem; }
  .hero-actions .button { flex: 1 1 100%; }
  .device-content, .device-top { padding-inline: .35rem; }
  .payload svg { display: none; }
  .demo-network { font-size: .72rem; }
  .demo-run { min-width: 7.1rem; }
  .demo-modes button { padding-inline: .45rem; }
}
@media (max-width: 47rem), (pointer: coarse) {
  :root {
    --motion-ease: cubic-bezier(.35, .15, .3, 1);
    --motion-scale: 1.6;
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .steps li:not(:last-child)::after { transform: none; }

  @media (max-width: 47rem), (pointer: coarse) {
    :is(.hero-copy, .quick-facts, .demo-copy, .demo, .repository-card)[data-reveal-ready]:not([data-played], :focus-within),
    .device-scene[data-reveal-ready]:not([data-played]) .device-model { opacity: .4; }

    :is(.hero-copy, .quick-facts, .demo-copy, .demo, .repository-card)[data-played]:not(:focus-within),
    .device-scene[data-played] .device-model,
    .faq details[open] .faq-answer { animation: reveal-fade 480ms ease-out both !important; }
  }
}
@keyframes reveal-fade { from { opacity: .4; } }
