:root {
  color-scheme: dark;
  --night: #050505;
  --carbon: #111111;
  --carbon-hi: #191919;
  --paper: #f2f1ec;
  --ink: #101010;
  --muted: rgba(242, 241, 236, 0.58);
  --line: rgba(242, 241, 236, 0.14);
  --orange: #ff5a1f;
  --cyan: #7ae7d7;
  --violet: #9d8cff;
  --content: min(1320px, calc(100vw - 80px));
  --header-height: 78px;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--night);
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--night);
  color: var(--paper);
  letter-spacing: 0;
}

body.menu-open {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 12px 16px;
  transform: translateY(-160%);
  background: var(--paper);
  color: var(--ink);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-height);
  padding: 0 max(32px, calc((100vw - 1440px) / 2));
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background-color 220ms ease, border-color 220ms ease, height 220ms ease;
}

.site-header.is-scrolled {
  height: 64px;
  background: rgba(5, 5, 5, 0.92);
  border-color: var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand-crop {
  position: relative;
  width: 134px;
  height: 32px;
  overflow: hidden;
  display: inline-block;
}

.brand-crop img {
  position: absolute;
  width: 134px;
  height: 134px;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

.brand-label {
  color: rgba(255, 255, 255, 0.42);
  font: 500 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.desktop-nav {
  display: flex;
  gap: 36px;
  font-size: 13px;
}

.desktop-nav a,
.footer-links a {
  color: rgba(255, 255, 255, 0.62);
  transition: color 180ms ease;
}

.desktop-nav a:hover,
.footer-links a:hover {
  color: #fff;
}

.nav-action {
  justify-self: end;
  min-height: 40px;
  padding: 0 4px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.42);
  font-size: 13px;
}

.menu-button,
.mobile-menu {
  display: none;
}

.hero {
  position: relative;
  min-height: min(920px, 96svh);
  overflow: hidden;
  background: #030303;
  border-bottom: 1px solid var(--line);
}

.hero-environment {
  position: absolute;
  inset: 0;
  background-image: url("assets/hero-sleep-environment-v2.webp");
  background-position: center;
  background-size: cover;
  filter: brightness(0.7) contrast(1.08) saturate(0.72);
  opacity: 0.9;
}

.hero-environment::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(3, 3, 3, 0.92) 0%, rgba(3, 3, 3, 0.56) 38%, rgba(3, 3, 3, 0.08) 72%, rgba(3, 3, 3, 0.3) 100%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.24;
  background-image:
    repeating-linear-gradient(90deg, transparent 0, transparent calc(12.5% - 1px), rgba(255, 255, 255, 0.11) 12.5%),
    repeating-linear-gradient(0deg, transparent 0, transparent 99px, rgba(255, 255, 255, 0.06) 100px);
  pointer-events: none;
}

.hero-scan {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 48%;
  width: 1px;
  height: 100%;
  background: rgba(122, 231, 215, 0.34);
  box-shadow: 0 0 24px rgba(122, 231, 215, 0.28);
  animation: hero-scan 8s ease-in-out infinite;
  pointer-events: none;
}

.hero-copy {
  position: absolute;
  z-index: 8;
  top: 20%;
  left: max(40px, calc((100vw - 1320px) / 2));
  width: min(540px, 42vw);
}

.eyebrow,
.section-index {
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.52);
  font: 500 11px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.status-dot {
  width: 7px;
  height: 7px;
  margin-right: 9px;
  display: inline-block;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 16px rgba(255, 90, 31, 0.9);
  animation: status-pulse 2.6s ease-in-out infinite;
}

.hero h1,
.section-heading h2,
.signals-intro h2,
.app-copy h2,
.design-copy h2,
.privacy-copy h2,
.closing-copy h2 {
  margin: 0;
  font-weight: 500;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 700px;
  font-size: clamp(58px, 6.6vw, 108px);
  line-height: 0.95;
  text-shadow: 0 3px 32px #000;
}

.hero h1 span {
  color: var(--orange);
}

.hero-intro {
  max-width: 530px;
  margin: 34px 0 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.8;
  text-shadow: 0 2px 18px #000;
}

.hero-actions,
.closing-actions {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 30px;
}

.button {
  min-height: 52px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--orange);
  color: #080808;
}

.button-primary:hover {
  background: #ff7647;
}

.text-link {
  padding: 9px 0;
  display: inline-flex;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.36);
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.product-stage {
  --pointer-x: 0px;
  --pointer-y: 0px;
  position: absolute;
  z-index: 2;
  top: 2%;
  right: -4%;
  width: min(820px, 66vw);
  aspect-ratio: 1;
  transform: translate3d(var(--pointer-x), var(--pointer-y), 0) rotate(-4deg) scale(1.06);
  transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.product-stage::after {
  content: "";
  position: absolute;
  inset: 6%;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 50%;
  pointer-events: none;
}

.product-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.12) brightness(0.88) saturate(0.9);
  -webkit-mask-image: radial-gradient(circle at 50% 48%, #000 0%, #000 48%, rgba(0, 0, 0, 0.92) 58%, transparent 76%);
  mask-image: radial-gradient(circle at 50% 48%, #000 0%, #000 48%, rgba(0, 0, 0, 0.92) 58%, transparent 76%);
}

.device-pulse {
  position: absolute;
  z-index: 2;
  left: 63.85%;
  top: 60.37%;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 90, 31, 0.88);
  background: transparent;
  box-shadow: 0 0 0 0 rgba(255, 90, 31, 0.5), inset 0 0 10px rgba(255, 90, 31, 0.18);
  transform: translate(-50%, -50%);
  animation: device-beacon 2.4s ease-out infinite;
}

.floating-metric {
  --float-x: 0px;
  --float-y: 0px;
  position: absolute;
  z-index: 10;
  width: 178px;
  min-height: 112px;
  padding: 17px 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  background: rgba(10, 10, 10, 0.84);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(12px);
  transform: translate3d(var(--float-x), var(--float-y), 0);
  transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1), border-color 180ms ease;
}

.floating-metric:hover {
  border-color: rgba(122, 231, 215, 0.54);
}

.metric-presence {
  right: 7%;
  top: 19%;
}

.metric-heart {
  right: 37%;
  bottom: 19%;
}

.metric-score {
  right: 5%;
  bottom: 16%;
}

.metric-label {
  display: block;
  color: rgba(255, 255, 255, 0.46);
  font: 500 9px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.floating-metric strong {
  margin-top: 12px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  font: 500 31px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.floating-metric small {
  padding-bottom: 3px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 9px;
}

.metric-foot {
  margin-top: 17px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.44);
  font: 500 8px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.metric-foot i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 9px var(--cyan);
}

.metric-heart svg {
  width: 100%;
  margin-top: 15px;
  overflow: visible;
}

.metric-heart path,
.signal-wave path,
.phone-chart path {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.metric-heart path {
  stroke-dasharray: 240;
  stroke-dashoffset: 240;
  animation: draw-line 3.2s ease-in-out infinite;
}

.score-track {
  height: 2px;
  margin-top: 20px;
  display: block;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.14);
}

.score-track i {
  width: 86%;
  height: 100%;
  display: block;
  background: var(--orange);
  transform-origin: left;
  animation: fill-track 1.4s 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-foot {
  position: absolute;
  z-index: 8;
  left: max(40px, calc((100vw - 1320px) / 2));
  right: max(40px, calc((100vw - 1320px) / 2));
  bottom: 28px;
  display: flex;
  gap: 34px;
  color: rgba(255, 255, 255, 0.36);
  font: 500 8px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.scroll-cue {
  position: absolute;
  z-index: 9;
  right: max(40px, calc((100vw - 1320px) / 2));
  bottom: 28px;
  width: 23px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 13px;
}

.scroll-cue span {
  position: absolute;
  top: 7px;
  left: 10px;
  width: 2px;
  height: 8px;
  background: #fff;
  animation: scroll-cue 1.8s ease-in-out infinite;
}

.system-section,
.signals-section,
.app-section,
.design-section,
.privacy-section {
  position: relative;
  padding: 140px max(40px, calc((100vw - 1320px) / 2));
}

.section-heading,
.signals-intro,
.app-copy,
.design-copy,
.privacy-copy {
  max-width: 720px;
}

.section-heading h2,
.signals-intro h2,
.app-copy h2,
.design-copy h2,
.privacy-copy h2,
.closing-copy h2 {
  font-size: clamp(44px, 5.2vw, 78px);
  line-height: 1.05;
}

.section-heading > p:last-child,
.signals-intro > p:last-child,
.app-copy > p:nth-of-type(2),
.design-copy > p:last-child,
.privacy-copy > p:last-child {
  max-width: 570px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.system-section {
  background: var(--paper);
  color: var(--ink);
}

.system-section .section-index {
  color: rgba(16, 16, 16, 0.45);
}

.system-section .section-heading > p:last-child {
  color: rgba(16, 16, 16, 0.62);
}

.system-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 1.9;
  margin: 80px 0 0;
  border: 1px solid rgba(16, 16, 16, 0.24);
  overflow: hidden;
  background: #0a0a0a;
  box-shadow: 0 30px 90px rgba(16, 16, 16, 0.18);
}

.system-visual::before {
  content: "SENSING FIELD / LIVE";
  position: absolute;
  z-index: 4;
  top: 24px;
  left: 24px;
  color: rgba(255, 255, 255, 0.58);
  font: 500 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.system-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: contrast(1.04) saturate(0.82) brightness(0.82);
}

.system-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(90deg, transparent 0%, transparent 54%, rgba(5, 5, 5, 0.26) 67%, rgba(5, 5, 5, 0.88) 100%);
  pointer-events: none;
}

.sensor-hotspot {
  position: absolute;
  z-index: 4;
  left: 35.2%;
  top: 68.1%;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255, 90, 31, 0.84);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: sensor-hotspot 2.8s ease-out infinite;
}

.sensor-hotspot span {
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(122, 231, 215, 0.58);
  border-radius: 50%;
}

.system-readout {
  position: absolute;
  z-index: 4;
  top: 74px;
  right: 5%;
  width: 31%;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.system-readout > div {
  padding: 22px 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.system-steps li > span,
.privacy-points div > span {
  color: rgba(16, 16, 16, 0.48);
  font: 500 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.system-readout span {
  color: rgba(255, 255, 255, 0.48);
  font: 500 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.system-readout strong {
  color: #fff;
  font: 500 25px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.system-readout small {
  margin-left: 4px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 9px;
}

.system-steps {
  width: 100%;
  margin: 64px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
  border-top: 1px solid rgba(16, 16, 16, 0.22);
}

.system-steps li {
  min-height: 210px;
  padding: 26px 34px 0 0;
  border-right: 1px solid rgba(16, 16, 16, 0.16);
}

.system-steps li + li {
  padding-left: 34px;
}

.system-steps li:last-child {
  border-right: 0;
}

.system-steps h3,
.privacy-points h3 {
  margin: 38px 0 12px;
  font-size: 21px;
  font-weight: 600;
}

.system-steps p,
.privacy-points p {
  margin: 0;
  color: rgba(16, 16, 16, 0.56);
  font-size: 14px;
  line-height: 1.75;
}

.signals-section {
  isolation: isolate;
  overflow: hidden;
  background: #090909;
}

.signals-section::before,
.app-section::before,
.privacy-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("assets/night-fabric-texture-v2.webp");
  background-position: center;
  background-size: cover;
  opacity: 0.15;
  mix-blend-mode: screen;
  pointer-events: none;
}

.signals-section > *,
.app-section > *,
.privacy-section > * {
  position: relative;
  z-index: 1;
}

.signals-intro {
  max-width: 980px;
  margin-left: auto;
  text-align: right;
}

.signals-intro h2 {
  font-size: clamp(44px, 4.4vw, 68px);
}

.app-copy h2 {
  font-size: clamp(44px, 4.1vw, 62px);
}

.signals-intro > p:last-child {
  margin-left: auto;
}

.night-clock {
  margin-top: 100px;
  padding: 54px 0 44px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.clock-main {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
}

.clock-main > span {
  color: rgba(255, 255, 255, 0.52);
  font: 500 13px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.clock-main > span:last-child {
  text-align: right;
}

.clock-main strong {
  font: 400 clamp(64px, 8vw, 126px)/0.82 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.clock-main small {
  color: rgba(255, 255, 255, 0.32);
  font-size: 13px;
}

.stage-timeline {
  height: 18px;
  margin-top: 52px;
  display: flex;
  gap: 3px;
  overflow: hidden;
}

.stage-timeline span {
  width: var(--w);
  display: block;
  transform: scaleX(0);
  transform-origin: left;
  animation: timeline-grow 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.stage-timeline span:nth-child(2) { animation-delay: 80ms; }
.stage-timeline span:nth-child(3) { animation-delay: 160ms; }
.stage-timeline span:nth-child(4) { animation-delay: 240ms; }
.stage-timeline span:nth-child(5) { animation-delay: 320ms; }
.stage-timeline span:nth-child(6) { animation-delay: 400ms; }
.stage-timeline span:nth-child(7) { animation-delay: 480ms; }

.stage-deep,
.stage-legend .deep,
.stage-rows .deep { background: var(--violet); }
.stage-rem,
.stage-legend .rem,
.stage-rows .rem { background: var(--cyan); }
.stage-light,
.stage-legend .light,
.stage-rows .light { background: #59616e; }
.stage-awake,
.stage-legend .awake { background: var(--orange); }

.stage-legend {
  margin-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: rgba(255, 255, 255, 0.48);
  font: 500 10px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.stage-legend span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stage-legend i,
.stage-rows i {
  width: 7px;
  height: 7px;
  display: inline-block;
  border-radius: 50%;
}

.signal-grid {
  margin-top: 42px;
  display: grid;
  grid-template-columns: 1.45fr 0.8fr 0.8fr;
  gap: 16px;
}

.signal-card {
  position: relative;
  min-height: 390px;
  padding: 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--carbon);
}

.signal-card header,
.signal-card footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.signal-card header > span,
.signal-card footer {
  color: rgba(255, 255, 255, 0.44);
  font: 500 9px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.signal-card header strong {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  font: 500 36px/0.9 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.signal-card header small {
  color: rgba(255, 255, 255, 0.42);
  font-size: 8px;
}

.signal-card footer {
  position: absolute;
  right: 30px;
  bottom: 28px;
  left: 30px;
}

.signal-wave {
  position: absolute;
  right: 28px;
  bottom: 72px;
  left: 28px;
  width: calc(100% - 56px);
  height: 190px;
}

.signal-wave path {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: draw-signal 4.8s ease-in-out infinite;
}

.breath-orbit {
  position: absolute;
  top: 51%;
  left: 50%;
  width: 180px;
  aspect-ratio: 1;
  border: 1px solid rgba(122, 231, 215, 0.42);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: breathe 5.2s ease-in-out infinite;
}

.breath-orbit::before,
.breath-orbit::after {
  content: "";
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(122, 231, 215, 0.2);
  border-radius: 50%;
}

.breath-orbit::after {
  inset: 46px;
}

.breath-orbit span {
  position: absolute;
  inset: 70px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 30px rgba(122, 231, 215, 0.38);
}

.breath-orbit i {
  position: absolute;
  top: 50%;
  left: -4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
}

.environment-bars {
  position: absolute;
  top: 120px;
  right: 30px;
  bottom: 72px;
  left: 30px;
  display: flex;
  align-items: end;
  gap: 7px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.environment-bars i {
  flex: 1;
  height: var(--h);
  background: var(--orange);
  opacity: 0.58;
  transform-origin: bottom;
  animation: bar-rise 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.environment-bars i:nth-child(2n) { animation-delay: 100ms; opacity: 0.82; }
.environment-bars i:nth-child(3n) { animation-delay: 180ms; }

.app-section {
  min-height: 1020px;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: center;
  gap: 80px;
  overflow: hidden;
  isolation: isolate;
  background: #0d0d0d;
}

.app-section::before {
  opacity: 0.11;
  transform: scaleX(-1);
}

.app-copy {
  position: relative;
  z-index: 3;
}

.app-tabs {
  margin-top: 50px;
  display: flex;
  gap: 4px;
}

.app-tabs button {
  min-width: 84px;
  height: 42px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: transparent;
  color: rgba(255, 255, 255, 0.48);
  cursor: pointer;
}

.app-tabs button[aria-selected="true"] {
  border-color: var(--orange);
  background: var(--orange);
  color: #090909;
}

.app-facts {
  min-height: 142px;
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.app-facts p {
  margin: 0 0 12px;
  color: var(--orange);
  font: 500 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.app-facts strong,
.app-facts span {
  display: block;
}

.app-facts strong {
  font-size: 20px;
}

.app-facts span {
  max-width: 450px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.phone-stage {
  position: relative;
  min-height: 790px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-stage::before,
.phone-stage::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  animation: orbit-rotate 18s linear infinite;
}

.phone-stage::before {
  width: 640px;
  height: 640px;
}

.phone-stage::after {
  width: 760px;
  height: 760px;
  border-style: dashed;
  animation-direction: reverse;
  animation-duration: 28s;
}

.phone-glow {
  position: absolute;
  width: 390px;
  height: 690px;
  background: rgba(157, 140, 255, 0.12);
  filter: blur(80px);
}

.phone {
  position: relative;
  z-index: 3;
  width: 354px;
  height: 728px;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 44px;
  background: #111;
  box-shadow: 0 50px 130px rgba(0, 0, 0, 0.7);
  transform: rotate(4deg);
}

.phone-sensor {
  position: absolute;
  z-index: 4;
  top: 17px;
  left: 50%;
  width: 76px;
  height: 22px;
  border-radius: 16px;
  background: #050505;
  transform: translateX(-50%);
}

.phone-screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 36px;
  background: #000;
}

.phone-status {
  height: 42px;
  padding: 12px 22px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  font-size: 9px;
}

.app-panel {
  height: calc(100% - 101px);
  padding: 18px 22px 26px;
  overflow: hidden;
  animation: panel-enter 400ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.app-panel > header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.app-panel header div,
.panel-title div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.app-panel header b {
  font-size: 11px;
}

.app-panel header span,
.app-panel header small {
  color: rgba(255, 255, 255, 0.42);
  font-size: 8px;
}

.app-panel > header > i {
  width: 29px;
  height: 29px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
}

.panel-title {
  justify-content: flex-start !important;
  gap: 18px;
}

.panel-title > span {
  color: #fff !important;
  font-size: 22px !important;
}

.score-ring {
  width: 188px;
  height: 188px;
  margin: 28px auto 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 6px solid rgba(157, 140, 255, 0.22);
  border-top-color: var(--violet);
  border-right-color: var(--violet);
  border-radius: 50%;
  box-shadow: 0 0 44px rgba(157, 140, 255, 0.14);
  transform: rotate(18deg);
}

.score-ring > * {
  transform: rotate(-18deg);
}

.score-ring span,
.score-ring small {
  color: rgba(255, 255, 255, 0.42);
  font-size: 8px;
}

.score-ring strong {
  margin: 4px 0;
  font-size: 54px;
  font-weight: 500;
  line-height: 1;
}

.score-ring.compact {
  width: 150px;
  height: 150px;
  margin-top: 22px;
}

.score-ring.compact strong {
  font-size: 44px;
}

.mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
}

.mini-stats span {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: rgba(255, 255, 255, 0.36);
  font-size: 7px;
}

.mini-stats b {
  color: #fff;
  font-size: 10px;
}

.app-cta {
  min-height: 64px;
  margin-top: 22px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  background: #0b0b0d;
  font-size: 10px;
}

.app-cta span,
.app-cta small {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.app-cta small {
  color: rgba(255, 255, 255, 0.38);
  font-size: 7px;
}

.app-panel h4 {
  margin: 25px 0 12px;
  font-size: 10px;
}

.live-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.live-tiles > span {
  min-height: 70px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: #0b0b0d;
  color: rgba(255, 255, 255, 0.38);
  font-size: 7px;
}

.live-tiles b {
  color: #fff;
  font-size: 17px;
  font-weight: 500;
}

.live-tiles small {
  font-size: 6px;
}

.mini-stage {
  height: 16px;
  display: flex;
  gap: 2px;
}

.mini-stage i:nth-child(1) { width: 18%; background: var(--violet); }
.mini-stage i:nth-child(2) { width: 24%; background: #59616e; }
.mini-stage i:nth-child(3) { width: 21%; background: var(--cyan); }
.mini-stage i:nth-child(4) { width: 27%; background: #59616e; }
.mini-stage i:nth-child(5) { width: 10%; background: var(--orange); }

.stage-rows,
.trend-list {
  margin-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stage-rows span,
.trend-list span {
  min-height: 35px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.52);
  font-size: 8px;
}

.stage-rows b,
.trend-list b {
  margin-left: auto;
  color: #fff;
  font-size: 8px;
}

.phone-chart {
  width: 100%;
  height: 74px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.phone-chart path {
  stroke: var(--violet);
}

.trend-score {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
}

.trend-score small {
  grid-column: 1 / -1;
  color: rgba(255, 255, 255, 0.42);
  font-size: 8px;
}

.trend-score strong {
  margin-top: 4px;
  font-size: 48px;
  font-weight: 500;
}

.trend-score span {
  margin-bottom: 7px;
  color: var(--cyan);
  font-size: 10px;
}

.trend-bars {
  height: 165px;
  margin-top: 26px;
  display: flex;
  align-items: end;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.trend-bars i {
  flex: 1;
  height: var(--h);
  background: rgba(157, 140, 255, 0.36);
}

.trend-bars i.active {
  background: var(--violet);
}

.week-labels {
  margin-top: 8px;
  display: flex;
  justify-content: space-around;
  color: rgba(255, 255, 255, 0.34);
  font-size: 7px;
}

.phone-nav {
  position: absolute;
  inset: auto 0 0;
  height: 59px;
  padding: 8px 20px 10px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.96);
}

.phone-nav span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: rgba(255, 255, 255, 0.3);
  font-size: 13px;
}

.phone-nav span.active {
  color: var(--violet);
}

.phone-nav small {
  font-size: 6px;
}

.phone-note {
  position: absolute;
  z-index: 4;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #111;
  color: rgba(255, 255, 255, 0.58);
  font: 500 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.phone-note span {
  margin-right: 14px;
  color: var(--orange);
}

.note-one {
  top: 24%;
  right: 0;
}

.note-two {
  bottom: 22%;
  left: 0;
}

.design-section {
  min-height: 960px;
  padding-bottom: 0;
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 80px;
  align-items: start;
  background: #c6c5c1;
  color: var(--ink);
}

.design-section .section-index {
  color: rgba(16, 16, 16, 0.44);
}

.design-copy {
  position: sticky;
  top: 130px;
}

.design-copy h2 {
  font-size: clamp(38px, 3.4vw, 58px);
  white-space: nowrap;
}

.design-copy > p:last-child {
  color: rgba(16, 16, 16, 0.6);
}

.design-image {
  position: relative;
  min-height: 820px;
  overflow: hidden;
}

.design-image > img {
  width: 100%;
  min-height: 820px;
  object-fit: cover;
  object-position: center;
}

.privacy-section {
  isolation: isolate;
  overflow: hidden;
  padding-top: 110px;
  padding-bottom: 90px;
  background: #0b0b0b;
}

.privacy-points h3 {
  margin-top: 18px;
}

.privacy-section::before {
  opacity: 0.1;
}

.privacy-copy {
  margin: 0 auto;
  text-align: center;
}

.privacy-copy > p:last-child {
  margin-right: auto;
  margin-left: auto;
}

.connection-map {
  position: relative;
  height: 300px;
  margin-top: 56px;
  border: 1px solid var(--line);
  overflow: hidden;
  background-image:
    repeating-linear-gradient(90deg, transparent 0, transparent 119px, rgba(255, 255, 255, 0.05) 120px),
    repeating-linear-gradient(0deg, transparent 0, transparent 79px, rgba(255, 255, 255, 0.05) 80px);
}

.map-node {
  position: absolute;
  z-index: 3;
  width: 118px;
  height: 118px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  background: #0b0b0b;
}

.map-node i {
  width: 12px;
  height: 12px;
  margin-bottom: 13px;
  border: 3px solid var(--orange);
  border-radius: 50%;
  box-shadow: 0 0 24px rgba(255, 90, 31, 0.45);
}

.map-node span {
  font: 500 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.map-node small {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 9px;
}

.node-device { left: 7%; top: 50%; transform: translateY(-50%); }
.node-app { left: 50%; top: 50%; transform: translate(-50%, -50%); }
.node-report { right: 7%; top: 50%; transform: translateY(-50%); }

.node-app i { border-color: var(--cyan); box-shadow: 0 0 24px rgba(122, 231, 215, 0.45); }
.node-report i { border-color: var(--violet); box-shadow: 0 0 24px rgba(157, 140, 255, 0.45); }

.map-line {
  position: absolute;
  z-index: 1;
  top: 50%;
  height: 1px;
  background: rgba(255, 255, 255, 0.24);
}

.line-one { left: calc(7% + 118px); right: 50%; }
.line-two { left: 50%; right: calc(7% + 118px); }

.packet {
  position: absolute;
  z-index: 2;
  top: calc(50% - 9px);
  padding: 4px 7px;
  background: #0b0b0b;
  color: var(--cyan);
  font: 500 8px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  animation: packet-flow 4s linear infinite;
}

.packet-one { left: 21%; }
.packet-two { left: 56%; animation-delay: 1.6s; color: var(--violet); }

.privacy-points {
  margin-top: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-right: 1px solid var(--line);
}

.privacy-points > div {
  min-height: 150px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.privacy-points div > span {
  color: rgba(255, 255, 255, 0.38);
}

.privacy-points h3 {
  color: #fff;
}

.privacy-points p {
  color: var(--muted);
}

.closing-section {
  position: relative;
  min-height: 760px;
  padding: 120px max(40px, calc((100vw - 1320px) / 2));
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #030303;
}

.closing-device {
  position: absolute;
  top: -20%;
  right: -4%;
  width: min(850px, 68vw);
  aspect-ratio: 1;
  opacity: 0.72;
  transform: rotate(10deg);
}

.closing-device img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.closing-copy {
  position: relative;
  z-index: 3;
  width: min(700px, 58vw);
}

.site-footer {
  min-height: 300px;
  padding: 64px max(40px, calc((100vw - 1320px) / 2));
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 50px;
  border-top: 1px solid var(--line);
  background: #050505;
}

.footer-brand p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-content: start;
  gap: 20px;
  font-size: 13px;
}

.footer-meta {
  grid-column: 1 / -1;
  align-self: end;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: rgba(255, 255, 255, 0.36);
  font: 500 9px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 760ms ease, transform 760ms cubic-bezier(0.22, 1, 0.36, 1);
}

.has-js [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes hero-scan {
  0%, 100% { transform: translateX(-18vw); opacity: 0; }
  18%, 78% { opacity: 0.7; }
  50% { transform: translateX(42vw); opacity: 0.35; }
}

@keyframes status-pulse {
  0%, 100% { opacity: 0.55; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1); }
}

@keyframes device-beacon {
  0% { box-shadow: 0 0 0 0 rgba(255, 90, 31, 0.48), inset 0 0 10px rgba(255, 90, 31, 0.18); opacity: 0.58; }
  70% { box-shadow: 0 0 0 20px rgba(255, 90, 31, 0), inset 0 0 10px rgba(255, 90, 31, 0.08); opacity: 1; }
  100% { box-shadow: 0 0 0 0 rgba(255, 90, 31, 0), inset 0 0 10px rgba(255, 90, 31, 0.18); opacity: 0.58; }
}

@keyframes sensor-hotspot {
  0% { box-shadow: 0 0 0 0 rgba(255, 90, 31, 0.36); opacity: 0.5; }
  72% { box-shadow: 0 0 0 28px rgba(255, 90, 31, 0); opacity: 1; }
  100% { box-shadow: 0 0 0 0 rgba(255, 90, 31, 0); opacity: 0.5; }
}

@keyframes draw-line {
  0%, 20% { stroke-dashoffset: 240; }
  60%, 100% { stroke-dashoffset: 0; }
}

@keyframes fill-track {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes scroll-cue {
  0% { transform: translateY(0); opacity: 0; }
  35% { opacity: 1; }
  80%, 100% { transform: translateY(13px); opacity: 0; }
}

@keyframes sense-wave {
  0% { transform: translate(-50%, 50%) scale(0.1); opacity: 0; }
  18% { opacity: 0.65; }
  100% { transform: translate(-50%, 50%) scale(2.5); opacity: 0; }
}

@keyframes timeline-grow {
  to { transform: scaleX(1); }
}

@keyframes draw-signal {
  0%, 15% { stroke-dashoffset: 1000; }
  60%, 100% { stroke-dashoffset: 0; }
}

@keyframes breathe {
  0%, 100% { transform: translate(-50%, -50%) scale(0.86); opacity: 0.46; }
  50% { transform: translate(-50%, -50%) scale(1.06); opacity: 1; }
}

@keyframes bar-rise {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

@keyframes orbit-rotate {
  to { transform: rotate(360deg); }
}

@keyframes panel-enter {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes packet-flow {
  from { transform: translateX(0); opacity: 0; }
  18%, 82% { opacity: 1; }
  to { transform: translateX(250px); opacity: 0; }
}

@media (max-width: 1180px) {
  :root {
    --content: calc(100vw - 56px);
  }

  .site-header {
    padding: 0 28px;
  }

  .desktop-nav {
    gap: 22px;
  }

  .hero-copy {
    left: 36px;
    width: 48vw;
  }

  .product-stage {
    right: -13%;
    width: 74vw;
  }

  .metric-presence { right: 3%; }
  .metric-score { right: 2%; }
  .metric-heart { right: 30%; }

  .system-section,
  .signals-section,
  .app-section,
  .design-section,
  .privacy-section,
  .closing-section,
  .site-footer {
    padding-right: 36px;
    padding-left: 36px;
  }

  .signal-grid {
    grid-template-columns: 1.25fr 0.75fr;
  }

  .signal-environment {
    grid-column: 1 / -1;
    min-height: 300px;
  }

  .environment-bars {
    top: 100px;
  }

  .app-section {
    gap: 30px;
  }

  .phone-note {
    display: none;
  }

  .design-section {
    grid-template-columns: 0.82fr 1.18fr;
    gap: 44px;
  }
}

@media (max-width: 860px) {
  :root {
    --header-height: 68px;
  }

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .desktop-nav,
  .nav-action,
  .brand-label {
    display: none;
  }

  .menu-button {
    width: 42px;
    height: 42px;
    padding: 0;
    display: grid;
    place-content: center;
    gap: 6px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(5, 5, 5, 0.75);
  }

  .menu-button span {
    width: 16px;
    height: 1px;
    display: block;
    background: #fff;
    transition: transform 180ms ease;
  }

  .menu-button[aria-expanded="true"] span:first-child {
    transform: translateY(3.5px) rotate(45deg);
  }

  .menu-button[aria-expanded="true"] span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
  }

  .mobile-menu {
    position: fixed;
    z-index: 45;
    inset: 0;
    padding: 120px 28px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    background: #050505;
  }

  .mobile-menu[hidden] {
    display: none;
  }

  .mobile-menu a {
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
    font-size: 30px;
  }

  .hero {
    min-height: 920px;
  }

  .hero-copy {
    top: 14%;
    left: 28px;
    width: calc(100vw - 56px);
  }

  .hero h1 {
    font-size: clamp(52px, 13vw, 82px);
  }

  .hero-intro {
    max-width: 520px;
  }

  .product-stage {
    top: 32%;
    right: -10%;
    width: 94vw;
  }

  .metric-presence {
    top: auto;
    right: 7%;
    bottom: 21%;
  }

  .metric-heart {
    right: auto;
    bottom: 18%;
    left: 5%;
  }

  .metric-score {
    display: none;
  }

  .hero-foot span:nth-child(2),
  .hero-foot span:nth-child(3) {
    display: none;
  }

  .system-section,
  .signals-section,
  .app-section,
  .design-section,
  .privacy-section {
    padding-top: 110px;
    padding-bottom: 110px;
  }

  .system-section {
    min-height: auto;
  }

  .system-visual {
    width: 100%;
    height: 560px;
    margin-top: 70px;
  }

  .system-photo {
    object-position: 38% center;
  }

  .system-readout {
    top: auto;
    right: 7%;
    bottom: 25px;
    left: 7%;
    width: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .system-readout > div {
    padding: 17px 14px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
    border-right: 1px solid rgba(16, 16, 16, 0.15);
  }

  .system-steps {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .system-steps li,
  .system-steps li + li {
    min-height: 150px;
    padding: 24px 0;
    border-right: 0;
    border-bottom: 1px solid rgba(16, 16, 16, 0.16);
  }

  .system-steps h3 {
    margin-top: 22px;
  }

  .clock-main strong {
    font-size: 70px;
  }

  .signal-grid {
    grid-template-columns: 1fr;
  }

  .signal-environment {
    grid-column: auto;
  }

  .app-section {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .app-copy {
    max-width: 650px;
  }

  .phone-stage {
    min-height: 820px;
  }

  .design-section {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .design-copy {
    position: static;
  }

  .design-image {
    min-height: 720px;
  }

  .design-image > img {
    min-height: 720px;
  }

  .connection-map {
    height: 500px;
  }

  .node-device,
  .node-app,
  .node-report {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }

  .node-device { top: 24px; }
  .node-app { top: 190px; }
  .node-report { top: 356px; }

  .map-line {
    top: auto;
    left: 50%;
    width: 1px;
    height: 48px;
  }

  .line-one { top: 142px; right: auto; }
  .line-two { top: 308px; right: auto; }

  .packet {
    top: 156px;
    left: calc(50% + 8px);
    animation-name: packet-flow-y;
  }

  .packet-two {
    top: 322px;
  }

  .privacy-points {
    grid-template-columns: 1fr;
  }

  .privacy-points > div {
    min-height: 170px;
  }

  .closing-section {
    min-height: 700px;
  }

  .closing-copy {
    width: 75vw;
  }

  .closing-device {
    right: -25%;
    width: 94vw;
  }
}

@keyframes packet-flow-y {
  from { transform: translateY(0); opacity: 0; }
  18%, 82% { opacity: 1; }
  to { transform: translateY(42px); opacity: 0; }
}

@media (max-width: 560px) {
  :root {
    --content: calc(100vw - 40px);
  }

  .site-header {
    padding: 0 20px;
  }

  .brand-crop {
    width: 112px;
    height: 28px;
  }

  .brand-crop img {
    width: 112px;
    height: 112px;
  }

  .hero {
    min-height: 770px;
  }

  .hero-copy {
    top: 12%;
    left: 20px;
    width: calc(100vw - 40px);
  }

  .eyebrow,
  .section-index {
    margin-bottom: 20px;
  }

  .hero h1 {
    font-size: clamp(48px, 14vw, 66px);
  }

  .hero-intro {
    max-width: 360px;
    margin-top: 24px;
    font-size: 14px;
    line-height: 1.7;
  }

  .hero-actions,
  .closing-actions {
    margin-top: 28px;
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .button {
    min-height: 48px;
  }

  .product-stage {
    top: 39%;
    right: -17%;
    width: 112vw;
    transform: rotate(-4deg) scale(1.04);
  }

  .device-pulse {
    width: 22px;
    height: 22px;
  }

  .floating-metric {
    width: 148px;
    min-height: 94px;
    padding: 14px;
  }

  .floating-metric strong {
    margin-top: 9px;
    font-size: 24px;
  }

  .metric-presence {
    right: 20px;
    bottom: 16%;
  }

  .metric-heart {
    bottom: 12%;
    left: 20px;
  }

  .metric-heart svg {
    margin-top: 10px;
  }

  .hero-foot {
    left: 20px;
    bottom: 20px;
  }

  .scroll-cue {
    right: 20px;
    bottom: 18px;
  }

  .system-section,
  .signals-section,
  .app-section,
  .design-section,
  .privacy-section,
  .closing-section,
  .site-footer {
    padding-right: 20px;
    padding-left: 20px;
  }

  .section-heading h2,
  .signals-intro h2,
  .app-copy h2,
  .design-copy h2,
  .privacy-copy h2,
  .closing-copy h2 {
    font-size: 42px;
  }

  .section-heading > p:last-child,
  .signals-intro > p:last-child,
  .app-copy > p:nth-of-type(2),
  .design-copy > p:last-child,
  .privacy-copy > p:last-child {
    margin-top: 22px;
    font-size: 14px;
  }

  .system-visual {
    height: 500px;
  }

  .system-photo {
    object-position: 38% center;
  }

  .sensor-hotspot {
    left: 31%;
    top: 66%;
    width: 42px;
    height: 42px;
  }

  .system-readout {
    right: 4%;
    left: 4%;
  }

  .system-readout > div {
    padding: 14px 8px;
  }

  .system-readout span {
    font-size: 7px;
  }

  .system-readout strong {
    font-size: 18px;
  }

  .signals-intro {
    text-align: left;
  }

  .signals-intro > p:last-child {
    margin-left: 0;
  }

  .night-clock {
    margin-top: 60px;
    padding-top: 36px;
  }

  .clock-main {
    grid-template-columns: 1fr 1fr;
    row-gap: 25px;
  }

  .clock-main strong {
    grid-column: 1 / -1;
    grid-row: 1;
    font-size: 56px;
    text-align: center;
  }

  .clock-main > span {
    grid-row: 2;
  }

  .stage-legend {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .signal-card {
    min-height: 350px;
    padding: 22px;
  }

  .signal-card header {
    flex-direction: column;
  }

  .signal-card footer {
    right: 22px;
    bottom: 22px;
    left: 22px;
  }

  .app-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .app-tabs button {
    min-width: 0;
    padding: 0 10px;
  }

  .phone-stage {
    min-height: 720px;
  }

  .phone-stage::before {
    width: 430px;
    height: 430px;
  }

  .phone-stage::after {
    width: 520px;
    height: 520px;
  }

  .phone {
    width: min(328px, calc(100vw - 48px));
    height: 674px;
    border-radius: 40px;
    transform: rotate(2deg);
  }

  .phone-screen {
    border-radius: 32px;
  }

  .app-panel {
    padding-right: 18px;
    padding-left: 18px;
  }

  .score-ring {
    width: 172px;
    height: 172px;
  }

  .design-image,
  .design-image > img {
    min-height: 570px;
  }

  .connection-map {
    margin-top: 60px;
  }

  .node-device { top: 24px; }
  .node-app { top: 190px; }
  .node-report { top: 356px; }

  .line-one { top: 142px; height: 48px; }
  .line-two { top: 308px; height: 48px; }

  .closing-section {
    min-height: 680px;
    align-items: flex-end;
    padding-bottom: 80px;
  }

  .closing-copy {
    width: 100%;
  }

  .closing-device {
    top: -5%;
    right: -70%;
    width: 135vw;
    opacity: 0.56;
  }

  .closing-device img {
    clip-path: inset(0 0 22% 0);
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .footer-meta {
    flex-direction: column;
    gap: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .has-js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   v1.2.0 — visual quality upgrade
   ============================================================ */

::selection {
  background: var(--orange);
  color: #080808;
}

/* film grain overlay */
body::after {
  content: "";
  position: fixed;
  inset: -50%;
  z-index: 90;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 1.2s steps(4) infinite;
}

@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-1.2%, 0.8%); }
  50% { transform: translate(0.9%, -1.1%); }
  75% { transform: translate(-0.7%, -0.6%); }
  100% { transform: translate(0, 0); }
}

/* scroll progress */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  height: 2px;
  pointer-events: none;
}

.scroll-progress i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--orange), #ff8a5c);
  box-shadow: 0 0 12px rgba(255, 90, 31, 0.55);
  transform: scaleX(0);
  transform-origin: left;
}

/* hero particles */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  mix-blend-mode: screen;
}

/* hero headline line reveal */
.hero h1 .line-mask {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
  margin-bottom: -0.06em;
}

.hero h1 .line {
  display: block;
  color: var(--paper);
  transform: translateY(112%);
  animation: line-up 950ms cubic-bezier(0.22, 1, 0.36, 1) 150ms forwards;
}

.hero h1 .line-mask:nth-child(2) .line {
  animation-delay: 320ms;
}

.hero h1 .line-accent {
  color: var(--orange);
}

@keyframes line-up {
  to { transform: translateY(0); }
}

.hero-intro,
.hero-actions {
  animation: hero-fade-up 900ms cubic-bezier(0.22, 1, 0.36, 1) 620ms both;
}

.hero-actions {
  animation-delay: 780ms;
}

@keyframes hero-fade-up {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

/* magnetic button + shine sweep */
[data-magnetic] {
  will-change: transform;
}

.button-primary {
  position: relative;
  overflow: hidden;
}

.button-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  width: 55%;
  height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: skewX(-20deg);
  transition: left 600ms ease;
}

.button-primary:hover::after {
  left: 130%;
}

/* ticker strip */
.ticker {
  overflow: hidden;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  background: #070707;
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 38px;
  width: max-content;
  color: rgba(255, 255, 255, 0.42);
  font: 500 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.16em;
  animation: ticker-scroll 36s linear infinite;
}

.ticker:hover .ticker-track {
  animation-play-state: paused;
}

.ticker-track i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--orange);
  opacity: 0.7;
}

@keyframes ticker-scroll {
  to { transform: translateX(-50%); }
}

/* night clock */
.clock-main > span small {
  display: block;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.32);
  font-size: 9px;
  letter-spacing: 0.2em;
}

.clock-main strong span {
  font: inherit;
}

/* hypnogram */
.hypnogram {
  position: relative;
  height: 190px;
  margin-top: 52px;
  cursor: crosshair;
}

.hypnogram svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.hypnogram .hyp-grid line {
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.hypnogram .hyp-label {
  fill: rgba(255, 255, 255, 0.38);
  font: 500 9px ui-monospace, SFMono-Regular, Menlo, monospace;
}

.hypnogram .hyp-seg {
  opacity: 0;
  transition: opacity 160ms ease;
}

.hypnogram.is-drawn .hyp-seg {
  opacity: 1;
}

.hypnogram .hyp-seg rect {
  rx: 2px;
}

.hypnogram .hyp-seg.is-dim {
  opacity: 0.25;
}

.hypnogram .hyp-step {
  fill: none;
  stroke: rgba(255, 255, 255, 0.5);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: var(--len, 2400);
  stroke-dashoffset: var(--len, 2400);
}

.hypnogram.is-drawn .hyp-step {
  animation: hyp-draw 2.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes hyp-draw {
  to { stroke-dashoffset: 0; }
}

.hyp-playhead {
  position: absolute;
  top: 0;
  bottom: 24px;
  width: 1px;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.35);
  opacity: 0;
  pointer-events: none;
}

.hypnogram:hover .hyp-playhead {
  opacity: 1;
}

.hypnogram-tooltip {
  position: absolute;
  z-index: 5;
  top: -14px;
  padding: 10px 12px;
  transform: translate(-50%, -100%);
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(8, 8, 8, 0.94);
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.5);
  color: #fff;
  font: 500 10px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space: nowrap;
  pointer-events: none;
}

.hypnogram-tooltip small {
  display: block;
  color: rgba(255, 255, 255, 0.45);
  font-size: 9px;
}

.hypnogram-tooltip b {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  vertical-align: 1px;
}

/* signal cards — cursor glow + hover lift */
.signal-card {
  --mx: 50%;
  --my: 50%;
  isolation: isolate;
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1), border-color 320ms ease;
}

.signal-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(122, 231, 215, 0.09), transparent 62%);
  opacity: 0;
  transition: opacity 320ms ease;
  pointer-events: none;
}

.signal-card:hover {
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-4px);
}

.signal-card:hover::before {
  opacity: 1;
}

.signal-card header strong span {
  font: inherit;
}

/* heart wave upgrade */
.signal-wave .wave-area {
  fill: url(#heart-fill);
  stroke: none;
  animation: none;
  stroke-dasharray: none;
  opacity: 0;
  transition: opacity 900ms ease 1.4s;
}

.is-visible .signal-wave .wave-area {
  opacity: 1;
}

.signal-wave .wave-line {
  stroke: url(#heart-stroke);
  filter: drop-shadow(0 0 6px rgba(122, 231, 215, 0.45));
}

.signal-wave .wave-dot {
  fill: #fff;
  stroke: none;
  animation: none;
  stroke-dasharray: none;
  filter: drop-shadow(0 0 8px rgba(122, 231, 215, 0.9));
}

/* breath word */
.breath-word {
  position: absolute;
  top: 51%;
  left: 50%;
  z-index: 2;
  transform: translate(-50%, -50%);
  color: #041512;
  font-size: 13px;
  font-weight: 600;
  animation: breath-word-pulse 5.2s ease-in-out infinite;
}

@keyframes breath-word-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(0.9); }
  50% { transform: translate(-50%, -50%) scale(1.1); }
}

/* environment bars — hover highlight */
.environment-bars i {
  transition: opacity 200ms ease, filter 200ms ease;
}

.environment-bars:hover i {
  opacity: 0.3;
}

.environment-bars i:hover {
  opacity: 1 !important;
  filter: drop-shadow(0 0 10px rgba(255, 90, 31, 0.6));
}

/* app tabs — auto-cycle progress */
.app-tabs button {
  position: relative;
  overflow: hidden;
  transition: border-color 200ms ease, color 200ms ease;
}

.app-tabs button:hover {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.app-tabs button[aria-selected="true"] {
  color: #090909;
}

.app-tabs button .tab-progress {
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: rgba(9, 9, 9, 0.45);
  transform: scaleX(0);
  transform-origin: left;
}

.app-tabs button[aria-selected="true"] .tab-progress.is-running {
  animation: tab-progress var(--cycle, 5000ms) linear forwards;
}

@keyframes tab-progress {
  to { transform: scaleX(1); }
}

/* score ring — real SVG ring */
.score-ring {
  position: relative;
  border: 0;
  box-shadow: none;
  transform: none;
}

.score-ring > * {
  transform: none;
}

.score-ring svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.score-ring .ring-bg,
.score-ring .ring-val {
  fill: none;
  stroke-width: 5;
}

.score-ring .ring-bg {
  stroke: rgba(157, 140, 255, 0.16);
}

.score-ring .ring-val {
  stroke: var(--violet);
  stroke-linecap: round;
  stroke-dasharray: 339.3;
  stroke-dashoffset: 339.3;
  filter: drop-shadow(0 0 8px rgba(157, 140, 255, 0.55));
  transition: stroke-dashoffset 1.6s cubic-bezier(0.22, 1, 0.36, 1) 300ms;
}

.score-ring.is-scored .ring-val {
  stroke-dashoffset: var(--ring-offset, 47.5);
}

/* phone 3d tilt + glare */
.phone-stage {
  perspective: 1400px;
}

.phone {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  transform: rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) rotate(4deg);
  transition: transform 450ms cubic-bezier(0.22, 1, 0.36, 1);
  transform-style: preserve-3d;
}

.phone-glare {
  position: absolute;
  inset: 9px;
  z-index: 5;
  border-radius: 36px;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.07) 46%, rgba(255, 255, 255, 0.12) 50%, rgba(255, 255, 255, 0.07) 54%, transparent 70%);
  background-size: 250% 250%;
  background-position: calc(50% + var(--glare-x, 0%)) 50%;
  pointer-events: none;
}

/* floating metrics glow */
.floating-metric {
  isolation: isolate;
}

.floating-metric::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 6px;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), rgba(122, 231, 215, 0.1), transparent 65%);
  opacity: 0;
  transition: opacity 260ms ease;
  pointer-events: none;
}

.floating-metric:hover::before {
  opacity: 1;
}

/* connection map — marching dashes + node hover */
.map-line {
  height: 2px;
  background: repeating-linear-gradient(90deg, rgba(122, 231, 215, 0.55) 0 7px, transparent 7px 16px);
  animation: dash-march 900ms linear infinite;
}

@keyframes dash-march {
  to { background-position: 16px 0; }
}

.map-node {
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1), border-color 320ms ease, box-shadow 320ms ease;
}

.map-node:hover {
  transform: translateY(calc(-50% - 5px));
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.node-app:hover {
  transform: translate(-50%, calc(-50% - 5px));
}

/* staggered reveals for grids */
.has-js .system-steps li[data-reveal]:nth-child(2),
.has-js .privacy-points div[data-reveal]:nth-child(2),
.has-js .signal-grid .signal-card:nth-child(2) {
  transition-delay: 120ms;
}

.has-js .system-steps li[data-reveal]:nth-child(3),
.has-js .privacy-points div[data-reveal]:nth-child(3),
.has-js .signal-grid .signal-card:nth-child(3) {
  transition-delay: 240ms;
}

/* reveal — add subtle blur-in */
.has-js [data-reveal] {
  filter: blur(6px);
  transition: opacity 760ms ease, transform 760ms cubic-bezier(0.22, 1, 0.36, 1), filter 760ms ease;
}

.has-js [data-reveal].is-visible {
  filter: blur(0);
}

/* closing headline shimmer */
.closing-copy h2 {
  background: linear-gradient(100deg, #fff 38%, rgba(255, 255, 255, 0.35) 50%, #fff 62%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: text-shimmer 6s ease-in-out infinite;
}

@keyframes text-shimmer {
  0%, 100% { background-position: 110% 0; }
  50% { background-position: -10% 0; }
}

@media (max-width: 860px) {
  .hypnogram {
    height: 150px;
  }

  .ticker-track {
    animation-duration: 26s;
  }
}

@media (max-width: 560px) {
  .hypnogram {
    height: 128px;
    margin-top: 36px;
  }

  .hypnogram-tooltip {
    font-size: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body::after {
    animation: none;
  }

  .hero h1 .line {
    transform: none;
    animation: none;
  }

  .hero-intro,
  .hero-actions {
    animation: none;
    opacity: 1;
  }

  .hypnogram .hyp-seg,
  .signal-wave .wave-area {
    opacity: 1;
  }

  .hypnogram .hyp-step {
    stroke-dashoffset: 0;
  }

  .score-ring .ring-val {
    stroke-dashoffset: var(--ring-offset, 47.5);
  }

  .ticker-track {
    animation: none;
  }

  .closing-copy h2 {
    animation: none;
  }

  .has-js [data-reveal] {
    filter: none;
  }
}
