:root {
  --bg: #07070a;
  --fg: #e8e8e9;
  --card: #111119;
  --muted: #171722;
  --muted-fg: #777783;
  --accent: #51ff8a;
  --accent-rgb: 81, 255, 138;
  --secondary: #ff3ed2;
  --tertiary: #40dfff;
  --border: #292934;
  --display: "Orbitron", "Share Tech Mono", monospace;
  --mono: "JetBrains Mono", "Fira Code", Consolas, monospace;
  --chamfer: polygon(0 12px, 12px 0, calc(100% - 12px) 0, 100% 12px, 100% calc(100% - 12px), calc(100% - 12px) 100%, 12px 100%, 0 calc(100% - 12px));
  --neon: 0 0 6px rgba(var(--accent-rgb), .85), 0 0 24px rgba(var(--accent-rgb), .28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--fg);
  background:
    radial-gradient(circle at 72% 28%, rgba(var(--accent-rgb), .08), transparent 25rem),
    linear-gradient(rgba(var(--accent-rgb), .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--accent-rgb), .025) 1px, transparent 1px),
    var(--bg);
  background-size: auto, 52px 52px, 52px 52px, auto;
  font-family: var(--mono);
  min-width: 320px;
  overflow-x: hidden;
}

body::after {
  position: fixed;
  z-index: 20;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: .2;
  background: repeating-linear-gradient(0deg, transparent 0 2px, rgba(0, 0, 0, .32) 2px 4px);
}

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

button {
  font: inherit;
}

.skip-link {
  position: fixed;
  z-index: 100;
  left: 1rem;
  top: -5rem;
  padding: .8rem 1rem;
  color: var(--bg);
  background: var(--accent);
}

.skip-link:focus {
  top: 1rem;
}

.site-shell {
  position: relative;
  max-width: 1600px;
  margin: auto;
}

.site-header {
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.25rem, 5vw, 5.5rem);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  background: rgba(7, 7, 10, .74);
  backdrop-filter: blur(18px);
  position: relative;
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: .85rem;
  font-family: var(--display);
  font-size: .9rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.brand b {
  color: var(--accent);
}

.brand-mark {
  width: 27px;
  height: 27px;
  display: grid;
  grid-template: repeat(3, 1fr) / repeat(2, 1fr);
  gap: 3px;
  transform: skewY(-8deg);
}

.brand-mark i {
  display: block;
  border: 1px solid var(--accent);
  box-shadow: 0 0 5px rgba(var(--accent-rgb), .5);
}

.brand-mark i:nth-child(2),
.brand-mark i:nth-child(3),
.brand-mark i:nth-child(6) {
  background: var(--accent);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  color: #9b9ba5;
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .2em;
}

.nav-links a {
  transition: color 120ms steps(2);
}

.nav-links a:hover {
  color: var(--accent);
  text-shadow: 0 0 8px var(--accent);
}

.nav-cta {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 1.1rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  font-size: .67rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  transition: all 140ms steps(3);
}

.nav-cta:hover {
  color: var(--bg);
  background: var(--accent);
  box-shadow: var(--neon);
}

.nav-cta-short {
  display: none;
}

.hero {
  min-height: 720px;
  height: calc(100vh - 86px);
  max-height: 900px;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(420px, .96fr);
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  left: 55.2%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(transparent, rgba(var(--accent-rgb), .22) 20%, rgba(var(--accent-rgb), .22) 80%, transparent);
}

.hero-copy {
  padding: clamp(4.5rem, 9vh, 8rem) 3rem 3rem clamp(1.4rem, 7vw, 7rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 2rem;
  color: #8b8b95;
  font-size: .68rem;
  letter-spacing: .19em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 35px;
  height: 1px;
  margin-right: .8rem;
  vertical-align: middle;
  background: var(--accent);
  box-shadow: var(--neon);
}

.eyebrow span {
  color: var(--accent);
}

h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3.6rem, 6.7vw, 7rem);
  line-height: .88;
  letter-spacing: -.045em;
  text-transform: uppercase;
}

h1 em {
  color: transparent;
  font-style: normal;
  -webkit-text-stroke: 1.5px var(--accent);
  filter: drop-shadow(0 0 12px rgba(var(--accent-rgb), .35));
}

.glitch {
  position: relative;
  animation: glitch 8s infinite;
}

.hero-deck {
  max-width: 590px;
  margin: 2.1rem 0 0;
  padding-left: 1.25rem;
  border-left: 2px solid var(--border);
  color: #9999a2;
  font-size: clamp(.82rem, 1.05vw, 1rem);
  line-height: 1.9;
  letter-spacing: .03em;
}

.cursor {
  display: inline-block;
  width: .55em;
  height: 1.1em;
  margin-left: .25rem;
  vertical-align: -.18em;
  background: var(--accent);
  animation: blink 1s step-end infinite;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.35rem;
}

.button {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.3rem;
  padding: 0 1.35rem;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  clip-path: polygon(0 8px, 8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
  transition: all 130ms steps(3);
}

.button-primary {
  color: #031109;
  background: var(--accent);
  box-shadow: var(--neon);
}

.button-primary:hover {
  filter: brightness(1.15);
  transform: translateY(-2px);
}

.button-ghost {
  border: 1px solid var(--border);
  color: #c7c7cb;
}

.button-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.button:focus-visible,
.arrow:focus-visible,
.theme-dots button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.system-stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: clamp(2rem, 5vw, 4.5rem);
  margin: auto 0 0;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--border);
}

.system-stats div {
  min-width: 90px;
}

.system-stats dt {
  color: #5f5f69;
  font-size: .58rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.system-stats dd {
  margin: .55rem 0 0;
  color: #bfbfc5;
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.system-stats i {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: .35rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero-visual::before {
  content: "";
  position: absolute;
  width: 68%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), .16), transparent 66%);
  filter: blur(10px);
}

.visual-index {
  position: absolute;
  right: clamp(1.5rem, 4vw, 4rem);
  top: 2rem;
  color: rgba(255, 255, 255, .13);
  font: 700 clamp(3rem, 6vw, 6rem)/1 var(--display);
}

.visual-index span {
  color: rgba(var(--accent-rgb), .25);
}

.orbit {
  position: absolute;
  border: 1px solid rgba(var(--accent-rgb), .12);
  border-radius: 50%;
  pointer-events: none;
}

.orbit::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -3px;
  width: 6px;
  height: 6px;
  background: var(--accent);
  box-shadow: var(--neon);
  transform: translateX(-50%);
}

.orbit-one {
  width: min(42vw, 610px);
  aspect-ratio: 1;
  animation: orbit 28s linear infinite;
}

.orbit-two {
  width: min(34vw, 480px);
  aspect-ratio: 1;
  border-style: dashed;
  animation: orbit 22s linear infinite reverse;
}

.phone-wrap {
  position: relative;
  transform: rotate(5deg) translateY(-4px);
  z-index: 2;
}

.phone-glow {
  position: absolute;
  inset: 15% -20% -8%;
  background: rgba(var(--preview-accent-rgb, var(--accent-rgb)), .2);
  filter: blur(58px);
  transform: skew(-9deg);
}

.phone {
  width: clamp(238px, 20vw, 305px);
  aspect-ratio: .49;
  position: relative;
  padding: 9px;
  border: 1px solid #65656b;
  border-radius: 38px;
  background: linear-gradient(135deg, #4a4a4e, #111 20%, #050506 65%, #3b3b3f);
  box-shadow: -18px 24px 40px #000, 0 0 0 2px #050505, 0 0 28px rgba(var(--accent-rgb), .13);
}

.phone::after {
  content: "";
  position: absolute;
  top: 95px;
  right: -4px;
  width: 3px;
  height: 70px;
  border-radius: 2px;
  background: #5d5d61;
}

.phone-speaker {
  position: absolute;
  z-index: 5;
  top: 17px;
  left: 50%;
  width: 30%;
  height: 18px;
  border-radius: 20px;
  background: #050507;
  transform: translateX(-50%);
}

/* Container for the clock: --clock-width is read as a share of the screen's
   own width (cqw), which percentages here cannot express reliably. */
.phone-screen {
  height: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #050608;
  container-type: inline-size;
}

/* Base layer: the theme's `image` (a photo or a gradient). Sized so photos
   cover the screen; gradients ignore these properties. */
.wallpaper {
  position: absolute;
  inset: 0;
  background: linear-gradient(148deg, #08130e 0%, #09100d 32%, #101717 33%, #020505 68%, rgba(var(--accent-rgb), .18) 100%);
  background-size: cover;
  background-position: center;
  transition: background 450ms steps(8);
}

/* Scrim: darkens a busy photo so the clock stays legible. Off (0) unless the
   theme sets `scrim`. Sits above the image, below the screen UI. */
.wallpaper::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #000;
  opacity: var(--wallpaper-scrim, 0);
  transition: opacity 450ms steps(8);
}

.status-bar {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  padding: 15px 16px;
  color: #f6f6f7;
  font: 500 .55rem var(--mono);
}

.status-icons {
  letter-spacing: -.15em;
}

.screen-copy {
  position: relative;
  z-index: 2;
  padding: .6rem 1rem 0;
  text-shadow: 0 2px 5px #000;
}

.screen-copy p {
  margin: 0;
  text-align: left;
}

.screen-copy p:first-child {
  color: rgba(255, 255, 255, .7);
  font-size: .52rem;
  text-transform: uppercase;
  letter-spacing: .16em;
}

.screen-copy p:last-child {
  margin-top: .22rem;
  font: 600 .8rem var(--display);
}

.widget {
  /* The clock spans --clock-width percent of the screen width (100 = the full
     screen less --clock-inset at each edge, so dots never touch the bezel).
     Dot size falls out of the grid dividing this track; nothing else needs to
     know it. cqw measures the screen because .phone-screen is the container. */
  --clock-inset: 10px;
  --clock-track: calc((100cqw - var(--clock-inset) * 2) * var(--clock-width, 82) / 100);
  --dot-gap: calc(var(--clock-track) / 19.5);
  box-sizing: border-box;
  position: absolute;
  z-index: 3;
  top: var(--clock-y, 46%);
  left: calc(1% * var(--clock-x-pct, 50));
  width: var(--clock-track);
  padding: 0;
  color: var(--clock-color, var(--accent));
  background: transparent;
  border: 0;
  box-shadow: none;
  transform: translateX(-50%);
}

.widget-meta {
  display: none;
}

.binary-grid {
  display: grid;
  /* Six dot columns sharing the track, with a slightly wider gutter between
     the hour, minute and second pairs. Widths are all fractions of the track,
     so the row spans it exactly and stays centred. */
  grid-template-columns:
    1fr var(--dot-gap) 1fr calc(var(--dot-gap) * 1.6) 1fr var(--dot-gap) 1fr calc(var(--dot-gap) * 1.6) 1fr var(--dot-gap) 1fr;
  align-items: start;
  width: 100%;
}

.binary-grid>.bit-column:nth-child(1) {
  grid-column: 1;
}

.binary-grid>.bit-column:nth-child(2) {
  grid-column: 3;
}

.binary-grid>.bit-column:nth-child(3) {
  grid-column: 5;
}

.binary-grid>.bit-column:nth-child(4) {
  grid-column: 7;
}

.binary-grid>.bit-column:nth-child(5) {
  grid-column: 9;
}

.binary-grid>.bit-column:nth-child(6) {
  grid-column: 11;
}

.bit-column {
  display: grid;
  grid-template-rows: repeat(4, auto);
  row-gap: var(--dot-gap);
}

.bit {
  display: block;
  /* Width comes from the grid column; aspect-ratio keeps the dot circular. */
  width: 100%;
  aspect-ratio: 1;
  border: 0;
  border-radius: 50%;
  background: var(--clock-off, #163226);
  opacity: .72;
  transition: background 150ms steps(3), box-shadow 150ms steps(3), opacity 150ms steps(3);
}

.bit.on {
  opacity: 1;
  background: var(--clock-color);
  box-shadow: 0 0 7px color-mix(in srgb, var(--clock-color) 55%, transparent);
}

.bit.unused {
  visibility: hidden;
}

.dock {
  position: absolute;
  z-index: 2;
  left: 15px;
  right: 15px;
  bottom: 35px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 47px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 19px;
  background: rgba(10, 10, 12, .58);
  color: rgba(255, 255, 255, .88);
  font-size: 1rem;
  backdrop-filter: blur(10px);
}

.gesture-bar {
  position: absolute;
  z-index: 2;
  bottom: 10px;
  left: 50%;
  width: 36%;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, .75);
  transform: translateX(-50%);
}

.data-tag {
  position: absolute;
  z-index: 3;
  color: rgba(var(--accent-rgb), .65);
  font-size: .52rem;
  line-height: 1.65;
  letter-spacing: .12em;
}

.data-tag-a {
  left: 8%;
  top: 27%;
}

.data-tag-b {
  right: 6%;
  bottom: 25%;
  text-align: right;
}

.carousel-controls {
  position: absolute;
  z-index: 4;
  right: clamp(1.5rem, 4vw, 4rem);
  bottom: 4.6rem;
  display: flex;
  align-items: center;
  gap: .8rem;
}

.arrow {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  color: #a9a9af;
  background: rgba(7, 7, 10, .75);
  cursor: pointer;
  transition: all 120ms steps(3);
}

.arrow:hover {
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(var(--accent-rgb), .25);
}

.theme-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}

/* The bar reads as 3px tall, but the hit area is padded out to ~24px so the
   dots are actually clickable; background-clip keeps the padding transparent. */
/* The bar reads as 3px tall, but padding extends the hit area to 25px so the
   dots are comfortably clickable. background-clip keeps the padding transparent;
   box-sizing is overridden because the global border-box would eat the padding. */
.theme-dots button {
  position: relative;
  box-sizing: content-box;
  width: 18px;
  height: 3px;
  padding: 11px 0;
  border: 0;
  background: #484850;
  background-clip: content-box;
  cursor: pointer;
  transition: width 150ms steps(3), background-color 150ms steps(3);
}

.theme-dots button.active {
  width: 36px;
  background: var(--accent);
  background-clip: content-box;
}

/* Glow tracks the visible bar, not the padded hit area. */
.theme-dots button.active::after {
  content: "";
  position: absolute;
  inset: 11px 0;
  box-shadow: 0 0 8px var(--accent);
  pointer-events: none;
}

.theme-label {
  position: absolute;
  z-index: 4;
  left: 2rem;
  bottom: 4.8rem;
  margin: 0;
  color: #686872;
  font-size: .55rem;
  text-transform: uppercase;
  letter-spacing: .13em;
}

.theme-label #theme-number,
.theme-label b {
  color: var(--accent);
}

.hero-ticker {
  height: 36px;
  overflow: hidden;
  border-block: 1px solid rgba(var(--accent-rgb), .24);
  color: var(--accent);
  background: rgba(var(--accent-rgb), .05);
  transform: rotate(-.35deg) scale(1.01);
  font-size: .58rem;
  letter-spacing: .22em;
  line-height: 34px;
  white-space: nowrap;
}

.hero-ticker div {
  display: flex;
  width: max-content;
  animation: ticker 43s linear infinite;
  will-change: transform;
}

.hero-ticker div span {
  flex: 0 0 auto;
}

.hero-ticker i {
  margin: 0 1.2rem;
}

.section {
  padding: clamp(6rem, 10vw, 10rem) clamp(1.25rem, 7vw, 7rem);
  border-top: 1px solid rgba(255, 255, 255, .07);
  position: relative;
}

.section-kicker {
  margin-bottom: 2rem;
  color: #6d6d77;
  font-size: .62rem;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.section-kicker span {
  color: var(--accent);
}

.section h2 {
  margin: 0;
  font: 800 clamp(2.7rem, 5vw, 5.4rem)/.98 var(--display);
  letter-spacing: -.04em;
  text-transform: uppercase;
}

.section h2 em {
  color: transparent;
  font-style: normal;
  -webkit-text-stroke: 1px var(--accent);
  filter: drop-shadow(0 0 10px rgba(var(--accent-rgb), .25));
}

.section-heading {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: end;
  gap: 5rem;
}

.section-heading>p,
.customize-copy>p,
.decoder-copy>p {
  max-width: 520px;
  margin: 0 0 .5rem;
  color: #92929c;
  font-size: .86rem;
  line-height: 1.9;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1.25fr .875fr .875fr;
  gap: 1rem;
  margin-top: 5rem;
}

.feature-card {
  min-height: 350px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(145deg, rgba(28, 28, 40, .8), rgba(10, 10, 15, .82));
  clip-path: var(--chamfer);
  transition: transform 150ms steps(3), border-color 150ms steps(3);
}

.feature-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.feature-card-wide {
  background: radial-gradient(circle at 78% 80%, rgba(var(--accent-rgb), .12), transparent 45%), linear-gradient(145deg, rgba(28, 28, 40, .8), rgba(10, 10, 15, .82));
}

/* Uneven columns of diffused color rise like light seen through fogged glass. */
.feature-card-palette::before {
  position: absolute;
  z-index: 0;
  inset: 31% -12% -10%;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(ellipse 24% 48% at 20% 108%, rgba(var(--accent-rgb), .52) 0%, rgba(var(--accent-rgb), .2) 38%, transparent 76%),
    radial-gradient(ellipse 21% 88% at 42% 114%, rgba(255, 62, 210, .5) 0%, rgba(255, 62, 210, .19) 40%, transparent 75%),
    radial-gradient(ellipse 23% 61% at 61% 108%, rgba(64, 223, 255, .48) 0%, rgba(64, 223, 255, .18) 42%, transparent 76%),
    radial-gradient(ellipse 20% 73% at 80% 116%, rgba(255, 182, 55, .48) 0%, rgba(255, 182, 55, .17) 38%, transparent 74%),
    radial-gradient(ellipse 76% 44% at 52% 110%, rgba(218, 229, 232, .15), rgba(177, 193, 199, .045) 52%, transparent 82%);
  background-blend-mode: screen;
  filter: blur(15px) saturate(.72);
  opacity: .86;
  transform: scale(1.08);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, .28) 25%, #000 68%);
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, .28) 25%, #000 68%);
}

.feature-card-palette::after {
  position: absolute;
  z-index: 0;
  inset: 43% 0 0;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(91deg, transparent 8%, rgba(225, 235, 238, .08) 12%, transparent 16%),
    linear-gradient(88deg, transparent 31%, rgba(225, 235, 238, .06) 35%, transparent 39%),
    linear-gradient(92deg, transparent 55%, rgba(225, 235, 238, .075) 60%, transparent 65%),
    linear-gradient(89deg, transparent 78%, rgba(225, 235, 238, .055) 82%, transparent 87%);
  filter: blur(8px);
  opacity: .72;
  -webkit-mask-image: linear-gradient(to top, #000, transparent 86%);
  mask-image: linear-gradient(to top, #000, transparent 86%);
}

.feature-card-palette>* {
  position: relative;
  z-index: 1;
}

.feature-icon {
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  margin-bottom: 3.2rem;
  border: 1px solid rgba(var(--accent-rgb), .45);
  color: var(--accent);
  font-size: .62rem;
  clip-path: polygon(0 8px, 8px 0, 100% 0, 100% 100%, 0 100%);
}

.card-label {
  color: var(--accent);
  font-size: .56rem;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.feature-card h3 {
  margin: .7rem 0 1rem;
  font: 700 1.15rem var(--display);
  letter-spacing: .02em;
  text-transform: uppercase;
}

.feature-card>p:last-of-type {
  max-width: 380px;
  color: #82828d;
  font-size: .75rem;
  line-height: 1.75;
}

.feature-card-wide {
  overflow: visible;
}

.mini-matrix {
  display: grid;
  grid-template-columns: repeat(6, 32px);
  gap: 16px;
  position: absolute;
  right: -1.6rem;
  bottom: -1.9rem;
  transform: rotate(-4deg);
  opacity: .22;
}

.mini-matrix i {
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(var(--accent-rgb), .22), rgba(255, 255, 255, .05));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07);
}

.mini-matrix i.on {
  background: var(--accent);
  box-shadow: 0 0 14px rgba(var(--accent-rgb), .8), inset 0 0 0 1px rgba(255, 255, 255, .25);
}

/* Bits a BCD digit can never reach — hidden, but still holding their cell so
   the columns stay aligned. Mirrors .bit.unused in the header clock. */
.mini-matrix i.off {
  visibility: hidden;
}

.signal-line {
  position: absolute;
  left: 2rem;
  right: 2rem;
  bottom: 2.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #676771;
  font-size: .55rem;
}

.signal-line span {
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, var(--accent), transparent);
  box-shadow: 0 0 5px var(--accent);
}

.decoder {
  display: flex;
  align-items: center;
  min-height: clamp(750px, 78vh, 900px);
  overflow: visible;
  background:
    radial-gradient(ellipse 54% 50% at 74% 52%, rgba(var(--accent-rgb), .1), transparent 78%),
    var(--bg);
}

.decoder-copy {
  position: relative;
  z-index: 2;
  width: min(430px, 36%);
  flex: none;
}

.decoder-copy>p {
  margin-top: 2rem;
}

.decoder-copy b {
  color: #d2d2d7;
}

/* The live clock sits behind the section copy as a full-width halftone field. */
.decoder-stage {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 0;
  isolation: isolate;
  pointer-events: none;
}

.decoder-stage::before {
  position: absolute;
  inset: 9% 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(ellipse 62% 42% at 73% 50%, rgba(var(--accent-rgb), .1), transparent 78%),
    radial-gradient(ellipse 42% 35% at 78% 55%, rgba(135, 75, 255, .09), transparent 85%);
  filter: blur(28px);
}

#decoder-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .12) 25%, #000 47% 93%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .12) 25%, #000 47% 93%, transparent 100%);
}

.customize {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(4rem, 10vw, 10rem);
  align-items: center;
  overflow: hidden;
}

.customize::before {
  content: "SETTINGS";
  position: absolute;
  right: -2rem;
  top: 2rem;
  color: rgba(255, 255, 255, .025);
  font: 800 10vw var(--display);
}

.settings-preview {
  position: relative;
  max-width: 520px;
  padding-bottom: clamp(2rem, 5vw, 4rem);
}

.settings-shot {
  margin: 0;
  border: 1px solid var(--border);
  clip-path: var(--chamfer);
  overflow: hidden;
  background: #09090d;
}

.settings-shot img {
  display: block;
  width: 100%;
  height: auto;
  -webkit-mask-image: linear-gradient(#000 88%, transparent);
  mask-image: linear-gradient(#000 88%, transparent);
}

.settings-shot.back {
  position: absolute;
  right: 2%;
  top: 0;
  width: 62%;
  transform-origin: right center;
  transform: rotate(4deg);
  box-shadow: -14px 20px 48px #030304;
  filter: saturate(.75) brightness(.72);
}

.settings-shot.front {
  position: relative;
  width: 74%;
  transform: rotate(-2.5deg);
  box-shadow: -22px 28px 60px #030304;
}

.settings-shot.front::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(150deg, rgba(var(--accent-rgb), .09), transparent 55%);
  pointer-events: none;
}

.customize-copy>p {
  margin-top: 2rem;
}

.customize-copy ul {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  border-top: 1px solid var(--border);
}

.customize-copy li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  color: #aaaab2;
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.customize-copy li span {
  margin-right: 1.2rem;
  color: var(--accent);
}

.download {
  min-height: 620px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: radial-gradient(circle, rgba(var(--accent-rgb), .1), transparent 36%);
}

.download h2 {
  position: relative;
  z-index: 1;
}

.download>p {
  max-width: 540px;
  margin: 2rem auto;
  color: #8e8e98;
  font-size: .8rem;
  line-height: 1.8;
}

.download .button {
  margin-bottom: 1.2rem;
}

.download small {
  color: #555560;
  font-size: .5rem;
  letter-spacing: .14em;
}

.download-code {
  position: absolute;
  color: rgba(var(--accent-rgb), .035);
  font: 900 clamp(8rem, 22vw, 22rem)/.72 var(--display);
  letter-spacing: .18em;
  transform: skewY(-5deg);
}

.site-footer {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem clamp(1.25rem, 5vw, 5.5rem);
  border-top: 1px solid var(--border);
  color: #60606a;
  font-size: .55rem;
  letter-spacing: .12em;
}

.site-footer .brand {
  color: var(--fg);
  font-size: .68rem;
}

.site-footer>a:last-child {
  color: #888891;
}

.site-footer>a:last-child:hover {
  color: var(--accent);
}

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

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@keyframes orbit {
  to {
    transform: rotate(1turn);
  }
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@keyframes bit-glow {
  0%,
  100% {
    box-shadow:
      0 0 18px rgba(var(--accent-rgb), .95),
      0 0 52px rgba(var(--accent-rgb), .45),
      inset 0 0 16px rgba(255, 255, 255, .28);
  }

  50% {
    box-shadow:
      0 0 28px rgba(var(--accent-rgb), 1),
      0 0 78px rgba(var(--accent-rgb), .62),
      inset 0 0 22px rgba(255, 255, 255, .4);
  }
}

@keyframes glitch {

  0%,
  89%,
  92%,
  95%,
  100% {
    transform: translate(0);
    text-shadow: none;
  }

  90% {
    transform: translate(-2px, 1px) skewX(2deg);
    text-shadow: -3px 0 var(--secondary), 3px 0 var(--tertiary);
  }

  91% {
    transform: translate(3px, -1px) skewX(-2deg);
    text-shadow: 3px 0 var(--secondary), -3px 0 var(--tertiary);
  }

  93% {
    transform: translate(1px, 0);
    text-shadow: -2px 0 var(--secondary), 2px 0 var(--tertiary);
  }

  94% {
    transform: translate(-1px, 1px);
    text-shadow: 2px 0 var(--secondary), -2px 0 var(--tertiary);
  }
}

@media (max-width: 980px) {
  .hero {
    height: auto;
    max-height: none;
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .hero::before {
    display: none;
  }

  .hero-copy {
    min-height: 650px;
    padding-right: clamp(1.4rem, 7vw, 7rem);
  }

  .hero-visual {
    min-height: 760px;
    border-top: 1px solid var(--border);
  }

  .orbit-one {
    width: 650px;
  }

  .orbit-two {
    width: 490px;
  }

  .phone {
    width: 290px;
  }

  .nav-links {
    display: none;
  }

  .section-heading,
  .customize {
    grid-template-columns: 1fr;
  }

  .decoder {
    min-height: 720px;
    align-items: flex-start;
  }

  .decoder-copy {
    width: min(100%, 520px);
  }

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

  .feature-card-wide {
    grid-column: 1 / -1;
  }

  .mini-matrix {
    right: -1rem;
    bottom: -.6rem;
  }

  .settings-preview {
    width: 100%;
    max-width: 720px;
    margin: auto;
  }

  .customize-copy {
    grid-row: 1;
  }

  .customize::before {
    right: 0;
  }
}

@media (max-width: 600px) {
  .site-header {
    height: 72px;
    padding-inline: 1rem;
  }

  .brand {
    font-size: .72rem;
    gap: .55rem;
  }

  .brand-mark {
    width: 22px;
    height: 22px;
  }

  .nav-cta {
    padding: 0 .8rem;
    gap: .55rem;
  }

  .nav-cta-long {
    display: none;
  }

  .nav-cta-short {
    display: inline;
  }

  .hero-copy {
    min-height: 0;
    padding: 3rem 1.25rem 2.5rem;
  }

  .system-stats {
    margin-top: 3rem;
  }

  .eyebrow {
    font-size: .58rem;
    margin-bottom: 1.5rem;
  }

  h1 {
    font-size: clamp(2.1rem, 12vw, 3.4rem);
    overflow-wrap: break-word;
  }

  .hero-deck {
    font-size: .78rem;
  }

  .hero-actions .button {
    flex: 1;
    min-width: 210px;
  }

  .download .button {
    flex: none;
    align-self: center;
  }

  .system-stats {
    width: 100%;
    gap: 1rem;
  }

  .system-stats div {
    min-width: 0;
  }

  .system-stats dd {
    font-size: .6rem;
  }

  .hero-visual {
    min-height: 670px;
  }

  .phone {
    width: 250px;
  }

  .data-tag {
    display: none;
  }

  .visual-index {
    top: 1.5rem;
  }

  .carousel-controls {
    right: 1rem;
    bottom: 2.5rem;
  }

  .theme-label {
    left: 1rem;
    bottom: 2.7rem;
    max-width: 110px;
    line-height: 1.5;
  }

  .section {
    padding-block: 5.5rem;
  }

  .section-heading {
    gap: 2rem;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 1fr;
    margin-top: 3rem;
  }

  .feature-card-wide {
    grid-column: auto;
  }

  .mini-matrix {
    display: none;
  }

  .feature-card {
    height: 100%;
    min-height: 0;
    padding: 1.6rem;
  }

  .signal-line {
    display: none;
  }

  .decoder {
    min-height: 750px;
  }

  #decoder-canvas {
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, transparent 34%, #000 55% 91%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0%, transparent 34%, #000 55% 91%, transparent 100%);
  }

  
  .site-footer {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
