/* StupidMirror site.
   One dark, neutral ground. Elevation is a lighter step and a hairline,
   never a glow on the chrome. The app icon's gradient (amber, magenta,
   violet, cyan) appears in three places only: the aurora light behind the
   hero and the final call, the beam around the product shot, and a few
   words of type. Components follow common 21st.dev patterns (announcement
   pill, beam frame, marquee, bento, spotlight cards), built without a
   framework so the page stays a static file. */

:root {
  --bg: #08090a;
  --bg-2: #0c0d0f;
  --card: #111214;
  --card-2: #16171a;
  --line: rgba(255, 255, 255, 0.075);
  --line-2: rgba(255, 255, 255, 0.13);
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --faint: #8b8b94;
  --amber: #ffb547;
  --pink: #ff4f93;
  --violet: #7c5cff;
  --cyan: #33cfff;
  --live: #3ccf7f;
  --brand: linear-gradient(100deg, var(--amber) 0%, var(--pink) 34%, var(--violet) 66%, var(--cyan) 100%);
  --sans: "Geist", "Noto Sans SC", -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --shell: min(1200px, calc(100vw - 48px));
  --r-lg: 24px;
  --r-md: 16px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

html.locale-pending body {
  visibility: hidden;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: var(--bg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
  height: auto;
}

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

h1,
h2,
h3,
p {
  margin: 0;
}

h2 {
  font-size: clamp(34px, 4.6vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 600;
}

h3 {
  font-size: 18px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.01em;
}

section[id] {
  scroll-margin-top: 88px;
}

.section-shell {
  width: var(--shell);
  margin-inline: auto;
}

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

.skip-link:focus {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
}

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

/* ---------- type helpers ---------- */

.brand-gradient {
  background: var(--brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* The second line of a headline fades from ink into grey. */
.display-soft {
  background: linear-gradient(180deg, #d4d4d8 0%, #71717a 120%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-index,
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 18px;
}

/* ---------- buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease), border-color 0.2s var(--ease);
}

.button:active {
  transform: scale(0.97);
}

.button svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button svg.apple {
  width: 17px;
  height: 17px;
  fill: currentColor;
  stroke: none;
  margin-top: -2px;
}

.button-primary {
  background: var(--text);
  color: #0a0a0b;
}

.button-primary:hover {
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-2);
  color: var(--text);
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.button-quiet {
  color: var(--muted);
  padding: 0 14px;
}

.button-quiet:hover {
  color: var(--text);
}

.button-small {
  height: 36px;
  padding: 0 16px;
  font-size: 14px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text);
  font-weight: 500;
}

.text-link svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  transition: transform 0.2s var(--ease);
}

.text-link:hover svg {
  transform: translateX(3px);
}

/* ---------- header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  padding: 14px 0;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(8, 9, 10, 0.72);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom-color: var(--line);
}

.nav-shell {
  width: var(--shell);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.brand img {
  border-radius: 7px;
}

.site-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-inline: auto;
}

.site-menu a {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--muted);
  transition: color 0.2s, background 0.2s;
}

.site-menu a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.nav-mobile-link {
  display: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  padding: 6px 12px;
  font-size: 14px;
  color: var(--muted);
}

.nav-link:hover {
  color: var(--text);
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  margin-left: auto;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  position: relative;
}

.menu-toggle span:not(.sr-only) {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.25s var(--ease), top 0.25s var(--ease);
}

.menu-toggle span:nth-child(1) {
  top: 15px;
}

.menu-toggle span:nth-child(2) {
  top: 23px;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  top: 19px;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  top: 19px;
  transform: rotate(-45deg);
}

/* ---------- aurora ---------- */

.aurora {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.aurora i {
  position: absolute;
  width: 46vw;
  max-width: 720px;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.32;
  animation: drift 22s ease-in-out infinite alternate;
}

.aurora i:nth-child(1) {
  background: var(--pink);
  top: -18%;
  left: 12%;
}

.aurora i:nth-child(2) {
  background: var(--violet);
  top: -10%;
  right: 8%;
  animation-delay: -7s;
}

.aurora i:nth-child(3) {
  background: var(--amber);
  top: 18%;
  left: 38%;
  width: 30vw;
  opacity: 0.18;
  animation-delay: -14s;
}

.aurora-low i {
  top: auto !important;
  bottom: -40%;
  opacity: 0.2;
}

@keyframes drift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(6%, 8%, 0) scale(1.12);
  }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: 150px 0 40px;
  overflow: hidden;
  isolation: isolate;
}

.hero-dots {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 0%, transparent 75%);
}

.hero-copy {
  position: relative;
  width: var(--shell);
  margin-inline: auto;
  text-align: center;
}

.announce {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 12px 5px 5px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.04);
  font-size: 13px;
  color: var(--muted);
  transition: border-color 0.2s, background 0.2s;
}

.announce:hover {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
}

.announce-tag {
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--brand);
  color: #0a0a0b;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
}

.announce svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.hero h1 {
  margin: 28px auto 0;
  max-width: 980px;
  font-size: clamp(42px, 7.2vw, 92px);
  line-height: 1;
  letter-spacing: -0.045em;
  font-weight: 600;
}

.hero-line {
  display: block;
}

.hero-line-soft {
  color: #8f8f98;
}

.hero-lead {
  max-width: 600px;
  margin: 28px auto 0;
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 36px;
}

.hero-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--faint);
}

.hero-meta i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--faint);
}

.hero-stage {
  position: relative;
  width: min(1120px, calc(100vw - 32px));
  margin: 72px auto 0;
  perspective: 1600px;
}

/* A light travelling round the frame's edge (21st.dev "border beam"). */
/* The frame is the window's own edge: 1px of beam around the screenshot,
   its radius matching the window corner (40 px on a 2200 x 1400 image). */
.beam-frame {
  position: relative;
  padding: 1px;
  border-radius: calc(1.82% + 1px) / calc(2.86% + 1px);
  background: var(--line-2);
  overflow: hidden;
  box-shadow: 0 40px 120px -20px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.beam-frame::before {
  content: "";
  position: absolute;
  inset: -50%;
  background: conic-gradient(from var(--beam-angle, 0deg), transparent 0deg, transparent 300deg, var(--amber) 318deg, var(--pink) 332deg, var(--violet) 346deg, var(--cyan) 360deg);
  animation: beam 6s linear infinite;
}

@property --beam-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

@keyframes beam {
  to {
    --beam-angle: 360deg;
  }
}

.beam-frame > .screenshot-button {
  position: relative;
  display: block;
  border-radius: 1.82% / 2.86%;
  overflow: hidden;
  background: #1b1b1b;
}

.beam-frame img {
  width: 100%;
}

/* ---------- screenshot buttons ---------- */

.screenshot-button {
  display: block;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  color: inherit;
  font: inherit;
}

/* ---------- marquee ---------- */

.marquee-band {
  width: var(--shell);
  margin: 80px auto 0;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 32px;
}

.marquee-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}

.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 44px;
  animation: marquee 38s linear infinite;
}

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

.marquee-track > * {
  flex: none;
  font-size: 17px;
  font-weight: 500;
  color: #c4c4cc;
  letter-spacing: -0.01em;
}

@keyframes marquee {
  to {
    transform: translateX(calc(-50% - 22px));
  }
}

.marquee-tools {
  margin: 56px 0 8px;
}

.marquee-tools .marquee-track {
  gap: 12px;
  animation-duration: 46s;
}

.marquee-tools code {
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: var(--card);
  font-family: var(--mono);
  font-size: 14px;
  color: #d4d4d8;
}

/* ---------- manifesto ---------- */

.manifesto {
  padding: 160px 0 110px;
  display: grid;
  grid-template-columns: 160px 1fr;
  column-gap: 40px;
}

.manifesto-copy {
  grid-column: 2;
}

.manifesto .section-index {
  padding-top: 18px;
}

.display-line {
  font-size: clamp(40px, 6.2vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 600;
}

.manifesto-note {
  grid-column: 2;
  max-width: 600px;
  margin-top: 32px;
  font-size: 18px;
  color: var(--muted);
}

/* ---------- cards ---------- */

.card {
  position: relative;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--card-2), var(--card));
  overflow: hidden;
}

.card h3 {
  margin-top: 18px;
}

.card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

/* Spotlight: a soft light follows the pointer inside the card. */
.spotlight::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, -20%), rgba(255, 255, 255, 0.07), transparent 45%);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
}

.spotlight::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, -20%), rgba(255, 255, 255, 0.28), transparent 50%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
}

.spotlight:hover::before,
.spotlight:hover::after {
  opacity: 1;
}

.card-icon {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.03);
}

.card-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #d4d4d8;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- bento ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.bento > .card {
  padding: 26px;
}

.bento-hero {
  grid-column: span 3;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 40px;
  align-items: center;
  padding: 48px !important;
}

.bento-hero h2 {
  font-size: clamp(30px, 3.6vw, 46px);
  margin: 0;
}

.bento-hero .card-copy p:not(.eyebrow) {
  margin-top: 20px;
  font-size: 16px;
}

.bento-shot img {
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.45));
}

.bento-shot img {
  width: 100%;
  transition: transform 0.8s var(--ease);
}

.bento-hero:hover .bento-shot img {
  transform: scale(1.02);
}

.visual-caption {
  position: absolute;
  right: 48px;
  bottom: 18px;
  font-size: 12px;
  color: var(--faint);
  font-family: var(--mono);
}

.bento-wide {
  grid-column: span 3;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}

.android-card h3 {
  margin-top: 0;
  font-size: 24px;
}

.android-card .eyebrow {
  color: var(--live);
  margin-bottom: 12px;
}

.chip-grid {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 8px;
}

.chip-grid span {
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.03);
  font-size: 14px;
  color: var(--muted);
}

.chip-grid b {
  color: var(--text);
  font-weight: 600;
}

/* ---------- section headings ---------- */

.section-heading {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 48px;
}

.section-heading > p,
.section-heading > div > p:not(.section-index) {
  color: var(--muted);
  font-size: 17px;
}

.lead-strong {
  color: var(--text) !important;
  font-weight: 500;
  margin-bottom: 10px;
}

/* ---------- wireless ---------- */

.wireless {
  padding-top: 170px;
}

.wireless-grid {
  display: grid;
  grid-template-columns: 1fr 1.12fr;
  gap: 40px;
  align-items: end;
}

.sheet-figure {
  margin: 0;
}

.sheet-figure .screenshot-button {
  display: block;
  width: 100%;
}

.sheet-figure img {
  width: 100%;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.55));
}

.sheet-figure figcaption {
  display: flex;
  gap: 12px;
  align-items: baseline;
  margin-top: 18px;
  font-size: 15px;
  color: var(--muted);
}

.sheet-figure figcaption span {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--faint);
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr) 1.4fr;
  margin-top: 56px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.stat {
  padding: 26px 28px;
  border-right: 1px solid var(--line);
}

.stat strong {
  display: block;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.stat span {
  font-size: 14px;
  color: var(--muted);
}

.stat-note {
  padding: 26px 28px;
  font-size: 14px;
  color: var(--muted);
  align-self: center;
}

/* ---------- codex / steps ---------- */

.codex {
  padding-top: 170px;
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.step {
  padding: 30px;
  min-height: 260px;
}

.step-number {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

.step h3 {
  margin-top: 64px;
}

.codex-foot {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: baseline;
  margin-top: 28px;
}

.codex-foot p {
  max-width: 640px;
  font-size: 14px;
  color: var(--faint);
}

/* ---------- automation ---------- */

.automation {
  position: relative;
  margin-top: 170px;
  padding: 140px 0 120px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
  isolation: isolate;
}

.automation .aurora {
  z-index: -1;
}

.automation-intro {
  text-align: center;
  max-width: 820px;
  margin-inline: auto;
}

.automation-intro p:not(.section-index) {
  margin-top: 24px;
  font-size: 17px;
  color: var(--muted);
}

.phone-showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 900px;
  margin: 64px auto 0;
  align-items: start;
}

.phone-card {
  border-radius: 34px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8);
  transition: transform 0.5s var(--ease);
}

.phone-card:hover {
  transform: translateY(-6px);
}

.phone-card-mid {
  margin-top: 56px;
}

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

.claim-grid article {
  padding: 30px 28px 0 0;
}

.claim-grid span {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--faint);
}

.claim-grid h3 {
  margin-top: 14px;
}

.claim-grid p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
}

/* ---------- gallery ---------- */

.gallery {
  padding-top: 170px;
}

.screen-gallery {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 0 max(24px, calc((100vw - 1200px) / 2)) 24px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.screen-gallery::-webkit-scrollbar {
  display: none;
}

.gallery-card {
  flex: 0 0 clamp(220px, 24vw, 290px);
  margin: 0;
  scroll-snap-align: start;
}

.gallery-card .screenshot-button {
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  transition: transform 0.5s var(--ease);
}

.gallery-card:hover .screenshot-button {
  transform: translateY(-4px);
}

.gallery-card figcaption {
  margin-top: 14px;
  font-size: 13px;
  color: var(--faint);
}

/* ---------- privacy ---------- */

.privacy {
  padding-top: 150px;
}

.privacy-card {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 56px;
}

.privacy-card p:not(.section-index) {
  margin-top: 22px;
  font-size: 16px;
}

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(60, 207, 127, 0.15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%233ccf7f' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
  flex: none;
}

/* ---------- use cases ---------- */

.scenes {
  padding-top: 170px;
}

.scene {
  padding: 30px;
}

.scene h3 {
  margin-top: 64px;
  font-size: 22px;
}

.scene ul {
  list-style: none;
  margin: 26px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 6px;
  font-size: 14px;
  color: var(--muted);
}

.scene li::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin: 0 10px 2px 0;
  border-radius: 50%;
  background: var(--faint);
}

/* The featured case gets the brand gradient as its edge, not its fill. */
.scene-featured {
  border-color: transparent;
  background:
    linear-gradient(180deg, var(--card-2), var(--card)) padding-box,
    var(--brand) border-box;
}

.scene-featured .step-number {
  border-color: transparent;
  background: var(--brand);
  color: #0a0a0b;
}

/* ---------- final CTA ---------- */

.final-cta {
  position: relative;
  margin-top: 170px;
  padding: 150px 0 160px;
  border-top: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}

.final-cta .aurora {
  z-index: -1;
}

.final-cta .aurora i {
  top: 30%;
}

.cta-content {
  width: var(--shell);
  margin-inline: auto;
}

.cta-icon {
  margin: 0 auto 36px;
  border-radius: 26px;
  box-shadow: 0 30px 80px -10px rgba(124, 92, 255, 0.45);
}

.cta-content h2 {
  font-size: clamp(38px, 5.6vw, 72px);
}

.cta-content p {
  margin-top: 24px;
  color: var(--muted);
  font-size: 15px;
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 0;
  font-size: 13px;
  color: var(--faint);
}

.footer-inner .brand {
  color: var(--text);
  font-size: 14px;
}

.footer-inner .brand img {
  border-radius: 5px;
}

/* ---------- lightbox ---------- */

.lightbox {
  width: min(1400px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 18px;
  background: var(--bg);
  overflow: hidden;
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(6px);
}

.lightbox img {
  width: 100%;
  max-height: calc(100vh - 34px);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: rgba(8, 9, 10, 0.8);
  cursor: pointer;
  display: grid;
  place-items: center;
}

.lightbox-close svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--text);
  stroke-width: 1.8;
}

/* ---------- reveal ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(6px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), filter 0.9s var(--ease);
}

.js .reveal.in-view {
  opacity: 1;
  transform: none;
  filter: none;
}

/* ---------- responsive ---------- */

@media (max-width: 1020px) {
  .site-menu a {
    padding: 6px 8px;
  }

  .bento {
    grid-template-columns: repeat(2, 1fr);
  }

  .bento-hero,
  .bento-wide {
    grid-column: span 2;
  }

  .bento-hero {
    grid-template-columns: 1fr;
    padding: 32px !important;
  }

  .visual-caption {
    position: static;
  }

  .stat-row {
    grid-template-columns: repeat(3, 1fr);
  }

  .stat-note {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 860px) {
  .menu-toggle {
    display: block;
  }

  .nav-actions {
    display: none;
  }

  .site-menu {
    position: fixed;
    inset: 68px 12px auto;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px;
    border-radius: 18px;
    border: 1px solid var(--line-2);
    background: rgba(12, 13, 15, 0.96);
    backdrop-filter: blur(16px);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
  }

  .site-menu.open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .site-menu a {
    padding: 12px 14px;
    font-size: 16px;
  }

  .nav-mobile-link {
    display: block;
  }

  .manifesto {
    grid-template-columns: 1fr;
    padding: 110px 0 80px;
  }

  .manifesto-copy,
  .manifesto-note {
    grid-column: 1;
  }

  .section-heading,
  .wireless-grid,
  .step-grid,
  .claim-grid,
  .privacy-card,
  .bento-wide,
  .codex-foot {
    grid-template-columns: 1fr;
  }

  .section-heading {
    gap: 18px;
  }

  .claim-grid article {
    padding-right: 0;
  }

  .privacy-card {
    padding: 32px;
    gap: 28px;
  }

  .phone-showcase {
    gap: 14px;
  }

  .phone-card {
    border-radius: 22px;
  }

  .phone-card-mid {
    margin-top: 28px;
  }

  .marquee-band {
    grid-template-columns: 1fr;
    gap: 14px;
    text-align: center;
  }

  .wireless,
  .codex,
  .gallery,
  .scenes {
    padding-top: 110px;
  }

  .automation,
  .final-cta {
    margin-top: 110px;
    padding: 96px 0;
  }
}

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

  .hero {
    padding-top: 116px;
  }

  .hero-lead {
    font-size: 16px;
  }

  .hero-actions .button {
    flex: 1 1 100%;
  }

  .announce-text {
    max-width: 210px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

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

  .bento-hero,
  .bento-wide {
    grid-column: span 1;
  }

  .bento-hero {
    padding: 24px !important;
  }

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

  .stat-row {
    grid-template-columns: 1fr;
  }

  .stat {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

.faq-list {
  display: grid;
  gap: 10px;
  max-width: 880px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--card-2), var(--card));
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex: none;
  font-family: var(--mono);
  color: var(--muted);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item summary:focus-visible {
  outline: 2px solid var(--line-2);
  outline-offset: 2px;
  border-radius: var(--r-lg);
}

.faq-item h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 500;
}

.faq-item p {
  margin: 0;
  padding: 0 24px 22px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.guide-hero {
  padding-top: 150px;
}

.guide-hero h1 {
  max-width: 820px;
  margin-top: 14px;
}

.guide-breadcrumb {
  display: flex;
  gap: 10px;
  margin-bottom: 28px;
  font-size: 14px;
  color: var(--muted);
}

.guide-breadcrumb a {
  color: inherit;
}

.guide-lead {
  max-width: 720px;
  margin-top: 20px;
  font-size: 19px;
  line-height: 1.6;
  color: var(--muted);
}

.guide-shot {
  margin: 48px 0 0;
}

.guide-shot img {
  width: 100%;
  max-width: 880px;
  height: auto;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
}

.guide-section {
  padding-top: 96px;
}

.guide-section h2 {
  margin-bottom: 20px;
}

.guide-note {
  max-width: 760px;
  margin: 0 0 24px;
  color: var(--muted);
  line-height: 1.65;
}

.guide-grid {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 860px) {
  .guide-grid {
    grid-template-columns: 1fr;
  }
}

.guide-footer-nav {
  display: flex;
  gap: 18px;
  font-size: 14px;
}

.guide-footer-nav a {
  color: var(--muted);
}

.guide-footer-nav a:hover {
  color: var(--text);
}
