/* =====================================================================
   Okto Pulse · Landing Page
   Minimalist technical-editorial aesthetic.
   ===================================================================== */

/* ---------- tokens ---------- */
:root {
  /* Backgrounds — deep obsidian with barely-there elevation */
  --bg: #060608;
  --bg-alt: #0a0b0f;
  --surface: #0e0f14;
  --surface-2: #13151c;
  --surface-3: #181a23;

  /* Hairlines */
  --hair: rgba(255, 255, 255, 0.055);
  --hair-strong: rgba(255, 255, 255, 0.11);
  --hair-faint: rgba(255, 255, 255, 0.03);

  /* Text */
  --ink: #f4f5f9;
  --ink-dim: #a1a6b4;
  --ink-mid: #6b7181;
  --ink-faint: #3d424e;

  /* Brand — Pulse gradient (from EKG logo: cyan → magenta) */
  --pulse-cyan: #22d3ee;
  --pulse-blue: #3b82f6;
  --pulse-violet: #a855f7;
  --pulse-magenta: #ec4899;
  --pulse-hot: #ff2d8b;

  /* Brand — Labs accent (from octopus logo: cyan → violet) */
  --labs-cyan: #36e0f5;
  --labs-violet: #7b4eff;

  /* Pulse brand gradient — cyan-dominant (engineering/monitor feel) */
  --gradient-pulse: linear-gradient(
    95deg,
    #22d3ee 0%,
    #3b82f6 55%,
    #1e40af 100%
  );
  --gradient-pulse-soft: linear-gradient(
    95deg,
    rgba(34, 211, 238, 0.14) 0%,
    rgba(59, 130, 246, 0.12) 55%,
    rgba(30, 64, 175, 0.1) 100%
  );

  /* Typography */
  --font-display: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --font-sans: var(--font-body);
  --font-mono: "IBM Plex Mono", "Menlo", ui-monospace, monospace;

  /* Measurements */
  --max: 1600px;
  --gutter: clamp(1.25rem, 2.8vw, 2.75rem);
  --section-y: clamp(4rem, 6vw, 6rem);
  --radius: 4px;
  --radius-lg: 10px;

  /* Spacing scale — 4/8/12/16/24/32/48/64/96/128 */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16.5px;
  line-height: 1.55;
  letter-spacing: 0;
}

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

picture {
  display: block;
}

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

button {
  font: inherit;
  color: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
}

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

em {
  font-style: italic;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 400;
  letter-spacing: 0;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

::selection {
  background: rgba(34, 211, 238, 0.3);
  color: #fff;
}

/* ---------- ambient background ---------- */
.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.ambient__grid {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.055) 0.9px, transparent 1.1px);
  background-size: 28px 28px;
  background-position: 0 0;
  mask-image: radial-gradient(ellipse at 50% 10%, #000 0%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 10%, #000 0%, transparent 85%);
  opacity: 0.55;
}

.ambient__vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 50% 0%,
    rgba(34, 211, 238, 0.12) 0%,
    rgba(59, 130, 246, 0.08) 30%,
    transparent 60%
  );
}

.ambient__aurora {
  position: absolute;
  width: min(1400px, 100vw);
  height: 720px;
  left: 0;
  right: 0;
  top: -320px;
  margin: 0 auto;
  background:
    radial-gradient(closest-side, rgba(34, 211, 238, 0.2), transparent 70%) 0 0/70% 100% no-repeat,
    radial-gradient(closest-side, rgba(59, 130, 246, 0.14), transparent 70%) 100% 0/55% 90%
      no-repeat;
  filter: blur(60px);
  opacity: 0.9;
}

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  background: linear-gradient(to bottom, rgba(6, 6, 8, 0.82), rgba(6, 6, 8, 0.55));
  border-bottom: 1px solid var(--hair);
}

.nav__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2vw, 2rem);
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  flex-shrink: 0;
}

.nav__wordmark {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0;
  color: var(--ink);
  white-space: nowrap;
}

.nav__mark {
  width: 32px;
  height: 32px;
  display: block;
}

.nav__labs {
  font-weight: 500;
}

.nav__divider {
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 14px;
  margin: 0 0.1rem;
}

.nav__product {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0;
  background: var(--gradient-pulse);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav__links {
  display: flex;
  gap: 1.9rem;
  margin-left: auto;
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink-dim);
}

.nav__links a {
  position: relative;
  transition: color 180ms var(--ease);
}

.nav__links a:hover {
  color: var(--ink);
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1px;
  background: var(--gradient-pulse);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms var(--ease);
}

.nav__links a:hover::after {
  transform: scaleX(1);
}

.nav__cta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: 0;
}

.nav__ext {
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink-dim);
  transition: color 180ms var(--ease);
}

.nav__ext:hover {
  color: var(--ink);
}

@media (max-width: 900px) {
  .nav__links,
  .nav__ext[href*="pypi"],
  .nav__ext-arrow {
    display: none;
  }
  .nav__cta {
    gap: 0.6rem;
  }
}

@media (max-width: 680px) {
  .nav__inner {
    justify-content: space-between;
  }

  .nav__ext {
    display: none;
  }
}

@media (max-width: 420px) {
  .nav__inner {
    padding-block: 12px;
  }

  .nav__mark {
    width: 28px;
    height: 28px;
  }

  .nav__wordmark {
    font-size: 15px;
  }

  .nav__cta .btn {
    padding-inline: 14px;
  }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1;
  transition: transform 180ms var(--ease), background 180ms var(--ease),
    border-color 180ms var(--ease), color 180ms var(--ease);
  white-space: nowrap;
}

.btn--primary {
  position: relative;
  color: var(--bg);
  background: var(--gradient-pulse);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1) inset,
    0 14px 40px -10px rgba(34, 211, 238, 0.35),
    0 8px 26px -10px rgba(236, 72, 153, 0.35);
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.18) inset,
    0 16px 52px -8px rgba(34, 211, 238, 0.55),
    0 12px 36px -10px rgba(236, 72, 153, 0.55);
}

.btn--quiet {
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--hair-strong);
}

.btn--quiet:hover {
  background: var(--surface-2);
  border-color: rgba(34, 211, 238, 0.35);
}

.btn--large {
  padding: 14px 24px;
  font-size: 13px;
}

.btn__mono {
  font-family: var(--font-mono);
  color: var(--ink-mid);
}

.btn__arrow {
  display: inline-block;
  transform: translateX(0);
  transition: transform 180ms var(--ease);
}

.btn:hover .btn__arrow {
  transform: translateX(3px);
}

/* ---------- utility: tag ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink-mid);
}

.tag--dot::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gradient-pulse);
  box-shadow: 0 0 10px rgba(236, 72, 153, 0.6);
  animation: pulse-dot 1.8s ease-in-out 3;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.85); }
}

.tag--thin {
  color: var(--ink-faint);
}

.bracket {
  color: var(--ink-faint);
  font-family: var(--font-mono);
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.92em;
  color: var(--pulse-cyan);
}

/* ---------- crosshairs (hero corners) ---------- */
.crosshair {
  position: absolute;
  width: 18px;
  height: 18px;
  pointer-events: none;
}

.crosshair::before,
.crosshair::after {
  content: "";
  position: absolute;
  background: var(--hair-strong);
}

.crosshair::before {
  left: 50%;
  top: 0;
  width: 1px;
  height: 100%;
  transform: translateX(-0.5px);
}

.crosshair::after {
  top: 50%;
  left: 0;
  height: 1px;
  width: 100%;
  transform: translateY(-0.5px);
}

.crosshair--tl { top: 26px; left: 26px; }
.crosshair--tr { top: 26px; right: 26px; }
.crosshair--bl { bottom: 26px; left: 26px; }
.crosshair--br { bottom: 26px; right: 26px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: clamp(3rem, 6vw, 5.5rem) var(--gutter) clamp(3rem, 5vw, 4.5rem);
}

.hero__inner {
  max-width: min(1760px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(640px, 1.28fr);
  grid-template-areas:
    "copy visual"
    "stats visual";
  align-items: center;
  gap: clamp(1.75rem, 3.2vw, 3.75rem);
}

.hero__copy {
  grid-area: copy;
  max-width: 720px;
}

.hero__meta {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin-bottom: clamp(1.4rem, 2vw, 2rem);
  flex-wrap: wrap;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.55rem, 5.15vw, 5rem);
  line-height: 1;
  letter-spacing: 0;
  color: var(--ink);
  margin-bottom: clamp(1.3rem, 2vw, 2rem);
}

.hero__title .line {
  display: block;
  opacity: 0;
  transform: translateY(14px);
  animation: lift 900ms var(--ease) forwards;
}

.hero__title .line:nth-child(1) { animation-delay: 80ms; }
.hero__title .line:nth-child(2) { animation-delay: 200ms; }
.hero__title .line:nth-child(3) { animation-delay: 340ms; }

@keyframes lift {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__title em {
  font-style: normal;
  background: var(--gradient-pulse);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding: 0 0.05em;
}

.hero__lead {
  max-width: 640px;
  font-size: clamp(1rem, 1.25vw, 1.13rem);
  color: var(--ink-dim);
  margin-bottom: clamp(1.7rem, 2.6vw, 2.5rem);
  line-height: 1.65;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.hero__visual {
  grid-area: visual;
  min-width: 0;
  transform: translateY(-2.5rem);
}

.hero__caption {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

/* inline terminal ------------------------------------------------ */
.terminal {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  padding: 12px 14px 12px 18px;
  background: var(--surface);
  border: 1px solid var(--hair-strong);
  border-radius: var(--radius);
  transition: border-color 180ms var(--ease);
  position: relative;
}

.terminal:hover {
  border-color: rgba(34, 211, 238, 0.35);
}

.terminal__prompt {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--ink);
}

.terminal__sigil {
  color: var(--pulse-cyan);
}

.terminal__copy {
  padding: 5px 10px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink-mid);
  border: 1px solid var(--hair-strong);
  border-radius: 3px;
  transition: all 180ms var(--ease);
}

.terminal__copy:hover {
  color: var(--ink);
  border-color: var(--pulse-cyan);
}

.terminal[data-copied="1"] .terminal__copy-label::before {
  content: "Copied ";
}
.terminal[data-copied="1"] .terminal__copy-label {
  color: var(--pulse-cyan);
}

/* hero stats ----------------------------------------------------- */
.hero__stats {
  grid-area: stats;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem 2rem;
  padding-top: clamp(1.5rem, 3vw, 2.2rem);
  border-top: 1px solid var(--hair);
  max-width: 760px;
}

.hero__stats li {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.stat__value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  letter-spacing: 0;
  line-height: 1;
  color: var(--ink);
}

.stat__unit {
  font-size: 0.55em;
  color: var(--ink-mid);
  margin-left: 0.1em;
}

.stat__label {
  font-family: var(--font-sans);
  font-size: 12.5px;
  letter-spacing: 0;
  color: var(--ink-mid);
}

@media (max-width: 680px) {
  .hero__stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1180px) {
  .hero__inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "visual"
      "stats";
  }

  .hero__copy {
    max-width: 780px;
  }

  .hero__visual {
    transform: none;
  }

  .hero__stats {
    max-width: none;
  }
}

@media (min-width: 1181px) and (max-width: 1550px) {
  .hero__inner {
    grid-template-columns: minmax(520px, 0.78fr) minmax(0, 1.22fr);
    gap: clamp(1.5rem, 2.2vw, 2rem);
  }
}

@media (max-width: 680px) {
  .hero {
    padding-top: clamp(2.1rem, 8vw, 3.2rem);
  }

  .hero__inner {
    gap: 1.6rem;
  }

  .hero__title {
    font-size: clamp(2.45rem, 11vw, 3.35rem);
  }

  .hero__actions {
    align-items: stretch;
    gap: 0.8rem;
  }

  .hero__actions .btn,
  .terminal--inline {
    width: 100%;
    justify-content: space-between;
  }

  .hero__caption {
    text-align: left;
  }
}

/* ---------- showcase frame ---------- */
.showcase {
  position: relative;
  padding: clamp(2rem, 5vw, 4rem) var(--gutter) clamp(4rem, 8vw, 7rem);
  max-width: calc(var(--max) + 40px);
  margin: 0 auto;
}

.showcase__frame {
  position: relative;
  border: 1px solid var(--hair-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
  box-shadow:
    0 80px 160px -60px rgba(6, 8, 14, 0.9),
    0 40px 120px -40px rgba(34, 211, 238, 0.18),
    0 40px 120px -40px rgba(236, 72, 153, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.showcase__frame--hero {
  opacity: 0;
  transform: translateY(12px) scale(0.995);
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  animation:
    hero-frame-in 520ms var(--ease) 180ms forwards,
    hero-screen-frame-cycle 18s var(--ease) infinite;
}

@keyframes hero-screen-frame-cycle {
  0%,
  30% {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
  }
  36%,
  94% {
    border-color: var(--hair-strong);
    background: var(--surface);
    box-shadow:
      0 80px 160px -70px rgba(6, 8, 14, 0.95),
      0 34px 100px -40px rgba(34, 211, 238, 0.22),
      0 28px 90px -46px rgba(59, 130, 246, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.06);
  }
  100% {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
  }
}

.showcase__frame--hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(
      100deg,
      transparent 0%,
      transparent 42%,
      rgba(34, 211, 238, 0.16) 50%,
      rgba(59, 130, 246, 0.11) 54%,
      transparent 64%,
      transparent 100%
    );
  mix-blend-mode: screen;
  transform: translateX(-120%);
  animation: hero-scan 960ms var(--ease) 820ms forwards;
}

@keyframes hero-frame-in {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes hero-scan {
  to {
    transform: translateX(120%);
  }
}

.showcase__frame::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.04) 0%,
    transparent 20%,
    transparent 80%,
    rgba(34, 211, 238, 0.04) 100%
  );
  z-index: 2;
}

.showcase__frame--hero::before {
  opacity: 0;
  animation: hero-screen-overlay-cycle 18s var(--ease) infinite;
}

@keyframes hero-screen-overlay-cycle {
  0%,
  30% {
    opacity: 0;
  }
  36%,
  94% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

.showcase__bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 12px 18px;
  border-bottom: 1px solid var(--hair);
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.03), transparent);
}

.hero-slider .showcase__bar {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 4;
  opacity: 0;
  transform: translateY(-8px);
  animation: hero-screen-bar-cycle 18s var(--ease) infinite;
}

@keyframes hero-screen-bar-cycle {
  0%,
  30% {
    opacity: 0;
    transform: translateY(-8px);
  }
  36%,
  94% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-8px);
  }
}

.hero-slider__viewport {
  position: relative;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(34, 211, 238, 0.08), transparent 58%),
    var(--bg-alt);
  overflow: hidden;
}

.hero-slider__viewport {
  animation: hero-viewport-cycle 18s var(--ease) infinite;
}

@keyframes hero-viewport-cycle {
  0%,
  30% {
    background: transparent;
  }
  36%,
  94% {
    background:
      radial-gradient(ellipse at 50% 0%, rgba(34, 211, 238, 0.08), transparent 58%),
      var(--bg-alt);
  }
  100% {
    background: transparent;
  }
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  box-sizing: border-box;
  margin: 0;
  opacity: 0;
  transform: translateX(12px) scale(0.995);
  pointer-events: none;
  animation-duration: 18s;
  animation-timing-function: var(--ease);
  animation-iteration-count: infinite;
}

.hero-slide--pulse {
  transform: translateX(0) scale(1);
  animation-name: hero-slide-pulse;
}

.hero-slide--cards {
  animation-name: hero-slide-cards;
}

.hero-slide--analytics {
  animation-name: hero-slide-analytics;
}

.hero-slide--cards,
.hero-slide--analytics {
  padding-top: 44px;
}

@keyframes hero-slide-pulse {
  0%,
  29% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
  35%,
  100% {
    opacity: 0;
    transform: translateX(-12px) scale(0.995);
  }
}

@keyframes hero-slide-cards {
  0%,
  31% {
    opacity: 0;
    transform: translateX(12px) scale(0.995);
  }
  36%,
  62% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
  68%,
  100% {
    opacity: 0;
    transform: translateX(-12px) scale(0.995);
  }
}

@keyframes hero-slide-analytics {
  0%,
  64% {
    opacity: 0;
    transform: translateX(12px) scale(0.995);
  }
  69%,
  94% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateX(-12px) scale(0.995);
  }
}

.pulse-stage {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 48%, rgba(34, 211, 238, 0.14), transparent 34%),
    radial-gradient(circle at 66% 50%, rgba(59, 130, 246, 0.12), transparent 42%);
}

.pulse-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--hair) 1px, transparent 1px),
    linear-gradient(90deg, var(--hair) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at 50% 50%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 0%, transparent 72%);
  opacity: 0.42;
}

.pulse-stage::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(38%, 320px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.46), transparent);
  transform: translate(-50%, -50%);
  filter: blur(0.2px);
}

.pulse-stage__svg {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.pulse-stage__guide,
.pulse-stage__trace {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pulse-stage__guide {
  stroke: rgba(148, 163, 184, 0.07);
  stroke-width: 3;
}

.pulse-stage__trace {
  stroke: url("#heroPulseGradient");
  stroke-width: 6;
  stroke-dasharray: 230 1260;
  stroke-dashoffset: 1260;
  filter: url("#heroPulseGlow");
  animation: pulse-trace-pass 2s linear infinite;
}

@keyframes pulse-trace-pass {
  0% {
    opacity: 0;
    stroke-dashoffset: 1260;
  }
  7% {
    opacity: 1;
  }
  42% {
    stroke-dashoffset: 790;
  }
  55% {
    stroke-dashoffset: 420;
  }
  94% {
    opacity: 1;
    stroke-dashoffset: 0;
  }
  100% {
    opacity: 0;
    stroke-dashoffset: -230;
  }
}

.hero-slide picture,
.hero-slide .showcase__img {
  width: 100%;
  height: 100%;
}

.hero-slide .showcase__img {
  object-fit: contain;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--surface-3);
  border: 1px solid var(--hair-strong);
}

.showcase__bar .dot:nth-child(1) { background: #ff5f56; border-color: rgba(255, 95, 86, 0.6); }
.showcase__bar .dot:nth-child(2) { background: #ffbd2e; border-color: rgba(255, 189, 46, 0.6); }
.showcase__bar .dot:nth-child(3) { background: #27c93f; border-color: rgba(39, 201, 63, 0.6); }

.showcase__path {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-mid);
  margin-left: 1rem;
}

.showcase__img {
  width: 100%;
  display: block;
}

.showcase__frame--hero .showcase__img {
  transition: transform 180ms var(--ease), filter 180ms var(--ease);
}

.showcase__frame--hero:hover .showcase__img {
  transform: scale(1.008);
  filter: saturate(1.06);
}

.showcase__caption {
  margin-top: 1.4rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-mid);
  letter-spacing: 0.01em;
}

@media (max-width: 520px) {
  .hero-slider .showcase__path {
    display: none;
  }
}

/* ---------- section scaffolding ---------- */
.section {
  padding: var(--section-y) var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
  position: relative;
}

/* Pulse-specific motif: EKG line as a subtle divider above sections
   (except the first section after the hero/showcase — ADLC section). */
.section:not(.section--adlc)::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  height: 24px;
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 24' preserveAspectRatio='xMidYMid meet'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0%25' y1='0%25' x2='100%25' y2='0%25'%3E%3Cstop offset='0%25' stop-color='%2322d3ee'/%3E%3Cstop offset='55%25' stop-color='%233b82f6'/%3E%3Cstop offset='100%25' stop-color='%231e40af'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M 0 12 L 80 12 L 95 12 L 105 4 L 115 20 L 125 8 L 135 12 L 160 12 L 240 12' fill='none' stroke='url(%23g)' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round' opacity='0.4'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: center;
  background-size: 240px 24px;
  pointer-events: none;
}

.section__head {
  max-width: 760px;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section__head--split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: end;
  max-width: 100%;
}

@media (max-width: 900px) {
  .section__head--split {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }
}

.section__eyebrow {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mid);
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--hair-strong);
  margin-bottom: 1.6rem;
}

.section__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 4.2vw, 3.3rem);
  line-height: 1.06;
  letter-spacing: 0;
  color: var(--ink);
}

.section__title em {
  font-style: normal;
  background: var(--gradient-pulse);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section__lede {
  margin-top: 1.6rem;
  color: var(--ink-dim);
  font-size: clamp(0.98rem, 1.15vw, 1.08rem);
  line-height: 1.65;
  max-width: 58ch;
}

.section__lede--right {
  margin-top: 0;
  max-width: 44ch;
  justify-self: end;
}

/* ---------- pipeline ---------- */
.pipeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--hair);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  overflow: hidden;
}

.section--adlc .pipeline {
  grid-template-columns: repeat(4, 1fr);
}

.pipeline__step {
  background: var(--bg);
  padding: 2rem;
  position: relative;
  transition: background 180ms var(--ease);
}

.pipeline__step:hover {
  background: var(--surface);
}

.pipeline__step::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 1px;
  background: var(--gradient-pulse);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 200ms var(--ease);
  transition-delay: calc(var(--step-i) * 80ms);
}

.pipeline__step:hover::before,
.pipeline:hover .pipeline__step::before {
  transform: scaleX(1);
}

.pipeline__num {
  display: block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
  margin-bottom: 1.2rem;
}

.pipeline__body h3 {
  font-family: var(--font-body);
  font-size: 1.12rem;
  font-weight: 500;
  letter-spacing: 0;
  margin-bottom: 0.55rem;
  color: var(--ink);
}

.pipeline__body p {
  font-size: 0.92rem;
  color: var(--ink-dim);
  line-height: 1.55;
}

@media (max-width: 980px) {
  .pipeline {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .section--adlc .pipeline {
    grid-template-columns: 1fr;
  }
}

/* ---------- features grid ---------- */
.grid--features {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--hair);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  overflow: hidden;
}

.feature__icon-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.feature {
  position: relative;
  background: var(--bg);
  padding: 2rem;
  transition: background 180ms var(--ease);
}

.feature:hover {
  background: var(--surface);
}

.feature--highlight {
  background:
    radial-gradient(ellipse at 0% 0%, rgba(236, 72, 153, 0.09), transparent 60%),
    radial-gradient(ellipse at 100% 100%, rgba(34, 211, 238, 0.09), transparent 60%),
    var(--bg);
}

.feature--highlight:hover {
  background:
    radial-gradient(ellipse at 0% 0%, rgba(236, 72, 153, 0.14), transparent 60%),
    radial-gradient(ellipse at 100% 100%, rgba(34, 211, 238, 0.14), transparent 60%),
    var(--surface);
}

.feature__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.feature__label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 0;
}

.feature__icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background:
    linear-gradient(var(--bg), var(--bg)) padding-box,
    var(--gradient-pulse) border-box;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.045),
    0 18px 48px -32px rgba(34, 211, 238, 0.7);
}

.feature__icon::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: calc(var(--radius) - 1px);
  background: var(--gradient-pulse-soft);
  opacity: 0.72;
}

.feature__icon svg {
  position: relative;
  z-index: 1;
  width: 21px;
  height: 21px;
  overflow: visible;
}

.feature:hover .feature__icon {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 20px 56px -30px rgba(59, 130, 246, 0.8);
}

.feature h3 {
  font-family: var(--font-body);
  font-size: 1.12rem;
  font-weight: 500;
  letter-spacing: 0;
  margin-bottom: 0.8rem;
  color: var(--ink);
}

.feature p {
  font-size: 0.935rem;
  color: var(--ink-dim);
  line-height: 1.6;
}

.feature code {
  font-size: 0.88em;
  color: var(--pulse-cyan);
  background: rgba(34, 211, 238, 0.08);
  padding: 1px 5px;
  border-radius: 2px;
}

@media (max-width: 980px) {
  .grid--features {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* ---------- multi-agent ---------- */
.section--agents {
  position: relative;
}

.agents {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

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

.agents__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--hair);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  overflow: hidden;
}

@media (max-width: 780px) {
  .agents__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.agent {
  position: relative;
  background: var(--bg);
  padding: 2rem;
  transition: background 180ms var(--ease), transform 180ms var(--ease);
}

.agent:hover {
  background: var(--surface);
}

.agent--centerpiece {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(34, 211, 238, 0.11), transparent 55%),
    radial-gradient(ellipse at 50% 100%, rgba(236, 72, 153, 0.1), transparent 55%),
    var(--bg);
}

.agent--centerpiece::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient-pulse);
  opacity: 0.8;
}

.agent--custom {
  background:
    repeating-linear-gradient(
      135deg,
      transparent 0,
      transparent 8px,
      rgba(255, 255, 255, 0.018) 8px,
      rgba(255, 255, 255, 0.018) 9px
    ),
    var(--bg);
}

.agent--custom .agent__name {
  color: var(--ink-dim);
}

.agent__perms--single {
  grid-template-columns: 1fr;
  gap: 0.6rem;
}

.agent__head {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.agent__num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.1em;
}

.agent__name {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink);
  flex-grow: 1;
}

.agent__tag {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mid);
  padding: 3px 7px;
  border: 1px solid var(--hair-strong);
  border-radius: 2px;
  background: var(--surface-2);
}

.agent__tag--accent {
  color: var(--pulse-cyan);
  border-color: rgba(34, 211, 238, 0.4);
  background: rgba(34, 211, 238, 0.08);
}

.agent__desc {
  font-size: 0.895rem;
  color: var(--ink-dim);
  line-height: 1.6;
  margin-bottom: 1.3rem;
}

.agent__perms {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem 1rem;
  padding-top: 1.05rem;
  border-top: 1px solid var(--hair);
}

.agent__perms div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.agent__perms dt {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.agent__perms dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.02em;
}

.dd-y { color: var(--pulse-cyan); }
.dd-n { color: var(--ink-mid); }
.dd-p { color: var(--pulse-magenta); }

/* agents proof (screenshot) */
.agents__proof {
  position: sticky;
  top: 120px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (max-width: 1100px) {
  .agents__proof {
    position: static;
  }
}

.agents__frame {
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--hair-strong);
  border-radius: var(--radius-lg);
  box-shadow:
    0 40px 90px -40px rgba(0, 0, 0, 0.85),
    0 20px 60px -20px rgba(34, 211, 238, 0.15),
    0 20px 60px -20px rgba(236, 72, 153, 0.12);
}

.agents__frame img {
  width: 100%;
  border-radius: 4px;
}

.agents__caption {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.55;
  color: var(--ink-mid);
  padding: 0 0.4rem;
}

/* ---------- tabs showcase ---------- */
.tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
  gap: 1.6rem;
}

.tab-frame {
  display: grid;
  grid-template-rows: minmax(7.25rem, auto) auto;
  gap: 1rem;
  padding: 0;
  margin: 0;
}

.tab-frame__meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-height: 7.25rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--hair);
}

.tab-frame__num {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
}

.tab-frame h3 {
  font-family: var(--font-body);
  font-size: 1.08rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink);
}

.tab-frame p {
  font-size: 0.87rem;
  color: var(--ink-mid);
  margin-top: 0.3rem;
}

.tab-frame img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--hair-strong);
  box-shadow: 0 20px 60px -30px rgba(0, 0, 0, 0.8);
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease);
}

.tab-frame:hover img {
  transform: translateY(-3px);
  box-shadow:
    0 24px 70px -20px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(34, 211, 238, 0.35);
}

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

  .tab-frame {
    grid-template-rows: auto auto;
  }

  .tab-frame__meta {
    min-height: 0;
  }
}

/* ---------- analytics section ---------- */
.section--analytics {
  position: relative;
}

.analytics__frame {
  position: relative;
  margin: 0 0 clamp(2rem, 4vw, 3rem);
  border: 1px solid var(--hair-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
  box-shadow:
    0 80px 160px -60px rgba(6, 8, 14, 0.9),
    0 40px 120px -40px rgba(168, 85, 247, 0.18),
    0 40px 120px -40px rgba(34, 211, 238, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.analytics__frame::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.04) 0%,
    transparent 22%,
    transparent 78%,
    rgba(168, 85, 247, 0.06) 100%
  );
}

.analytics__bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 12px 18px;
  border-bottom: 1px solid var(--hair);
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.03), transparent);
}

.analytics__bar .dot:nth-child(1) { background: #ff5f56; border-color: rgba(255, 95, 86, 0.6); }
.analytics__bar .dot:nth-child(2) { background: #ffbd2e; border-color: rgba(255, 189, 46, 0.6); }
.analytics__bar .dot:nth-child(3) { background: #27c93f; border-color: rgba(39, 201, 63, 0.6); }

.analytics__path {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-mid);
  margin-left: 1rem;
}

.analytics__frame img {
  display: block;
  width: 100%;
}

.analytics__screens {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
  margin: 0 0 clamp(2rem, 4vw, 3rem);
}

.analytics__screen {
  position: relative;
  margin: 0;
  border: 1px solid var(--hair-strong);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  box-shadow:
    0 40px 100px -60px rgba(6, 8, 14, 0.9),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.analytics__screen::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.035) 0%,
    transparent 28%,
    transparent 78%,
    rgba(34, 211, 238, 0.045) 100%
  );
}

.analytics__screen img {
  display: block;
  width: 100%;
}

.analytics__screen figcaption {
  position: relative;
  z-index: 3;
  display: grid;
  gap: 0.35rem;
  padding: 1rem 1.1rem 1.1rem;
  border-top: 1px solid var(--hair);
  color: var(--ink-mid);
  font-size: 0.88rem;
  line-height: 1.45;
}

.analytics__screen figcaption span {
  color: var(--ink);
  font-weight: 500;
}

.analytics__highlights {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--hair);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  overflow: hidden;
}

.highlight {
  position: relative;
  background: var(--bg);
  padding: 2rem;
  transition: background 180ms var(--ease);
}

.highlight:hover {
  background: var(--surface);
}

.highlight__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
  margin-bottom: 1.25rem;
}

.highlight h3 {
  font-family: var(--font-body);
  font-size: 1.08rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink);
  margin-bottom: 0.65rem;
}

.highlight p {
  font-size: 0.895rem;
  color: var(--ink-dim);
  line-height: 1.6;
}

@media (max-width: 980px) {
  .analytics__screens,
  .analytics__highlights {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .analytics__screens,
  .analytics__highlights {
    grid-template-columns: 1fr;
  }
}

/* ---------- knowledge graph section ---------- */
.section--knowledge {
  position: relative;
}

.knowledge__frame {
  position: relative;
  margin: 0 0 clamp(1.35rem, 3vw, 2rem);
  border: 1px solid var(--hair-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
  box-shadow:
    0 80px 170px -70px rgba(6, 8, 14, 0.92),
    0 44px 120px -54px rgba(34, 211, 238, 0.18),
    0 36px 110px -52px rgba(59, 130, 246, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.knowledge__frame::before,
.knowledge__frame::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 3;
}

.knowledge__frame::before {
  inset: 52px 0 0;
  background:
    radial-gradient(circle at 54% 45%, rgba(34, 211, 238, 0.18), transparent 22%),
    radial-gradient(circle at 64% 30%, rgba(59, 130, 246, 0.16), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 30%, rgba(34, 211, 238, 0.035));
  mix-blend-mode: screen;
  opacity: 0.66;
  animation: knowledge-graph-glow 7s ease-in-out infinite alternate;
}

.knowledge__frame::after {
  left: -20%;
  right: -20%;
  top: 52px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.9), rgba(59, 130, 246, 0.65), transparent);
  box-shadow: 0 0 26px rgba(34, 211, 238, 0.35);
  transform: translateY(0);
  opacity: 0.45;
  animation: knowledge-scan 6.5s linear infinite;
}

.knowledge__bar {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 12px 18px;
  border-bottom: 1px solid var(--hair);
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.035), transparent);
}

.knowledge__bar .dot:nth-child(1) { background: #ff5f56; border-color: rgba(255, 95, 86, 0.6); }
.knowledge__bar .dot:nth-child(2) { background: #ffbd2e; border-color: rgba(255, 189, 46, 0.6); }
.knowledge__bar .dot:nth-child(3) { background: #27c93f; border-color: rgba(39, 201, 63, 0.6); }

.knowledge__path {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-mid);
  margin-left: 1rem;
}

.knowledge__frame picture {
  display: block;
  position: relative;
  z-index: 1;
  background: var(--bg);
}

.knowledge__frame img {
  display: block;
  width: 100%;
  height: auto;
  transform: scale(1.012);
  transform-origin: 55% 45%;
  animation: knowledge-image-drift 13s ease-in-out infinite alternate;
}

.knowledge__caption {
  position: relative;
  z-index: 4;
  display: grid;
  gap: 0.35rem;
  padding: 1rem clamp(1rem, 2vw, 1.35rem) 1.15rem;
  border-top: 1px solid var(--hair);
  color: var(--ink-dim);
  font-size: 0.92rem;
  line-height: 1.55;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.01));
}

.knowledge__caption span {
  color: var(--ink);
  font-weight: 500;
}

.knowledge__flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  background: var(--hair);
  overflow: hidden;
}

.knowledge__node {
  position: relative;
  padding: clamp(1.35rem, 2vw, 1.85rem);
  background: var(--bg);
  transition:
    background 180ms var(--ease),
    transform 180ms var(--ease);
}

.knowledge__node::before {
  content: "";
  position: absolute;
  left: clamp(1.35rem, 2vw, 1.85rem);
  top: 0;
  width: 42px;
  height: 2px;
  background: var(--gradient-pulse);
  opacity: 0.85;
}

.knowledge__node:hover {
  background: var(--surface);
  transform: translateY(-2px);
}

.knowledge__node-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
  margin-bottom: 1.15rem;
}

.knowledge__node h3 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink);
  margin-bottom: 0.65rem;
}

.knowledge__node p {
  font-size: 0.895rem;
  color: var(--ink-dim);
  line-height: 1.62;
}

@keyframes knowledge-graph-glow {
  from { opacity: 0.5; transform: scale(0.99); }
  to { opacity: 0.82; transform: scale(1.02); }
}

@keyframes knowledge-scan {
  from { transform: translateY(0); }
  to { transform: translateY(62vw); }
}

@keyframes knowledge-image-drift {
  from { transform: scale(1.012) translate3d(-0.2%, -0.15%, 0); }
  to { transform: scale(1.026) translate3d(0.25%, 0.18%, 0); }
}

@media (max-width: 980px) {
  .knowledge__flow {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .knowledge__path {
    margin-left: 0.35rem;
    font-size: 10.5px;
  }

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

  .knowledge__frame img {
    min-height: 260px;
    object-fit: cover;
    object-position: 55% 50%;
  }

  .knowledge__node:hover {
    transform: none;
  }
}

/* ---------- mcp section ---------- */
.mcp {
  display: grid;
  grid-template-columns: minmax(0, 920px);
  justify-content: center;
  align-items: start;
}

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

.mcp__code {
  background: var(--surface);
  border: 1px solid var(--hair-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.mcp__code-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 12px 16px;
  border-bottom: 1px solid var(--hair);
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.03), transparent);
}

.mcp__code-bar .dot:nth-child(1) { background: #ff5f56; border-color: rgba(255, 95, 86, 0.6); }
.mcp__code-bar .dot:nth-child(2) { background: #ffbd2e; border-color: rgba(255, 189, 46, 0.6); }
.mcp__code-bar .dot:nth-child(3) { background: #27c93f; border-color: rgba(39, 201, 63, 0.6); }

.mcp__code-title {
  margin-left: 0.8rem;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-mid);
}

.mcp__code-body {
  margin: 0;
  padding: 1.5rem 1.6rem;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink);
  overflow-x: auto;
}

@media (max-width: 560px) {
  .mcp__code-body {
    padding: 1rem;
    font-size: 12px;
    line-height: 1.65;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }

  .mcp__code-body code,
  .mcp__code-body span {
    overflow-wrap: anywhere;
  }
}

.tk-p { color: var(--ink-mid); }
.tk-k { color: var(--pulse-cyan); }
.tk-s { color: var(--pulse-magenta); }

/* ---------- install ---------- */
.install {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--hair);
  margin-bottom: 2.25rem;
}

.install__step {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 1rem;
  padding: 1.15rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent),
    var(--bg-alt);
  align-items: center;
  min-width: 0;
  transition: background 180ms var(--ease);
}

.install__step:hover {
  background:
    radial-gradient(ellipse at 0 0, rgba(34, 211, 238, 0.075), transparent 70%),
    var(--surface);
}

.install__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink-mid);
  border: 1px solid var(--hair-strong);
  border-radius: var(--radius);
  background: var(--bg);
}

.install__body {
  min-width: 0;
  display: grid;
  gap: 0.65rem;
}

.install__step h3 {
  font-family: var(--font-body);
  font-size: 0.96rem;
  font-weight: 500;
  letter-spacing: 0;
  margin: 0;
  color: var(--ink);
}

.install__step .terminal {
  width: 100%;
  max-width: 100%;
  justify-content: space-between;
  padding: 10px 12px 10px 14px;
}

.install__step .terminal__prompt {
  min-width: 0;
}

.install__step code {
  white-space: normal;
  overflow-wrap: anywhere;
}

.install__hint {
  font-size: 0.88rem;
  color: var(--ink-dim);
  line-height: 1.5;
  max-width: 56ch;
}

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

@media (max-width: 640px) {
  .install__step {
    grid-template-columns: 1fr;
    gap: 0.8rem;
    padding: 1rem;
    align-items: start;
  }

  .install__num {
    width: max-content;
    height: auto;
    justify-content: flex-start;
    padding: 0.35rem 0.55rem;
  }
}

.install__license {
  text-align: center;
  color: var(--okto-ink-50, rgba(255 255 255 / .5));
  font-size: var(--step--1, .875rem);
  letter-spacing: .04em;
  margin-block: 2rem 0;
}
.install__license a {
  color: var(--okto-ink-70, rgba(255 255 255 / .7));
  text-decoration: underline;
  text-underline-offset: .2em;
}
.install__license a:hover {
  color: var(--okto-ink, #f0f0f0);
}

.install__cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ---------- footer ---------- */
.foot {
  padding: clamp(4rem, 7vw, 6rem) var(--gutter) 3rem;
  max-width: var(--max);
  margin: 0 auto;
  border-top: 1px solid var(--hair);
}

.foot__inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
}

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

.foot__brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.foot__logo {
  width: 240px;
  height: auto;
  display: block;
}

.foot__tag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-mid);
  letter-spacing: 0.02em;
}

.foot__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 640px) {
  .foot__cols {
    grid-template-columns: repeat(2, 1fr);
  }
}

.foot__cols h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 1rem;
  font-weight: 400;
}

.foot__cols ul {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.foot__cols a {
  font-size: 0.935rem;
  color: var(--ink-dim);
  transition: color 180ms var(--ease);
}

.foot__cols a:hover {
  color: var(--ink);
}

.foot__rule {
  height: 1px;
  background: var(--hair);
  margin: 3rem 0 1.6rem;
}

.foot__base {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.foot__labs {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-mid);
  text-decoration: none;
  transition: color 180ms var(--ease);
}

.foot__labs:hover {
  color: var(--ink);
}

.foot__labs img {
  width: 22px;
  height: 22px;
  display: block;
}

.foot__labs strong {
  color: var(--ink);
  font-weight: 500;
}

.foot__copy {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.02em;
}

/* ---------- entrance animations removed ----------
   The hero lines already have a keyframe animation that always plays.
   Avoid reveal-on-scroll so captures and no-JS visitors both see the
   final layout instantly. */

/* ---------- Consent banner (LGPD) ---------- */
.consent {
  position: fixed;
  left: 50%;
  bottom: clamp(0.75rem, 2vw, 1.5rem);
  transform: translateX(-50%);
  width: min(calc(100vw - 1.5rem), 720px);
  z-index: 80;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.1rem;
  background: rgba(19, 21, 28, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--ink-faint);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
  animation: consent-in 320ms var(--ease);
}

.consent[hidden] {
  display: none;
}

.consent__text {
  flex: 1 1 420px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.55;
  color: var(--ink-dim);
}

.consent__link {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: var(--ink-faint);
  transition: text-decoration-color 180ms var(--ease);
}

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

.consent__actions {
  display: inline-flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.consent__btn {
  font-size: 12px;
  padding: 0.45rem 0.9rem;
}

.consent__btn--primary {
  background: var(--ink);
  color: var(--surface-2);
  border-color: var(--ink);
}

.consent__btn--primary:hover {
  background: var(--ink-dim);
  border-color: var(--ink-dim);
  color: var(--surface-2);
}

@keyframes consent-in {
  from { opacity: 0; transform: translate(-50%, 12px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

@media (max-width: 520px) {
  .consent {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
    width: auto;
    transform: none;
    gap: 0.75rem;
    padding: 0.75rem;
    align-items: stretch;
    gap: 0.6rem;
  }
  .consent__text {
    flex: 0 0 auto;
  }
  .consent__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-content: stretch;
    width: 100%;
  }
  .consent__btn {
    width: 100%;
  }
}

@keyframes consent-mobile-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

