/* ==========================================================================
   OpenTelemetry.app — "Trace Observatory" theme  (file: assets/css/site.css)

   This is the ONLY stylesheet. There is no minified copy: edit, save,
   upload, refresh — your change shows immediately.

   HOW TO CHANGE SIZES
   All sizes are plain pixel values in section 2 (":root"). There are no
   formulas and no hidden minimums: change the number, save, refresh.
   Each size has 3 values: desktop, tablet (under 960px), mobile (under 560px).

   QUICK EDITS (section 2, ":root")
   - Homepage H1 size ......... --hero-h1-desktop / -tablet / -mobile
   - Other pages H1 size ...... --page-h1-desktop / -tablet / -mobile
   - H2 size .................. --h2-desktop / -tablet / -mobile
   - H3 size .................. --h3-size
   - Body text size ........... --body-size
   - Brand colours ............ --primary, --secondary, --accent
   - Signal colours ........... --sig-traces, --sig-metrics, --sig-logs
   - Page background .......... --bg
   - Content width ............ --container
   - Space between sections ... --section-space-desktop / -tablet / -mobile
   - Corner roundness ......... --radius

   SECTIONS
    1 Fonts            9 Download console   17 FAQ
    2 Design tokens   10 Steps rail         18 Final CTA
    3 Base            11 Signals            19 Footer
    4 Header          12 Code panels        20 Inner pages
    5 Buttons         13 Tables             21 Guides
    6 Section heads   14 Pros / trade-offs  22 Scroll reveal
    7 Hero            15 Log tickets        23 Responsive sizes
    8 Pipeline &      16 Perspectives       24 Small screens
      features                              25 Reduced motion
   ========================================================================== */

/* ---------- 1. Fonts (self-hosted Poppins, SIL OFL 1.1) ---------- */
@font-face {
  font-family: "Poppins";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/poppins-400.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/poppins-500.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/poppins-600.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/poppins-700.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/poppins-800.woff2") format("woff2");
}

/* ---------- 2. Design tokens — EDIT HERE ---------- */
:root {
  /* Brand palette */
  --primary: #155eef;
  --primary-hover: #0e47be;
  --primary-soft: #eaf1ff;
  --secondary: #12343f;
  --secondary-2: #0c252d;
  --accent: #ffc72c;
  --accent-soft: #fff7db;
  --bg: #f8fafc;
  --surface: #ffffff;
  --border: #d0d5dd;
  --border-soft: #e6e9ee;
  --heading: #101828;
  --text: #475467;
  --success: #067647;
  --success-soft: #ecfdf3;
  --warning: #b54708;
  --warning-soft: #fffaeb;
  --danger: #b42318;
  --danger-soft: #fef3f2;

  /* Signal colours (traces / metrics / logs) */
  --sig-traces: #155eef;
  --sig-metrics: #f5a800;
  --sig-logs: #0e9384;

  /* Typography */
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  /* --- HEADING SIZES: change these numbers --- */
  --hero-h1-desktop: 32px; /* homepage H1 on desktop */
  --hero-h1-tablet: 26px; /* homepage H1 under 960px */
  --hero-h1-mobile: 24px; /* homepage H1 under 560px */

  --page-h1-desktop: 42px; /* H1 on guides, about, contact... */
  --page-h1-tablet: 36px;
  --page-h1-mobile: 30px;

  --h2-desktop: 36px;
  --h2-tablet: 30px;
  --h2-mobile: 26px;

  --h3-size: 19px;
  --body-size: 16px;
  --line: 1.75;

  /* Layout */
  --container: 1140px;
  --gutter: 32px; /* left/right page padding (20px on mobile) */
  --section-space-desktop: 100px; /* space above and below each section */
  --section-space-tablet: 80px;
  --section-space-mobile: 64px;
  --radius: 18px;
  --radius-sm: 10px;
  --header-h: 76px;

  /* Effects */
  --shadow: 0 18px 40px -22px rgba(16, 24, 40, 0.35);
  --shadow-lg: 0 40px 80px -40px rgba(18, 52, 63, 0.55);
  --ease: cubic-bezier(0.22, 0.8, 0.2, 1);
}

/* ---------- 3. Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--body-size);
  line-height: var(--line);
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}
img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--primary);
  text-underline-offset: 3px;
}
a:hover {
  color: var(--primary-hover);
}
h1,
h2,
h3,
h4 {
  color: var(--heading);
  line-height: 1.2;
  margin: 0 0 0.6em;
  letter-spacing: -0.02em;
}
h1 {
  font-size: var(--page-h1-desktop);
  font-weight: 800;
}
h2 {
  font-size: var(--h2-desktop);
  font-weight: 700;
}
h3 {
  font-size: var(--h3-size);
  font-weight: 600;
}
p {
  margin: 0 0 1.1em;
}
ul,
ol {
  padding-left: 1.25rem;
}
strong {
  color: var(--heading);
  font-weight: 600;
}
code {
  font-family: var(--font);
  font-size: 0.9em;
  background: var(--primary-soft);
  color: var(--secondary);
  padding: 0.1em 0.4em;
  border-radius: 6px;
}
:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 6px;
}
::selection {
  background: var(--accent);
  color: var(--heading);
}
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  background: var(--heading);
  color: #fff;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.skip-link:focus {
  top: 1rem;
  color: #fff;
}

/* ---------- 4. Header (sticky, navigation only — no buttons) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: 10px;
  transition: padding 0.3s var(--ease);
}
.site-header.is-scrolled {
  padding-top: 6px;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: calc(var(--header-h) - 14px);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(170%) blur(14px);
  -webkit-backdrop-filter: saturate(170%) blur(14px);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 0.35rem 0.5rem 0.35rem 1rem;
  box-shadow: 0 10px 30px -24px rgba(16, 24, 40, 0.6);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--heading);
  font-weight: 700;
  font-size: 1.08rem;
}
.brand img {
  width: 38px;
  height: 38px;
  transition: transform 0.6s var(--ease);
}
.brand:hover img {
  transform: rotate(-12deg);
}
.nav-desktop ul {
  display: flex;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0.25rem;
  background: var(--bg);
  border-radius: 999px;
}
.nav-desktop a {
  display: block;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  color: var(--heading);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
  transition:
    background 0.25s,
    color 0.25s;
}
.nav-desktop a:hover {
  background: var(--surface);
  color: var(--primary);
}
.nav-desktop a[aria-current="page"] {
  background: var(--secondary);
  color: #fff;
}
.header-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--text);
  padding-right: 0.75rem;
  white-space: nowrap;
}
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sig-logs);
  box-shadow: 0 0 0 0 rgba(14, 147, 132, 0.5);
  animation: ping 2s infinite;
}
@keyframes ping {
  0% {
    box-shadow: 0 0 0 0 rgba(14, 147, 132, 0.5);
  }
  100% {
    box-shadow: 0 0 0 9px rgba(14, 147, 132, 0);
  }
}
.progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  margin-inline: auto;
  width: calc(100% - 2 * var(--gutter));
  max-width: calc(var(--container) - 2 * var(--gutter));
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--sig-traces), var(--sig-metrics), var(--sig-logs));
  transform: scaleX(0);
  transform-origin: left;
}

/* Mobile menu: native <details>, works without JavaScript */
.nav-mobile {
  display: none;
  position: relative;
}
.nav-mobile summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: var(--secondary);
  color: #fff;
  font-weight: 600;
  font-size: 0.88rem;
}
.nav-mobile summary::-webkit-details-marker {
  display: none;
}
.bars-ico {
  display: grid;
  gap: 3px;
  width: 16px;
}
.bars-ico i {
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition:
    transform 0.3s var(--ease),
    opacity 0.2s;
}
.nav-mobile[open] .bars-ico i:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}
.nav-mobile[open] .bars-ico i:nth-child(2) {
  opacity: 0;
}
.nav-mobile[open] .bars-ico i:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}
.nav-mobile nav {
  position: absolute;
  right: 0;
  top: calc(100% + 0.7rem);
  width: min(84vw, 290px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.5rem;
  animation: drop 0.3s var(--ease);
}
.nav-mobile ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-mobile a {
  display: block;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-sm);
  color: var(--heading);
  text-decoration: none;
  font-weight: 500;
}
.nav-mobile a:hover,
.nav-mobile a[aria-current="page"] {
  background: var(--primary-soft);
  color: var(--primary);
}
@keyframes drop {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 1000px) {
  .header-meta {
    display: none;
  }
}
@media (max-width: 860px) {
  .nav-desktop {
    display: none;
  }
  .nav-mobile {
    display: block;
  }
}

/* ---------- 5. Buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.45rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    background 0.25s,
    color 0.25s;
}
.btn svg {
  width: 20px;
  height: 20px;
  flex: none;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 16px 30px -14px rgba(21, 94, 239, 0.75);
}
.btn-primary:hover {
  background: var(--primary-hover);
  color: #fff;
  transform: translateY(-2px);
}
.btn-primary svg {
  animation: nudge 2.4s var(--ease) infinite;
}
@keyframes nudge {
  0%,
  70%,
  100% {
    transform: none;
  }
  80% {
    transform: translateY(3px);
  }
  90% {
    transform: translateY(-1px);
  }
}
.btn-outline {
  background: var(--surface);
  color: var(--heading);
  border-color: var(--border);
}
.btn-outline:hover {
  border-color: var(--heading);
  color: var(--heading);
  transform: translateY(-2px);
}
.btn-accent {
  background: var(--accent);
  color: var(--heading);
}
.btn-accent:hover {
  background: #ffd45c;
  color: var(--heading);
  transform: translateY(-2px);
}
.btn-lg {
  padding: 1.1rem 1.7rem;
  font-size: 1.05rem;
}
.dl-note {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: 0.84rem;
  margin: 0.8rem 0 0;
}
.dl-note svg {
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 3px;
}
.dl-status {
  display: block;
  min-height: 1.4em;
  margin-top: 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--success);
}
.text-link {
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.text-link::after {
  content: "→";
  transition: transform 0.25s var(--ease);
}
.text-link:hover::after {
  transform: translateX(4px);
}

/* ---------- 6. Section heads (ruler ticks + span chip) ---------- */
.section {
  padding-block: var(--section-space-desktop);
  position: relative;
}
.section-white {
  background: var(--surface);
}
.sec-head {
  margin-bottom: 2.6rem;
  max-width: 760px;
}
.sec-head.wide {
  max-width: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 4rem;
  align-items: end;
}
.sec-head.wide p {
  margin: 0;
}
.sec-head.center {
  margin-inline: auto;
  text-align: center;
}
.span-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1rem;
  padding: 0.3rem 0.75rem 0.3rem 0.35rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--secondary);
  letter-spacing: 0.02em;
}
.span-chip b {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 22px;
  padding: 0 0.4rem;
  border-radius: 999px;
  background: var(--secondary);
  color: #fff;
  font-size: 0.72rem;
}
.section-white .span-chip {
  background: var(--bg);
}
.ruler {
  height: 12px;
  margin-top: 1.2rem;
  background:
    repeating-linear-gradient(90deg, var(--border) 0 1px, transparent 1px 12px) bottom / 100% 6px
      no-repeat,
    repeating-linear-gradient(90deg, var(--border) 0 1px, transparent 1px 60px) bottom / 100% 12px
      no-repeat;
  opacity: 0.8;
}
.lede {
  font-size: 1.06rem;
}
@media (max-width: 860px) {
  .sec-head.wide {
    grid-template-columns: 1fr;
  }
}

/* ---------- 7. Hero (visual left, copy right) ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 80px;
}
.hero h1 {
  font-size: var(--hero-h1-desktop);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--border-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-soft) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 70%);
  mask: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 70%);
}
.hero::after {
  content: "";
  position: absolute;
  width: 640px;
  height: 640px;
  left: -220px;
  top: -160px;
  border-radius: 50%;
  pointer-events: none;
  background: repeating-radial-gradient(
    circle,
    transparent 0 46px,
    rgba(21, 94, 239, 0.07) 46px 47px
  );
  animation: scan 18s linear infinite;
}
@keyframes scan {
  to {
    transform: rotate(360deg);
  }
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 56px;
  align-items: center;
}
.hero-grid > * {
  min-width: 0;
}
.hero-copy {
  order: 2;
}
.hero-visual {
  order: 1;
}
.kicker {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.2rem;
}
.kicker span {
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  color: var(--heading);
}
.kicker span::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 0.4rem;
  vertical-align: middle;
  background: var(--sig-traces);
}
.kicker span:nth-child(2)::before {
  background: var(--sig-metrics);
}
.kicker span:nth-child(3)::before {
  background: var(--sig-logs);
}
.hero h1 .grad {
  background: linear-gradient(90deg, var(--primary), #6b3fe0 55%, var(--sig-metrics));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-text {
  font-size: 1.05rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}
.hero-actions .dl-status {
  order: 3;
  flex-basis: 100%;
  margin: 0;
  min-height: 0;
}
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  margin: 1.8rem 0 0;
  padding: 1.1rem 0 0;
  border-top: 1px solid var(--border);
}
.hero-facts div {
  min-width: 0;
}
.hero-facts dt {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}
.hero-facts dd {
  margin: 0;
  color: var(--heading);
  font-weight: 600;
  font-size: 0.95rem;
}

/* Trace waterfall illustration */
.waterfall {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
}
.wf-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1rem;
  background: var(--secondary);
  color: #d5e2e6;
  font-size: 0.78rem;
}
.wf-top b {
  color: #fff;
  font-weight: 600;
}
.wf-dots {
  display: flex;
  gap: 5px;
}
.wf-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
}
.wf-dots i:first-child {
  background: var(--accent);
}
.wf-scale {
  display: grid;
  grid-template-columns: 34% 1fr;
  font-size: 0.66rem;
  color: var(--text);
  border-bottom: 1px solid var(--border-soft);
}
.wf-scale span {
  padding: 0.35rem 1rem;
}
.wf-scale .ticks {
  display: flex;
  justify-content: space-between;
  padding-right: 1rem;
  background: repeating-linear-gradient(90deg, var(--border-soft) 0 1px, transparent 1px 25%);
}
.wf-rows {
  list-style: none;
  margin: 0;
  padding: 0.4rem 0;
  position: relative;
}
.wf-rows li {
  display: grid;
  grid-template-columns: 34% 1fr;
  align-items: center;
  min-height: 34px;
  font-size: 0.78rem;
  color: var(--heading);
}
.wf-rows li:hover {
  background: var(--bg);
}
.wf-name {
  padding: 0 0.6rem 0 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wf-name i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  margin-right: 0.45rem;
  background: var(--c, var(--sig-traces));
}
.wf-lane {
  position: relative;
  height: 34px;
  margin-right: 1rem;
}
.wf-bar {
  position: absolute;
  top: 9px;
  height: 16px;
  border-radius: 4px;
  background: var(--c, var(--sig-traces));
  left: var(--x);
  width: var(--w);
  transform: scaleX(0);
  transform-origin: left;
  animation: grow 6s var(--ease) infinite;
  animation-delay: var(--dl, 0s);
}
.wf-bar span {
  position: absolute;
  left: calc(100% + 6px);
  top: -1px;
  font-size: 0.64rem;
  color: var(--text);
  white-space: nowrap;
}
@keyframes grow {
  0% {
    transform: scaleX(0);
  }
  14%,
  92% {
    transform: scaleX(1);
    opacity: 1;
  }
  100% {
    transform: scaleX(1);
    opacity: 0;
  }
}
.wf-cursor {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 34%;
  width: 2px;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 199, 44, 0.25);
  animation: sweep 6s linear infinite;
}
@keyframes sweep {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(var(--sweep, 340px));
  }
}
.wf-foot {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border-soft);
}
.wf-foot div {
  padding: 0.75rem 1rem;
  border-right: 1px solid var(--border-soft);
  font-size: 0.7rem;
}
.wf-foot div:last-child {
  border-right: 0;
}
.wf-foot b {
  display: block;
  font-size: 1.05rem;
  color: var(--heading);
}
.wf-foot svg {
  width: 100%;
  height: 22px;
  margin-top: 0.3rem;
}
.wf-foot path {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 160;
  stroke-dashoffset: 160;
  animation: draw 3.5s var(--ease) infinite alternate;
}
@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}
.fig-note {
  margin: 0.9rem 0 0;
  font-size: 0.78rem;
  text-align: center;
}
/* waterfall lane positions (no inline styles: CSP-friendly) */
.r1 {
  --x: 0%;
  --w: 96%;
  --dl: 0s;
}
.r2 {
  --x: 4%;
  --w: 22%;
  --dl: 0.3s;
  --c: #6b3fe0;
}
.r3 {
  --x: 27%;
  --w: 54%;
  --dl: 0.6s;
}
.r4 {
  --x: 31%;
  --w: 26%;
  --dl: 0.9s;
  --c: var(--sig-logs);
}
.r5 {
  --x: 58%;
  --w: 21%;
  --dl: 1.2s;
  --c: var(--sig-metrics);
}
.r6 {
  --x: 83%;
  --w: 12%;
  --dl: 1.5s;
  --c: #e04f5f;
}
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-copy {
    order: 1;
  }
  .hero-visual {
    order: 2;
    max-width: 560px;
    width: 100%;
    margin-inline: auto;
  }
}

/* Signal marquee */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--border-soft);
  background: var(--surface);
  padding: 0.85rem 0;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 40s linear infinite;
}
.marquee:hover .marquee-track {
  animation-play-state: paused;
}
.marquee span {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding-right: 2.6rem;
  font-weight: 600;
  color: var(--heading);
  white-space: nowrap;
  font-size: 0.95rem;
}
.marquee span::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--sig-traces);
  transform: rotate(45deg);
}
.marquee span:nth-child(3n + 2)::before {
  background: var(--sig-metrics);
}
.marquee span:nth-child(3n)::before {
  background: var(--sig-logs);
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- 8. Pipeline & features ---------- */
.pipeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-bottom: 3rem;
  position: relative;
}
.pipe-node {
  position: relative;
  text-align: center;
  padding: 0 0.5rem;
}
.pipe-node .node {
  width: 74px;
  height: 74px;
  margin: 0 auto 0.9rem;
  border-radius: 22px;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  color: var(--primary);
  position: relative;
  z-index: 1;
  transition: transform 0.4s var(--ease);
}
.pipe-node:hover .node {
  transform: translateY(-4px) rotate(-4deg);
}
.pipe-node .node svg {
  width: 30px;
  height: 30px;
}
.pipe-node h3 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
}
.pipe-node p {
  font-size: 0.85rem;
  margin: 0;
}
.pipe-node:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 37px;
  left: calc(50% + 46px);
  right: calc(-50% + 46px);
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--border) 0 6px, transparent 6px 12px);
}
.packet {
  position: absolute;
  top: 33px;
  left: calc(50% + 46px);
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--sig-traces);
  animation: flow 3s linear infinite;
  z-index: 2;
}
.packet.p2 {
  background: var(--sig-metrics);
  animation-delay: 1s;
}
.packet.p3 {
  background: var(--sig-logs);
  animation-delay: 2s;
}
@keyframes flow {
  0% {
    transform: translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateX(var(--run, 150px));
    opacity: 0;
  }
}
.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 3rem;
}
.feature {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 1.1rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  position: relative;
}
.feature::before {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  height: 2px;
  width: 0;
  background: var(--primary);
  transition: width 0.6s var(--ease);
}
.feature:hover::before {
  width: 100%;
}
.feature .ico {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary);
}
.feature:nth-child(3n + 2) .ico {
  background: var(--accent-soft);
  color: #9a6700;
}
.feature:nth-child(3n) .ico {
  background: #e6f6f4;
  color: var(--sig-logs);
}
.feature .ico svg {
  width: 24px;
  height: 24px;
}
.feature h3 {
  margin-bottom: 0.35rem;
}
.feature p {
  margin: 0;
  font-size: 0.95rem;
}
@media (max-width: 860px) {
  .pipeline {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 0;
  }
  .pipe-node:nth-child(2)::after,
  .pipe-node:nth-child(2) .packet {
    display: none;
  }
  .features {
    grid-template-columns: 1fr;
  }
}

/* ---------- 9. Download console ---------- */
.console {
  background: var(--secondary);
  color: #c7d7dc;
  border-radius: calc(var(--radius) + 6px);
  padding: 44px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.console::before {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(21, 94, 239, 0.45), transparent 65%);
  animation: breathe 6s ease-in-out infinite;
}
@keyframes breathe {
  50% {
    transform: scale(1.15);
    opacity: 0.7;
  }
}
.console-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
}
.console-grid > * {
  min-width: 0;
}
.console h2,
.console strong {
  color: #fff;
}
.console .span-chip {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: #fff;
}
.console .span-chip b {
  background: var(--accent);
  color: var(--heading);
}
.cmd {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  margin: 1.3rem 0 0;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  background: var(--secondary-2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  color: #e4eef1;
  overflow-x: auto;
  white-space: nowrap;
}
.cmd::before {
  content: "$";
  color: var(--accent);
  font-weight: 700;
}
.cmd .caret {
  width: 8px;
  height: 1.1em;
  background: var(--accent);
  animation: blink 1s steps(1) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}
.console .dl-note {
  color: #c7d7dc;
}
.console .dl-status {
  color: #7ee2a8;
}
.console-cta {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 1.6rem;
}
.console-cta .btn {
  width: 100%;
}
.spec-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 1.6rem;
  background: var(--border-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
}
.spec-tiles div {
  background: var(--surface);
  padding: 1.1rem 1.2rem;
  transition: background 0.3s;
}
.spec-tiles div:hover {
  background: var(--primary-soft);
}
.spec-tiles dt {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}
.spec-tiles dd {
  margin: 0.2rem 0 0;
  color: var(--heading);
  font-weight: 600;
  font-size: 0.95rem;
}
.pkg-title {
  margin-top: 2.6rem;
}
@media (max-width: 900px) {
  .console-grid {
    grid-template-columns: 1fr;
  }
  .spec-tiles {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- 10. Steps rail (how to download) ---------- */
.rail-wrap {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 3rem 4.5rem;
  align-items: start;
}
.rail-wrap > * {
  min-width: 0;
}
.rail {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: s;
  position: relative;
}
.rail::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: var(--border);
}
.rail::after {
  content: "";
  position: absolute;
  left: 21px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(var(--sig-traces), var(--sig-metrics), var(--sig-logs));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 1.8s var(--ease);
}
.rail.is-in::after {
  transform: scaleY(1);
}
.rail li {
  counter-increment: s;
  position: relative;
  padding: 0 0 1.8rem 68px;
}
.rail li::before {
  content: counter(s);
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--surface);
  border: 2px solid var(--primary);
  color: var(--primary);
  font-weight: 700;
  transition:
    background 0.3s,
    color 0.3s,
    transform 0.4s var(--ease);
}
.rail li:hover::before {
  background: var(--primary);
  color: #fff;
  transform: rotate(-8deg);
}
.rail h3 {
  margin-bottom: 0.3rem;
  padding-top: 0.4rem;
}
.rail p {
  margin: 0;
  font-size: 0.95rem;
}
@media (max-width: 860px) {
  .rail-wrap {
    grid-template-columns: 1fr;
  }
}

/* ---------- 11. Signals (what it does) ---------- */
.signals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-bottom: 2.6rem;
}
.signal {
  border-radius: var(--radius);
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-top: 4px solid var(--c);
  transition:
    transform 0.4s var(--ease),
    box-shadow 0.4s;
}
.signal:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}
.signal.sig-t {
  --c: var(--sig-traces);
}
.signal.sig-m {
  --c: var(--sig-metrics);
}
.signal.sig-l {
  --c: var(--sig-logs);
}
.signal h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.signal h3::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--c);
}
.signal p {
  font-size: 0.94rem;
}
.mini {
  height: 70px;
  border-radius: 10px;
  background: var(--bg);
  margin-bottom: 1.1rem;
  position: relative;
  overflow: hidden;
}
.mini-trace i {
  position: absolute;
  height: 8px;
  border-radius: 3px;
  background: var(--sig-traces);
  animation: grow 5s var(--ease) infinite;
  transform-origin: left;
}
.mini-trace i:nth-child(1) {
  left: 6%;
  width: 86%;
  top: 12px;
}
.mini-trace i:nth-child(2) {
  left: 14%;
  width: 40%;
  top: 28px;
  opacity: 0.75;
  animation-delay: 0.4s;
}
.mini-trace i:nth-child(3) {
  left: 50%;
  width: 34%;
  top: 44px;
  opacity: 0.55;
  animation-delay: 0.8s;
}
.mini-metric {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  padding: 10px;
}
.mini-metric i {
  flex: 1;
  border-radius: 3px 3px 0 0;
  background: var(--sig-metrics);
  animation: eq 2.4s ease-in-out infinite;
  transform-origin: bottom;
  height: 100%;
}
.mini-metric i:nth-child(2) {
  animation-delay: 0.2s;
}
.mini-metric i:nth-child(3) {
  animation-delay: 0.4s;
}
.mini-metric i:nth-child(4) {
  animation-delay: 0.6s;
}
.mini-metric i:nth-child(5) {
  animation-delay: 0.8s;
}
.mini-metric i:nth-child(6) {
  animation-delay: 1s;
}
.mini-metric i:nth-child(7) {
  animation-delay: 1.2s;
}
@keyframes eq {
  0%,
  100% {
    transform: scaleY(0.3);
  }
  50% {
    transform: scaleY(0.95);
  }
}
.mini-log {
  padding: 8px 10px;
  font-size: 0.62rem;
  line-height: 1.55;
  color: var(--heading);
}
.mini-log div {
  animation: logs 6s linear infinite;
}
.mini-log span {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mini-log b {
  color: var(--sig-logs);
  font-weight: 600;
}
@keyframes logs {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-50%);
  }
}
.usecases {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem 4rem;
}
.usecases > * {
  min-width: 0;
}
.uc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: u;
}
.uc-list li {
  counter-increment: u;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border-soft);
}
.uc-list li::before {
  content: "0" counter(u);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--border);
  line-height: 1.2;
}
.uc-list h3 {
  margin-bottom: 0.25rem;
  font-size: 1.02rem;
}
.uc-list p {
  margin: 0;
  font-size: 0.94rem;
}
@media (max-width: 900px) {
  .signals {
    grid-template-columns: 1fr;
  }
  .usecases {
    grid-template-columns: 1fr;
  }
}

/* ---------- 12. Code panels (installation) ---------- */
.code-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
.code-grid > * {
  min-width: 0;
}
.code-panel {
  background: var(--secondary-2);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.code-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  background: var(--secondary);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
}
.code-head span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.code-head span::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.copy-btn {
  font: inherit;
  font-size: 0.74rem;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 0.25rem 0.6rem;
  cursor: pointer;
}
.copy-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}
.code-panel pre {
  margin: 0;
  padding: 1rem 1.1rem 1.2rem;
  overflow-x: auto;
  color: #e4eef1;
  font-size: 0.8rem;
  line-height: 1.7;
}
.code-panel pre code {
  background: none;
  color: inherit;
  padding: 0;
  font-size: inherit;
}
.code-panel .c {
  color: #8fb0b9;
}
.code-panel p {
  margin: 0;
  padding: 0 1.1rem 1.1rem;
  font-size: 0.84rem;
  color: #a9bec4;
}
.first-use {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  list-style: none;
  padding: 0;
  counter-reset: f;
}
.first-use li {
  counter-increment: f;
  padding: 1.1rem;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px dashed var(--border);
  font-size: 0.9rem;
}
.first-use li::before {
  content: "Step " counter(f);
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.3rem;
}
@media (max-width: 900px) {
  .code-grid {
    grid-template-columns: 1fr;
  }
  .first-use {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- 13. Tables ---------- */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  -webkit-overflow-scrolling: touch;
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  font-size: 0.92rem;
}
caption {
  text-align: left;
  padding: 1rem 1.2rem;
  font-weight: 600;
  color: var(--heading);
  border-bottom: 1px solid var(--border-soft);
}
th,
td {
  padding: 0.85rem 1.2rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border-soft);
}
thead th {
  background: var(--bg);
  color: var(--heading);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  border-bottom: 2px solid var(--heading);
}
tbody th {
  color: var(--heading);
  font-weight: 600;
}
tbody tr:last-child th,
tbody tr:last-child td {
  border-bottom: 0;
}
tbody tr {
  transition: background 0.2s;
}
tbody tr:hover {
  background: #f4f7ff;
}
.hl {
  background: rgba(21, 94, 239, 0.05);
}
thead .hl {
  background: var(--primary-soft);
  color: var(--primary);
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.16rem 0.6rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  white-space: nowrap;
}
.pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.st-stable {
  background: var(--success-soft);
  color: var(--success);
}
.st-rc {
  background: var(--primary-soft);
  color: var(--primary);
}
.st-beta {
  background: var(--warning-soft);
  color: var(--warning);
}
.st-dev {
  background: #f2f4f7;
  color: #475467;
}
.st-no {
  background: var(--danger-soft);
  color: var(--danger);
}
.table-note {
  font-size: 0.84rem;
  margin-top: 0.9rem;
}
.table-wrap + .table-wrap {
  margin-top: 1.4rem;
}

/* ---------- 14. Strengths / trade-offs ---------- */
.diff {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}
.diff-col h3 {
  margin: 0;
  padding: 1rem 1.4rem;
  font-size: 0.95rem;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-soft);
}
.diff-col h3 span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
}
.diff-col ul {
  list-style: none;
  margin: 0;
  padding: 0.4rem 0;
}
.diff-col li {
  display: grid;
  grid-template-columns: 40px 1fr;
  padding: 0.7rem 1.4rem 0.7rem 0;
  font-size: 0.94rem;
  transition: background 0.25s;
}
.diff-col li::before {
  text-align: center;
  font-weight: 700;
}
.diff-col.plus {
  background: linear-gradient(90deg, #f0fbf5, transparent 60%);
}
.diff-col.plus li::before {
  content: "+";
  color: var(--success);
}
.diff-col.plus li:hover {
  background: var(--success-soft);
}
.diff-col.minus {
  border-left: 1px solid var(--border);
  background: linear-gradient(90deg, #fff8f0, transparent 60%);
}
.diff-col.minus li::before {
  content: "−";
  color: var(--warning);
}
.diff-col.minus li:hover {
  background: var(--warning-soft);
}
@media (max-width: 800px) {
  .diff {
    grid-template-columns: 1fr;
  }
  .diff-col.minus {
    border-left: 0;
    border-top: 1px solid var(--border);
  }
}

/* ---------- 15. Log tickets (troubleshooting) ---------- */
.logs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.log {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s;
}
.log:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.log-line {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  padding: 0.6rem 1rem;
  background: var(--bg);
  border-bottom: 1px solid var(--border-soft);
  font-size: 0.78rem;
  color: var(--heading);
  overflow-x: auto;
  white-space: nowrap;
}
.lvl {
  padding: 0.1rem 0.45rem;
  border-radius: 5px;
  font-weight: 700;
  font-size: 0.7rem;
}
.lvl.warn {
  background: var(--warning-soft);
  color: var(--warning);
}
.lvl.err {
  background: var(--danger-soft);
  color: var(--danger);
}
.log-body {
  padding: 1rem 1.1rem;
}
.log-body h3 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}
.log-body p {
  margin: 0 0 0.4rem;
  font-size: 0.92rem;
}
.log-body p:last-child {
  margin: 0;
}
.tip {
  margin-top: 1.4rem;
  display: flex;
  gap: 0.9rem;
  padding: 1.1rem 1.2rem;
  border-radius: var(--radius-sm);
  background: var(--primary-soft);
  color: var(--heading);
  font-size: 0.93rem;
}
.tip svg {
  width: 22px;
  height: 22px;
  flex: none;
  color: var(--primary);
  margin-top: 2px;
}
.tip p {
  margin: 0;
}
@media (max-width: 800px) {
  .logs {
    grid-template-columns: 1fr;
  }
}

/* ---------- 16. Perspectives ---------- */
.persp {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.persp article {
  position: relative;
  padding: 1.6rem 1.5rem 1.5rem;
  border-radius: var(--radius);
  background: var(--bg);
  overflow: hidden;
}
.persp article::after {
  content: attr(data-n);
  position: absolute;
  right: 0.8rem;
  bottom: -1.4rem;
  font-size: 6rem;
  font-weight: 800;
  color: rgba(16, 24, 40, 0.05);
  line-height: 1;
}
.persp .role {
  display: inline-block;
  margin-bottom: 0.7rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
}
.persp h3 {
  font-size: 1.08rem;
}
.persp p {
  font-size: 0.94rem;
  position: relative;
  z-index: 1;
}
@media (max-width: 900px) {
  .persp {
    grid-template-columns: 1fr;
  }
}

/* ---------- 17. FAQ ---------- */
.faq {
  max-width: 880px;
  margin-inline: auto;
  counter-reset: q;
}
.faq details {
  counter-increment: q;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: var(--surface);
  margin-bottom: 0.7rem;
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
}
.faq details[open] {
  border-color: var(--primary);
  box-shadow: 0 12px 30px -24px rgba(21, 94, 239, 0.8);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 44px 1fr 22px;
  gap: 0.6rem;
  align-items: center;
  padding: 1rem 1.1rem;
  font-weight: 600;
  color: var(--heading);
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::before {
  content: counter(q, decimal-leading-zero);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
}
.faq summary::after {
  content: "";
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--heading);
  border-bottom: 2px solid var(--heading);
  transform: rotate(45deg);
  transition: transform 0.35s var(--ease);
  justify-self: center;
}
.faq details[open] summary::after {
  transform: rotate(225deg);
}
.faq details > div {
  padding: 0 1.2rem 1.1rem calc(1.1rem + 44px + 0.6rem);
  animation: fadeIn 0.4s var(--ease);
}
.faq details p:last-child {
  margin: 0;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 600px) {
  .faq details > div {
    padding-left: 1.1rem;
  }
}

/* ---------- 18. Final CTA ---------- */
.final {
  position: relative;
  overflow: hidden;
  background: var(--primary);
  color: #ffffff;
  padding: 88px 0;
}
.final::before,
.final::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  width: 300px;
  height: 300px;
  right: 8%;
  top: 50%;
  margin-top: -150px;
  animation: ripple 4s ease-out infinite;
}
.final::after {
  animation-delay: 2s;
}
@keyframes ripple {
  from {
    transform: scale(0.3);
    opacity: 1;
  }
  to {
    transform: scale(2.2);
    opacity: 0;
  }
}
.final-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 2.5rem;
  align-items: center;
}
.final-inner > * {
  min-width: 0;
}
.final h2 {
  color: #fff;
}
.final .span-chip {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}
.final .span-chip b {
  background: var(--accent);
  color: var(--heading);
}
.final .facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}
.final .facts span {
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
  color: #fff;
}
.final .dl-note {
  color: #ffffff;
}
.final .dl-status {
  color: #fff;
}
@media (max-width: 860px) {
  .final-inner {
    grid-template-columns: 1fr;
  }
}

/* ---------- 19. Footer ---------- */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border-soft);
  padding-top: 3.5rem;
  font-size: 0.93rem;
  position: relative;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--sig-traces), var(--sig-metrics), var(--sig-logs));
}
.footer-main {
  display: grid;
  grid-template-columns: 1.2fr 1.8fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
}
.footer-main > * {
  min-width: 0;
}
.footer-about p {
  margin: 1rem 0 0;
}
.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.footer-links h2 {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--heading);
  margin-bottom: 0.8rem;
}
.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li {
  margin-bottom: 0.5rem;
}
.footer-links a {
  color: var(--text);
  text-decoration: none;
}
.footer-links a:hover {
  color: var(--primary);
}
.disclosure {
  padding: 1.1rem 1.3rem;
  margin-bottom: 1.6rem;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px dashed var(--border);
  font-size: 0.88rem;
  color: var(--heading);
}
.disclosure p {
  margin: 0;
}
.copyright {
  border-top: 1px solid var(--border-soft);
  padding: 1.2rem 0;
  text-align: center;
  font-size: 0.85rem;
}
.copyright p {
  margin: 0;
}
@media (max-width: 860px) {
  .footer-main {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 520px) {
  .footer-links {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- 20. Inner pages ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 3rem 0 2.6rem;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--border-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-soft) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask: linear-gradient(90deg, transparent, #000 60%);
  mask: linear-gradient(90deg, transparent, #000 60%);
  opacity: 0.7;
}
.page-hero .container {
  position: relative;
}
.page-hero h1 {
  font-size: var(--page-h1-desktop);
  max-width: 26ch;
}
.page-hero p {
  max-width: 66ch;
}
.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0;
  margin: 0 0 1.1rem;
  font-size: 0.84rem;
}
.breadcrumb li + li::before {
  content: "›";
  margin-right: 0.4rem;
  color: var(--border);
}
.breadcrumb a {
  text-decoration: none;
}
.breadcrumb [aria-current] {
  color: var(--heading);
  font-weight: 500;
}
.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
  margin-top: 0.6rem;
  font-size: 0.85rem;
}
.meta-line span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.meta-line svg {
  width: 16px;
  height: 16px;
}
.page-body {
  padding: 3rem 0 5rem;
}
.prose {
  max-width: 760px;
}
.prose h2 {
  font-size: 28px;
  margin-top: 2.4rem;
}
.prose h3 {
  margin-top: 1.7rem;
}
.prose li {
  margin-bottom: 0.45rem;
}
.prose .table-wrap {
  margin: 1.5rem 0;
}
.prose pre {
  background: var(--secondary-2);
  color: #e4eef1;
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
  overflow-x: auto;
  font-size: 0.82rem;
  line-height: 1.7;
}
.prose pre code {
  background: none;
  color: inherit;
  padding: 0;
}
.contact-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin: 1.5rem 0;
}
.contact-cards > div {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border-soft);
}
.contact-cards h2 {
  font-size: 1.1rem;
  margin-top: 0;
}
@media (max-width: 700px) {
  .contact-cards {
    grid-template-columns: 1fr;
  }
}
.sitemap-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
@media (max-width: 760px) {
  .sitemap-cols {
    grid-template-columns: 1fr;
  }
}
.nf {
  text-align: center;
  padding: 5rem 0 6rem;
}
.nf .code404 {
  font-size: 140px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--heading);
}
.nf .code404 span {
  color: var(--primary);
  display: inline-block;
  animation: bob 3s ease-in-out infinite;
}
@keyframes bob {
  50% {
    transform: translateY(-12px);
  }
}

/* ---------- 21. Guides ---------- */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.guide-grid li:first-child {
  grid-column: span 2;
}
.guide-grid li:first-child .g-card {
  flex-direction: row;
}
.guide-grid li:first-child .thumb {
  flex: 0 0 52%;
  display: flex;
  align-items: center;
}
.guide-grid li:first-child .g-body {
  justify-content: center;
}
.g-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition:
    transform 0.4s var(--ease),
    box-shadow 0.4s,
    border-color 0.3s;
}
.g-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: var(--border);
}
.g-card .thumb {
  overflow: hidden;
  background: var(--bg);
}
.g-card img {
  width: 100%;
  transition: transform 0.7s var(--ease);
}
.g-card:hover img {
  transform: scale(1.05);
}
.g-card .g-body {
  padding: 1.2rem 1.3rem 1.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.g-card .g-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.4rem;
}
.g-card h2 {
  font-size: 1.08rem;
  margin-bottom: 0.45rem;
  transition: color 0.3s;
}
.guide-grid li:first-child .g-card h2 {
  font-size: 1.5rem;
}
.g-card:hover h2 {
  color: var(--primary);
}
.g-card p {
  font-size: 0.9rem;
  margin: 0 0 1rem;
}
.g-card .g-meta {
  margin-top: auto;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--heading);
}
@media (max-width: 960px) {
  .guide-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 760px) {
  .guide-grid li:first-child .g-card {
    flex-direction: column;
  }
}
@media (max-width: 640px) {
  .guide-grid {
    grid-template-columns: 1fr;
  }
  .guide-grid li:first-child {
    grid-column: auto;
  }
}
.article-grid > * {
  min-width: 0;
}
.article-grid {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 3.5rem;
  align-items: start;
}
.toc {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
  padding: 1.2rem 0 1.2rem 1.2rem;
  border-left: 2px solid var(--border);
}
.toc h2 {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}
.toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.88rem;
}
.toc li {
  margin-bottom: 0.5rem;
}
.toc a {
  color: var(--text);
  text-decoration: none;
}
.toc a:hover {
  color: var(--primary);
}
.article-cover {
  margin: 0 0 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-soft);
}
.article-cover img {
  width: 100%;
}
.key-box {
  margin: 2rem 0;
  padding: 1.4rem 1.6rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-left: 4px solid var(--sig-logs);
}
.key-box h2 {
  font-size: 1.05rem;
  margin-top: 0;
}
.key-box ul {
  margin: 0;
}
.article-cta {
  margin-top: 3rem;
  padding: 2rem;
  border-radius: var(--radius);
  background: var(--secondary);
  color: #c7d7dc;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
}
.article-cta h2 {
  color: #fff;
  font-size: 1.3rem;
  margin: 0 0 0.4rem;
}
.article-cta p {
  margin: 0;
}
.article-cta .dl-note {
  color: #c7d7dc;
}
.article-cta .dl-status {
  color: #7ee2a8;
}
.related {
  margin-top: 3rem;
}
.related ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}
.related a {
  display: block;
  height: 100%;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border-soft);
  text-decoration: none;
  color: var(--heading);
  font-weight: 500;
  transition:
    border-color 0.3s,
    transform 0.3s var(--ease);
}
.related a:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}
.prose .faq {
  margin: 0;
}
@media (max-width: 960px) {
  .article-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .toc {
    position: static;
  }
  .article-cta {
    grid-template-columns: 1fr;
  }
  .related ul {
    grid-template-columns: 1fr;
  }
}

/* ---------- 22. Scroll reveal ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
  transition-delay: var(--d, 0s);
}
.js .reveal.is-in {
  opacity: 1;
  transform: none;
}
.d1 {
  --d: 0.05s;
}
.d2 {
  --d: 0.13s;
}
.d3 {
  --d: 0.21s;
}
.d4 {
  --d: 0.29s;
}

/* ---------- 23. Responsive sizes (tablet & mobile) ---------- */
/* Tablet: under 960px */
@media (max-width: 960px) {
  h1,
  .page-hero h1 {
    font-size: var(--page-h1-tablet);
  }
  .hero h1 {
    font-size: var(--hero-h1-tablet);
  }
  h2 {
    font-size: var(--h2-tablet);
  }
  .section {
    padding-block: var(--section-space-tablet);
  }
  .hero {
    padding: 48px 0 64px;
  }
  .final {
    padding: 72px 0;
  }
  .console {
    padding: 32px;
  }
}
/* Mobile: under 560px */
@media (max-width: 560px) {
  :root {
    --gutter: 20px;
  }
  h1,
  .page-hero h1 {
    font-size: var(--page-h1-mobile);
  }
  .hero h1 {
    font-size: var(--hero-h1-mobile);
  }
  h2 {
    font-size: var(--h2-mobile);
  }
  .prose h2 {
    font-size: 24px;
  }
  .section {
    padding-block: var(--section-space-mobile);
  }
  .hero {
    padding: 36px 0 52px;
  }
  .final {
    padding: 60px 0;
  }
  .console {
    padding: 24px;
  }
  .nf .code404 {
    font-size: 96px;
  }
}

/* ---------- 24. Small screens (layout) ---------- */
@media (max-width: 560px) {
  .header-inner {
    padding-left: 0.8rem;
  }
  .brand {
    font-size: 0.98rem;
  }
  .spec-tiles {
    grid-template-columns: 1fr;
  }
  .first-use {
    grid-template-columns: 1fr;
  }
  .wf-rows li,
  .wf-scale {
    grid-template-columns: 40% 1fr;
  }
  .wf-bar span {
    display: none;
  }
  .btn {
    white-space: normal;
    text-align: center;
  }
  .hero-facts {
    gap: 1rem;
  }
}
@media (max-width: 400px) {
  .brand {
    font-size: 0.92rem;
    gap: 0.45rem;
  }
  .brand img {
    width: 32px;
    height: 32px;
  }
  .nav-mobile summary {
    padding: 0.55rem 0.7rem;
  }
  .nav-mobile .menu-word {
    display: none;
  }
}

/* ---------- 25. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
  .wf-bar,
  .mini-trace i {
    transform: none;
  }
  .mini-metric i {
    transform: scaleY(0.6);
  }
  .packet,
  .wf-cursor {
    display: none;
  }
  .wf-foot path {
    stroke-dashoffset: 0;
  }
}
