/* UsageForge, an Aurora Forge Lab product. Shares the lab's night sky, aurora light, amber signal and lamp field. */

@font-face {
  font-family: "Archivo";
  src: url("assets/fonts/archivo-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Sans";
  src: url("assets/fonts/instrument-sans-var-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-display: swap;
}

:root {
  --deep: #02060e;
  --night: #050c1a;
  --night-2: #0a1426;
  --night-3: #111e36;
  --ink: #eaf2f8;
  --ink-2: #c8d6e4;
  --muted: #93a7bb;
  --faint: #62778d;
  --line: rgba(150, 205, 245, 0.14);
  --line-2: rgba(150, 205, 245, 0.28);
  --aurora: #4fe3d0;
  --aurora-hi: #8cf2e6;
  --cyan: #4cc9f0;
  --blue: #5b8cff;
  --violet: #9b7dff;
  --amber: #ffb547;
  --amber-hot: #ff8a3d;
  --display: "Archivo", "Arial Narrow", Impact, sans-serif;
  --sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --nav-h: 68px;
  --gutter: max(clamp(16px, 5vw, 72px), calc((100% - 1240px) / 2));
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --chamfer: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px);
  --chamfer-lg: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px);
  /* Lamp board: square lamps separated by dark seams, drawn over any background. */
  --cell: 12px;
  --seam: 3px;
  --seam-color: var(--deep);
  --lamps:
    repeating-linear-gradient(90deg, transparent 0 calc(var(--cell) - var(--seam)), var(--seam-color) 0 var(--cell)),
    repeating-linear-gradient(0deg, transparent 0 calc(var(--cell) - var(--seam)), var(--seam-color) 0 var(--cell));
}

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

html {
  background: var(--deep);
  color-scheme: dark;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--deep);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overflow-wrap: break-word;
}

.aurora-page {
  background: var(--deep);
}

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

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  font-stretch: 72%;
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p {
  margin: 0;
}

::selection {
  background: var(--aurora);
  color: var(--night);
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--amber);
  color: var(--deep);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: none;
}

/* ---------- Shared parts ---------- */

.kicker {
  margin-bottom: 20px;
  color: var(--aurora);
  font: 500 12.5px/1.2 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 22px;
  vertical-align: 0.05em;
  background: currentColor;
  box-shadow: 12px 0 0 rgba(79, 227, 208, 0.35);
}

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

.sub {
  margin-top: 22px;
  max-width: 54ch;
  color: var(--muted);
  font-size: 18px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 14px;
}

.button {
  --bg: var(--aurora);
  --fg: var(--night);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 14px 22px;
  border: 0;
  background: var(--bg);
  color: var(--fg);
  font: 600 15px/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  clip-path: var(--chamfer);
  transition: transform 0.15s var(--ease), background-color 0.2s, box-shadow 0.2s;
}

.button:active {
  transform: translateY(1px) scale(0.99);
}

.button-ghost {
  --bg: rgba(234, 242, 248, 0.06);
  --fg: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-2);
}

.button-small {
  min-height: 40px;
  padding: 11px 16px;
  font-size: 14px;
}

/* A clip-path would hide the outline, so the focused button drops its chamfer. */
.button:focus-visible {
  clip-path: none;
}

@media (hover: hover) {
  .button-primary:hover {
    --bg: var(--aurora-hi);
  }

  .button-ghost:hover {
    --bg: rgba(234, 242, 248, 0.11);
    box-shadow: inset 0 0 0 1px rgba(150, 205, 245, 0.45);
  }
}

.text-link {
  color: var(--ink-2);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--line-2);
  text-underline-offset: 5px;
  transition: color 0.2s, text-decoration-color 0.2s;
}

.text-link:hover {
  color: var(--ink);
  text-decoration-color: var(--amber);
}

/* Cursor flashlight on fine pointers; script.js writes --mx/--my. */
.glow {
  position: relative;
}

.glow::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(79, 227, 208, 0.08), transparent 70%);
  transition: opacity 0.25s;
}

@media (hover: hover) and (pointer: fine) {
  .glow:hover::before {
    opacity: 1;
  }
}

/* Dot-matrix glyphs. The text is the no-JavaScript fallback; script.js draws lamps over it. */
.glyph {
  position: relative;
  display: block;
}

.glyph canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.glyph-text {
  font: 800 1em/1 var(--display);
  font-stretch: 62%;
  color: var(--aurora);
}

.glyph.is-drawn .glyph-text {
  visibility: hidden;
}

/* ---------- Navigation ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  height: var(--nav-h);
  padding: 0 var(--gutter);
  border-bottom: 1px solid transparent;
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s;
}

.site-header.is-scrolled {
  background: rgba(5, 12, 26, 0.8);
  border-bottom-color: var(--line);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
  color: var(--ink);
  font: 700 17px/1 var(--display);
  font-stretch: 85%;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.brand img {
  width: 44px;
  height: 24px;
  image-rendering: pixelated;
}

.nav-links {
  display: flex;
  gap: 4px;
}

.nav-links a {
  padding: 9px 14px;
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
  clip-path: var(--chamfer);
}

.nav-links a:hover,
.nav-links a.is-current,
.nav-links a[aria-current="page"] {
  color: var(--ink);
  background: rgba(79, 227, 208, 0.1);
}

.nav-links a:focus-visible {
  clip-path: none;
}

/* ---------- Page and footer reveal ---------- */

.page {
  position: relative;
  z-index: 1;
  background: var(--night);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  /* Above the statement's overlap, so the lake and the hero buttons keep their clicks. */
  z-index: 2;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100svh;
  /* More room above than below, so the copy and the index sit a little under the middle. */
  padding: calc(var(--nav-h) + 13vh) var(--gutter) 5vh;
  overflow: hidden;
  /* No-JavaScript sky: the same lamp board, lit by CSS gradients. */
  background:
    var(--lamps),
    radial-gradient(70% 45% at 72% 26%, rgba(76, 201, 240, 0.34), transparent 70%),
    radial-gradient(55% 40% at 30% 18%, rgba(79, 227, 208, 0.28), transparent 70%),
    radial-gradient(40% 30% at 88% 10%, rgba(155, 125, 255, 0.22), transparent 70%),
    linear-gradient(180deg, #030814, #0a1730 60%, var(--night));
}

.field {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
}

/* One canvas pixel per scene cell, scaled up crisp by the compositor. It fades in once built. */
.hero-field {
  image-rendering: pixelated;
  opacity: 0;
  transition: opacity 0.9s var(--ease);
}

.hero-field.is-ready {
  opacity: 1;
}

/* With the scene on its way, the hero waits in plain night instead of the lamp board. */
.js .hero {
  background: linear-gradient(180deg, #050816, #0b1024 62%, var(--night));
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 48px;
  will-change: transform;
}

.hero-copy {
  max-width: 820px;
}

.hero h1 {
  max-width: 13ch;
  font-size: clamp(54px, 7vw, 112px);
  line-height: 0.9;
  text-shadow: 0 2px 40px rgba(2, 6, 14, 0.6);
}

.lede {
  margin-top: 28px;
  max-width: 54ch;
  color: var(--ink-2);
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.55;
  text-shadow: 0 1px 18px rgba(2, 6, 14, 0.9), 0 0 2px rgba(2, 6, 14, 0.6);
}

.hero .actions {
  margin-top: 34px;
}

/* On phones the copy fills the screen, so the hero grows a stage below it for the valley. */
@media (max-aspect-ratio: 1/1) {
  .hero {
    padding-top: calc(var(--nav-h) + 32px);
    padding-bottom: 108vw;
  }
}

/* The sky moves behind the hero actions, so the ghost buttons carry their own night. */
.hero .button-ghost {
  --bg: rgba(5, 12, 26, 0.82);
}

/* A light veil, not frosted glass: the valley stays visible through it, and no blur
   is recomputed over the moving sky every frame. */
.lab-index {
  padding: 18px;
  background: rgba(5, 12, 26, 0.42);
  text-shadow: 0 1px 12px rgba(2, 6, 14, 0.95);
  box-shadow: inset 0 0 0 1px var(--line);
  clip-path: var(--chamfer);
}

.lab-index-head {
  display: flex;
  justify-content: space-between;
  color: var(--faint);
  font: 500 11.5px/1.3 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lab-index ol {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.lab-index a {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 2px 8px;
  padding: 13px 8px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: background-color 0.2s;
}

.lab-index a:hover,
.lab-index a:focus-visible {
  background: rgba(79, 227, 208, 0.07);
}

.ix {
  grid-row: span 2;
  color: var(--amber);
  font: 600 13px/1.6 var(--mono);
}

.ix-name {
  font: 700 21px/1.1 var(--display);
  font-stretch: 78%;
}

.ix-status {
  color: var(--muted);
  font-size: 13.5px;
}

.scroll-cue {
  position: absolute;
  right: var(--gutter);
  bottom: 28px;
  display: none;
  align-items: center;
  gap: 10px;
  color: var(--faint);
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
}

.scroll-cue span {
  width: 6px;
  height: 18px;
  background: linear-gradient(var(--aurora) 0 0) top / 6px 6px no-repeat;
  animation: drip 1.8s steps(3) infinite;
}

@keyframes drip {
  to {
    background-position: 0 18px;
  }
}

/* ---------- Statement ---------- */

.statement {
  position: relative;
  z-index: 1;
  height: 210vh;
  margin-top: -14vh;
  background: linear-gradient(180deg, transparent, var(--night) 12vh);
}

.statement .pin {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  height: 100svh;
  padding: var(--nav-h) var(--gutter) 0;
}

.statement p {
  max-width: 24ch;
  font: 700 clamp(34px, min(5vw, 7.4vh), 84px)/1.04 var(--display);
  font-stretch: 74%;
  letter-spacing: -0.005em;
  text-wrap: pretty;
}

.statement em {
  color: var(--amber);
  font-style: normal;
}

.js .statement .w {
  color: rgba(234, 242, 248, 0.18);
  transition: color 0.35s var(--ease);
}

.js .statement .w.lit {
  color: var(--ink);
}

.js .statement .w.lit.hot {
  color: var(--amber);
}

/* ---------- Products: stacked cards ---------- */

.products {
  position: relative;
  isolation: isolate;
  padding: clamp(40px, 8vh, 96px) var(--gutter) clamp(88px, 14vh, 160px);
}

/* A sticky sky behind the stack: it takes the colour of the product in view. */
.products-sky {
  position: sticky;
  top: 0;
  z-index: -1;
  height: 100svh;
  margin: 0 calc(-1 * var(--gutter)) -100svh;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent);
}

.section-head {
  max-width: 1000px;
  margin-bottom: clamp(48px, 8vh, 88px);
}

.section-head h2,
.contact h2 {
  font-size: clamp(46px, 6.4vw, 100px);
}

.stack {
  display: grid;
  gap: 32px;
}

.card {
  position: sticky;
  top: calc(var(--nav-h) + 20px + var(--i, 0) * 18px);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  min-height: min(76svh, 640px);
  background: linear-gradient(160deg, var(--night-3), var(--night-2) 55%);
  box-shadow: inset 0 0 0 1px var(--line), 0 -24px 60px -40px rgba(0, 0, 0, 0.8);
  clip-path: var(--chamfer-lg);
  transform-origin: 50% 0;
}

.card-1 { --i: 0; --tint: #58f0a8; }
.card-2 { --i: 1; --tint: #ffb14a; }
.card-3 { --i: 2; --tint: #6aa7ff; }
.card-4 { --i: 3; --tint: #ff6fae; }
.card-5 { --i: 4; --tint: #b48cff; }

.card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--tint) 30%, var(--aurora) 70%, transparent);
  opacity: 0.8;
}

.card-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 4vw, 56px);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: auto;
  padding-bottom: 32px;
}

.glyph-index {
  width: 66px;
  height: 42px;
  font-size: 40px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-2);
  font: 500 12.5px/1.3 var(--mono);
  letter-spacing: 0.06em;
  text-align: right;
}

.status span {
  flex: none;
  width: 8px;
  height: 8px;
  background: var(--amber);
  box-shadow: 0 0 12px rgba(255, 181, 71, 0.7);
}

.card-kicker {
  color: var(--faint);
  font: 500 12.5px/1.3 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.card h3 {
  margin-top: 14px;
  font-size: clamp(42px, 4.8vw, 76px);
}

.card-lede {
  margin-top: 18px;
  max-width: 50ch;
  color: var(--ink-2);
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 30px;
  padding: 0;
  list-style: none;
}

.facts li {
  padding: 7px 11px;
  color: var(--ink-2);
  font: 500 12.5px/1.2 var(--mono);
  box-shadow: inset 0 0 0 1px var(--line-2);
}

.card-media {
  position: relative;
  z-index: 1;
  margin: 0;
  display: grid;
  place-items: center;
  padding: clamp(24px, 3vw, 40px);
  background:
    var(--lamps),
    radial-gradient(60% 60% at 50% 45%, color-mix(in srgb, var(--tint) 24%, transparent), transparent 75%),
    var(--night);
  --seam-color: var(--night-2);
  box-shadow: inset 1px 0 0 var(--line);
}

.card-media figcaption {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 16px;
  color: var(--muted);
  font: 500 12px/1.4 var(--mono);
}

.glyph-art {
  width: min(100%, 440px);
  aspect-ratio: 40 / 31;
  display: grid;
  place-items: center;
  font-size: clamp(28px, 3vw, 44px);
  text-align: center;
}

.glyph-art .glyph-text {
  color: var(--tint);
}

/* ---------- Contact ---------- */

.contact {
  padding: clamp(88px, 14vh, 160px) var(--gutter);
  border-top: 1px solid var(--line);
}

.contact-options {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 16px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
}

.contact-option {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(22px, 3vw, 36px);
  background: var(--night-2);
  box-shadow: inset 0 0 0 1px var(--line);
  clip-path: var(--chamfer);
}

.contact-option > * {
  position: relative;
  z-index: 1;
}

.contact-option-title {
  color: var(--faint);
  font: 500 12.5px/1.3 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-address {
  font: 800 clamp(28px, 3.4vw, 52px)/1 var(--display);
  font-stretch: 70%;
  overflow-wrap: anywhere;
}

.contact-option-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 18px;
}

.copy-email[data-copied] {
  --bg: rgba(255, 181, 71, 0.16);
  box-shadow: inset 0 0 0 1px var(--amber);
}

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

/* ---------- Footer, revealed from under the page ---------- */

.site-footer {
  position: sticky;
  bottom: 0;
  z-index: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(36px, 6vh, 64px);
  min-height: min(84svh, 660px);
  padding: clamp(56px, 10vh, 96px) var(--gutter) 28px;
  background: var(--deep);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 32px;
}

.footer-cols h2 {
  margin-bottom: 14px;
  color: var(--faint);
  font: 500 12.5px/1.3 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-cols a {
  display: block;
  width: fit-content;
  padding: 4px 0;
  color: var(--ink-2);
  text-decoration: none;
}

.footer-cols a:hover {
  color: var(--aurora);
}

.wordmark-wrap {
  margin-top: auto;
}

.glyph-wordmark {
  width: 100%;
  aspect-ratio: 67 / 9;
  font-size: clamp(40px, 9vw, 150px);
  line-height: 1;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  color: var(--muted);
  font-size: 14px;
}

.hint {
  color: var(--faint);
}

/* ---------- Responsive ---------- */

@media (min-width: 1101px) {
  .scroll-cue {
    display: none;
  }
}

/* Short desktop windows keep the lab index, just tighter. */
@media (min-width: 1101px) and (max-height: 759px) {
  .lab-index {
    padding: 12px 14px;
  }

  .lab-index a {
    padding: 7px 8px;
  }
}

@media (max-width: 1100px) {
  .lab-index {
    display: none;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .scroll-cue {
    display: inline-flex;
  }
}

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

  .card-media {
    min-height: 360px;
    box-shadow: inset 0 1px 0 var(--line);
  }

  .contact-options {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 800px) {
  :root {
    --nav-h: 60px;
    --cell: 10px;
  }

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

  .nav-links {
    justify-self: end;
  }

  .nav-links a {
    padding: 8px 10px;
  }

  .scroll-cue {
    display: none;
  }

  .card {
    position: relative;
    top: auto;
  }

  .site-footer {
    position: relative;
    min-height: 0;
  }

  .glyph-wordmark {
    aspect-ratio: 31 / 17;
    max-width: 420px;
  }

}

@media (max-width: 520px) {
  .brand-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

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

  .hero .actions .button {
    flex: 1 1 auto;
  }

  .card-copy {
    padding: 24px 20px 28px;
  }

  .card-top {
    padding-bottom: 24px;
  }
}

@media (hover: none) {
  .hint {
    display: none;
  }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .statement {
    height: auto;
    margin-top: 0;
  }

  .statement .pin {
    position: relative;
    height: auto;
    padding-block: clamp(96px, 16vh, 160px);
  }

  .js .statement .w {
    color: var(--ink);
  }

  .js .statement .w.hot {
    color: var(--amber);
  }

  .card {
    position: relative;
    top: auto;
  }
}

/* ---------- UsageForge additions ---------- */

code,
pre {
  font-family: var(--mono);
}

.sub code,
.card-lede code,
.faq-list code {
  color: var(--aurora-hi);
  font-size: 0.88em;
}


/* Install command: one line, copyable. */
.command {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 640px;
  margin-top: 26px;
  padding: 6px 6px 6px 18px;
  background: rgba(10, 20, 38, 0.85);
  box-shadow: inset 0 0 0 1px var(--line);
  clip-path: var(--chamfer);
}

.command code {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  white-space: nowrap;
  color: var(--ink);
  font-size: 14px;
  scrollbar-width: none;
}

.command code::before {
  content: "$ ";
  color: var(--faint);
}

.copy[data-copied] {
  --bg: rgba(255, 181, 71, 0.16);
  color: var(--amber);
  box-shadow: inset 0 0 0 1px var(--amber);
}

/* The lab tints, re-assigned to UsageForge's three cards. */
.card-1 { --tint: #ffb14a; }
.card-2 { --tint: #58f0a8; }
.card-3 { --tint: #6aa7ff; }

/* Keep the sticky product sky from spilling over the sections below. */
.products {
  overflow: clip;
}

.card-media figcaption {
  text-align: center;
}

/* Schedule card: the day drawn as a row of lamps, one per hour. */
.timeline {
  width: min(100%, 540px);
}

.tl-label {
  margin: 0 0 8px;
  color: var(--faint);
  font: 500 11.5px/1.3 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tl-row {
  display: grid;
  grid-template-columns: repeat(18, 1fr);
  gap: 3px;
  margin-bottom: 26px;
}

.tl-row i {
  aspect-ratio: 1;
  background: rgba(150, 205, 245, 0.07);
}

.tl-row .p,
.k-p::before { background: var(--amber); box-shadow: 0 0 12px rgba(255, 181, 71, 0.7); }
.tl-row .i,
.k-i::before { background: rgba(88, 240, 168, 0.22); }
.tl-row .y,
.k-y::before { background: var(--ink-2); }
.tl-row .x,
.k-x::before { background: rgba(255, 138, 61, 0.14); box-shadow: inset 0 0 0 1px rgba(255, 138, 61, 0.7); }
.tl-row .f,
.k-f::before { background: var(--aurora-hi); box-shadow: 0 0 10px rgba(140, 242, 230, 0.45); }

.tl-axis {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  margin-top: -14px;
  color: var(--faint);
  font: 500 11px/1 var(--mono);
}

.media-timeline {
  align-content: center;
  gap: 18px;
}

.media-timeline .tl-legend {
  position: static;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
}

.tl-legend span::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 8px;
  vertical-align: -0.05em;
}

/* Privacy card: a terminal readout in the lab-index panel style. */
.term {
  width: min(100%, 440px);
  background: rgba(5, 12, 26, 0.82);
  box-shadow: inset 0 0 0 1px var(--line);
  clip-path: var(--chamfer);
}

.term-head {
  display: flex;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--faint);
  font: 500 11.5px/1.3 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.term pre {
  margin: 0;
  padding: 16px 18px 20px;
  overflow-x: auto;
  color: var(--ink-2);
  font: 13px/1.75 var(--mono);
}

.p { color: var(--faint); }
.ok { color: var(--aurora); }
.am { color: var(--amber); }

/* ---------- Setup ---------- */

.setup,
.faq {
  padding: clamp(88px, 14vh, 160px) var(--gutter) 0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: clamp(22px, 3vw, 32px);
  background: var(--night-2);
  box-shadow: inset 0 0 0 1px var(--line);
  clip-path: var(--chamfer);
}

.step > * {
  position: relative;
  z-index: 1;
}

.step .glyph-index {
  margin-bottom: 8px;
}

.step h3 {
  font-size: clamp(30px, 2.6vw, 40px);
}

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

.step pre {
  align-self: stretch;
  margin: 6px 0 0;
  padding: 14px 16px;
  overflow-x: auto;
  background: var(--night);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* ---------- FAQ ---------- */

.faq-list {
  max-width: 880px;
}

.faq-list details {
  padding: 22px 0;
  border-top: 1px dotted var(--line-2);
}

.faq-list details:last-child {
  border-bottom: 1px dotted var(--line-2);
}

.faq-list summary {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  cursor: pointer;
  list-style: none;
  font: 700 clamp(22px, 2vw, 28px)/1.15 var(--display);
  font-stretch: 80%;
}

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

.faq-list summary::after {
  content: "+";
  color: var(--aurora);
  font: 400 22px/1 var(--mono);
  transition: transform 0.3s var(--ease);
}

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

.faq-list details p {
  max-width: 68ch;
  margin-top: 12px;
  color: var(--muted);
}

.faq-list em {
  color: var(--amber);
  font-style: normal;
}

.contact {
  margin-top: clamp(88px, 14vh, 160px);
}

.contact-cmd {
  font: 500 clamp(15px, 1.4vw, 18px)/1.6 var(--mono);
}

@media (max-width: 1100px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }
}

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

@media (max-width: 520px) {
  .command {
    flex-wrap: wrap;
    padding: 12px;
  }

  .command code {
    flex-basis: 100%;
  }
}

/* ---------- Control panel showcase ---------- */

.showcase {
  position: relative;
  z-index: 1;
  padding: clamp(40px, 8vh, 96px) var(--gutter) clamp(56px, 10vh, 120px);
}

.shot {
  margin: 0;
  padding: clamp(8px, 1.2vw, 14px);
  background: linear-gradient(160deg, var(--night-3), var(--night-2) 55%);
  box-shadow: inset 0 0 0 1px var(--line-2), 0 60px 120px -50px rgba(79, 227, 208, 0.35), 0 40px 80px -40px #000;
  clip-path: var(--chamfer-lg);
}

.shot img {
  width: 100%;
  height: auto;
  clip-path: var(--chamfer);
}

.shot-facts {
  justify-content: center;
  margin: 26px 0 0;
}
