/* Orbiteus — black & white UI; brand color only on IDE logos + selected CTAs */

:root {
  --text: #0a0a0a;
  --text-muted: #404040;
  --text-soft: #737373;
  --border: #e5e5e5;
  --border-strong: #a3a3a3;
  --surface: #ffffff;
  --surface-muted: #fafafa;
  --surface-band: #ffffff;
  --surface-canvas: #ffffff;
  --accent-line: rgba(99, 102, 241, 0.65);
  --orb-ink: #0a0a0a;
  --orb-accent-mid: #525252;
  --orb-accent-light: #a3a3a3;
  --orb-link: #0a0a0a;
  --hero-brand: #4338ca;
  --hero-brand-soft: rgba(67, 56, 202, 0.12);
  --radius: 8px;
  --radius-lg: 12px;
  --e0: none;
  --e1: 0 1px 2px rgba(15, 15, 20, 0.06);
  --e2: 0 2px 8px rgba(15, 15, 20, 0.08);
  --e3: 0 6px 20px rgba(15, 15, 20, 0.1);
  --e4: 0 10px 28px rgba(15, 15, 20, 0.12);
  --shadow-sm: var(--e1);
  --shadow-md: var(--e2);
  /* Canonical content width — matches hero / first view column */
  --max-wide: 1200px;
  /* Vertical rhythm: same as "One spine" / .showcase-dark */
  --section-pad-y: clamp(2.75rem, 6vw, 4.5rem);
  --font: Arial, Helvetica, sans-serif;
  --font-hero: "DM Sans", var(--font);
  --font-mono: "Consolas", "Courier New", monospace;
  --tap: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 100%;
  overflow-x: clip;
  max-width: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  max-width: 100%;
}

main {
  min-width: 0;
  max-width: 100%;
  overflow-x: clip;
}

/* Alternating page bands (white / gray / black) */
.band {
  border-top: 1px solid rgba(0, 0, 0, 0.07);
}

main > section.band:first-of-type {
  border-top: none;
}

.band--white {
  background: #ffffff;
  color: var(--text);
}

.band--gray {
  background: #ffffff;
  color: #0a0a0a;
  border-top-color: rgba(0, 0, 0, 0.08);
}

.band--black {
  background: #080808;
  color: #c4c4c4;
  border-top-color: #2a2a2a;
}

.band--black .section-heading,
.band--black .community-title {
  color: #fafafa;
}

.band--black .section-sub,
.band--black .community-lead {
  color: #a3a3a3;
}

.band--black .section-sub a {
  color: #e5e5e5;
  border-bottom-color: rgba(255, 255, 255, 0.35);
}

.band--black .section-sub a:hover {
  color: #fff;
  border-bottom-color: #fff;
}

.band--black .community-lead strong {
  color: #e5e5e5;
}

.band--black .community-card {
  background: #111111;
  border-color: #2a2a2a;
}

.band--black .community-card:hover {
  border-color: #404040;
}

.band--black .community-card h3 {
  color: #fafafa;
}

.band--black .community-card p {
  color: #a3a3a3;
}

.band--black .cc-ico {
  color: #737373;
}

.band--black .community-quote {
  background: #0c0c0c;
  border-color: #2a2a2a;
  color: #a3a3a3;
}

.band--black .community-quote strong {
  color: #fafafa;
}

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

.wrap {
  width: min(100% - 2.5rem, var(--max-wide));
  margin-inline: auto;
}

/* --- Top app bar (Material: elevated surface) --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  box-shadow: var(--e2);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 0;
  /* width from .wrap on same element + --max-wide */
}

.brand {
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  display: block;
  height: 44px;
  width: auto;
  max-width: min(240px, 55vw);
  object-fit: contain;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.5rem;
  font-size: 0.9375rem;
}

.nav a {
  color: var(--text-soft);
  text-decoration: none;
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius);
  transition: color 0.15s ease, background 0.15s ease;
}

.nav a:hover {
  color: var(--text);
  background: rgba(0, 0, 0, 0.06);
}

.nav-gh {
  color: var(--text) !important;
  border: 1px solid var(--border-strong);
  margin-left: 0.35rem;
  font-weight: 600;
  border-radius: var(--radius-lg);
  box-shadow: var(--e1);
}

.nav-gh:hover {
  background: var(--text) !important;
  color: #fff !important;
  border-color: var(--text);
  box-shadow: var(--e2);
}

.nav-demo {
  font-weight: 600;
  color: var(--text) !important;
  border: 1px dashed var(--border-strong);
}

.nav-demo:hover {
  border-style: solid;
  border-color: var(--orb-ink);
  background: rgba(0, 0, 0, 0.04);
}

/* Mobile nav toggle: hidden on desktop, shown in @media (max-width: 1023.98px) */
.nav-burger {
  display: none;
  box-sizing: border-box;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  min-width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.04);
  border-radius: var(--radius);
  color: var(--text);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s ease;
  z-index: 1;
}

.nav-burger:hover {
  background: rgba(0, 0, 0, 0.08);
}

.nav-burger:focus-visible {
  outline: 2px solid rgba(67, 56, 202, 0.55);
  outline-offset: 2px;
}

.nav-burger__bar {
  display: block;
  align-self: center;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transform-origin: center;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header--nav-open .nav-burger__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header--nav-open .nav-burger__bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.site-header--nav-open .nav-burger__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 1023.98px) {
  .header-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    row-gap: 0;
  }

  .header-inner .nav-burger {
    display: flex;
  }

  .header-inner .nav {
    display: none;
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: stretch;
    align-self: stretch;
    gap: 0.1rem 0.5rem;
    width: 100%;
    min-width: 0;
    padding: 0.5rem 0 0.35rem;
    margin: 0;
    font-size: 0.95rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
  }

  .header-inner .nav a {
    padding: 0.5rem 0.75rem;
    width: 100%;
    text-align: left;
    box-sizing: border-box;
  }

  .header-inner .nav-gh,
  .header-inner .nav .nav-gh {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }

  .header-inner .nav .nav-gh,
  .header-inner .nav .nav-demo {
    border-radius: var(--radius);
    margin-left: 0;
  }

  .site-header--nav-open .header-inner .nav {
    display: flex;
  }
}
/* --- Hero: first view --- */
.hero {
  position: relative;
  padding: var(--section-pad-y) 0;
  overflow: hidden;
}

section.hero--orb {
  /* Must win over .band--white single-color background on same element */
  background-color: #fbfbfd;
  background-image:
    repeating-linear-gradient(
      105deg,
      rgba(0, 0, 0, 0) 0,
      rgba(0, 0, 0, 0) 12px,
      rgba(99, 102, 241, 0.04) 12px,
      rgba(99, 102, 241, 0.04) 13px
    ),
    radial-gradient(ellipse 90% 60% at 10% -10%, rgba(99, 102, 241, 0.14), transparent 45%),
    radial-gradient(ellipse 70% 50% at 100% 20%, rgba(14, 165, 233, 0.08), transparent 50%);
}

.hero--orb {
  isolation: isolate;
  overflow-x: clip;
  overflow-y: visible;
  font-family: var(--font-hero);
}

.hero-ambient {
  position: absolute;
  inset: -20% -10% auto auto;
  width: min(80vw, 900px);
  height: min(80vw, 900px);
  background: radial-gradient(circle at 30% 30%, rgba(67, 56, 202, 0.15), transparent 55%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.85;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-ambient {
    animation: heroAmbient 18s ease-in-out infinite alternate;
  }
}

@keyframes heroAmbient {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(-3%, 2%) scale(1.05);
  }
}

.hero-orbit-ring {
  position: absolute;
  inset: -40% -20% auto auto;
  width: min(90vw, 720px);
  height: min(90vw, 720px);
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.08);
  pointer-events: none;
  z-index: 0;
}

.hero-orbit-ring::after {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  border: 1px dashed rgba(0, 0, 0, 0.06);
}

.hero-orb-inner {
  position: relative;
  z-index: 1;
  min-width: 0;
  /* width from .wrap on same element + --max-wide */
}

/* Two-column first screen: copy + product preview */
.hero-top {
  display: grid;
  gap: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
  align-items: start;
  min-width: 0;
}

@media (min-width: 1024px) {
  .hero-top {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.9fr);
    gap: clamp(1.75rem, 3vw, 2.5rem);
    align-items: center;
  }
}

.hero-top-main {
  min-width: 0;
}

.hero-eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin: 0 0 clamp(0.65rem, 1.5vw, 1rem);
  font-size: clamp(0.65rem, 0.45vw + 0.38rem, 0.75rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hero-brand);
  line-height: 1.35;
  opacity: 0.86;
  max-width: 100%;
}

.hero-eyebrow-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #22c55e, #4338ca);
  box-shadow: 0 0 0 3px var(--hero-brand-soft);
  flex-shrink: 0;
}

.hero-top-visual {
  min-width: 0;
  position: relative;
}

/* Below desktop: same column width as copy — do not use 100vw (causes horizontal overflow on iOS) */
@media (max-width: 1023.98px) {
  .hero-top-visual {
    order: 3;
    position: relative;
    left: auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    transform: none;
    box-sizing: border-box;
  }
}

/* --- Hero: animated “momentum” bars (replaces static screenshot) --- */
/* 3D card: +rotateY = left edge recedes, right (toward the body copy) reads as “open”. −rotateY inverts. */
.hero-momentum {
  position: relative;
  margin: 0;
  padding: 0;
  perspective: 900px;
  perspective-origin: 70% 40%;
}

.hero-momentum__glow {
  position: absolute;
  inset: -8% -6% 20% -6%;
  background: radial-gradient(ellipse 80% 70% at 50% 0%, rgba(34, 197, 94, 0.35), transparent 55%),
    radial-gradient(ellipse 50% 40% at 90% 60%, rgba(6, 182, 212, 0.25), transparent 50%);
  filter: blur(28px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.9;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-momentum__glow {
    animation: hm-glow-breathe 16s ease-in-out infinite;
  }
}

@keyframes hm-glow-breathe {
  0%,
  100% {
    opacity: 0.75;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.04);
  }
}

.hero-momentum__shell {
  position: relative;
  z-index: 1;
  border-radius: 1rem;
  padding: 1px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.75), rgba(6, 182, 212, 0.55), rgba(99, 102, 241, 0.55), rgba(34, 197, 94, 0.45));
  background-size: 200% 200%;
  box-shadow: 0 12px 40px rgba(15, 15, 25, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.2) inset;
}

.hero-momentum__inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 0;
  border-radius: calc(1rem - 1px);
  background: linear-gradient(180deg, #0c0c0f 0%, #08080a 100%);
  padding: clamp(0.95rem, 2.2vw, 1.25rem);
  touch-action: manipulation;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-momentum__shell {
    transform-style: preserve-3d;
    /* Border gradient only — 3D tilt follows pointer (pointer: fine) */
    animation: hm-border-flow 28s ease-in-out infinite;
    will-change: transform;
  }
}

@keyframes hm-border-flow {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.hero-momentum__head {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "badge actions"
    "kicker kicker";
  gap: 0.45rem 0.75rem;
  align-items: start;
  margin: 0 0 0.75rem;
  padding: 0 0 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-momentum__head-actions {
  grid-area: actions;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
}

.hero-momentum__badge {
  grid-area: badge;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #4ade80;
  text-shadow: 0 0 24px rgba(74, 222, 128, 0.35);
}

.hero-momentum__badge-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55);
  flex-shrink: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-momentum__badge-pulse {
    animation: hm-ping 2s ease-out infinite;
  }
}

@keyframes hm-ping {
  0% {
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55);
  }
  70% {
    box-shadow: 0 0 0 8px transparent;
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}

.hero-momentum__kicker {
  grid-area: kicker;
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: #a3a3a3;
  max-width: 44ch;
}

.hero-momentum__replay {
  grid-area: auto;
  align-self: start;
  justify-self: end;
  margin: 0;
  padding: 0.32rem 0.6rem;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #a5b4fc;
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid rgba(129, 140, 248, 0.4);
  border-radius: 6px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.hero-momentum__replay:hover {
  color: #e0e7ff;
  background: rgba(99, 102, 241, 0.32);
  border-color: rgba(196, 181, 253, 0.55);
}

.hero-momentum__pause {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 1.9rem;
  margin: 0;
  padding: 0;
  color: #a5b4fc;
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid rgba(129, 140, 248, 0.4);
  border-radius: 6px;
  cursor: pointer;
  flex-shrink: 0;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.hero-momentum__pause:hover {
  color: #e0e7ff;
  background: rgba(99, 102, 241, 0.32);
  border-color: rgba(196, 181, 253, 0.55);
}

.hero-momentum__pause:focus-visible {
  outline: 2px solid #a5b4fc;
  outline-offset: 2px;
}

.hero-momentum__play-glyph {
  display: none;
}

.js-hero-momentum.hm-is-paused .hero-momentum__pause-glyph {
  display: none;
}

.js-hero-momentum.hm-is-paused .hero-momentum__play-glyph {
  display: block;
}

.hero-momentum__replay:focus-visible {
  outline: 2px solid #a5b4fc;
  outline-offset: 2px;
}

.hero-momentum__slides {
  position: relative;
  min-height: 15.5rem;
  margin: 0 0 0.5rem;
}

@media (min-width: 400px) {
  .hero-momentum__slides {
    min-height: 14rem;
  }
}

.hero-momentum__slide {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.45s ease, transform 0.45s ease;
  pointer-events: none;
  z-index: 0;
}

.hero-momentum__slide.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .hero-momentum__slide {
    transform: none;
  }
}

.hero-momentum__card--wide {
  max-width: none;
}

/* Slide 1 & 2: color icons make slide changes obvious */
.hero-momentum__card-heading {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem 0.65rem;
  margin: 0 0 0.5rem;
  min-width: 0;
}

.hm-slide-icon {
  display: flex;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  margin-top: 0.04rem;
}

.hm-slide-icon svg {
  display: block;
}

/* Slide 3: kicker above mock editor */
.hm-cursor-block {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}

.hm-ai-loves {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  align-self: flex-start;
  gap: 0.4rem;
  margin: 0 0 0.15rem;
  min-width: 0;
  color: #d4d4d8;
}

.hm-ai-loves__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  min-width: 0;
  line-height: 1.25;
}

/* Match .hero-momentum__title (e.g. “Time to ship”) — gradient only for color */
.hm-ai-loves__text {
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  background: linear-gradient(100deg, #c4b5fd 0%, #8b5cf6 45%, #6d28d9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Match .hero-momentum__sub */
.hm-ai-loves__sub {
  display: block;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.45;
  color: #737373;
  max-width: 22rem;
}

.hm-ai-loves__heart {
  display: inline-flex;
  line-height: 0;
  filter: drop-shadow(0 0 8px rgba(124, 58, 237, 0.35));
}

.hero-momentum__card-heading .hero-momentum__sub {
  margin-bottom: 0.45rem;
}

/* Cursor IDE mock (slide 3) */
.hm-cursor {
  text-align: left;
  border-radius: 10px;
  border: 1px solid rgba(99, 102, 241, 0.35);
  background: #050508;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5) inset, 0 4px 24px rgba(99, 102, 241, 0.12);
}

.hm-cursor__bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.65rem;
  background: #11111a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hm-cursor__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3f3f50;
  flex-shrink: 0;
}

.hm-cursor__title-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  flex: 1;
  min-width: 0;
  margin-right: 1.25rem;
}

.hm-cursor__logo {
  display: block;
  width: auto;
  height: 0.9rem;
  max-height: 0.95rem;
  max-width: 5.8rem;
  object-fit: contain;
  object-position: left center;
  flex-shrink: 0;
}

.hm-cursor__logo--tall {
  height: 1.12rem;
  min-height: 0.85rem;
  max-height: 1.3rem;
  min-width: 3.4rem;
  max-width: 7.5rem;
  transform: scale(1.12);
  transform-origin: left center;
}

.hm-cursor__title {
  flex: 0 0 auto;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #a1a1aa;
  white-space: nowrap;
}

.hm-cursor__body {
  position: relative;
  padding: 0.75rem 0.8rem 0.95rem;
  min-height: 8.5rem;
}

.hm-cursor__label {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #71717a;
  margin-bottom: 0.45rem;
}

.hm-cursor__typer {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.55;
  color: #d4d4d8;
  min-height: 3.75rem;
  white-space: pre-wrap;
  word-break: break-word;
}

.hm-cursor__caret {
  position: absolute;
  bottom: 0.8rem;
  left: 0.8rem;
  width: 7px;
  height: 1.05rem;
  background: #6366f1;
  animation: hm-caret-blink 0.9s step-end infinite;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .hm-cursor__caret {
    animation: none;
    opacity: 0.5;
  }
}

@keyframes hm-caret-blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}

.hero-momentum__dots-wrap {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.35rem;
  width: 100%;
  min-width: 0;
  margin: 0.1rem 0 0;
  flex-shrink: 0;
}

@media (min-width: 400px) {
  .hero-momentum__dots-wrap {
    max-width: min(100%, 20rem);
    margin-left: auto;
    margin-right: auto;
  }
}

/* Time-until-next-slide (JS: linear fill; slide 2 duration = full typing sequence) */
.hero-momentum__progress {
  width: 100%;
  min-width: 0;
  padding: 0 0.1rem;
}

.hero-momentum__progress-track {
  position: relative;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

/* Subtle gray; filled via JS (scaleX) for slide timing — no loud purple */
.hero-momentum__progress-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
  background: linear-gradient(90deg, rgba(160, 160, 160, 0.35), rgba(220, 220, 220, 0.45));
  border-radius: 1px;
  box-shadow: none;
  transition: none;
}

/* Typer running: low-contrast sheen (not a second “timer”) */
.hero-momentum__progress-fill.is-indeterminate {
  left: 0;
  width: 100%;
  transform: scaleX(1) !important;
  background: linear-gradient(
    100deg,
    rgba(100, 100, 100, 0) 0%,
    rgba(200, 200, 200, 0.15) 45%,
    rgba(100, 100, 100, 0) 90%
  );
  background-size: 50% 100%;
  background-repeat: no-repeat;
  animation: hm-progress-sheen 1.1s ease-in-out infinite;
}

@keyframes hm-progress-sheen {
  0% {
    background-position: -30% 0;
  }
  100% {
    background-position: 130% 0;
  }
}

.hero-momentum__dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0.05rem 0 0.1rem;
  opacity: 0.45;
}

.hero-momentum__dot--subtle,
.hero-momentum__dot {
  width: 5px;
  height: 5px;
  min-width: 5px;
  min-height: 5px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: transparent;
  font-size: 0;
  line-height: 0;
  cursor: pointer;
  box-shadow: none;
  transition: background 0.25s ease, transform 0.25s ease, opacity 0.25s ease;
}

.hero-momentum__dot--subtle.is-active,
.hero-momentum__dot--subtle[aria-selected="true"] {
  background: rgba(255, 255, 255, 0.38);
  transform: scale(1.15);
  opacity: 1;
}

.hero-momentum__dot--subtle:hover {
  background: rgba(255, 255, 255, 0.32);
}

.hero-momentum__dot--subtle:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.35);
  outline-offset: 2px;
}

.hero-momentum__card {
  margin: 0;
  padding: 0.75rem 0.8rem 0.85rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

.hero-momentum__title {
  margin: 0 0 0.15rem;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fafafa;
}

.hero-momentum__sub {
  margin: 0 0 0.6rem;
  font-size: 0.72rem;
  line-height: 1.45;
  color: #737373;
}

.hero-momentum__bars {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.hero-momentum__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(40px, 1.2fr) auto;
  gap: 0.4rem 0.45rem;
  align-items: center;
  font-size: 0.76rem;
}

@media (max-width: 400px) {
  .hero-momentum__row {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .hero-momentum__val {
    justify-self: start;
  }
}

.hero-momentum__label {
  color: #d4d4d4;
  line-height: 1.2;
  min-width: 0;
}

.hero-momentum__label strong {
  color: #fff;
}

.hero-momentum__track {
  height: 7px;
  border-radius: 999px;
  background: rgba(42, 42, 45, 0.95);
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.45) inset;
}

.hero-momentum__track--time {
  min-width: 0;
}

.hero-momentum__fill {
  display: block;
  height: 100%;
  width: calc(var(--p) * 1%);
  border-radius: inherit;
  background: #3f3f46;
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

.hero-momentum__fill--win {
  background: linear-gradient(
    100deg,
    #10b981,
    #34d399,
    #22d3ee,
    #4ade80,
    #10b981
  );
  background-size: 220% 100%;
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.4);
}

.hero-momentum__fill--time {
  min-width: 0;
}

.hero-momentum__val {
  font-size: 0.72rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #e5e5e5;
  white-space: nowrap;
  text-align: right;
}

@keyframes hm-bar-in {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes hm-shimmer {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

.hero-momentum__slide .hero-momentum__fill {
  transform: scaleX(0);
}

/* Sequential bar pop-in when .hm-bars-anim is toggled (JS) */
.hero-momentum__slide.hm-bars-anim .hero-momentum__row:nth-child(1) .hero-momentum__fill {
  animation: hm-bar-in 0.58s cubic-bezier(0.22, 1, 0.36, 1) 0s forwards;
}

.hero-momentum__slide.hm-bars-anim .hero-momentum__row:nth-child(1) .hero-momentum__fill--win {
  animation: hm-bar-in 0.58s cubic-bezier(0.22, 1, 0.36, 1) 0s forwards, hm-shimmer 3.5s linear 0.6s infinite;
}

.hero-momentum__slide.hm-bars-anim .hero-momentum__row:nth-child(2) .hero-momentum__fill {
  animation: hm-bar-in 0.58s cubic-bezier(0.22, 1, 0.36, 1) 0.5s forwards;
}

.hero-momentum__slide.hm-bars-anim .hero-momentum__row:nth-child(2) .hero-momentum__fill--win {
  animation: hm-bar-in 0.58s cubic-bezier(0.22, 1, 0.36, 1) 0.5s forwards, hm-shimmer 3.5s linear 1.1s infinite;
}

.hero-momentum__slide.hm-bars-anim .hero-momentum__row:nth-child(3) .hero-momentum__fill {
  animation: hm-bar-in 0.58s cubic-bezier(0.22, 1, 0.36, 1) 1s forwards;
}

@media (prefers-reduced-motion: reduce) {
  .hero-momentum__shell,
  .hero-momentum__glow,
  .hero-momentum__badge-pulse {
    animation: none !important;
  }

  .hero-momentum__shell {
    /* static tilt — ~50% subtler vs prior max */
    transform: translate3d(0, 0, 0) rotateX(0.3deg) rotateY(2.25deg) !important;
    transform-style: preserve-3d;
  }

  .hero-momentum__progress {
    display: none;
  }

  .hero-momentum__slide .hero-momentum__fill {
    transform: scaleX(1) !important;
    animation: none !important;
  }
}

.hero-orb-head {
  margin-bottom: 0;
  padding-bottom: clamp(1.75rem, 4vw, 2.75rem);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
}

@media (min-width: 1024px) {
  .hero-orb-head {
    padding-bottom: clamp(1.25rem, 3vw, 2rem);
    border-bottom: none;
  }
}

/* Headline + CTAs: ~75% viewport on tablet/mobile; full width in desktop 2-col */
@media (min-width: 680px) and (max-width: 1023.98px) {
  .hero-orb-head,
  .hero-cta {
    position: relative;
    width: min(75vw, 100vw - 2.5rem);
    max-width: min(75vw, 100vw - 2.5rem);
    margin-left: 50%;
    margin-right: 0;
    transform: translateX(-50%);
  }
}

@media (min-width: 1024px) {
  .hero-orb-head,
  .hero-cta {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    transform: none;
  }
}

.hero-main-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 0 0 clamp(0.9rem, 2vw, 1.4rem);
  max-width: 100%;
  min-width: 0;
}

/* Tier 1 — main hook (largest); +30% vs previous scale */
.hero-main-title__primary {
  font-size: clamp(1.8rem, 2.86vw + 0.9rem, 3.1rem);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--orb-ink);
  max-width: 100%;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

/* Tier 2+3 — compact stack under the hook */
.hero-main-title__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35em;
  width: 100%;
  max-width: min(50ch, 100%);
  min-width: 0;
  margin-top: clamp(0.55rem, 1.3vw, 0.8rem);
  padding-top: clamp(0.55rem, 1.15vw, 0.75rem);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  overflow-wrap: anywhere;
}

/* Tier 2+3 — one size + one violet (brand) for both lines */
.hero-main-title__blurb,
.hero-main-title__meta .hero-accent {
  font-size: clamp(1.02rem, 0.7vw + 0.6rem, 1.2rem);
  line-height: 1.32;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #4338ca;
}

.hero-main-title__meta .hero-accent {
  display: block;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

@media (min-width: 1024px) {
  .hero-main-title__primary {
    font-size: clamp(2.35rem, 1.95vw + 1.2rem, 3.65rem);
    line-height: 1.1;
  }

  .hero-main-title__blurb,
  .hero-main-title__meta .hero-accent {
    font-size: clamp(1.1rem, 0.6vw + 0.7rem, 1.3rem);
    line-height: 1.3;
  }
}

.hero-value-pills {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.4rem 0.5rem;
  margin: 0 0 clamp(1.1rem, 3vw, 1.65rem);
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 0.2rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.hero-value-pill {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  white-space: nowrap;
  padding: 0.3rem 0.55rem;
  font-size: clamp(0.625rem, 0.85vw, 0.75rem);
  font-weight: 600;
  letter-spacing: -0.012em;
  line-height: 1.3;
  color: var(--text-muted);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: none;
}

.hero-deck-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(0.45rem, 1vw, 0.65rem);
  max-width: 100%;
  min-width: 0;
}

/* Primary CTA first (above deck copy) */
.hero-cta__primary--above-deck {
  width: 100%;
  max-width: min(100%, 24rem);
  margin: 0 0 clamp(0.85rem, 2vw, 1.2rem);
}

.hero-deck {
  margin: 0;
  font-size: clamp(1.0625rem, 2vw, 1.1875rem);
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
}

.hero-deck strong {
  color: var(--orb-ink);
}

.hero-deck--split {
  margin: 0;
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
}

/* Lead = short line, slightly smaller than before */
.hero-deck--split.hero-deck--lead {
  font-size: clamp(0.88rem, 0.75vw + 0.42rem, 1rem);
  line-height: 1.45;
  font-weight: 500;
  color: var(--orb-ink);
  opacity: 0.92;
}

.hero-deck--split.hero-deck--lead strong {
  font-weight: 800;
  color: var(--orb-ink);
  letter-spacing: -0.02em;
}

/* Sub = one step down, compact */
.hero-deck--split.hero-deck--sub {
  font-size: clamp(0.78rem, 0.65vw + 0.34rem, 0.88rem);
  line-height: 1.45;
  font-weight: 400;
  color: var(--text-muted);
}

.hero-deck--split.hero-deck--sub strong {
  font-weight: 700;
  color: var(--orb-ink);
  opacity: 0.9;
}

/* --- Hero / first view: mobile & tablet portrait only (<1024) — hierarchy + scanability --- */
@media (max-width: 1023.98px) {
  .hero-orb-head,
  .hero-cta {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    transform: none;
  }

  .hero--orb .hero-top {
    gap: clamp(1.75rem, 5.5vw, 2.5rem);
  }

  .hero-eyebrow {
    margin-bottom: 0.75rem;
  }

  .hero-main-title {
    margin-top: 0.25rem;
    margin-bottom: 0.75rem;
  }

  .hero-main-title__primary {
    display: block;
    font-size: clamp(1.95rem, 0.25rem + 5.2vw, 2.6rem);
    line-height: 1.1;
    letter-spacing: -0.035em;
    padding: 0.5rem 0 0.85rem;
  }

  .hero-value-pills {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: flex-start;
    margin: 0.45rem 0 1.2rem;
    overflow: visible;
    row-gap: 0.5rem;
    column-gap: 0.5rem;
    padding-bottom: 0;
  }

  .hero-value-pill {
    display: inline-flex;
    max-width: 100%;
    flex: 0 1 auto;
    min-width: 0;
    white-space: normal;
    padding: 0.3rem 0.55rem;
  }

  .hero-main-title__meta {
    max-width: 100%;
    gap: 0.55em;
    margin-top: 0.7rem;
    padding: 0.7rem 0 0.65rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    border-left: none;
  }

  .hero-main-title__blurb,
  .hero-main-title__meta .hero-accent {
    line-height: 1.4;
  }

  .hero-main-title__meta .hero-accent {
    opacity: 0.95;
  }

  .hero-deck-block {
    width: 100%;
    max-width: 100%;
    gap: 0.75rem;
    margin-top: 0.2rem;
  }

  .hero-deck-block .hero-cta__primary--above-deck {
    margin-bottom: 0.35rem;
  }

  /* Deck only: card groups the two copy blocks, not the primary CTA */
  .hero-deck-block .hero-deck--split.hero-deck--lead {
    width: 100%;
    max-width: 100%;
    margin: 0;
    font-size: 0.94rem;
    line-height: 1.5;
    padding: 0.95rem 0.9rem 0.8rem;
    border-radius: 12px 12px 0 0;
    background: rgba(248, 250, 252, 0.92);
    border: 1px solid rgba(15, 15, 25, 0.08);
    border-bottom: none;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.65) inset;
  }

  .hero-deck-block .hero-deck--split.hero-deck--sub {
    width: 100%;
    max-width: 100%;
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.5;
    padding: 0.8rem 0.9rem 0.95rem;
    border-radius: 0 0 12px 12px;
    background: rgba(248, 250, 252, 0.92);
    border: 1px solid rgba(15, 15, 25, 0.08);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
  }

  .hero-orb-head {
    padding-bottom: 1.35rem;
  }

  .hero-cta.hero-cta--links-below {
    margin-top: 0.15rem;
    padding-top: 1.1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.07);
  }
}

/* ≤768px: hero H1 at full impact (up to 3rem) */
@media (max-width: 767.98px) {
  .hero-main-title__primary {
    font-size: min(3rem, 0.5rem + 10.2vw);
    line-height: 1.08;
    letter-spacing: -0.04em;
    padding: 0.55rem 0 0.9rem;
  }
}

@media (min-width: 640px) {
  .hero-deck--half {
    max-width: min(50vw, 38rem);
  }

  .hero-orb-head .hero-deck--half {
    max-width: 100%;
  }
}

.triad-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: clamp(0.25rem, 1vw, 0.5rem);
  margin-bottom: clamp(2.25rem, 5vw, 3.25rem);
}

@media (min-width: 900px) {
  .triad-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.35rem;
    align-items: stretch;
  }
}

@media (min-width: 640px) and (max-width: 899px) {
  .triad-grid {
    grid-template-columns: 1fr 1fr;
  }

  .triad-panel--arch {
    grid-column: 1 / -1;
  }
}

.triad-panel {
  position: relative;
  margin: 0;
  padding: 1.65rem 1.45rem 1.75rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-line);
  box-shadow: var(--e1);
  transition: border-color 0.2s var(--tap), box-shadow 0.2s var(--tap);
}

.triad-panel:hover {
  border-color: var(--border-strong);
  border-left-color: rgba(99, 102, 241, 0.85);
  box-shadow: var(--e2);
}

.triad-panel--what {
  border-left-color: rgba(99, 102, 241, 0.75);
}

.triad-panel--why {
  border-left-color: rgba(99, 102, 241, 0.5);
}

.triad-panel--arch {
  border-left-color: rgba(99, 102, 241, 0.35);
}

.triad-panel-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.triad-step {
  font-family: var(--font-mono);
  font-size: clamp(2.5rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: rgba(0, 0, 0, 0.07);
  user-select: none;
}

.triad-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--orb-ink);
}

.triad-heading {
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 800;
  margin: 0 0 0.85rem;
  color: var(--orb-ink);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.triad-hook {
  margin: 0 0 0.55rem;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -0.02em;
  color: var(--text);
}

.triad-hook strong {
  color: var(--orb-ink);
}

.triad-sub {
  margin: 0 0 1.2rem;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.62;
  color: var(--text-muted);
}

.triad-sub strong {
  color: var(--orb-ink);
  font-weight: 700;
}

.triad-lead {
  margin: 0 0 1.1rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text-muted);
}

.triad-lead strong {
  color: var(--orb-ink);
  font-weight: 800;
}

.triad-points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.triad-points--rich {
  gap: 0.85rem;
}

.triad-points--rich li {
  position: relative;
  padding: 0.75rem 0.85rem 0.8rem 0.95rem;
  margin: 0;
  border-left: 3px solid var(--border-strong);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--surface-muted);
}

.triad-points--rich li::before {
  display: none;
}

.triad-point-title {
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orb-ink);
  margin-bottom: 0.35rem;
  line-height: 1.3;
}

.triad-point-desc {
  display: block;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.triad-point-desc strong {
  color: var(--orb-ink);
  font-weight: 700;
}

.triad-points li {
  position: relative;
  padding-left: 1.15rem;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.triad-points:not(.triad-points--rich) li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 1px;
  background: var(--orb-ink);
}

.triad-points strong {
  color: var(--orb-ink);
  font-weight: 700;
}

.triad-points code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  padding: 0.08em 0.3em;
  border-radius: 4px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  color: var(--orb-ink);
}

.triad-points--mono .triad-point-desc {
  font-size: 0.8125rem;
  line-height: 1.58;
}

.triad-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 1rem 0 0;
  padding: 0;
}

.triad-chips span {
  display: inline-block;
  padding: 0.28rem 0.6rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface-muted);
  color: var(--text-muted);
}

.triad-link {
  margin: 0.85rem 0 0;
  font-size: 0.875rem;
}

.triad-link a {
  color: var(--orb-ink);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.35);
}

.triad-link a:hover {
  border-bottom-color: var(--orb-ink);
}

.triad-copy-wrap {
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border);
}

.btn-copy-prompt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0 0 0.55rem;
  padding: 0.55rem 1rem;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--orb-ink);
  background: var(--surface-muted);
  border: 2px solid var(--orb-ink);
  border-radius: var(--radius-lg);
  cursor: pointer;
  box-shadow: var(--e1);
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}

.btn-copy-prompt:hover {
  background: var(--surface);
  box-shadow: var(--e2);
  transform: translateY(-1px);
}

.btn-copy-prompt:focus-visible {
  outline: 2px solid var(--orb-ink);
  outline-offset: 2px;
}

.triad-copy-hint {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--text-soft);
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: clamp(1.65rem, 4.5vw, 2.5rem);
  margin-bottom: clamp(1.5rem, 3vw, 2rem);
  min-width: 0;
  max-width: 100%;
  gap: 0;
}

/* Tighter vertical rhythm: primary CTA is above the deck */
.hero-cta.hero-cta--links-below {
  margin-top: clamp(0.75rem, 1.8vw, 1.1rem);
  margin-bottom: clamp(1.2rem, 2.5vw, 1.75rem);
}

.hero-cta.hero-cta--links-below .hero-cta__secondary {
  margin-top: 0;
  padding-top: 0.8rem;
}

.hero-cta__primary {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
}

.hero-cta__secondary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.65rem;
  width: 100%;
  min-width: 0;
  margin-top: 0.85rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.hero-cta__secondary .hero-doc-link {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
}

#open-start-build-dialog.btn-hero-cta,
.btn-hero-cta {
  display: inline-flex;
  width: 100%;
  max-width: min(100%, 24rem);
  justify-content: center;
  padding: 1.05rem 1.75rem;
  font-size: clamp(1.05rem, 0.9vw + 0.55rem, 1.2rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: #fff;
  border-width: 0;
  border-radius: 12px;
  background: linear-gradient(125deg, #312e81 0%, #4338ca 28%, #4f46e5 55%, #6366f1 100%);
  background-size: 120% 100%;
  box-shadow: 0 2px 12px rgba(67, 56, 202, 0.4), 0 1px 0 rgba(255, 255, 255, 0.1) inset;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-position 0.2s ease, filter 0.15s ease;
}

#open-start-build-dialog.btn-hero-cta:hover,
.btn-hero-cta:hover {
  transform: translateY(-1px);
  background-position: 92% 0;
  filter: brightness(1.06) saturate(1.04);
  box-shadow: 0 6px 24px rgba(79, 70, 229, 0.4), 0 1px 0 rgba(255, 255, 255, 0.1) inset;
  color: #fff;
}

#open-start-build-dialog.btn-hero-cta:focus-visible,
.btn-hero-cta:focus-visible {
  outline: 3px solid rgba(67, 56, 202, 0.45);
  outline-offset: 2px;
}

/* Secondary row: calmer, same visual family */
.btn-hero-secondary {
  padding: 0.52rem 0.9rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-lg);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

button.btn {
  appearance: none;
}

.btn-primary {
  background: #0a0a0a;
  color: #ffffff;
  border: 2px solid #0a0a0a;
  box-shadow: var(--e1);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--e2);
  background: #262626;
  border-color: #262626;
  color: #fff;
}

.btn-secondary {
  background: var(--surface);
  color: var(--orb-ink);
  border: 2px solid var(--border-strong);
}

.btn-secondary:hover {
  background: var(--surface-muted);
  border-color: var(--orb-ink);
}

.btn-github-outline {
  background: var(--surface);
  color: var(--orb-ink);
  border: 2px solid var(--orb-ink);
  box-shadow: none;
  font-weight: 600;
}

.btn-github-outline:hover {
  transform: translateY(-1px);
  background: var(--surface-muted);
  border-color: var(--orb-ink);
  color: var(--orb-ink);
  box-shadow: var(--e1);
}

.btn-demo {
  color: var(--orb-ink) !important;
  border: 2px dashed var(--border-strong) !important;
  background: var(--surface) !important;
}

.btn-demo:hover {
  background: var(--surface-muted) !important;
  border-color: var(--orb-ink) !important;
  color: var(--orb-ink) !important;
}

.hero-doc-link {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  margin-left: 0.25rem;
}

.hero-doc-link:hover {
  color: var(--orb-ink);
  text-decoration: underline;
}

/* Hero: small screens — primary CTA full width; secondary row wraps */
@media (max-width: 640px) {
  #open-start-build-dialog.btn-hero-cta,
  .btn-hero-cta {
    max-width: 100%;
  }

  .hero-cta__secondary {
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
  }

  .hero-cta__secondary .btn-hero-secondary {
    width: 100%;
    justify-content: center;
  }

  .hero-cta__secondary .hero-doc-link {
    text-align: center;
    padding: 0.4rem 0;
  }
}

/* Modal: IDE prompt (copy-only — no auto-exec) */
.start-build-dialog {
  padding: 0;
  border: none;
  border-radius: var(--radius-lg);
  max-width: min(100vw - 1.5rem, 34rem);
  width: 100%;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--e4);
}

.start-build-dialog::backdrop {
  background: rgba(0, 0, 0, 0.55);
}

.start-build-dialog-inner {
  padding: 1.25rem 1.35rem 1.35rem;
}

.start-build-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.start-build-dialog-title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--orb-ink);
}

.start-build-dialog-x {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  margin: -0.35rem -0.25rem 0 0;
  padding: 0;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
}

.start-build-dialog-x:hover {
  color: var(--orb-ink);
  background: var(--surface-muted);
  border-color: var(--border);
}

.start-build-dialog-lead {
  margin: 0 0 0.85rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.start-build-dialog-text {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0 0 1rem;
  padding: 0.75rem 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--orb-ink);
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-line);
  border-radius: var(--radius);
  resize: vertical;
  min-height: 12rem;
  box-sizing: border-box;
}

.start-build-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  justify-content: flex-end;
}

.hero-foot {
  display: grid;
  gap: 1rem;
  align-items: stretch;
}

@media (min-width: 720px) {
  .hero-foot {
    grid-template-columns: minmax(0, 320px) 1fr;
    align-items: end;
  }
}

/* Founder + quick start — centered in hero IDE black band, under H2 */
.hero-foot.hero-foot--ide-strip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 1rem 1.35rem;
  width: 100%;
  margin: clamp(0.85rem, 2.2vw, 1.35rem) auto clamp(1.35rem, 3vw, 2rem);
  padding-inline: 0;
}

.hero-foot--ide-strip .hero-snippet-block {
  width: min(100%, 520px);
  min-width: 0;
}

@media (min-width: 720px) {
  .hero-foot.hero-foot--ide-strip {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: center;
  }

  .hero-foot--ide-strip .hero-snippet-block {
    flex: 1 1 min(100%, 380px);
    max-width: min(100%, 520px);
    width: auto;
  }

  .hero-foot--ide-strip .founder-fiszka {
    flex-shrink: 0;
  }
}

.hero-foot--ide-strip .founder-fiszka {
  max-width: 320px;
  width: 100%;
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.12);
  border-left-color: var(--accent-line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.hero-foot--ide-strip .founder-fiszka-img {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.28);
}

.hero-foot--ide-strip .founder-name {
  color: rgba(255, 255, 255, 0.96);
}

.hero-foot--ide-strip .founder-role {
  color: rgba(255, 255, 255, 0.58);
}

.hero-foot--ide-strip .founder-linkedin {
  color: rgba(255, 255, 255, 0.88);
}

.hero-foot--ide-strip .founder-linkedin:hover {
  color: #fff;
}

.hero-foot--ide-strip .hero-snippet-label {
  color: rgba(255, 255, 255, 0.52);
}

.hero-foot--ide-strip .hero-snippet {
  background: rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 3px solid var(--accent-line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.hero-foot--ide-strip .hero-snippet code {
  color: rgba(245, 245, 245, 0.94);
}

.hero-snippet-block {
  min-width: 0;
}

.hero-snippet-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 0.45rem;
}

.hero-snippet {
  margin: 0;
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-line);
  overflow-x: auto;
  max-width: 100%;
  box-shadow: var(--e1);
}

.hero-snippet code {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--orb-ink);
  white-space: pre-wrap;
  word-break: break-all;
}

.om-split {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 720px) {
  .om-split {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }
}

.om-card {
  padding: 1.35rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface-muted);
  box-shadow: var(--shadow-sm);
}

.om-card-title {
  font-size: 1.0625rem;
  font-weight: 700;
  margin: 0 0 0.85rem;
  color: var(--text);
}

.om-snippet {
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  background: var(--surface-muted);
  border: 1px solid var(--border);
  overflow-x: auto;
}

.om-snippet code {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.55;
  color: var(--orb-ink);
  white-space: pre-wrap;
  word-break: break-all;
}

.om-card-text {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.om-card-text a {
  color: var(--orb-ink);
  font-weight: 600;
  text-decoration: none;
}

.om-card-text a:hover {
  text-decoration: underline;
}

/* Small founder card — max 100px photo */
.founder-fiszka {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  max-width: 320px;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.founder-fiszka-img {
  width: 100px;
  height: 100px;
  max-width: 100px;
  max-height: 100px;
  flex-shrink: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-muted);
}

.founder-fiszka-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.founder-fiszka-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.founder-name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
}

.founder-role {
  font-size: 0.8125rem;
  color: var(--text-soft);
}

.founder-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.2rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--orb-ink);
  text-decoration: none;
}

.founder-linkedin:hover {
  text-decoration: underline;
}

.founder-linkedin-icon {
  flex-shrink: 0;
}

/* --- IDE / AI tools strip --- */
.ide-strip-section {
  padding: var(--section-pad-y) 0;
  border-top: 1px solid var(--border);
  background: #ffffff;
}

/* Nested in hero: band is a direct child of .hero — full width (no 100vw; avoids overflow-x clip) */
.ide-strip-section--in-hero {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  position: relative;
  box-sizing: border-box;
  margin-left: 0;
  margin-right: 0;
  margin-top: clamp(2rem, 5vw, 3.25rem);
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
  padding: 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.ide-strip-hero-band {
  position: relative;
  isolation: isolate;
  /* Full-bleed band under the hero: section is a direct child of .hero (full width). */
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding: clamp(2.25rem, 5.5vw, 3.75rem) 0 clamp(2.25rem, 5.5vw, 3.75rem);
  background-color: #070707;
  background-image:
    radial-gradient(ellipse 120% 80% at 50% 0%, rgba(99, 102, 241, 0.09), transparent 52%),
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.085) 1px, transparent 0);
  background-size: 100% 100%, 22px 22px;
  border-block: 1px solid rgba(255, 255, 255, 0.06);
}

.ide-strip-hero-band-inner {
  position: relative;
  z-index: 1;
  width: min(100% - 2.5rem, var(--max-wide));
  max-width: var(--max-wide);
  margin-inline: auto;
}

.ide-strip-hero-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, transparent 35%, transparent 70%, rgba(0, 0, 0, 0.35) 100%);
}

.ide-strip-section--in-hero .ide-strip-title {
  margin: 0 auto clamp(0.85rem, 2vw, 1.35rem);
  max-width: 22em;
  color: rgba(255, 255, 255, 0.96);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
  font-size: clamp(1.2rem, 2.8vw + 0.65rem, 2.5rem);
  line-height: 1.08;
  letter-spacing: 0.045em;
}

.ide-strip-section--in-hero .ide-strip-sub {
  margin-bottom: clamp(0.75rem, 2vw, 1.1rem);
  font-size: 0.8125rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.58);
}

.ide-strip-inner {
  max-width: var(--max-wide);
  margin-inline: auto;
  width: min(100% - 2.5rem, var(--max-wide));
}

.ide-strip-inner--in-hero {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding-inline: 0;
}

.ide-strip-hero-band-inner .ide-strip-steps {
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
  max-width: none;
  width: 100%;
  margin-inline: 0;
}

.ide-strip-title {
  margin: 0 0 0.35rem;
  font-size: clamp(0.9375rem, 1.5vw, 1.0625rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  color: var(--orb-ink);
}

.ide-strip-sub {
  margin: 0 auto 1.25rem;
  max-width: 52ch;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--text-soft);
  text-align: center;
}

.ide-strip-marquee {
  margin: 0;
}

/* Marquee fades at edges; band already dark + dotted */
.ide-strip-marquee-viewport {
  overflow: hidden;
  margin: 0 0 clamp(0.75rem, 2vw, 1.25rem);
  padding-block: clamp(0.85rem, 2vw, 1.15rem);
  padding-inline: 0.5rem;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.06);
  mask-image: linear-gradient(
    90deg,
    transparent 0,
    #000 10%,
    #000 90%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0,
    #000 10%,
    #000 90%,
    transparent 100%
  );
}

.ide-strip-marquee-track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  width: max-content;
  align-items: center;
  animation: ide-strip-marquee 96s linear infinite;
  will-change: transform;
}

.ide-strip-marquee-viewport:hover .ide-strip-marquee-track,
.ide-strip-marquee-viewport:focus-within .ide-strip-marquee-track {
  animation-play-state: paused;
}

@keyframes ide-strip-marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.ide-strip-marquee-group {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
}

.ide-strip-logos {
  list-style: none;
  margin: 0;
  padding: 0 2.5rem 0 0;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 1rem 2.5rem;
}

.ide-strip-logos--marquee {
  justify-content: flex-start;
}

.ide-strip-item {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  min-width: 4.25rem;
}

.ide-strip-item--wordmark {
  flex-direction: row;
  min-width: 0;
  gap: 0;
  opacity: 0.58;
  transition: opacity 0.2s ease;
}

.ide-strip-item--wordmark:hover,
.ide-strip-item--wordmark:focus-within {
  opacity: 1;
}

.ide-strip-wordmark {
  display: block;
  width: auto;
  height: auto;
  max-height: 22px;
  max-width: min(162px, 36vw);
  object-fit: contain;
  object-position: left center;
}

.ide-strip-wordmark--tall {
  max-height: 28px;
}

.ide-strip-wordmark--wide {
  max-height: 21px;
}

.ide-strip-wordmark--short {
  max-height: 15px;
}

.ide-strip-icon {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
  opacity: 0.92;
}

.ide-strip-icon--brand {
  opacity: 1;
}

.ide-strip-name {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.ide-strip-steps {
  max-width: 52rem;
  margin-inline: auto;
  padding: 1.15rem 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--e1);
}

.ide-strip-lead {
  margin: 0 0 0.85rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.ide-strip-lead strong {
  color: var(--orb-ink);
}

.ide-strip-ol {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.ide-strip-ol li {
  margin-bottom: 0.45rem;
}

.ide-strip-ol li:last-child {
  margin-bottom: 0;
}

.ide-strip-ol code {
  font-family: var(--font-mono);
  font-size: 0.84em;
  padding: 0.08em 0.28em;
  border-radius: 4px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  color: var(--orb-ink);
}

/* --- Pillars --- */
.pillars {
  padding: var(--section-pad-y) 0;
}

.pillar-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .pillar-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pillar-card {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  min-height: 100%;
}

.pillar-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
  border-left-color: rgba(99, 102, 241, 0.85);
}

.pillar-card--emphasis {
  border-left-color: rgba(99, 102, 241, 0.9);
  background: var(--surface);
}

.pillar-num {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text-soft);
  display: block;
  margin-bottom: 0.35rem;
}

.pillar-icon {
  margin-bottom: 0.65rem;
  color: var(--text-muted);
}

.pillar-card h3 {
  font-size: 1.0625rem;
  margin: 0 0 0.5rem;
  font-weight: 700;
  color: var(--text);
}

.pillar-card p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text-muted);
}

/* --- Sections --- */
.section {
  padding: var(--section-pad-y) 0;
}

.section--tight {
  /* Same vertical rhythm as other bands; class kept for semantics / hooks */
  padding: var(--section-pad-y) 0;
}

.section-heading {
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 0.75rem;
  max-width: 32ch;
  color: var(--text);
}

.section-sub {
  margin: 0 0 1.75rem;
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 60ch;
  line-height: 1.55;
}

.section-sub a {
  color: var(--orb-ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.section-sub a:hover {
  text-decoration-thickness: 2px;
}

.prose-wide {
  max-width: var(--max-wide);
  margin-inline: auto;
  width: min(100% - 2.5rem, var(--max-wide));
}

.lead-text {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.lead-text a {
  color: var(--orb-ink);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.35);
}

.lead-text a:hover {
  border-bottom-color: var(--orb-ink);
}

.split-highlight {
  display: grid;
  gap: 1.25rem;
  margin: 2rem 0;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-line);
  background: var(--surface);
  box-shadow: var(--e1);
}

@media (min-width: 720px) {
  .split-highlight {
    grid-template-columns: 1fr 1fr;
  }
}

.h3-icon {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text);
}

.h3-icon .ico {
  font-style: normal;
}

.split-highlight p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.promise-block {
  margin: 0;
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-line);
  background: var(--surface);
  box-shadow: var(--e1);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.promise-block strong {
  color: var(--text);
}

/* --- Product screenshot --- */
.screenshot-frame {
  margin: 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.screenshot-frame img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.screenshot-frame figcaption {
  padding: 0.9rem 1.15rem;
  font-size: 0.875rem;
  color: var(--text-soft);
  border-top: 1px solid var(--border);
  background: var(--surface);
}

/* --- Architecture --- */
.arch-diagram-wrap {
  overflow-x: auto;
  max-width: 100%;
  margin-bottom: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  -webkit-overflow-scrolling: touch;
}

.arch-svg {
  display: block;
  min-width: 640px;
  width: 100%;
  height: auto;
}

.arch-points {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.arch-points li + li {
  margin-top: 0.4rem;
}

.arch-points code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--surface-muted);
  padding: 0.12em 0.35em;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.stack-columns {
  display: grid;
  gap: 1rem;
}

@media (min-width: 900px) {
  .stack-columns {
    grid-template-columns: repeat(3, 1fr);
  }
}

.stack-block {
  padding: 1.35rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.stack-block h3 {
  font-size: 0.9375rem;
  margin: 0 0 0.75rem;
  font-weight: 700;
  color: var(--text);
}

.stack-block ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.stack-block li + li {
  margin-top: 0.3rem;
}

/* --- Community --- */
.community {
  position: relative;
  padding: var(--section-pad-y) 0;
}

.community-inner {
  max-width: var(--max-wide);
  margin-inline: auto;
  width: min(100% - 2.5rem, var(--max-wide));
}

.community-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
  max-width: 28ch;
  color: var(--text);
}

.community-lead {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0 0 1.75rem;
  max-width: 62ch;
}

.community-lead strong {
  color: var(--text);
}

.community-grid {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

@media (min-width: 720px) {
  .community-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.community-card {
  padding: 1.35rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface-muted);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.community-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.cc-ico {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

.community-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.45rem;
  color: var(--text);
}

.community-card p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.community-quote {
  margin: 0;
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-style: italic;
  color: var(--text-muted);
  background: var(--surface-band);
}

.community-quote strong {
  font-style: normal;
  color: var(--text);
}

/* --- GitHub: Shields.io badges + repo pill (standard OSS pattern) --- */
.github-wrap {
  /* full content width; do not cap narrower than .wrap / --max-wide */
  max-width: none;
}

.gh-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.65rem;
  margin-bottom: 1.25rem;
}

.gh-badge {
  display: inline-flex;
  line-height: 0;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--e1);
  transition: box-shadow 0.2s var(--tap), transform 0.15s var(--tap);
}

.gh-badge:hover {
  box-shadow: var(--e2);
  transform: translateY(-1px);
}

.gh-badge img {
  display: block;
  height: 28px;
  width: auto;
  max-width: 100%;
}

.gh-repo-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1.1rem;
  border-radius: var(--radius-lg);
  background: var(--text);
  color: #fff;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  font-weight: 600;
  box-shadow: var(--e2);
  transition: box-shadow 0.2s var(--tap), transform 0.15s var(--tap);
}

.gh-repo-pill:hover {
  box-shadow: var(--e3);
  transform: translateY(-1px);
  color: #fff;
}

.gh-repo-pill svg {
  flex-shrink: 0;
  opacity: 0.95;
}

.cta-final {
  padding: var(--section-pad-y) 0;
  text-align: center;
}

.band--black.cta-final {
  border-top-color: #2a2a2a;
}

.cta-big {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.band--black .cta-big {
  color: #fafafa;
}

.cta-small {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.band--black .cta-small {
  color: #a3a3a3;
}

.cta-small a {
  color: var(--orb-ink);
  font-weight: 600;
  text-decoration: none;
}

.band--black .cta-small a {
  color: #e5e5e5;
}

.cta-small a:hover {
  text-decoration: underline;
}

.band--black .cta-small a:hover {
  color: #fff;
}

.site-footer {
  padding: var(--section-pad-y) 0;
  border-top: 1px solid var(--border);
  background: #0f0f0f;
  color: #a3a3a3;
}

.site-footer strong {
  color: #fff;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: var(--max-wide);
  margin-inline: auto;
  width: min(100% - 2.5rem, var(--max-wide));
}

.footer-note {
  margin: 0.4rem 0 0;
  font-size: 0.8125rem;
}

.footer-note a {
  color: #e5e5e5;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-note a:hover {
  color: #fff;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
}

.footer-links a {
  color: #e5e5e5;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
}

.footer-links a:hover {
  color: #fff;
}

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

/* --- Dark showcase: bento + velocity (InsForge-inspired layout) --- */
.showcase-dark {
  padding: var(--section-pad-y) 0;
  color: #fafafa;
}

.showcase-dark-wrap {
  max-width: var(--max-wide);
  margin-inline: auto;
  width: min(100% - 2.5rem, var(--max-wide));
  min-width: 0;
}

.showcase-dark-eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #737373;
}

.showcase-dark-heading {
  margin: 0 0 0.65rem;
  font-size: clamp(1.5rem, 3.2vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #fafafa;
  max-width: 26ch;
}

.showcase-dark-lead {
  margin: 0 0 2rem;
  font-size: 1rem;
  line-height: 1.55;
  color: #a3a3a3;
  max-width: 62ch;
}

.bento-stage {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(118px, auto));
  grid-template-areas:
    "tl tc tr"
    "ml cc mr"
    "bl bc br";
  gap: 1px;
  background: #2a2a2a;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
  border: 1px solid #2a2a2a;
  max-width: 100%;
  min-width: 0;
}

.bento-cell {
  background: #121212;
  padding: 1.1rem 1.15rem 1.2rem;
  position: relative;
  min-height: 0;
}

.bento-cell-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 0.65rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #d4d4d4;
}

.bento-cell-ico img {
  display: block;
}

.bento-cell-title {
  margin: 0 0 0.4rem;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fafafa;
}

.bento-cell-desc {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #a3a3a3;
}

.bento-cell-desc code {
  font-size: 0.78em;
  color: #e5e5e5;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.06em 0.28em;
  border-radius: 3px;
}

.bento-cell--tl {
  grid-area: tl;
}

.bento-cell--tc {
  grid-area: tc;
}

.bento-cell--tr {
  grid-area: tr;
}

.bento-cell--ml {
  grid-area: ml;
}

.bento-cell--mr {
  grid-area: mr;
}

.bento-cell--bl {
  grid-area: bl;
}

.bento-cell--bc {
  grid-area: bc;
}

.bento-cell--br {
  grid-area: br;
}

.bento-center {
  grid-area: cc;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem;
  background: #0f0f0f;
  position: relative;
  z-index: 2;
}

.bento-arch-card {
  width: min(100%, 26rem);
  background: #0a0a0a;
  border: 1px solid #3f3f3f;
  border-radius: 10px;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.65);
  transform: translateY(-4px);
}

.bento-arch-card-head {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.65rem;
  border-bottom: 1px solid #2a2a2a;
  background: #141414;
}

.bento-arch-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #404040;
}

.bento-arch-dot:first-of-type {
  background: #ef4444;
}

.bento-arch-dot:nth-of-type(2) {
  background: #eab308;
}

.bento-arch-dot:nth-of-type(3) {
  background: #22c55e;
}

.bento-arch-title {
  margin-left: 0.35rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #a3a3a3;
}

.bento-arch-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.75rem;
}

.bento-arch-table th,
.bento-arch-table td {
  padding: 0.55rem 0.65rem;
  text-align: left;
  border-bottom: 1px solid #222;
  vertical-align: top;
}

.bento-arch-table th {
  color: #737373;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.625rem;
  background: #0d0d0d;
}

.bento-arch-table td:first-child {
  color: #d4d4d4;
  font-weight: 600;
  width: 28%;
  white-space: nowrap;
}

.bento-arch-table td:last-child {
  color: #a3a3a3;
  line-height: 1.45;
}

.bento-arch-table tbody tr:last-child td {
  border-bottom: none;
}

.bento-arch-table code {
  font-size: 0.92em;
  color: #e5e5e5;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.05em 0.25em;
  border-radius: 3px;
}

.velocity-proof {
  padding-top: 0.25rem;
}

.velocity-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fafafa;
}

.velocity-lead {
  margin: 0 0 1.5rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #a3a3a3;
  max-width: 65ch;
}

.velocity-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 840px) {
  .velocity-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }
}

.velocity-card {
  padding: 1.25rem 1.35rem;
  border-radius: 12px;
  border: 1px solid #2a2a2a;
  background: #101010;
}

.velocity-card-title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 700;
  color: #fafafa;
}

.velocity-card-sub {
  margin: 0 0 1.1rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #737373;
}

.velocity-bars {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.velocity-row {
  display: grid;
  grid-template-columns: minmax(0, 9.5rem) 1fr auto;
  gap: 0.65rem 0.75rem;
  align-items: center;
  font-size: 0.8125rem;
}

@media (max-width: 520px) {
  .velocity-row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .velocity-val {
    justify-self: start;
  }
}

.velocity-label {
  color: #d4d4d4;
  line-height: 1.3;
}

.velocity-label strong {
  color: #fff;
}

.velocity-track {
  height: 8px;
  border-radius: 999px;
  background: #2a2a2a;
  overflow: hidden;
}

.velocity-fill {
  display: block;
  height: 100%;
  width: calc(var(--p) * 1%);
  border-radius: inherit;
  background: #525252;
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

.velocity-fill--win {
  background: linear-gradient(90deg, #2da44e, #238636);
}

.velocity-foot {
  margin: 1rem 0 0;
  font-size: 0.75rem;
  line-height: 1.45;
  color: #525252;
}

@keyframes velocity-bar-in {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

.velocity-proof.is-revealed .velocity-fill {
  animation: velocity-bar-in 1.05s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.velocity-proof.is-revealed .velocity-card:first-child .velocity-row:nth-child(1) .velocity-fill {
  animation-delay: 0.04s;
}

.velocity-proof.is-revealed .velocity-card:first-child .velocity-row:nth-child(2) .velocity-fill {
  animation-delay: 0.14s;
}

.velocity-proof.is-revealed .velocity-card:first-child .velocity-row:nth-child(3) .velocity-fill {
  animation-delay: 0.24s;
}

.velocity-proof.is-revealed .velocity-card:last-child .velocity-row:nth-child(1) .velocity-fill {
  animation-delay: 0.12s;
}

.velocity-proof.is-revealed .velocity-card:last-child .velocity-row:nth-child(2) .velocity-fill {
  animation-delay: 0.22s;
}

.velocity-proof.is-revealed .velocity-card:last-child .velocity-row:nth-child(3) .velocity-fill {
  animation-delay: 0.32s;
}

@media (prefers-reduced-motion: reduce) {
  .velocity-fill {
    animation: none !important;
    transform: scaleX(1) !important;
  }

  .ide-strip-marquee-viewport {
    overflow: visible;
    mask-image: none;
    -webkit-mask-image: none;
    padding-inline: 0;
  }

  .ide-strip-marquee-track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 100%;
  }

  .ide-strip-marquee-group[aria-hidden="true"] {
    display: none;
  }

  .ide-strip-logos {
    flex-wrap: wrap;
    justify-content: center;
    padding-inline: 0;
  }
}

@media (max-width: 768px) {
  .bento-stage {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    background: #121212;
    padding: 0.65rem;
  }

  .bento-cell,
  .bento-center {
    border-radius: 10px;
    border: 1px solid #262626;
  }

  .bento-center {
    order: -1;
    background: transparent;
    border: none;
    padding: 0;
  }

  .bento-arch-card {
    transform: none;
    width: 100%;
  }
}
