/* nyxprovider.com. Warm near-black, Bricolage Grotesque for display and
 * body, Space Mono for labels, code, and buttons. The home hero sets copy
 * left against an iridescent streak field with the gold wafer on top,
 * under a floating pill nav and an announcement banner. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/BricolageGrotesque.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Space Mono";
  src: url("/fonts/SpaceMono.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --bg: #090908;
  --raise: #121210;
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.22);
  --text: #ffffff;
  --text-dim: rgba(255, 255, 255, 0.58);
  --gold: #ffd485;
  --gold-deep: #f0b653;
  --sans: "Bricolage Grotesque", system-ui, sans-serif;
  --mono: "Space Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }

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

html, body { overflow-x: clip; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15.5px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--text); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

code { font-family: var(--mono); font-size: 0.92em; }

h1, h2, h3 { font-family: var(--sans); font-weight: 600; }

/* height:auto matters: without it the height presentation attribute
   survives max-width shrinking and stretches every content image. */
img { max-width: 100%; height: auto; display: block; }

/* Announcement banner */

.banner {
  background: var(--gold);
  text-align: center;
}
.banner a {
  display: block;
  padding: 8px 16px 9px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: #090908;
}
.banner a:hover { text-decoration: none; background: var(--gold-deep); }

/* Floating pill nav */

.top {
  position: sticky;
  top: 12px;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1180px;
  margin: 14px auto 0;
  padding: 9px 9px 9px 20px;
  background: rgba(24, 24, 21, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--sans);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}
.wordmark svg { width: 22px; height: 22px; }
.wordmark:hover { text-decoration: none; }

.top nav { display: flex; gap: 24px; align-items: center; }
.top nav a { font-size: 15px; font-weight: 500; color: var(--text); }
.top nav a[aria-current] { color: var(--gold); }
.top nav a.pill {
  font-family: var(--mono);
  font-size: 14.5px;
  background: var(--gold);
  color: #090908;
  border-radius: 999px;
  padding: 9px 18px 10px;
}
.top nav a.pill:hover { text-decoration: none; background: #fff; }

/* Home hero: copy left, artwork right */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  align-items: center;
  gap: clamp(10px, 3vw, 40px);
  min-height: 82vh;
  max-width: 1400px;
  margin: 0 auto;
  padding: 60px clamp(20px, 4vw, 50px) 30px;
}

/* Ambient dies drifting behind the hero, cut from the same wafer. */

.chips { position: absolute; inset: 0; pointer-events: none; }
.chips i {
  position: absolute;
  width: 26px;
  height: 26px;
  border-radius: 4px;
  background:
    repeating-linear-gradient(0deg, transparent 0 7px, rgba(255, 220, 150, 0.20) 7px 8px),
    repeating-linear-gradient(90deg, transparent 0 7px, rgba(255, 220, 150, 0.20) 7px 8px),
    linear-gradient(135deg, #6e5626, #3d3016);
  box-shadow: 0 0 20px rgba(255, 196, 92, 0.28), inset 0 0 0 1px rgba(255, 220, 150, 0.28);
}
.chips .c1 { top: 16%; left: 4%; transform: rotate(14deg) scale(0.8); opacity: 0.7; }
.chips .c2 { top: 68%; left: 12%; transform: rotate(-9deg) scale(1.15); filter: blur(1px); opacity: 0.55; }
.chips .c3 { top: 8%; left: 58%; transform: rotate(22deg) scale(0.6); filter: blur(2px); opacity: 0.5; }
.chips .c4 { top: 84%; left: 52%; transform: rotate(-18deg); opacity: 0.75; }
.chips .c5 { top: 30%; right: 2%; transform: rotate(8deg) scale(0.9); filter: blur(1px); opacity: 0.6; }

@media (prefers-reduced-motion: no-preference) {
  .chips i { animation: floaty 15s ease-in-out infinite alternate; }
  .chips .c2 { animation-duration: 19s; animation-delay: -7s; }
  .chips .c3 { animation-duration: 23s; animation-delay: -3s; }
  .chips .c4 { animation-duration: 17s; animation-delay: -12s; }
  .chips .c5 { animation-duration: 21s; animation-delay: -5s; }
  @keyframes floaty {
    from { translate: 0 -10px; }
    to { translate: 0 14px; }
  }
}

.hero h1 {
  font-size: clamp(42px, 5.2vw, 72px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.028em;
  margin: 0 0 22px;
  max-width: 12ch;
}
.hero h1 em, .page-hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, #ffe9b8, var(--gold) 45%, var(--gold-deep));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.hero-copy { position: relative; }

.lede {
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.55;
  max-width: 46ch;
  margin: 0 0 30px;
}

.hero-links { display: flex; gap: 14px; flex-wrap: wrap; }

.button {
  display: inline-block;
  font-family: var(--mono);
  font-size: 16px;
  padding: 12px 20px 14px;
  border-radius: 8px;
  background: var(--gold);
  color: #090908;
}
.button:hover { text-decoration: none; background: #fff; }
.button.ghost {
  background: none;
  color: var(--text);
  border: 1px solid var(--line-strong);
  padding: 11px 20px 13px;
}
.button.ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.06); }

/* Right side: iridescent streak field with the wafer floating on top. */

.hero-figure {
  position: relative;
  min-height: min(46vw, 620px);
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
}

.streaks {
  position: absolute;
  inset: 4% -6% 4% 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 26%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 26%, #000 92%, transparent);
}
.streaks i {
  position: absolute;
  left: -4%;
  right: -4%;
  border-radius: 999px;
  filter: blur(16px);
  transform: translateZ(0);
}
/* Fine horizontal banding over the streaks, for the motion-blurred
   scanline texture of the reference art. */
.streaks::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(180deg,
    rgba(9, 9, 8, 0.5) 0 2px, transparent 2px 6px, rgba(9, 9, 8, 0.25) 6px 7px, transparent 7px 11px);
  mix-blend-mode: multiply;
}
.streaks .s1 { top: 16%; height: 13%; background: linear-gradient(90deg, transparent, rgba(255, 118, 214, 0.55), rgba(168, 128, 255, 0.65), rgba(120, 220, 255, 0.5), transparent); }
.streaks .s2 { top: 32%; height: 17%; background: linear-gradient(90deg, transparent 8%, rgba(120, 200, 255, 0.55), rgba(255, 150, 220, 0.6), rgba(255, 214, 130, 0.45), transparent); }
.streaks .s3 { top: 47%; height: 20%; background: linear-gradient(90deg, transparent, rgba(255, 170, 120, 0.5), rgba(255, 118, 214, 0.62), rgba(140, 130, 255, 0.55), transparent 92%); }
.streaks .s4 { top: 65%; height: 15%; background: linear-gradient(90deg, transparent 5%, rgba(150, 235, 200, 0.4), rgba(120, 200, 255, 0.55), rgba(210, 140, 255, 0.5), transparent); }
.streaks .s5 { top: 79%; height: 10%; background: linear-gradient(90deg, transparent, rgba(255, 200, 140, 0.4), rgba(255, 140, 190, 0.45), transparent 88%); }

@media (prefers-reduced-motion: no-preference) {
  .streaks i { animation: drift 16s ease-in-out infinite alternate; }
  .streaks .s2 { animation-duration: 21s; animation-delay: -6s; }
  .streaks .s3 { animation-duration: 18s; animation-delay: -11s; }
  .streaks .s4 { animation-duration: 24s; animation-delay: -3s; }
  .streaks .s5 { animation-duration: 14s; animation-delay: -9s; }
  @keyframes drift {
    from { transform: translateX(-3.5%) scaleY(0.92); }
    to { transform: translateX(3.5%) scaleY(1.08); }
  }
}

.wafer-stage {
  position: relative;
  width: min(88%, 560px);
  aspect-ratio: 1;
}
/* Darkens the streaks directly behind the disc so it reads as an object
   in front of the light, not printed on it. */
.wafer-stage::before {
  content: "";
  position: absolute;
  inset: -7%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(9, 9, 8, 0.9), rgba(9, 9, 8, 0.5) 60%, transparent 76%);
}

.wafer-glow {
  position: absolute;
  inset: -8%;
  background:
    radial-gradient(closest-side, rgba(255, 196, 92, 0.14), rgba(255, 227, 125, 0.04) 55%, transparent 74%);
}

#wafer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  transition: opacity 0.9s ease;
}
.webgl-on #wafer { opacity: 1; }

/* The poster is the default: it shows until WebGL proves itself, and again
   if the context dies later, so a failed script never leaves a hole. */
.wafer-poster {
  position: absolute;
  inset: 5%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 30%, rgba(255, 236, 180, 0.22), transparent 30%),
    conic-gradient(from 210deg,
      #2e2412, #4d3c1a, #6e5626, #8a6f30, #a3823a,
      #8a6f30, #5f4a20, #3d3016, #2e2412),
    #1d1709;
  background-blend-mode: screen, normal;
  box-shadow: inset 0 0 70px rgba(0, 0, 0, 0.6), 0 40px 100px rgba(0, 0, 0, 0.55);
  transition: opacity 0.9s ease;
}
.webgl-on .wafer-poster { opacity: 0; }

/* Schematic callouts pointing at the wafer. */

.callouts { position: absolute; inset: 0; pointer-events: none; }
.callout {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.78);
  white-space: nowrap;
}
.callout .tag::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--gold);
  margin-right: 8px;
  vertical-align: 1px;
}
.callout .line { height: 1px; width: clamp(30px, 6vw, 90px); }
.co1 { top: 9%; left: 0; }
.co1 .line { background: linear-gradient(90deg, rgba(255, 255, 255, 0.45), transparent); }
.co2 { top: 46%; right: 1%; }
.co2 .line { background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45)); }
.co2 .tag::before { margin-right: 0; margin-left: 8px; }
.co2 .tag { display: flex; flex-direction: row-reverse; align-items: center; }
.co3 { bottom: 7%; left: 6%; }
.co3 .line { background: linear-gradient(90deg, rgba(255, 255, 255, 0.45), transparent); }

/* Customer strip */

.logo-strip {
  padding: 30px clamp(20px, 4vw, 50px) 34px;
  border-block: 1px solid var(--line);
  text-align: center;
}
.logo-strip > p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  margin: 0 0 22px;
}
.logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 18px clamp(28px, 5vw, 58px);
  color: rgba(255, 255, 255, 0.45);
}
.logos svg { height: 24px; width: auto; display: block; }
.logos svg:hover { color: rgba(255, 255, 255, 0.7); }

/* Numbers row */

.numbers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}
.numbers div {
  background: var(--bg);
  padding: 30px clamp(16px, 3vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.numbers strong {
  font-family: var(--mono);
  font-weight: 400;
  font-size: clamp(24px, 2.5vw, 32px);
  color: var(--text);
}
.numbers span { color: var(--text-dim); font-size: 13px; }

/* Sections */

main > section:not(.hero):not(.numbers) {
  max-width: 1180px;
  margin: 0 auto;
  padding: 90px clamp(20px, 4vw, 50px) 10px;
}

h2 {
  font-size: clamp(30px, 3.4vw, 42px);
  letter-spacing: -0.022em;
  line-height: 1.06;
  margin: 0 0 14px;
}

.section-note {
  color: var(--text-dim);
  font-size: 15.5px;
  max-width: 60ch;
  margin: 0 0 36px;
}
.section-note a, .section-note code { color: var(--gold); }

.after-link {
  display: inline-block;
  margin-top: 22px;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--gold);
}

/* Subpage hero */

.page-hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 70px clamp(20px, 4vw, 50px) 0;
}
.page-hero h1 {
  font-size: clamp(40px, 5vw, 64px);
  letter-spacing: -0.028em;
  line-height: 1.02;
  margin: 0 0 18px;
  max-width: 16ch;
}
.page-hero .lede { max-width: 56ch; }

.banner-img {
  width: 100%;
  height: clamp(220px, 30vw, 360px);
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
  margin: 34px 0 0;
}

/* Split media sections */

.media-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 54px);
  align-items: center;
}
.media-split img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
}
/* The wafer renders are square with the disc at the edges; cropping
   them to 3:2 would clip the rim. */
.media-split img[src*="wafer"] {
  aspect-ratio: 1 / 1;
  object-fit: contain;
  padding: 4%;
  background: radial-gradient(closest-side, rgba(255, 196, 92, 0.06), transparent 75%);
}
.media-split h2 { margin-top: 0; }

/* Cards, flat and bordered */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.cards article {
  background: var(--raise);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  transition: border-color 0.2s ease;
}
.cards article:hover { border-color: rgba(255, 212, 133, 0.4); }
.card-id {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--gold-deep);
  margin: 0 0 22px;
}
.cards h3 { font-size: 16.5px; font-weight: 600; margin: 0 0 7px; }
.cards p:last-child { color: var(--text-dim); font-size: 14px; line-height: 1.55; margin: 0; }

.cta-row { margin-top: 30px; }

/* Catalog table */

.panel {
  background: var(--raise);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.table-scroll { overflow-x: auto; }

.catalog table {
  width: 100%;
  min-width: 580px;
  border-collapse: collapse;
  font-size: 14.5px;
}
.catalog th {
  text-align: left;
  font-family: var(--mono);
  font-weight: 400;
  color: var(--text-dim);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.catalog td {
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
}
.catalog tbody tr:last-child td { border-bottom: none; }
.catalog td code { white-space: nowrap; }
.catalog .num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.catalog tbody tr:hover { background: rgba(255, 255, 255, 0.025); }

.mchip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--c, #444);
  color: #090908;
  font-family: var(--mono);
  font-size: 10.5px;
  vertical-align: middle;
}

.badge-chip {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
}
.badge-chip.live {
  color: #7dffc4;
  border-color: rgba(125, 255, 196, 0.35);
}

/* Quickstart and code */

.endpoint {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--raise);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 13px;
  margin-bottom: 18px;
  max-width: 100%;
}
.endpoint code {
  font-size: 13px;
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}
.endpoint code::-webkit-scrollbar { display: none; }
.endpoint button {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
  background: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 5px 10px;
  cursor: pointer;
  flex-shrink: 0;
}
.endpoint button:hover { color: var(--text); border-color: var(--line-strong); }

.code-panel {
  background: var(--raise);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.code-panel + .code-panel { margin-top: 18px; }
.code-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}
.code-chrome i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}
.code-chrome span {
  margin-left: 8px;
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
}
.code-panel pre {
  padding: 20px 24px;
  overflow-x: auto;
  font-size: 13.5px;
  line-height: 1.6;
  margin: 0;
}
.t-key { color: var(--gold); }
.t-str { color: #b8e6c3; }
.t-lit { color: #9ecbff; }
.t-com { color: rgba(255, 255, 255, 0.35); }

/* Live metric chips floating over the hero figure */

.metrics-card {
  position: absolute;
  left: 2%;
  bottom: 9%;
  z-index: 3;
  display: flex;
  gap: 22px;
  padding: 13px 18px;
  background: rgba(18, 18, 16, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.metrics-card div { display: flex; flex-direction: column; gap: 3px; }
.metrics-card span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.metrics-card strong {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 15.5px;
  color: var(--gold);
}

/* Model library cards */

.model-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.model-card {
  display: block;
  background: var(--raise);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px;
  transition: border-color 0.2s ease;
}
.model-card:hover { border-color: rgba(255, 212, 133, 0.4); text-decoration: none; }
.model-head { display: flex; align-items: center; gap: 4px; margin-bottom: 14px; }
.mlogo { width: 21px; height: 21px; margin-right: 9px; flex-shrink: 0; }
td .mlogo { vertical-align: middle; margin-right: 10px; }
.model-head code { font-size: 14px; color: var(--text); }
.model-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.model-tags span {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--text-dim);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 8px;
}
.model-price {
  display: flex;
  gap: 16px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text-dim);
}
.model-price b { color: var(--text); font-weight: 400; }
.model-card.more {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--gold);
  min-height: 130px;
}

/* Benchmark bars */

.bench-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.bench-panel {
  background: var(--raise);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px;
}
.bench-panel h3 { font-size: 16px; margin: 0 0 4px; }
.bench-panel .bench-sub {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  margin: 0 0 18px;
}
.bars { display: flex; flex-direction: column; gap: 12px; }
.bar { display: grid; grid-template-columns: 92px 1fr 52px; align-items: center; gap: 12px; }
.bar .who { font-family: var(--mono); font-size: 12px; color: var(--text-dim); }
.bar .who.nyx { color: var(--gold); }
.bar .track { background: rgba(255, 255, 255, 0.06); border-radius: 5px; height: 22px; overflow: hidden; }
.bar .fill { height: 100%; border-radius: 5px; background: rgba(255, 255, 255, 0.22); }
.bar .fill.nyx { background: linear-gradient(90deg, var(--gold-deep), var(--gold)); }
.bar .val { font-family: var(--mono); font-size: 12px; color: var(--text-dim); text-align: right; }
.bench-note { font-size: 12.5px; color: rgba(255, 255, 255, 0.35); margin: 14px 0 0; }

/* Console mockup */

.console {
  background: #0d0d0b;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.5);
}
.console-top {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
}
.console-top i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); }
.console-url {
  margin-left: 10px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  padding: 4px 12px;
}
.console-body { display: grid; grid-template-columns: 176px 1fr; }
.c-side {
  border-right: 1px solid var(--line);
  padding: 16px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.c-side a {
  font-size: 13.5px;
  color: var(--text-dim);
  padding: 7px 12px;
  border-radius: 7px;
}
.c-side a.on { color: var(--text); background: rgba(255, 255, 255, 0.07); }
.c-side a:hover { text-decoration: none; color: var(--text); }
.c-main { padding: 18px; min-width: 0; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.tile {
  background: var(--raise);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
}
.tile span { display: block; font-size: 11.5px; color: var(--text-dim); margin-bottom: 4px; }
.tile strong { font-family: var(--mono); font-weight: 400; font-size: 17px; color: var(--text); }
.chart-panel {
  background: var(--raise);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 14px;
}
.chart-panel p { font-size: 12px; color: var(--text-dim); margin: 0 0 10px; }
.chart-panel svg { width: 100%; height: auto; display: block; }
.c-table { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 11.5px; }
.c-table th {
  text-align: left;
  color: rgba(255, 255, 255, 0.35);
  font-weight: 400;
  padding: 6px 10px;
  border-bottom: 1px solid var(--line);
}
.c-table td { color: var(--text-dim); padding: 7px 10px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.c-table .ok { color: #7dffc4; }

/* Quotes */

.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.quote {
  background: var(--raise);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.quote p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--text); }
.quote footer { display: flex; align-items: center; gap: 11px; }
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: #090908;
  font-family: var(--mono);
  font-size: 12px;
  flex-shrink: 0;
}
.quote cite { font-style: normal; font-size: 13px; color: var(--text-dim); line-height: 1.4; }
.quote cite b { display: block; color: var(--text); font-weight: 500; }

/* Closing CTA band */

.cta-band {
  max-width: 1180px;
  margin: 90px auto 0;
  padding: 64px clamp(24px, 5vw, 70px);
  border-radius: 16px;
  border: 1px solid rgba(255, 212, 133, 0.25);
  background:
    radial-gradient(80% 130% at 50% -20%, rgba(255, 212, 133, 0.17), transparent 60%),
    var(--raise);
  text-align: center;
}
.cta-band h2 { margin: 0 0 12px; }
.cta-band p { color: var(--text-dim); max-width: 46ch; margin: 0 auto 28px; }
.cta-band .hero-links { justify-content: center; }

/* Subpage atmosphere: an art field behind the page hero, faded down. */

.page-hero { position: relative; }
.page-glow {
  position: absolute;
  inset: -30px -8% auto;
  height: 420px;
  z-index: -1;
  background-size: cover;
  background-position: center;
  opacity: 0.16;
  -webkit-mask-image: linear-gradient(180deg, #000 40%, transparent);
  mask-image: linear-gradient(180deg, #000 40%, transparent);
}

/* Docs layout: sticky section nav beside long-form content. */

.docs-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px clamp(20px, 4vw, 50px) 10px;
}
.docs-nav {
  position: sticky;
  top: 92px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.docs-nav p {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin: 0 0 8px;
}
.docs-nav a {
  font-size: 14px;
  color: var(--text-dim);
  padding: 6px 10px;
  border-left: 1px solid var(--line);
}
.docs-nav a:hover { color: var(--text); text-decoration: none; }
.docs-nav a.on { color: var(--gold); border-left-color: var(--gold); }
.docs-body { min-width: 0; }
.docs-body section { padding: 0 0 56px; }
.docs-body section h2 { scroll-margin-top: 100px; font-size: 26px; margin: 0 0 12px; }
.docs-body section h3 { font-size: 17px; margin: 26px 0 8px; }
.docs-body p { color: var(--text-dim); max-width: 66ch; }
.docs-body p code, .docs-body li code { color: var(--gold); }
.docs-body ul { color: var(--text-dim); padding-left: 20px; }
.docs-body li { margin-bottom: 6px; }

/* Plain data tables outside the catalog panel */

.data-table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 14px 0; }
.data-table th {
  text-align: left;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
.data-table td { padding: 10px 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); color: var(--text-dim); }
.data-table td:first-child { font-family: var(--mono); font-size: 13px; color: var(--text); }

/* Filter input above the catalog */

.filter-bar { margin: 0 0 16px; }
.filter-bar input {
  width: min(100%, 380px);
  background: var(--raise);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 14px;
  font: 14px var(--mono);
  color: var(--text);
  outline: none;
}
.filter-bar input:focus { border-color: rgba(255, 212, 133, 0.5); }
.filter-bar input::placeholder { color: rgba(255, 255, 255, 0.3); }

/* FAQ accordions */

.faq { display: flex; flex-direction: column; gap: 10px; max-width: 760px; }
.faq details {
  background: var(--raise);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 20px;
}
.faq details[open] { border-color: var(--line-strong); }
.faq summary {
  cursor: pointer;
  list-style: none;
  font-size: 15.5px;
  font-weight: 500;
  padding: 16px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--gold); font-size: 17px; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--text-dim); font-size: 14.5px; margin: 0 0 16px; max-width: 64ch; }

/* Compliance / trust strip */

.trust {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
}
.trust div {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--raise);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 18px;
}
.trust svg { width: 22px; height: 22px; flex-shrink: 0; }
.trust b { display: block; font-size: 14px; font-weight: 600; }
.trust span { font-size: 12px; color: var(--text-dim); }

/* Blog */

.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.blog-card {
  display: block;
  background: var(--raise);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.blog-card:hover { border-color: rgba(255, 212, 133, 0.4); text-decoration: none; }
.blog-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.blog-card .blog-body { padding: 18px 20px 20px; }
.blog-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  margin: 0 0 8px;
}
.blog-card h3 { font-size: 18px; margin: 0 0 8px; line-height: 1.25; }
.blog-card p:last-child { color: var(--text-dim); font-size: 14px; margin: 0; }

/* Long-form article */

.prose { max-width: 720px; margin: 0 auto; padding: 30px clamp(20px, 4vw, 50px) 10px; }
.prose .blog-meta { margin-bottom: 14px; }
.prose h1 { font-size: clamp(34px, 4.6vw, 52px); letter-spacing: -0.025em; line-height: 1.05; margin: 0 0 18px; }
.prose h2 { font-size: 24px; margin: 36px 0 10px; }
.prose p { color: var(--text-dim); font-size: 16px; line-height: 1.65; margin: 0 0 18px; }
.prose img { border-radius: 12px; border: 1px solid var(--line); margin: 26px 0; }
.prose a { color: var(--gold); }
.prose code { color: var(--gold); }
.prose blockquote {
  margin: 26px 0;
  padding: 4px 0 4px 20px;
  border-left: 2px solid var(--gold);
  color: var(--text);
  font-size: 18px;
}

/* Step list for process sections */

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }

/* Inline card diagrams, thin line art with gold accents */

.card-diagram {
  width: 100%;
  height: 84px;
  margin-bottom: 20px;
  display: block;
}
.card-diagram text { font-family: "Space Mono", monospace; font-size: 8.5px; fill: rgba(255, 255, 255, 0.5); }
.card-diagram .ln { stroke: rgba(255, 255, 255, 0.28); fill: none; stroke-width: 1.2; }
.card-diagram .au { stroke: var(--gold); fill: none; stroke-width: 1.4; }
.card-diagram .nd { fill: rgba(255, 255, 255, 0.28); }
.card-diagram .ng { fill: var(--gold); }

/* Model library: search, filter chips, card grid */

.lib-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 22px;
}
.chip-btn {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text-dim);
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 15px;
  cursor: pointer;
}
.chip-btn:hover { color: var(--text); border-color: var(--line-strong); }
.chip-btn[aria-pressed="true"] {
  color: #090908;
  background: var(--gold);
  border-color: var(--gold);
}

.lib-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.lib-card {
  display: flex;
  flex-direction: column;
  background: var(--raise);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  transition: border-color 0.2s ease, transform 0.2s ease;
  position: relative;
}
.lib-card:hover { border-color: rgba(255, 212, 133, 0.4); transform: translateY(-2px); }
.lib-card .mlogo { width: 26px; height: 26px; margin: 0 0 14px; }
.lib-card h3 { font-size: 16px; font-weight: 600; margin: 0 0 6px; letter-spacing: -0.01em; }
.lib-card .lib-price {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-dim);
  margin: 0 0 14px;
  line-height: 1.5;
}
.lib-card .model-tags { margin: auto 0 0; padding-top: 12px; border-top: 1px solid var(--line); }
.lib-new {
  position: absolute;
  top: 14px;
  right: 14px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  color: #090908;
  background: var(--gold);
  border-radius: 4px;
  padding: 3px 6px;
}

/* Mega footer band */

.foot-mega {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(96px, 15vw, 200px);
  line-height: 0.85;
  letter-spacing: -0.045em;
  text-align: center;
  margin: 0 0 8px;
  background: linear-gradient(180deg, rgba(255, 220, 150, 0.20), rgba(255, 220, 150, 0.02));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  user-select: none;
}
.foot-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 0 46px;
}
.foot-badges span {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 12px;
}

/* Scroll reveals; static when the user prefers reduced motion. */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Footer */

footer {
  max-width: 1180px;
  margin: 90px auto 0;
  padding: 44px clamp(20px, 4vw, 50px) 36px;
  border-top: 1px solid var(--line);
}
.foot-cols {
  display: grid;
  grid-template-columns: minmax(200px, 2fr) repeat(3, minmax(110px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}
.foot-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}
.foot-brand svg { width: 20px; height: 20px; }
.foot-tag { color: var(--text-dim); font-size: 14px; max-width: 30ch; margin: 0; }
.foot-cols nav { display: flex; flex-direction: column; gap: 10px; }
.foot-cols nav p {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin: 0 0 4px;
}
.foot-cols nav a { color: var(--text-dim); font-size: 14.5px; }
.foot-cols nav a:hover { color: var(--text); }
.foot-base {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--text-dim);
  font-size: 13px;
}
.foot-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
}
.foot-status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7dffc4;
  box-shadow: 0 0 8px rgba(125, 255, 196, 0.7);
}

/* Small screens */

@media (max-width: 900px) {
  .top { margin-inline: 14px; }
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 60px;
    gap: 26px;
  }
  .hero-figure { min-height: 0; }
  .wafer-stage { width: min(92vw, 480px); }
  .streaks { inset: 6% -6% 6% -6%; }
  .callouts { display: none; }
  .numbers { grid-template-columns: repeat(2, 1fr); }
  .top nav a:not(.pill) { display: none; }
  .media-split { grid-template-columns: 1fr; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .model-grid { grid-template-columns: 1fr; }
  .bench-panels { grid-template-columns: 1fr; }
  .quotes { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .lib-grid { grid-template-columns: repeat(2, 1fr); }
  .docs-layout { grid-template-columns: 1fr; }
  .docs-nav { position: static; flex-direction: row; flex-wrap: wrap; gap: 4px 14px; }
  .docs-nav a { border-left: none; padding: 4px 0; }
  .console-body { grid-template-columns: 1fr; }
  .c-side { flex-direction: row; overflow-x: auto; border-right: none; border-bottom: 1px solid var(--line); }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .hero-figure { flex-direction: column; }
  .metrics-card { position: static; margin: 16px auto 0; width: fit-content; }
}

@media (max-width: 560px) {
  .lib-grid { grid-template-columns: 1fr; }
  .foot-badges { gap: 6px; }
}
