:root {
  color-scheme: dark;
  --canvas: #130e1c;
  --panel: #1c1429;
  --ink: #faf5ff;
  --muted: #c2b4ce;
  --lavender: #cdb3ff;
  --orange: #ff973f;
  --line: #a280bb38;
  font-family: "Avenir Next", "Segoe UI", system-ui, sans-serif;
  background: var(--canvas);
  color: var(--ink);
}
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: radial-gradient(ellipse at 83% 39%, #34204c 0%, transparent 50%),
              radial-gradient(ellipse at 15% 45%, #20152c 0%, transparent 43%);
  min-height: 100svh;
}
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; }
.symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 1em;
  height: 1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.shell {
  width: min(100% - 112px, 1300px);
  min-height: 100svh;
  margin-inline: auto;
  display: grid;
  grid-template-rows: auto 1fr auto;
}
.header, .footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.header { min-height: 83px; border-bottom: 1px solid var(--line); }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -.045em;
  text-decoration: none;
  margin-left: -5px;
}
.brand img { display: block; transition: rotate .3s ease; }
.brand:hover img { rotate: -9deg; }
.header-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 13px;
  border: 1px solid var(--line);
  padding: 9px 13px;
  border-radius: 7px;
  text-decoration: none;
  transition: background .2s, border-color .2s;
}
.header-link:hover { background: #cdb3ff16; border-color: var(--lavender); }
.header-link svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: var(--lavender);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(30px, 4vw, 78px);
  align-items: center;
  padding: 52px 0 62px;
}
.hero-copy { animation: arrive .65s both; }
.eyebrow, .instrument-heading h2, .bearing {
  font-family: "SFMono-Regular", "Cascadia Code", Consolas, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.eyebrow { margin: 0 0 26px; color: var(--lavender); }
.eyebrow span {
  display: inline-block;
  width: 17px;
  height: 1px;
  margin: 0 9px 3px 0;
  background: var(--orange);
}
h1 {
  margin: 0;
  font-size: clamp(50px, 6.05vw, 93px);
  font-weight: 700;
  line-height: .89;
  letter-spacing: -.084em;
}
h1 em {
  display: inline-block;
  padding-right: .14em;
  color: var(--lavender);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -.085em;
  line-height: 1.05;
}
.description {
  max-width: 365px;
  margin: 25px 0 27px;
  color: var(--muted);
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.6;
}
.download {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 15px;
  min-height: 55px;
  border: 1px solid #e8d4ff;
  border-radius: 8px;
  background: var(--lavender);
  color: #211333;
  text-decoration: none;
  font-weight: 750;
  box-shadow: 0 9px 35px #b183f232;
  transition: transform .2s, background .2s, box-shadow .2s;
}
.download .icon { font-size: 19px; }
.download-arrow {
  margin-left: 16px;
  color: #583782;
  transition: transform .2s;
}
.download:hover {
  transform: translateY(-3px);
  background: #e5d0ff;
  box-shadow: 0 13px 40px #b183f24a;
}
.download:hover .download-arrow { transform: translate(2px, -2px); }
.download:active { transform: translateY(0); }
.requirements { margin: 11px 0 0; color: var(--muted); font-size: 12px; }

.instrument {
  --trace: #ffa456;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-width: 0;
  border: 1px solid #a280bb66;
  border-radius: 20px;
  padding: 20px;
  background: linear-gradient(145deg, #332244eb, #171022 70%);
  box-shadow: inset 0 1px #e5cdff22, 0 30px 70px #07040c66;
  animation: arrive .8s .17s both;
}
.instrument[data-sensor="mic"] { --trace: #d3aaff; }
.instrument[data-sensor="screen"] { --trace: #91caff; }
.instrument[data-sensor="location"] { --trace: #83e3b2; }
.instrument-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 0 1px 15px;
}
.instrument-heading h2 { margin: 0; color: var(--ink); }
.status-dot, .readout-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--trace);
  box-shadow: 0 0 11px var(--trace);
  border-radius: 50%;
  transition: background .2s, box-shadow .2s;
}
.status-dot { margin-right: 8px; vertical-align: 1px; }
.instrument-hint { color: var(--muted); font-size: 12px; }
.scope {
  position: relative;
  aspect-ratio: 560 / 380;
  overflow: hidden;
  border: 1px solid #b59ad93d;
  border-radius: 10px;
  background: radial-gradient(circle at center, #36274a, #1c1328 60%, #150f20);
}
.scope-grid { display: block; width: 100%; height: 100%; }
.graticule { stroke: #b9a1cc57; stroke-width: 1; }
.signal-trace {
  stroke: var(--trace);
  stroke-width: 1.2;
  opacity: .64;
  transition: stroke .3s;
}
.scan {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 57%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(from 0turn, transparent 0turn .83turn, #a081db00 .83turn, #b281ff4d .995turn, #d6bcff75 1turn);
  animation: sweep 9s linear infinite;
}
.origin {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20%;
  max-width: 103px;
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  color: var(--trace);
  transition: color .25s;
}
.origin-core, .pulse-ring { position: absolute; inset: 0; border-radius: 50%; }
.origin-core {
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  background: radial-gradient(circle at 30% 30%, #3e2d55, #231732 75%);
  box-shadow: 0 0 24px #0006, inset 0 0 16px color-mix(in srgb, currentColor 17%, transparent);
  font-size: clamp(22px, 3vw, 39px);
}
.pulse-ring { border: 1px solid currentColor; animation: pulse 3.4s ease-out infinite; }
.bearing { position: absolute; top: 12px; color: #b9a7c7; font-size: 9px; }
.bearing-left { left: 13px; }
.bearing-right { right: 13px; }
.readout {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 15px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--trace);
  border-radius: 6px;
  background: #cdb3ff0b;
  transition: border-color .2s;
}
.readout strong { display: block; font-size: 14px; }
.readout p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.sensor-controls {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-top: 12px;
}
.sensor-controls button {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  min-height: 43px;
  padding: 5px 3px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: #1b1328;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  transition: color .2s, background .2s, border-color .2s;
}
.sensor-controls button .icon { font-size: 16px; }
.sensor-controls button:hover { color: var(--ink); background: #342347; }
.sensor-controls button[aria-pressed="true"] {
  color: var(--trace);
  border-color: color-mix(in srgb, var(--trace) 60%, transparent);
  background: color-mix(in srgb, var(--trace) 12%, #21162e);
}
.footer {
  min-height: 62px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.footer > p { display: flex; gap: 8px; align-items: center; margin: 0; }
.footer svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--lavender);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.install { position: relative; }
.install summary { color: var(--ink); cursor: pointer; }
.install-content {
  position: absolute;
  bottom: calc(100% + 12px);
  right: 0;
  z-index: 2;
  width: min(330px, calc(100vw - 36px));
  padding: 15px;
  border-radius: 9px;
  border: 1px solid #a280bb88;
  background: #241733;
  box-shadow: 0 14px 30px #0007;
  line-height: 1.5;
}
.install-content p { margin: 0 0 10px; }
.install-content a { color: var(--lavender); text-underline-offset: 3px; }

@keyframes sweep { from { transform: translate(-50%, -50%) rotate(0); } to { transform: translate(-50%, -50%) rotate(1turn); } }
@keyframes pulse { from { transform: scale(.95); opacity: .7; } 85%, to { transform: scale(1.78); opacity: 0; } }
@keyframes arrive { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 1000px) {
  .shell { width: calc(100% - 64px); }
  .instrument { padding: 14px; }
}
@media (max-width: 760px) {
  .shell { width: min(100% - 36px, 540px); }
  .header { min-height: 66px; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 34px; padding: 32px 0; }
  .eyebrow { margin-bottom: 20px; }
  h1 { font-size: clamp(43px, 10.7vw, 72px); }
  .description { margin: 16px 0 21px; }
}
@media (max-width: 360px) {
  .instrument { padding: 11px; }
  .sensor-controls button { gap: 3px; font-size: 10px; }
  .sensor-controls button .icon { font-size: 14px; }
  .footer { font-size: 11px; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .scan, .pulse-ring { display: none; }
}
