:root {
  --bg: #000;
  --surface: #0b0b0c;
  --text: #f5f5f7;
  --muted: #a1a1a6;
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.32);
  --silver: #c9ccd1;
  --glow: #5cf08a;
  --accent: #c9ccd1;
  --radius: 22px;
  --font: "Inter", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --max: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
}
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; }
p { margin: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
  height: 52px; display: flex; align-items: center; gap: 24px;
}
.wordmark { font-weight: 600; font-size: 19px; letter-spacing: 0.02em; text-decoration: none; }
.nav-links { display: flex; gap: 24px; margin-left: auto; }
.nav-links a { font-size: 13px; color: var(--muted); text-decoration: none; }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--text); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 22px; border-radius: 999px;
  background: var(--text); color: #000; border: 0;
  font: 500 15px/1 var(--font); text-decoration: none; cursor: pointer;
  transition: background 0.2s ease;
}
.btn:hover { background: #fff; }
.btn:focus-visible, .swatches input:focus-visible + .swatch, a:focus-visible {
  outline: 2px solid var(--glow); outline-offset: 3px;
}
.btn-small { min-height: 30px; padding: 0 14px; font-size: 13px; }
.btn-wide { width: 100%; min-height: 52px; font-size: 17px; }
.link-arrow { color: var(--silver); text-decoration: none; font-size: 17px; }
.link-arrow::after { content: " ›"; }
.link-arrow:hover { text-decoration: underline; }

.eyebrow {
  color: var(--glow); font-size: 14px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 12px;
}

/* Hero */
.hero {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(56px, 10vw, 110px) var(--gutter) 40px;
  text-align: center;
}
.hero h1 { font-size: clamp(44px, 9vw, 96px); }
.lede { color: var(--muted); font-size: clamp(19px, 2.6vw, 28px); margin-top: 16px; }
.hero-actions {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 16px 28px; margin-top: 28px;
}
.hero-figure { margin-top: clamp(24px, 5vw, 48px); }
.hero-img {
  width: 100%; max-width: 980px; margin: 0 auto;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, #000 60%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, #000 60%, transparent 100%);
  animation: float 7s ease-in-out infinite;
}
.hero-price { color: var(--muted); margin-top: 8px; font-size: 15px; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Stats */
.stats {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); margin: 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.stats-grid > div { padding: 32px 16px; text-align: center; }
.stats-grid > div + div { border-left: 1px solid var(--line); }
.stats-grid dt { color: var(--muted); font-size: 13px; order: 2; }
.stats-grid dd {
  margin: 0 0 6px; font-size: clamp(34px, 5vw, 52px); font-weight: 600;
  letter-spacing: -0.04em; line-height: 1;
}
.stats-grid dd span { font-size: 0.45em; color: var(--muted); margin-left: 3px; letter-spacing: 0; }
.stats-grid > div { display: flex; flex-direction: column-reverse; }

/* Features */
.feature {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(72px, 12vw, 140px) var(--gutter) 0;
  display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 5vw, 64px); align-items: center;
}
.feature-reverse { grid-template-columns: 7fr 5fr; }
.feature-reverse .feature-copy { order: 2; }
.feature h2 { font-size: clamp(34px, 5vw, 56px); margin-bottom: 20px; }
.feature-copy > p:last-child { color: var(--muted); }
.feature-figure, .buy-figure {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface);
}
.feature-figure img, .buy-figure img { width: 100%; }

/* Sensing */
.sensing {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(72px, 12vw, 140px) var(--gutter) 0; text-align: center;
}
.sensing h2 { font-size: clamp(34px, 5vw, 56px); }
.section-lede { color: var(--muted); max-width: 640px; margin: 20px auto 0; }
.sensor-grid {
  list-style: none; padding: 0; margin: 48px 0 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: left;
}
.sensor-grid li {
  border: 1px solid var(--line); border-radius: 18px; padding: 24px;
  background: linear-gradient(180deg, rgba(92, 240, 138, 0.05), transparent 60%);
}
.sensor-grid h3 { font-size: 19px; margin-bottom: 8px; letter-spacing: -0.02em; }
.sensor-grid h3::before {
  content: ""; display: block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--glow); box-shadow: 0 0 12px var(--glow); margin-bottom: 16px;
}
.sensor-grid p { color: var(--muted); font-size: 15px; }

/* Buy */
.buy {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(72px, 12vw, 140px) var(--gutter) clamp(72px, 10vw, 120px);
}
.buy > h2 { font-size: clamp(34px, 5vw, 56px); margin-bottom: 40px; }
.buy-grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.buy-figure img[hidden] { display: none; }
.buy-panel {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  background: var(--surface);
}
.swatches { border: 0; margin: 0 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 14px; }
.swatches legend { width: 100%; padding: 0; margin-bottom: 14px; color: var(--muted); font-size: 15px; }
.swatches legend strong { color: var(--text); font-weight: 500; }
.swatches input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.swatch {
  width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--line-strong);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.35), inset 0 -2px 4px rgba(0, 0, 0, 0.35);
  position: relative;
}
.swatches input:checked + .swatch::after {
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  border: 2px solid var(--accent);
}
.swatch-titanium { background: linear-gradient(135deg, #e7e8ea, #8e9298 55%, #c9ccd1); }
.swatch-onyx { background: linear-gradient(135deg, #3a3a3d, #121213 60%, #2a2a2c); }
.swatch-gold { background: linear-gradient(135deg, #f1dfbf, #b99a6b 55%, #e0c99f); }
.buy[data-colorway="titanium"] { --accent: #c9ccd1; }
.buy[data-colorway="onyx"] { --accent: #a9a9b0; }
.buy[data-colorway="gold"] { --accent: #dcc497; }
.buy-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.buy-head h3 { font-size: 26px; }
.price-badge {
  flex: none; padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--accent); color: var(--accent);
  font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums;
}
#cw-desc { color: var(--muted); min-height: 4.5em; }
.buy-includes {
  list-style: none; margin: 24px 0; padding: 20px 0 0;
  border-top: 1px solid var(--line); color: var(--muted); font-size: 15px;
}
.buy-includes li + li { margin-top: 6px; }
.buy-includes li::before { content: "✓"; color: var(--glow); margin-right: 10px; }
.preorder-note { margin-top: 14px; color: var(--muted); font-size: 14px; text-align: center; }

/* Footer */
.footer {
  border-top: 1px solid var(--line); padding: 28px var(--gutter);
  text-align: center; color: #6e6e73; font-size: 12px;
}
.footer p + p { margin-top: 4px; }

/* Responsive */
@media (max-width: 860px) {
  .feature, .feature-reverse, .buy-grid { grid-template-columns: 1fr; }
  .feature-reverse .feature-copy { order: 0; }
  .sensor-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid > div + div { border-left: 0; }
  .stats-grid > div:nth-child(even) { border-left: 1px solid var(--line); }
  .stats-grid > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .nav-links { display: none; }
  .nav-inner .btn-small { margin-left: auto; }
  .sensor-grid { grid-template-columns: 1fr; }
  .buy-panel { padding: 22px; }
  .buy-head h3 { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-img { animation: none; }
}
