/* =========================================================================
   AReason One — launch landing page
   Monochrome, premium industrial. No raster images: device is CSS/SVG.
   ========================================================================= */

/* ---- Design tokens ----------------------------------------------------- */
:root {
  /* Surfaces — warm near-white, deep black, charcoal, neutral gray */
  --bg:        #F5F2EC;
  --bg-alt:    #EFECE4;
  --ink:       #0A0A0A;
  --ink-2:     #1C1C1E;
  --gray:      #6E6B66;
  --line:      rgba(10, 10, 10, 0.10);
  --line-soft: rgba(10, 10, 10, 0.06);

  /* Inverted (dark) sections */
  --black:        #0A0A0A;
  --black-2:      #111114;
  --on-black:     #ECE9E2;
  --on-black-dim: #8A8680;

  /* Device screen UI (color only here, restrained) */
  --screen-bg:    #08080A;
  --screen-ink:   #EDEAE3;
  --screen-dim:   #6B6864;
  --screen-track: rgba(255, 255, 255, 0.10);
  --screen-card:  #151A14;     /* dark green-tinted card */
  --accent-active:  #A6C07C;   /* sage — running / complete / progress */
  --accent-warn:    #B0844E;   /* muted amber — needs attention */
  --accent-neutral: #8A8680;   /* neutral gray */

  /* Clawd (official Anthropic mascot) palette */
  --clawd:       #D87656;      /* body orange */
  --clawd-shade: #BE684D;      /* shading dark orange */

  /* Typography */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --font-screen: "DejaVu Mono", ui-monospace, "SF Mono", Menlo, monospace;   /* device screen mono */
  --font-screen-ui: "Styrene", "Inter", -apple-system, sans-serif;            /* device screen UI sans */
  --font-device-serif: "Tiempos", Georgia, "Times New Roman", serif;          /* device big numerals */

  /* Fluid type scale */
  --fs-hero:  clamp(2.6rem, 7vw, 5.2rem);
  --fs-title: clamp(1.9rem, 4.6vw, 3.4rem);
  --fs-lede:  clamp(1.02rem, 1.5vw, 1.2rem);

  /* Layout */
  --maxw: 1200px;
  --pad:  clamp(4.5rem, 9vh, 8rem);
  --radius: 22px;
}

/* ---- Device screen fonts (same faces the real Clawdmeter UI uses) ------ */
@font-face {
  font-family: "Tiempos";
  src: url("assets/TiemposText-400-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DejaVu Mono";
  src: url("assets/DejaVuSansMono.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Styrene";
  src: url("assets/StyreneB-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---- Reset ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 4px; }

/* ---- Layout helpers ---------------------------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 820px; }
@media (min-width: 768px) { .container { padding: 0 40px; } }

.section { padding: var(--pad) 0; }
.section[id] { scroll-margin-top: 84px; }

.section__title {
  font-size: var(--fs-title);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 20px;
}
.section__lede {
  font-size: var(--fs-lede);
  color: var(--gray);
  line-height: 1.55;
  margin: 0;
  max-width: 56ch;
}

/* ---- Buttons ----------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 12px 22px;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn--solid { background: var(--ink); color: var(--bg); }
.btn--solid:hover { background: #000; transform: translateY(-1px); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-1px); }
.btn--sm { padding: 8px 16px; font-size: 0.85rem; }
.btn--lg { padding: 16px 28px; font-size: 1.02rem; }
.btn:active { transform: translateY(0); }
.btn--lg { width: 100%; }

/* ---- Skip link --------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 100;
}
.skip-link:focus { left: 8px; }

/* ---- Navigation -------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 242, 236, 0.82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
@media (min-width: 768px) { .nav__inner { padding: 14px 40px; } }
.brand { font-weight: 600; font-size: 1.05rem; letter-spacing: -0.02em; }
.nav__links { display: flex; align-items: center; gap: 26px; }
.nav__links a { font-size: 0.9rem; color: var(--gray); transition: color 0.2s ease; }
.nav__links a:hover { color: var(--ink); }
.nav__links .btn { color: var(--ink); }
.nav__cta { display: none; }
@media (max-width: 720px) {
  .nav__links { display: none; }
  .nav__cta { display: inline-flex; }
}

/* ---- Hero -------------------------------------------------------------- */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 96px 0 64px;
  position: relative;
}
.hero__grid {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}
@media (min-width: 768px) { .hero__grid { padding: 0 40px; } }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gray);
  margin: 0 0 22px;
}
.hero__title {
  font-size: var(--fs-hero);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.98;
  margin: 0 0 24px;
}
.hero__lede {
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  color: var(--ink-2);
  line-height: 1.5;
  max-width: 46ch;
  margin: 0 0 32px;
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.hero__note { font-size: 0.85rem; color: var(--gray); margin: 0; }

.hero__stage {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 320px;
  transform: translateY(var(--py, 0px));
  transition: transform 0.15s linear;
  will-change: transform;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  width: 1px;
  height: 46px;
}
.scroll-cue__line {
  display: block;
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, var(--gray) 35%, var(--gray) 65%, transparent);
}

/* ---- Device (CSS/SVG, no raster images) -------------------------------- */
.device {
  position: relative;
  width: clamp(220px, 30vw, 320px);
  transform: perspective(1400px) rotateX(7deg) rotateY(-11deg);
  transform-style: preserve-3d;
  will-change: transform;
}
.device--sm { width: 150px; }
.device--md { width: 210px; }
.device--lg { width: min(380px, 72vw); }

.device__body {
  position: relative;
  background: linear-gradient(155deg, #242427 0%, #131314 48%, #0A0A0B 100%);
  border-radius: 26px;
  padding: 22px 22px 16px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    inset 0 -2px 6px rgba(0, 0, 0, 0.6),
    0 1px 2px rgba(0, 0, 0, 0.4),
    0 30px 50px -22px rgba(0, 0, 0, 0.55);
}
.device--sm .device__body { padding: 12px; border-radius: 16px; }
.device--md .device__body { padding: 16px; border-radius: 20px; }
.device--lg .device__body { padding: 26px; border-radius: 30px; }

.device__screen {
  position: relative;
  background: var(--screen-bg);
  border-radius: 14px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), inset 0 0 24px rgba(0, 0, 0, 0.8);
}
.device--sm .device__screen { border-radius: 9px; }
.device--md .device__screen { border-radius: 12px; }
.device--lg .device__screen { border-radius: 18px; }

.screen { position: absolute; inset: 0; }
.screen-state {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px 16px;
  opacity: 1;
}
.device--sm .screen-state { padding: 9px 10px; }
.device--md .screen-state { padding: 16px 18px; }
.device--lg .screen-state { padding: 24px 28px; }

/* JS takes over: fade between states */
.screen.js .screen-state {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.screen.js .screen-state.is-active { opacity: 1; transform: none; }

.screen__top { display: flex; align-items: center; gap: 7px; }
.screen__top > :last-child { margin-left: auto; }
.screen__label {
  font-family: var(--font-screen);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--screen-dim);
}

/* Clawd mascot (official pixel art) + status icons in the screen chrome */
.screen__mascot {
  width: 20px;
  height: auto;
  image-rendering: pixelated;
  flex: none;
}
.device--sm .screen__mascot { width: 12px; }
.device--md .screen__mascot { width: 24px; }
.device--lg .screen__mascot { width: 28px; }

.screen__battery {
  width: 15px;
  height: auto;
  filter: invert(0.82); /* Lucide black → light gray on the dark screen */
  opacity: 0.85;
  flex: none;
}
.device--sm .screen__battery { display: none; }
.device--lg .screen__battery { width: 19px; }

/* Battery group: icon + percentage, pushed to the top-right corner */
.screen__batt { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.screen__batt-pct {
  font-family: var(--font-screen);
  font-size: 8px;
  color: var(--screen-dim);
}
.device--lg .screen__batt-pct { font-size: 10px; }

/* Full-screen Clawd animation (companion / buddy states) */
.screen__main { min-height: 0; }
.screen__anim {
  flex: 1;
  min-height: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  image-rendering: pixelated;
}

/* Column layout for the richer custom screens */
.screen__main--col {
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 5px;
}

/* -- Custom screen 1: Usage (session + weekly) -- */
.screen-state[data-type="usage"] .screen__value--serif { font-size: 2em; }
.screen__cap {
  font-family: var(--font-screen-ui);
  font-size: 9px;
  color: var(--screen-dim);
}
.screen__week {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 3px;
}
.screen__week-pct {
  font-family: var(--font-device-serif);
  font-size: 13px;
  color: var(--screen-ink);
}
.screen__week .screen__sub { flex: 1; }
.screen__conn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-family: var(--font-screen-ui);
  font-size: 8px;
  color: var(--screen-dim);
}
.screen__conn::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-active);
}
.device--lg .screen__cap { font-size: 12px; }
.device--lg .screen__week-pct { font-size: 17px; }
.device--lg .screen__conn { font-size: 10px; }

/* -- Custom screen 2: Companion (animated Clawd + progress rings) -- */
.screen__title {
  font-family: var(--font-device-serif);
  font-size: 14px;
  text-align: center;
  color: var(--screen-ink);
  letter-spacing: -0.01em;
}
.screen__rings { display: flex; justify-content: center; gap: 18px; }
.ring { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.ring__donut {
  position: relative;
  width: 40px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(var(--accent-active) calc(var(--p) * 1%), var(--screen-track) 0);
  display: grid;
  place-items: center;
}
.ring__donut::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--screen-bg);
}
.ring__v {
  position: relative;
  font-family: var(--font-screen-ui);
  font-size: 9px;
  font-weight: 600;
  color: var(--screen-ink);
}
.ring__l {
  font-family: var(--font-screen-ui);
  font-size: 7px;
  color: var(--screen-dim);
}
.device--lg .screen__title { font-size: 20px; }
.device--lg .screen__rings { gap: 26px; }
.device--lg .ring__donut { width: 56px; }
.device--lg .ring__v { font-size: 12px; }
.device--lg .ring__l { font-size: 9px; }

/* -- Custom screen 3: Cards (session / weekly) + activity status -- */
.screen__cards {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-height: 0;
}
.screen-card {
  background: var(--screen-card);
  border-radius: 8px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.screen-card__row { display: flex; justify-content: space-between; align-items: baseline; }
.screen-card__pct {
  font-family: var(--font-device-serif);
  font-size: 15px;
  color: var(--screen-ink);
}
.screen-card__tag {
  font-family: var(--font-screen-ui);
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--screen-dim);
  background: rgba(255, 255, 255, 0.07);
  padding: 2px 7px;
  border-radius: 99px;
}
.screen-card__sub {
  font-family: var(--font-screen-ui);
  font-size: 8px;
  color: var(--screen-dim);
}
.screen__status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-family: var(--font-screen-ui);
  font-size: 9px;
  color: var(--clawd);
}
.device--lg .screen-card { padding: 12px 14px; gap: 6px; border-radius: 10px; }
.device--lg .screen-card__pct { font-size: 21px; }
.device--lg .screen-card__tag { font-size: 9px; }
.device--lg .screen-card__sub { font-size: 10px; }
.device--lg .screen__status { font-size: 11px; }
.device--sm .screen__label { font-size: 7px; letter-spacing: 0.06em; }
.device--lg .screen__label { font-size: 13px; }

.screen__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-neutral);
  flex: none;
}
.device--sm .screen__dot { width: 4px; height: 4px; }
.device--lg .screen__dot { width: 9px; height: 9px; }
.screen__dot[data-accent="active"]  { background: var(--accent-active); box-shadow: 0 0 8px var(--accent-active); }
.screen__dot[data-accent="success"] { background: var(--accent-active); box-shadow: 0 0 8px var(--accent-active); }
.screen__dot[data-accent="warn"]    { background: var(--accent-warn); box-shadow: 0 0 8px var(--accent-warn); }
.screen__dot[data-accent="neutral"] { background: var(--accent-neutral); }

.screen__main { flex: 1; display: flex; align-items: center; }
.screen__value {
  font-family: var(--font-screen);
  font-size: 15px;
  font-weight: 500;
  color: var(--screen-ink);
  letter-spacing: -0.01em;
  line-height: 1;
}
.device--sm .screen__value { font-size: 11px; }
.device--md .screen__value { font-size: 19px; }
.device--lg .screen__value { font-size: clamp(22px, 5vw, 30px); }

/* Big serif numerals — the Clawdmeter usage readout face */
.screen__value--serif {
  font-family: var(--font-device-serif);
  font-weight: 400;
  font-size: 1.5em;
  letter-spacing: -0.02em;
}

/* State accents colour the readout (dot-free chrome on JS-cycled screens) */
.screen-state[data-accent="warn"] .screen__value { color: var(--accent-warn); }
.screen-state[data-accent="success"] .screen__value { color: var(--accent-active); }

.screen__bar {
  height: 3px;
  background: var(--screen-track);
  border-radius: 99px;
  overflow: hidden;
}
.device--sm .screen__bar { height: 2px; }
.device--lg .screen__bar { height: 4px; }
.screen__bar span { display: block; height: 100%; background: var(--accent-active); border-radius: 99px; }

.screen__sub {
  font-family: var(--font-screen);
  font-size: 10px;
  color: var(--screen-dim);
  letter-spacing: 0.04em;
}
.device--sm .screen__sub { font-size: 7px; }
.device--lg .screen__sub { font-size: 13px; }

.device__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 4px 2px;
}
.device--sm .device__footer { padding: 8px 2px 0; }
.device--md .device__footer { padding: 12px 3px 0; }
.device--lg .device__footer { padding: 18px 6px 2px; }

.device__button {
  position: relative;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #3A3A3C, #070708 72%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 1px 1px rgba(0, 0, 0, 0.6);
  transition: transform 0.15s ease;
}
.device__button::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, rgba(255, 255, 255, 0.14), transparent 60%);
}
.device__button:hover { transform: scale(0.94); }
.device--sm .device__button { width: 9px; height: 9px; }
.device--md .device__button { width: 13px; height: 13px; }
.device--lg .device__button { width: 20px; height: 20px; }

.device__led {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-active);
  box-shadow: 0 0 8px var(--accent-active);
  animation: led-pulse 2.8s ease-in-out infinite;
}
.device--sm .device__led { display: none; }
.device--md .device__led { width: 4px; height: 4px; }
.device--lg .device__led { width: 6px; height: 6px; }
@keyframes led-pulse { 0%, 100% { opacity: 0.35; } 50% { opacity: 0.9; } }

.device__shadow {
  position: absolute;
  left: 50%;
  bottom: -7%;
  width: 80%;
  height: 22px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.45), transparent 70%);
  filter: blur(6px);
  z-index: -1;
}
.device--sm .device__shadow { display: none; }

/* Gentle, barely-perceptible float on the hero device only */
.hero .device { animation: device-float 6s ease-in-out infinite; }
@keyframes device-float {
  0%, 100% { transform: perspective(1400px) rotateX(7deg) rotateY(-11deg) translateY(0); }
  50%      { transform: perspective(1400px) rotateX(7deg) rotateY(-11deg) translateY(-6px); }
}
.desk .device { transform: perspective(1200px) rotateX(4deg) rotateY(-6deg); }

/* ---- Product in context (CSS desk scene) ------------------------------- */
.context .container { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 50px; align-items: center; }
.context__scene { display: flex; justify-content: center; }
.desk {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 4vw, 46px);
  padding: 30px 16px 34px;
  width: 100%;
}
.desk::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 16px;
  height: 1px;
  background: var(--line);
}
.desk__laptop { position: relative; width: clamp(160px, 26vw, 250px); display: flex; flex-direction: column; align-items: center; }
.desk__laptop-screen {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 1.5px solid rgba(10, 10, 10, 0.32);
  border-radius: 8px 8px 3px 3px;
  background: rgba(10, 10, 10, 0.02);
}
.desk__laptop-base {
  display: block;
  width: 122%;
  margin-top: -1px;
  height: 9px;
  background: rgba(10, 10, 10, 0.2);
  clip-path: polygon(7% 0, 93% 0, 100% 100%, 0 100%);
}
.desk__keyboard {
  width: clamp(120px, 19vw, 190px);
  aspect-ratio: 3 / 1;
  border: 1.5px solid rgba(10, 10, 10, 0.26);
  border-radius: 8px;
  display: flex;
  gap: 4px;
  padding: 8px;
  align-items: center;
}
.desk__keyboard span { flex: 1; height: 72%; border-radius: 3px; background: rgba(10, 10, 10, 0.07); }
.desk__notebook {
  width: clamp(64px, 9vw, 96px);
  aspect-ratio: 3 / 4;
  border: 1.5px solid rgba(10, 10, 10, 0.24);
  border-radius: 4px;
  background: rgba(10, 10, 10, 0.02);
  position: relative;
}
.desk__notebook::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 12px;
  right: 12px;
  height: 1px;
  background: rgba(10, 10, 10, 0.18);
  box-shadow: 0 6px 0 rgba(10, 10, 10, 0.12), 0 12px 0 rgba(10, 10, 10, 0.12);
}
.context__copy .section__title { margin-bottom: 18px; }

/* ---- Ambient display --------------------------------------------------- */
.display__head { max-width: 720px; margin-bottom: 56px; }
.display__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.display__device { display: flex; justify-content: center; }
.display__list { display: flex; flex-direction: column; }
.display__list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  font-size: 1rem;
}
.display__list li:last-child { border-bottom: 1px solid var(--line); }
.display__list-label { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gray); }
.display__list-value { font-weight: 500; color: var(--ink); }

/* ---- Multi-AI ---------------------------------------------------------- */
.multi { text-align: center; }
.multi .section__title, .multi .section__lede { margin-left: auto; margin-right: auto; }
.multi .section__lede { max-width: 52ch; }
.multi__labels {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  justify-content: center;
  margin: 40px 0 28px;
}
.multi__labels li {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.015);
}
.multi__tag { font-size: 1.05rem; color: var(--gray); }

/* ---- Interaction (dark) ------------------------------------------------ */
.interaction { background: var(--black-2); color: var(--on-black); }
.interaction .section__title { color: var(--on-black); }
.interaction__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 50px; align-items: center; }
.interaction__button { display: flex; justify-content: center; }
.big-button { position: relative; display: block; width: clamp(150px, 22vw, 210px); aspect-ratio: 1; }
.big-button__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(236, 233, 226, 0.22);
  box-shadow: inset 0 0 0 1px rgba(236, 233, 226, 0.04);
}
.big-button__core {
  position: absolute;
  inset: 16%;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #2A2A2C, #070708 72%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), inset 0 -3px 8px rgba(0, 0, 0, 0.7), 0 12px 34px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s ease;
}
.big-button__core::after {
  content: "";
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, rgba(255, 255, 255, 0.14), transparent 60%);
}
.big-button:hover .big-button__core { transform: scale(0.96); }
.interaction__steps { counter-reset: step; display: flex; flex-direction: column; gap: 10px; margin: 26px 0 22px; }
.interaction__steps li {
  counter-increment: step;
  display: flex;
  align-items: baseline;
  gap: 18px;
  font-size: clamp(1.15rem, 2.4vw, 1.7rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--on-black);
}
.interaction__steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--on-black-dim);
  letter-spacing: 0.1em;
}
.interaction__planned {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--on-black-dim);
  border: 1px solid rgba(236, 233, 226, 0.18);
  padding: 7px 12px;
  border-radius: 999px;
}

/* ---- Vision / philosophy (dark) ---------------------------------------- */
.vision { background: var(--black); color: var(--on-black); text-align: center; }
.vision__line {
  font-size: clamp(1.6rem, 4.4vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 10px;
}
.vision__sub { margin-top: 44px; }
.vision__sub p {
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  color: var(--on-black-dim);
  margin: 0 0 8px;
  line-height: 1.4;
}
.vision__sub p:last-child { color: var(--on-black); }

/* ---- Product details --------------------------------------------------- */
.details__head { text-align: center; max-width: 640px; margin: 0 auto 50px; }
.details__head .section__lede { margin-left: auto; margin-right: auto; }
.details__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.details__list li { background: var(--bg); padding: 28px 30px; display: flex; flex-direction: column; gap: 8px; }
.details__name { font-weight: 600; font-size: 1.05rem; letter-spacing: -0.01em; }
.details__desc { font-size: 0.92rem; color: var(--gray); line-height: 1.5; }
.details__note {
  text-align: center;
  margin-top: 36px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--gray);
}

/* ---- Ecosystem --------------------------------------------------------- */
.ecosystem { background: var(--bg-alt); text-align: center; }
.ecosystem__names { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(20px, 5vw, 60px); margin-top: 50px; }
.ecosystem__name { display: flex; flex-direction: column; align-items: center; gap: 12px; opacity: 0.32; transition: opacity 0.4s ease; }
.ecosystem__name--active { opacity: 1; }
.ecosystem__word { font-size: clamp(1.6rem, 5vw, 3.2rem); font-weight: 600; letter-spacing: 0.02em; color: var(--ink-2); }
.ecosystem__name--active .ecosystem__word { color: var(--ink); }
.ecosystem__status { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gray); }
.ecosystem__name--active .ecosystem__status { color: var(--ink); }
.ecosystem__name--active .ecosystem__status::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-active);
  margin-right: 8px;
  vertical-align: middle;
}

/* ---- Waitlist / final CTA --------------------------------------------- */
.waitlist { text-align: center; }
.waitlist__device { display: flex; justify-content: center; margin-bottom: 40px; }
.waitlist__title { max-width: 18ch; margin-left: auto; margin-right: auto; }
.waitlist__form { display: flex; flex-direction: column; gap: 12px; max-width: 460px; margin: 28px auto 0; }
.field { text-align: left; flex: 1; }
.field__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.field__input {
  width: 100%;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field__input::placeholder { color: var(--gray); }
.field__input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(10, 10, 10, 0.08); }
.field__input[aria-invalid="true"] { border-color: var(--accent-warn); }
.waitlist__msg { min-height: 1.2em; font-size: 0.88rem; margin: 6px 0 0; }
.waitlist__msg.is-success { color: var(--accent-active); }
.waitlist__msg.is-error { color: var(--accent-warn); }
.waitlist__fine { font-size: 0.8rem; color: var(--gray); margin: 18px 0 0; }
@media (min-width: 560px) {
  .waitlist__form { flex-direction: row; align-items: stretch; }
  .waitlist__form .btn--lg { width: auto; white-space: nowrap; }
}

/* ---- Footer ------------------------------------------------------------ */
.footer { background: var(--ink); color: var(--on-black); padding: 60px 0 40px; }
.footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  flex-wrap: wrap;
}
@media (min-width: 768px) { .footer__inner { padding: 0 40px; } }
.footer__brand { display: flex; flex-direction: column; gap: 6px; }
.footer__mark { font-weight: 600; font-size: 1.1rem; letter-spacing: -0.02em; }
.footer__domain { font-family: var(--font-mono); font-size: 0.85rem; color: var(--on-black-dim); }
.footer__links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer__links a { font-size: 0.9rem; color: var(--on-black-dim); transition: color 0.2s ease; }
.footer__links a:hover { color: var(--on-black); }
.footer__line {
  max-width: var(--maxw);
  margin: 44px auto 0;
  padding: 24px 24px 0;
  text-align: center;
  font-size: 0.82rem;
  color: var(--on-black-dim);
  border-top: 1px solid rgba(236, 233, 226, 0.1);
}

/* ---- Scroll reveals ---------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--d, 0ms);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---- Seamless scroll (active when JS adds .scrub to <html>) ------------
   All scroll-linked motion is driven by CSS variables set from one smoothed
   rAF loop in script.js — nothing here transitions on its own. */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #8A8680;
  mix-blend-mode: difference; /* stays visible over light + dark sections */
  transform: scaleX(0);
  transform-origin: 0 50%;
  z-index: 80;
  pointer-events: none;
}

.scrub .nav { transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1), border-color 0.3s ease; }
.scrub .nav--hidden { transform: translateY(-102%); }

.scrub [data-reveal] {
  transition: none;
  opacity: var(--ro, 0);
  transform: translateY(var(--ry, 22px));
}
.scrub [data-stagger] > * {
  opacity: var(--so, 0);
  transform: translateY(var(--sy, 16px));
}
.scrub [data-bloom] {
  opacity: var(--bo, 0);
  transform: translateY(var(--by, 12px));
}

/* Hero: JS owns the device transform (float + scroll settle) */
.scrub .hero .device { animation: none; }
.scrub .hero__copy {
  opacity: var(--ho, 1);
  transform: translateY(var(--hy, 0px));
}

/* Desk scene parallax layers */
.scrub .desk__laptop,
.scrub .desk__keyboard,
.scrub .desk__notebook { transform: translateY(var(--py, 0px)); }
.scrub .desk .device { transform: perspective(1200px) rotateX(4deg) rotateY(-6deg) translateY(var(--py, 0px)); }

/* Devices that re-tilt while travelling through the viewport */
.scrub .display .device { transform: perspective(1400px) rotateX(6deg) rotateY(var(--dry, -11deg)) translateY(var(--dy, 0px)); }
.scrub .waitlist .device { transform: perspective(1400px) rotateX(7deg) rotateY(var(--dry, -11deg)); }

/* Interaction button: scroll-linked press + ring glow */
.scrub .big-button { transform: scale(var(--bs, 1)); }
.scrub .big-button__ring { border-color: rgba(236, 233, 226, calc(0.22 + var(--br, 0) * 0.35)); }

/* Ecosystem names keep their dimmed hierarchy while staggering in */
.scrub .ecosystem__names > * { opacity: calc(0.32 + var(--so, 0) * 0.68); }
.scrub .ecosystem__names > .ecosystem__name--active { opacity: var(--so, 0); }
.scrub .ecosystem__name { transition: none; }

/* ---- Responsive -------------------------------------------------------- */
@media (max-width: 880px) {
  .hero__grid { grid-template-columns: 1fr; gap: 30px; }
  .hero__stage { order: -1; min-height: 260px; }
  .context .container { grid-template-columns: 1fr; gap: 36px; }
  .context__scene { order: -1; }
  .display__grid { grid-template-columns: 1fr; gap: 40px; }
  .display__device { order: -1; }
  .interaction__grid { grid-template-columns: 1fr; gap: 36px; }
  .interaction__button { order: -1; }
}
@media (max-width: 640px) {
  .details__list { grid-template-columns: 1fr; }
  .desk__notebook, .desk__keyboard { display: none; }
  .desk { gap: 26px; }
  .desk__laptop { width: 150px; }
  .scroll-cue { display: none; }
}

/* ---- Reduced motion ---------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .hero .device { animation: none; }
  .device__led { animation: none; opacity: 0.7; }
  .hero__stage { transform: none; }
}