:root {
  --page-bg: #020202;
  --surface-1: rgba(12, 10, 8, 0.72);
  --surface-2: rgba(14, 12, 9, 0.78);
  --surface-3: rgba(10, 8, 6, 0.9);
  --text-main: #ffffff;
  --text-muted: #d1cdc8;
  --text-dim: rgba(255, 255, 255, 0.72);
  --accent-cyan: #e0d5c7;
  --accent-green: #c9b99a;
  --stroke-soft: rgba(255, 255, 255, 0.2);
  --stroke-glow: rgba(255, 245, 230, 0.25);
  --stroke-grid: rgba(255, 245, 230, 0.08);
  --radius-lg: 20px;
  --radius-xl: 28px;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background:
    radial-gradient(1000px 540px at 18% -6%, rgba(140, 120, 90, 0.15), transparent 62%),
    radial-gradient(1200px 680px at 100% 26%, rgba(120, 100, 75, 0.12), transparent 67%),
    var(--page-bg);
  color: var(--text-main);
  font-family: "Inter", "Sohne", "Avenir Next", "IBM Plex Sans", sans-serif;
}

a {
  color: inherit;
}

.page-shell {
  min-height: 100vh;
  position: relative;
}

/* ── Skip-to-content link (a11y) ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 0.75rem 1.5rem;
  background: var(--text-main);
  color: var(--page-bg);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 0;
  outline: 2px solid var(--accent-cyan);
  outline-offset: 2px;
}

/* ── Navbar ── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 clamp(1.2rem, 4vw, 2.4rem);
  transition: padding 500ms cubic-bezier(0.16, 1, 0.3, 1),
              top 500ms cubic-bezier(0.16, 1, 0.3, 1);
  border-bottom: 1px solid transparent;
}

.nav--scrolled {
  padding: 10px clamp(1.2rem, 4vw, 2.4rem);
  top: 0;
  border-bottom: none;
}

.nav__container {
  max-width: 1120px;
  margin: 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border-radius: 0;
  border: 1px solid transparent;
  padding: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  transition: max-width 500ms cubic-bezier(0.16, 1, 0.3, 1),
              height 500ms cubic-bezier(0.16, 1, 0.3, 1),
              border-radius 500ms cubic-bezier(0.16, 1, 0.3, 1),
              background 500ms cubic-bezier(0.16, 1, 0.3, 1),
              backdrop-filter 500ms cubic-bezier(0.16, 1, 0.3, 1),
              border-color 500ms cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 500ms cubic-bezier(0.16, 1, 0.3, 1),
              padding 500ms cubic-bezier(0.16, 1, 0.3, 1);
}

.nav--scrolled .nav__container {
  max-width: 720px;
  height: 48px;
  border-radius: 999px;
  background: rgba(12, 10, 8, 0.65);
  backdrop-filter: blur(40px) saturate(1.6);
  -webkit-backdrop-filter: blur(40px) saturate(1.6);
  border: 1px solid rgba(255, 245, 230, 0.1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4),
              0 0 0 1px rgba(255, 245, 230, 0.03),
              inset 0 1px 0 rgba(255, 255, 255, 0.04);
  padding: 0 0.6rem 0 1.2rem;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text-main);
  flex-shrink: 0;
  transition: gap 500ms cubic-bezier(0.16, 1, 0.3, 1);
}

.nav--scrolled .nav__brand {
  gap: 0.45rem;
}

.nav__logo {
  color: rgba(255, 245, 230, 0.7);
  transition: color 200ms ease, width 500ms cubic-bezier(0.16, 1, 0.3, 1), height 500ms cubic-bezier(0.16, 1, 0.3, 1);
}

.nav--scrolled .nav__logo {
  width: 22px;
  height: 22px;
}

.nav__brand:hover .nav__logo {
  color: rgba(255, 245, 230, 0.95);
}

.nav__wordmark {
  font-family: "Inter", "Sohne", "Avenir Next", "IBM Plex Sans", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-main);
  transition: font-size 500ms cubic-bezier(0.16, 1, 0.3, 1);
}

.nav--scrolled .nav__wordmark {
  font-size: 0.95rem;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 2.5vw, 2.2rem);
  transition: gap 500ms cubic-bezier(0.16, 1, 0.3, 1);
}

.nav--scrolled .nav__links {
  gap: 1rem;
}

.nav__link {
  text-decoration: none;
  font-family: "Inter", "Sohne", "Avenir Next", "IBM Plex Sans", sans-serif;
  font-size: 0.88rem;
  font-weight: 450;
  color: rgba(255, 255, 255, 0.55);
  transition: color 200ms ease, font-size 500ms cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.nav--scrolled .nav__link {
  font-size: 0.78rem;
}

.nav__link:hover {
  color: rgba(255, 255, 255, 0.92);
}

.nav__link.is-active {
  color: rgba(255, 255, 255, 0.95);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-shrink: 0;
  transition: gap 500ms cubic-bezier(0.16, 1, 0.3, 1);
}

.nav--scrolled .nav__actions {
  gap: 0.6rem;
}

.nav__link--login {
  color: rgba(255, 255, 255, 0.55);
}

/* Hide login text when scrolled to save space */
.nav--scrolled .nav__link--login {
  display: none;
}

.button--nav {
  padding: 0.48rem 1rem;
  font-size: 0.82rem;
  font-weight: 500;
  transition: padding 500ms cubic-bezier(0.16, 1, 0.3, 1),
              font-size 500ms cubic-bezier(0.16, 1, 0.3, 1),
              border-radius 500ms cubic-bezier(0.16, 1, 0.3, 1);
}

.nav--scrolled .button--nav {
  padding: 0.38rem 0.9rem;
  font-size: 0.75rem;
  border-radius: 999px;
}

/* Burger (mobile only) */
.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 110;
}

.nav__burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 2px;
  transition: transform 300ms ease, opacity 200ms ease;
}

.nav__burger.is-open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav__burger.is-open span:nth-child(2) {
  opacity: 0;
}

.nav__burger.is-open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile menu */
.nav__mobile {
  display: none;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1rem clamp(1.2rem, 4vw, 2.4rem) 1.6rem;
  background: rgba(2, 2, 2, 0.85);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav__mobile.is-open {
  display: flex;
}

.nav__mobile-link {
  text-decoration: none;
  font-family: "Inter", "Sohne", "Avenir Next", "IBM Plex Sans", sans-serif;
  font-size: 1rem;
  font-weight: 450;
  color: rgba(255, 255, 255, 0.65);
  padding: 0.7rem 0;
  transition: color 200ms ease;
}

.nav__mobile-link:hover {
  color: rgba(255, 255, 255, 0.95);
}

.nav__mobile-divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 0.3rem 0;
}

.button--mobile-full {
  text-align: center;
  margin-top: 0.4rem;
}

@media (max-width: 768px) {
  .nav__links,
  .nav__actions {
    display: none;
  }

  .nav__burger {
    display: flex;
  }

  /* On mobile, scrolled nav stays full-width, no pill */
  .nav--scrolled .nav__container {
    max-width: 100%;
    border-radius: 0;
    height: 54px;
    padding: 0 1rem;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav--scrolled {
    padding: 0 clamp(1.2rem, 4vw, 2.4rem);
  }
}

.hero {
  --hero-image: none;
  position: relative;
  min-height: max(100vh, 860px);
  overflow: hidden;
  background: var(--page-bg);
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Film grain — subtle texture that unifies photo + glassmorphism */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
  mix-blend-mode: overlay;
}

/* z-index stacking order inside .hero:
   0 = hero__media (background image)
   1 = hero__cards (spending cards)
   3 = hero__overlay (oval vignette + bottom gradient)
   4 = hero__content (text + buttons)
*/

.hero__pixel-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: brightness(0.72) saturate(1.08) contrast(1.05);
}

/* ── Agent spending cards (behind mask) ── */
.hero__cards {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero__spend-card {
  position: absolute;
  width: clamp(175px, 17vw, 220px);
  background: rgba(14, 12, 9, 0.5);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid rgba(255, 245, 230, 0.07);
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  box-shadow:
    0 6px 24px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.55s ease, top 0.8s cubic-bezier(.4,0,.2,1), right 0.8s cubic-bezier(.4,0,.2,1), transform 0.8s cubic-bezier(.4,0,.2,1);
}

/* Compact variant — smaller cards for quick notifications */
.hero__spend-card--compact {
  width: clamp(150px, 14vw, 185px);
  padding: 0.55rem 0.7rem;
}

.hero__spend-card.is-visible {
  opacity: 0.82;
}

.hero__spend-header {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.6rem;
}

.hero__spend-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.hero__spend-dot--green { background: #34c759; }
.hero__spend-dot--amber { background: #f5a623; }

.hero__spend-label {
  font-family: "Inter", "Sohne", "Avenir Next", "IBM Plex Sans", sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.45);
}

.hero__spend-amount {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
}

.hero__spend-value {
  font-family: "JetBrains Mono", "SF Mono", "Fira Code", monospace;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.hero__spend-currency {
  font-family: "Inter", "Sohne", "Avenir Next", "IBM Plex Sans", sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.04em;
}

.hero__spend-detail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.55rem;
}

.hero__spend-tx {
  font-family: "JetBrains Mono", "SF Mono", "Fira Code", monospace;
  font-size: 0.7rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.4);
}

.hero__spend-status {
  font-family: "Inter", "Sohne", "Avenir Next", "IBM Plex Sans", sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  padding: 0.12rem 0.45rem;
  border-radius: 4px;
}

.hero__spend-status--settled {
  background: rgba(100, 210, 140, 0.12);
  color: rgba(100, 210, 140, 0.9);
}

.hero__spend-status--pending {
  background: rgba(245, 185, 80, 0.12);
  color: rgba(245, 185, 80, 0.9);
}

.hero__spend-bar {
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-bottom: 0.3rem;
}

.hero__spend-bar-fill {
  height: 100%;
  border-radius: 2px;
  background: rgba(100, 210, 140, 0.6);
  transition: width 600ms ease;
}

.hero__spend-bar-fill--amber {
  background: rgba(245, 185, 80, 0.6);
}

.hero__spend-bar-label {
  font-family: "Inter", "Sohne", "Avenir Next", "IBM Plex Sans", sans-serif;
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.22);
}

/* ── Notification-style card variants ── */
.hero__notif {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.hero__notif-icon {
  flex-shrink: 0;
  font-size: 0.95rem;
  line-height: 1;
}
.hero__notif-text {
  font-family: "Inter", "Sohne", "Avenir Next", "IBM Plex Sans", sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.35;
}
.hero__notif-text strong {
  color: #fff;
  font-weight: 600;
}
.hero__notif-sub {
  font-family: "JetBrains Mono", "SF Mono", "Fira Code", monospace;
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.3);
  margin-top: 0.2rem;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

/* Left-heavy vignette — darkens text zone, reveals scene + cards on right */
.hero__overlay--top {
  background:
    /* Left dark zone for text legibility */
    linear-gradient(
      to right,
      rgba(2, 2, 2, 0.7) 0%,
      rgba(2, 2, 2, 0.45) 30%,
      rgba(2, 2, 2, 0.1) 55%,
      transparent 70%
    ),
    /* Soft oval vignette on edges */
    radial-gradient(
      ellipse 75% 65% at 55% 40%,
      transparent 0%,
      transparent 45%,
      rgba(2, 2, 2, 0.15) 65%,
      rgba(2, 2, 2, 0.45) 85%,
      rgba(2, 2, 2, 0.7) 100%
    );
  opacity: 1;
}

/* Bottom fade — gentle, just blends into page-bg */
.hero__overlay--bottom {
  background: linear-gradient(
    to bottom,
    rgba(2, 2, 2, 0) 50%,
    rgba(2, 2, 2, 0.25) 68%,
    rgba(2, 2, 2, 0.55) 82%,
    rgba(2, 2, 2, 0.85) 94%,
    #020202 100%
  );
}

.hero__content {
  position: relative;
  z-index: 4;
  max-width: 1237px;
  margin: 0 auto;
  min-height: inherit;
  padding: clamp(4rem, 10vw, 7rem) clamp(1.2rem, 4vw, 2.4rem) 3.2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.9rem;
  text-align: left;
}

.hero__eyebrow {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 245, 230, 0.15);
  background: rgba(10, 8, 6, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: rgba(255, 248, 238, 0.8);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 500;
}

h1 {
  margin: 0;
  max-width: 28ch;
  color: #fff;
  font-family: "Playfair Display", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.14;
  letter-spacing: -0.02em;
  text-wrap: balance;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.hero__copy {
  margin: 0;
  max-width: 480px;
  color: var(--text-muted);
  font-size: clamp(1rem, 2.2vw, 1.12rem);
  line-height: 1.5;
}

.hero__actions {
  margin-top: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: flex-start;
}

.hero__meta {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.hero__chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 240, 220, 0.2);
  background: rgba(20, 16, 10, 0.5);
  color: rgba(255, 248, 238, 0.9);
  border-radius: 999px;
  padding: 0.32rem 0.72rem;
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.button {
  text-decoration: none;
  border-radius: 999px;
  padding: 0.6rem 1.08rem;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 2px;
}

.button--primary {
  background: #ffffff;
  color: #020202;
  border: 1px solid #ffffff;
}

.button--primary:hover {
  box-shadow: 0 8px 28px rgba(255, 255, 255, 0.22);
}

.button--ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.button--ghost:hover {
  border-color: rgba(255, 240, 220, 0.45);
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 4px 16px rgba(255, 245, 230, 0.06);
}

.hero.hero--fallback {
  background:
    linear-gradient(180deg, rgba(2, 2, 2, 0.6), rgba(2, 2, 2, 0.92)),
    var(--hero-image, none),
    radial-gradient(ellipse at top, #1b1b1b 0%, transparent 50%),
    linear-gradient(180deg, #080808, #020202);
  background-size: cover, cover, cover, cover;
  background-position: center, center, center, center;
}

.hero.hero--fallback .hero__media,
.hero.hero--scene-disabled .hero__media {
  display: none;
}

.section {
  position: relative;
  padding: clamp(3.2rem, 8vw, 6.2rem) clamp(1.2rem, 4vw, 2.4rem);
}

.section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(1120px, calc(100% - 2.4rem));
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--stroke-glow), transparent);
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.section__kicker {
  margin: 0 auto;
  max-width: 840px;
  padding: 1.05rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 240, 220, 0.16);
  background: linear-gradient(135deg, rgba(18, 15, 10, 0.62), rgba(12, 10, 7, 0.85));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 14px 40px rgba(0, 0, 0, 0.32);
  color: var(--text-muted);
  font-size: clamp(0.92rem, 1.6vw, 1.03rem);
  text-align: center;
  line-height: 1.45;
}

.section h2 {
  margin: 0;
  max-width: 20ch;
  color: #f9fbfc;
  font-family: "Playfair Display", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  font-size: clamp(1.65rem, 4.1vw, 2.8rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.section__lead {
  margin: 1rem 0 0;
  max-width: 720px;
  color: var(--text-muted);
  font-size: clamp(1rem, 1.95vw, 1.12rem);
  line-height: 1.55;
}

/* ── Social proof ── */

.proof {
  position: relative;
  padding: clamp(2.4rem, 5vw, 3.6rem) 0;
  overflow: hidden;
}

.proof::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(1120px, calc(100% - 2.4rem));
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--stroke-glow), transparent);
}

.proof__heading {
  margin: 0 0 clamp(1.4rem, 3vw, 2rem);
  text-align: center;
  color: rgba(200, 209, 215, 0.5);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.proof__track {
  position: relative;
  width: 100%;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.proof__strip {
  display: flex;
  gap: clamp(2.4rem, 5vw, 4rem);
  width: max-content;
  animation: proof-scroll 32s linear infinite;
}

.proof__logo {
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.28);
  font-family: "Inter", "Sohne", "Avenir Next", "IBM Plex Sans", sans-serif;
  font-size: clamp(0.92rem, 1.8vw, 1.1rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 400ms ease;
  user-select: none;
}

@keyframes proof-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ── Personas (Built to power) — dark section ── */

.personas {
  background: var(--page-bg);
  padding: clamp(4rem, 8vw, 6.5rem) 0;
  position: relative;
}

.personas::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(1120px, calc(100% - 2.4rem));
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--stroke-glow), transparent);
}

.personas__container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(1.2rem, 4vw, 2.4rem);
}

.personas__heading {
  margin: 0 0 clamp(2.4rem, 5vw, 3.6rem);
  text-align: center;
  max-width: 18ch;
  margin-left: auto;
  margin-right: auto;
  color: #f9fbfc;
  font-family: "Playfair Display", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.personas__alt {
  font-style: italic;
}

.personas__doodle {
  position: relative;
}

.personas__doodle::before,
.personas__doodle::after {
  content: "~";
  position: absolute;
  top: -0.15em;
  font-size: 0.5em;
  color: rgba(220, 200, 170, 0.4);
  font-style: normal;
}

.personas__doodle::before {
  left: -0.6em;
}

.personas__doodle::after {
  right: -0.6em;
}

/* Tabs row */

.personas__tabs {
  display: flex;
  gap: clamp(0.4rem, 1vw, 0.6rem);
  margin-bottom: clamp(2.4rem, 5vw, 3.6rem);
  justify-content: center;
  flex-wrap: wrap;
}

.personas__tab {
  text-decoration: none;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--stroke-soft);
  background: transparent;
  color: var(--text-muted);
  font-size: clamp(0.82rem, 1.3vw, 0.95rem);
  font-weight: 500;
  cursor: pointer;
  transition: color 200ms ease, border-color 200ms ease, background 200ms ease;
}

.personas__tab:hover {
  color: var(--text-main);
  border-color: rgba(255, 240, 220, 0.3);
}

.personas__tab.is-active {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--stroke-glow);
}

/* Tab content panels */

.personas__content {
  position: relative;
}

.personas__panel {
  display: none;
}

.personas__panel.is-active {
  display: block;
}

.personas__divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--stroke-glow), transparent);
  margin-bottom: clamp(1.8rem, 3.5vw, 2.8rem);
}

/* Two-column grid */

.personas__panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

/* Left: heading + CTA */

.personas__panel-left h3 {
  margin: 0 0 1.6rem;
  font-family: "Playfair Display", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.15;
  color: #f9fbfc;
  max-width: 14ch;
}

.personas__cta {
  display: inline-block;
  text-decoration: none;
  color: var(--text-main);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.65rem 1.3rem;
  border: 1.5px solid var(--stroke-soft);
  border-radius: 999px;
  transition: border-color 200ms ease, background 200ms ease;
}

.personas__cta:hover {
  border-color: rgba(255, 240, 220, 0.35);
  background: rgba(255, 255, 255, 0.06);
}

/* Right: features */

.personas__panel-right {
  display: flex;
  flex-direction: column;
}

.personas__feature h4 {
  margin: 0;
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.35;
}

.personas__feature p {
  margin: 0.4rem 0 0;
  font-size: clamp(0.85rem, 1.3vw, 0.95rem);
  color: var(--text-muted);
  line-height: 1.55;
}

.personas__feature-divider {
  width: 100%;
  height: 1px;
  background: var(--stroke-soft);
  margin: 1.4rem 0;
}

/* ── Built to power (card-tabs section) ── */

.built {
  background: var(--page-bg);
  padding: clamp(3.6rem, 7vw, 5.5rem) clamp(1.2rem, 4vw, 2.4rem);
  position: relative;
}

.built::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(1120px, calc(100% - 2.4rem));
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--stroke-glow), transparent);
}

.built__container {
  max-width: 1120px;
  margin: 0 auto;
}

.built__heading {
  margin: 0 0 clamp(2.2rem, 4.5vw, 3.2rem);
  text-align: center;
  color: #f9fbfc;
  font-family: "Playfair Display", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.built__alt {
  font-style: italic;
}

.built__doodle {
  position: relative;
}

.built__doodle::before,
.built__doodle::after {
  content: "~";
  position: absolute;
  top: -0.15em;
  font-size: 0.5em;
  color: rgba(220, 200, 170, 0.4);
  font-style: normal;
}

.built__doodle::before {
  left: -0.6em;
}

.built__doodle::after {
  right: -0.6em;
}

/* Dark glass card container */
.built__box {
  position: relative;
  background: var(--surface-1);
  border: 1px solid var(--stroke-soft);
  border-radius: 20px;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  overflow: hidden;
}

.built__box::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 22%;
  background: linear-gradient(to bottom, transparent 0%, var(--page-bg) 100%);
  pointer-events: none;
  z-index: 3;
  border-radius: 0 0 20px 20px;
}

/* Tab cards row */
.built__tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(0.5rem, 1vw, 0.75rem);
  margin-bottom: clamp(1.4rem, 2.5vw, 2rem);
}

.built__tab-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: clamp(0.8rem, 1.2vw, 1rem) clamp(0.8rem, 1.2vw, 1rem) 0;
  cursor: pointer;
  overflow: hidden;
  min-height: 180px;
  transition: border-color 200ms ease, background 200ms ease;
  font-family: inherit;
  font-size: inherit;
  text-align: left;
}

.built__tab-card:hover {
  border-color: rgba(255, 240, 220, 0.2);
  background: rgba(255, 255, 255, 0.06);
}

.built__tab-card.is-active {
  border-style: solid;
  border-color: var(--stroke-glow);
  background: rgba(255, 255, 255, 0.07);
}

.built__tab-label {
  font-family: "Inter", "Sohne", "Avenir Next", "IBM Plex Sans", sans-serif;
  font-size: clamp(0.82rem, 1.2vw, 0.95rem);
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}

.built__tab-card.is-active .built__tab-label {
  color: var(--text-main);
}

.built__tab-illustration {
  position: relative;
  flex: 1;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.built__tab-svg {
  width: 80%;
  max-width: 100px;
  height: auto;
  opacity: 0.35;
  transition: opacity 200ms ease;
}

.built__tab-svg path,
.built__tab-svg circle,
.built__tab-svg rect,
.built__tab-svg line,
.built__tab-svg polyline {
  stroke: rgba(220, 210, 195, 0.7);
}

.built__tab-svg [fill="#1a1a1a"] {
  fill: rgba(220, 210, 195, 0.7);
}

.built__tab-svg [fill="#f2f0ed"] {
  fill: transparent;
}

.built__tab-card.is-active .built__tab-svg {
  opacity: 0.7;
}

/* Gradient blob on active card */
.built__tab-blob {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 60px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(220, 200, 160, 0.3) 0%, rgba(200, 180, 140, 0.2) 50%, transparent 70%);
  filter: blur(16px);
  opacity: 0;
  transition: opacity 300ms ease;
  pointer-events: none;
}

.built__tab-card.is-active .built__tab-blob {
  opacity: 1;
}

/* Dashed divider */
.built__divider {
  width: 100%;
  height: 0;
  border: none;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  margin-bottom: clamp(1.6rem, 3vw, 2.4rem);
}

/* Panels */
.built__panel {
  display: none;
}

.built__panel.is-active {
  display: block;
}

.built__panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

/* Left column */
.built__panel-left h3 {
  margin: 0 0 1.6rem;
  font-family: "Playfair Display", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.15;
  font-weight: 400;
  color: #f9fbfc;
  max-width: 100%;
}

.built__cta {
  display: inline-block;
  text-decoration: none;
  color: var(--text-main);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.65rem 1.3rem;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  transition: border-color 200ms ease, background 200ms ease, box-shadow 200ms ease;
}

.built__cta:hover {
  border-color: rgba(255, 240, 220, 0.45);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 16px rgba(255, 245, 230, 0.06);
}

/* Right column */
.built__panel-right {
  display: flex;
  flex-direction: column;
}

.built__feature h4 {
  margin: 0;
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.35;
}

.built__feature p {
  margin: 0.4rem 0 0;
  font-size: clamp(0.85rem, 1.3vw, 0.95rem);
  color: var(--text-muted);
  line-height: 1.55;
}

.built__feature-divider {
  width: 100%;
  height: 1px;
  background: var(--stroke-soft);
  margin: 1.4rem 0;
}

/* ── Trusted By ── */

.trusted {
  background: transparent;
  padding: clamp(3.6rem, 7vw, 5.5rem) clamp(1.2rem, 4vw, 2.4rem) clamp(1.5rem, 3vw, 2.5rem);
  position: relative;
  z-index: 2;
  margin-top: clamp(-12rem, -15vw, -18rem);
}

.trusted__container {
  max-width: 1120px;
  margin: 0 auto;
}

.trusted__label {
  margin: 0 0 clamp(0.5rem, 1vw, 0.9rem);
  text-align: center;
  color: rgba(200, 195, 185, 0.45);
  font-family: "Inter", "Sohne", "Avenir Next", "IBM Plex Sans", sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.trusted__row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  flex-wrap: wrap;
}

.trusted__logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: rgba(210, 205, 195, 0.55);
  transition: color 300ms ease;
  animation: trusted-float 4s ease-in-out infinite;
}

.trusted__logo:nth-child(1) { animation-delay: 0s; }
.trusted__logo:nth-child(2) { animation-delay: 0.6s; }
.trusted__logo:nth-child(3) { animation-delay: 1.2s; }
.trusted__logo:nth-child(4) { animation-delay: 0.3s; }
.trusted__logo:nth-child(5) { animation-delay: 0.9s; }
.trusted__logo:nth-child(6) { animation-delay: 1.5s; }

@keyframes trusted-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}

.trusted__logo:hover {
  color: rgba(210, 205, 195, 0.8);
}

.trusted__icon {
  flex-shrink: 0;
  color: inherit;
}

.trusted__icon--wordmark {
  width: clamp(90px, 10vw, 120px);
  height: auto;
}

.trusted__name {
  font-family: "Inter", "Sohne", "Avenir Next", "IBM Plex Sans", sans-serif;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  font-weight: 500;
  color: inherit;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
}

.trusted__name--bold {
  font-weight: 700;
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  letter-spacing: 0;
}

/* ── Manifesto / Bridge ── */

.manifesto {
  position: relative;
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.2rem, 4vw, 2.4rem);
  background: var(--page-bg);
}

.manifesto::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(600px, 60%);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(255, 245, 230, 0.25), transparent);
}

.manifesto__container {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.manifesto__lead {
  margin: 0 0 clamp(2rem, 4vw, 3rem);
  font-family: "Playfair Display", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: #fff;
  text-wrap: balance;
}

.manifesto__body {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.manifesto__body p {
  margin: 0 0 1.2rem;
  font-family: "Inter", "Sohne", "Avenir Next", "IBM Plex Sans", sans-serif;
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.62);
}

.manifesto__body p:last-child {
  margin-bottom: 0;
}

.manifesto__stats {
  display: flex;
  justify-content: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.manifesto__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.manifesto__stat-value {
  font-family: "JetBrains Mono", "SF Mono", "Fira Code", monospace;
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.03em;
}

.manifesto__stat-label {
  font-family: "Inter", "Sohne", "Avenir Next", "IBM Plex Sans", sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
}

/* ── Voices / Masonry Bento — Flighty-style ── */

.voices {
  position: relative;
  padding: clamp(5rem, 10vw, 8rem) clamp(1.2rem, 4vw, 2.4rem);
  background: var(--page-bg);
}

.voices::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(1200px, calc(100% - 2.4rem));
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--stroke-glow), transparent);
}

.voices__container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.voices__heading {
  font-family: "Playfair Display", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--text-main);
  text-align: center;
  margin: 0 auto clamp(3rem, 6vw, 4.5rem);
}

/* ── Masonry 4-col ── */
.voices__masonry {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: start;
  position: relative;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 55%, transparent 90%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 55%, transparent 90%);
}

.voices__col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ── Card ── */
.voices__card {
  padding: 1.35rem 1.25rem;
  background: rgba(255, 255, 255, 0.028);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transition: border-color 350ms ease,
              background 350ms ease,
              box-shadow 350ms ease,
              transform 350ms ease;
}

.voices__card:hover {
  border-color: rgba(255, 245, 230, 0.13);
  background: rgba(255, 255, 255, 0.042);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22),
              0 0 0 1px rgba(255, 245, 230, 0.04);
  transform: translateY(-2px);
}

/* ── Card top: avatar + meta ── */
.voices__card-top {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.voices__avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 245, 230, 0.07);
  color: rgba(255, 245, 230, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Inter", "Sohne", "Avenir Next", sans-serif;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.voices__avatar--green {
  background: rgba(100, 210, 140, 0.1);
  color: rgba(100, 210, 140, 0.6);
}

.voices__avatar--blue {
  background: rgba(100, 150, 230, 0.1);
  color: rgba(100, 150, 230, 0.6);
}

.voices__meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  flex: 1;
}

.voices__name {
  font-family: "Inter", "Sohne", "Avenir Next", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.voices__handle {
  font-family: "Inter", "Sohne", "Avenir Next", sans-serif;
  font-size: 0.66rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.3);
}

/* ── Badge (email-style label) ── */
.voices__badge {
  margin-left: auto;
  font-family: "Inter", "Sohne", "Avenir Next", sans-serif;
  font-size: 0.66rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
  white-space: nowrap;
}

.voices__to {
  font-family: "Inter", "Sohne", "Avenir Next", sans-serif;
  font-size: 0.64rem;
  color: rgba(255, 255, 255, 0.22);
  margin-top: -0.2rem;
}

/* ── Stars ── */
.voices__stars {
  font-size: 0.72rem;
  letter-spacing: 2px;
  color: #d4a853;
  margin-top: -0.1rem;
}

/* ── Quote text ── */
.voices__quote {
  margin: 0;
  font-family: "Inter", "Sohne", "Avenir Next", sans-serif;
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.62);
  letter-spacing: -0.005em;
}

/* ── Dotted divider — the high-end detail ── */
.voices__divider {
  width: 100%;
  height: 0;
  border: none;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  margin: 0.25rem 0;
}

/* ── Attribution below divider ── */
.voices__attr {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.voices__role {
  font-family: "Inter", "Sohne", "Avenir Next", sans-serif;
  font-size: 0.66rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.3);
}

/* ── Media card ── */
.voices__media-block {
  border-radius: 14px;
  overflow: hidden;
  position: relative;
}

.voices__media-inner {
  background: rgba(255, 245, 230, 0.025);
  aspect-ratio: 16 / 12;
  display: flex;
  align-items: center;
  justify-content: center;
}

.voices__media-caption {
  display: block;
  padding: 0.55rem 0.7rem;
  font-family: "Inter", "Sohne", "Avenir Next", sans-serif;
  font-size: 0.68rem;
  color: rgba(255, 245, 230, 0.35);
  font-weight: 500;
  background: rgba(255, 245, 230, 0.02);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

/* ── Bottom pill — floats above the masonry fade ── */
.voices__bottom {
  display: flex;
  justify-content: center;
  margin-top: -4rem;
  position: relative;
  z-index: 2;
}

.voices__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 1.4rem;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.voices__pill-avatars {
  display: flex;
  align-items: center;
}

.voices__pill-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--page-bg);
  display: inline-block;
}

.voices__pill-dot + .voices__pill-dot {
  margin-left: -7px;
}

.voices__pill-text {
  font-family: "Inter", "Sohne", "Avenir Next", sans-serif;
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 450;
}

.voices__pill-divider {
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.1);
}

.voices__pill-link {
  font-family: "Inter", "Sohne", "Avenir Next", sans-serif;
  font-size: 0.74rem;
  font-weight: 600;
  color: rgba(255, 245, 230, 0.7);
  text-decoration: none;
  transition: color 200ms ease;
}

.voices__pill-link:hover {
  color: rgba(255, 245, 230, 1);
}

/* ── Scroll-reveal micro-animations ── */

/* Manifesto typewriter: each char wrapped in a span */
.manifesto__lead .tw-char,
.manifesto__body .tw-char {
  opacity: 0.10;
  transition: opacity 220ms ease-out;
}

.manifesto__lead .tw-char.is-lit,
.manifesto__body .tw-char.is-lit {
  opacity: 1;
}

/* Cursor after last revealed char */
.manifesto__cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: rgba(255, 255, 255, 0.6);
  vertical-align: text-bottom;
  margin-left: 1px;
  animation: manifesto-blink 0.8s step-end infinite;
}

@keyframes manifesto-blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0; }
}

/* Voices cards: always visible (no fade-in) */

/* Footer terminal: lines hidden for typewriter */
.footer__terminal-line {
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 300ms ease, transform 300ms ease;
}

.footer__terminal-line.is-typed {
  opacity: 1;
  transform: translateY(0);
}

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

@media (max-width: 640px) {
  .voices__masonry {
    grid-template-columns: 1fr;
  }
  .voices__heading {
    max-width: 100%;
  }
  .manifesto__stats {
    flex-direction: column;
    gap: 1.5rem;
  }
  .voices__pill-text {
    font-size: 0.62rem;
  }
}

@media (max-width: 1080px) {
  .hero {
    min-height: max(94vh, 860px);
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: max(92vh, 740px);
  }

  .hero__content {
    padding-bottom: 2.2rem;
    gap: 0.8rem;
  }

  .hero__actions {
    width: 100%;
  }

  .hero__meta {
    width: 100%;
  }

  .button {
    width: min(20rem, 100%);
    text-align: center;
  }

  .section {
    padding-top: 2.8rem;
    padding-bottom: 3.6rem;
  }

  .section h2 {
    max-width: 100%;
  }

  .personas__tabs {
    justify-content: center;
  }

  .personas__panel-grid {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }

  .personas__panel-left h3 {
    max-width: 100%;
  }

  .built__tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }

  .built__tab-card {
    min-height: 120px;
    flex: 0 0 calc(33.333% - 0.34rem);
  }

  /* Last 2 cards on second row — narrower to center visually */
  .built__tab-card:nth-child(4),
  .built__tab-card:nth-child(5) {
    flex: 0 0 calc(33.333% - 0.34rem);
  }

  .built__panel-grid {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }

  .built__panel-left h3 {
    max-width: 100%;
  }

  .trusted__row {
    gap: clamp(1.4rem, 4vw, 2.5rem);
    justify-content: center;
  }

  .testimonials__card {
    flex: 0 0 85vw;
  }
}

@media (max-width: 480px) {
  .built__tab-card {
    flex: 0 0 calc(50% - 0.25rem);
    min-height: 100px;
  }
}

/* ── How it Works (Light card blocks) ── */

.hiw {
  background: var(--page-bg);
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.2rem, 4vw, 2.4rem);
  position: relative;
}

.hiw::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(1120px, calc(100% - 2.4rem));
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--stroke-glow), transparent);
}

.hiw__container {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 4vw, 3rem);
}

/* ── Block wrapper ── */
.hiw__block {
  background: rgba(12, 10, 8, 0.72);
  backdrop-filter: blur(40px) saturate(1.4);
  -webkit-backdrop-filter: blur(40px) saturate(1.4);
  border-radius: 20px;
  overflow: clip;
  border: 1px solid rgba(255, 245, 230, 0.08);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* Allow dropdowns to overflow the block boundary */
.hiw__block:first-child {
  overflow: visible;
}

.hiw__block-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 480px;
}

.hiw__block-inner--reverse {
  direction: rtl;
}

.hiw__block-inner--reverse > * {
  direction: ltr;
}

/* ── Text column ── */
.hiw__block-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2.4rem, 5vw, 4rem);
}

.hiw__kicker {
  margin: 0 0 0.8rem;
  font-family: "Inter", "Sohne", "Avenir Next", "IBM Plex Sans", sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(200, 190, 170, 0.55);
}

.hiw__heading {
  margin: 0 0 1.2rem;
  font-family: "Playfair Display", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #f9fbfc;
}

.hiw__block-desc {
  margin: 0 0 0.6rem;
  font-size: clamp(0.92rem, 1.5vw, 1.02rem);
  color: rgba(255, 255, 255, 0.58);
  line-height: 1.6;
  max-width: 38ch;
}

/* ── Visual column ── */
.hiw__block-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: rgba(255, 255, 255, 0.02);
  border-left: 1px solid rgba(255, 245, 230, 0.06);
  overflow: visible;
}

/* Block 1 visual: side-by-side pills + panel */
.hiw__block-visual--split {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.8rem, 1.5vw, 1.2rem);
  padding: clamp(1.2rem, 2.5vw, 2rem);
  overflow: visible;
}

/* ── Pills (product type cards) ── */
.hiw__pills {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  z-index: 1;
  flex-shrink: 0;
  width: clamp(160px, 18vw, 195px);
}

.hiw__pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.7rem;
  background: rgba(14, 12, 9, 0.65);
  border: 1px solid rgba(255, 245, 230, 0.08);
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: box-shadow 200ms ease, border-color 200ms ease, background 200ms ease;
  cursor: pointer;
}

.hiw__pill--active {
  border-color: rgba(220, 200, 160, 0.25);
  box-shadow: 0 2px 12px rgba(220, 200, 160, 0.08);
  background: rgba(220, 200, 160, 0.08);
}

.hiw__pill:hover {
  border-color: rgba(255, 245, 230, 0.15);
  background: rgba(255, 255, 255, 0.04);
}

.hiw__pill-icon {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.4);
  flex-shrink: 0;
  transition: background 200ms ease, color 200ms ease;
}

.hiw__pill-icon--accent {
  background: rgba(220, 200, 160, 0.12);
  color: rgba(220, 200, 160, 0.85);
}

.hiw__pill-info {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

.hiw__pill-name {
  font-family: "Inter", "Sohne", "Avenir Next", "IBM Plex Sans", sans-serif;
  font-size: 0.82rem;
  font-weight: 550;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.2;
}

.hiw__pill-type {
  font-family: "Inter", "Sohne", "Avenir Next", "IBM Plex Sans", sans-serif;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.3);
  line-height: 1.2;
}

/* ── Edit panel ── */
.hiw__edit-panel {
  background: rgba(14, 12, 9, 0.78);
  border: 1px solid rgba(255, 245, 230, 0.1);
  border-top: 1px solid rgba(255, 245, 230, 0.14);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  flex: 1;
  min-width: 0;
  z-index: 2;
}

.hiw__edit-title {
  margin: 0 0 0.8rem;
  font-family: "Inter", "Sohne", "Avenir Next", "IBM Plex Sans", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: #f9fbfc;
}

.hiw__edit-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-bottom: 0.65rem;
}

.hiw__edit-row--last {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.hiw__edit-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.hiw__edit-label {
  font-family: "Inter", "Sohne", "Avenir Next", "IBM Plex Sans", sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.01em;
}

.hiw__edit-select {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.55rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  font-family: "Inter", "Sohne", "Avenir Next", "IBM Plex Sans", sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  white-space: nowrap;
}

.hiw__edit-select svg {
  color: rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
}

.hiw__edit-select--sm {
  padding: 0.25rem 0.45rem;
  font-size: 0.72rem;
}

.hiw__edit-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "Inter", "Sohne", "Avenir Next", "IBM Plex Sans", sans-serif;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  cursor: default;
}

.hiw__checkbox-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  flex-shrink: 0;
}

/* ── Dropdown menus ── */
.hiw__edit-field {
  position: relative;
}

.hiw__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 4px;
  background: rgba(14, 12, 9, 0.95);
  border: 1px solid rgba(255, 245, 230, 0.14);
  border-radius: 8px;
  padding: 4px;
  z-index: 20;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  opacity: 0;
  transform: translateY(-4px) scale(0.97);
  pointer-events: none;
  transition: opacity 150ms ease, transform 150ms ease;
}

.hiw__dropdown.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.hiw__dropdown-item {
  padding: 0.4rem 0.6rem;
  border-radius: 5px;
  font-family: "Inter", "Sohne", "Avenir Next", "IBM Plex Sans", sans-serif;
  font-size: 0.74rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease;
  white-space: nowrap;
}

.hiw__dropdown-item:hover {
  background: rgba(220, 200, 160, 0.1);
  color: rgba(255, 255, 255, 0.9);
}

.hiw__dropdown-item.is-active {
  background: rgba(220, 200, 160, 0.12);
  color: rgba(220, 200, 160, 0.95);
}

/* Pill panel title reflects selected pill */
.hiw__edit-title {
  transition: color 200ms ease;
}

/* ── Invoice list ── */
.hiw__invoice-list {
  width: 100%;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(14, 12, 9, 0.78);
  border: 1px solid rgba(255, 245, 230, 0.08);
  border-top: 1px solid rgba(255, 245, 230, 0.12);
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
}

.hiw__invoice-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  flex-wrap: wrap;
  transition: background 150ms ease;
}

.hiw__invoice-item:last-child {
  border-bottom: none;
}

.hiw__invoice-item--fade {
  opacity: 0.45;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 100%);
}

.hiw__invoice-status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.hiw__invoice-status--sent { background: #34c759; }
.hiw__invoice-status--pending { background: #f5a623; }
.hiw__invoice-status--review { background: #ff6b6b; }

.hiw__invoice-id {
  font-family: "JetBrains Mono", "SF Mono", "Fira Code", monospace;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  white-space: nowrap;
}

.hiw__invoice-badge {
  font-family: "Inter", "Sohne", "Avenir Next", "IBM Plex Sans", sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  white-space: nowrap;
}

.hiw__invoice-badge--sent {
  background: rgba(100, 210, 140, 0.1);
  color: rgba(100, 210, 140, 0.85);
}

.hiw__invoice-badge--pending {
  background: rgba(245, 185, 80, 0.1);
  color: rgba(245, 185, 80, 0.85);
}

.hiw__invoice-badge--review {
  background: rgba(255, 107, 107, 0.1);
  color: rgba(255, 107, 107, 0.85);
}

.hiw__invoice-spacer {
  flex: 1;
}

.hiw__invoice-brand {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-family: "Inter", "Sohne", "Avenir Next", "IBM Plex Sans", sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
}

.hiw__invoice-brand svg {
  color: rgba(255, 255, 255, 0.3);
}

.hiw__invoice-meta {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-left: calc(8px + 0.55rem);
}

.hiw__invoice-amount {
  font-family: "Inter", "Sohne", "Avenir Next", "IBM Plex Sans", sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
}

.hiw__invoice-date {
  font-family: "Inter", "Sohne", "Avenir Next", "IBM Plex Sans", sans-serif;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.25);
}

/* ── Code card (Block 3) ── */
.hiw__code-card {
  width: 100%;
  max-width: 420px;
  background: rgba(8, 7, 5, 0.85);
  border: 1px solid rgba(255, 245, 230, 0.08);
  border-top: 1px solid rgba(255, 245, 230, 0.12);
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
}

.hiw__code-topbar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.hiw__code-dots {
  display: flex;
  gap: 5px;
}

.hiw__code-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.hiw__code-dot--red    { background: rgba(255, 95, 87, 0.7); }
.hiw__code-dot--yellow { background: rgba(254, 188, 46, 0.7); }
.hiw__code-dot--green  { background: rgba(40, 200, 64, 0.7); }

.hiw__code-filename {
  font-family: "JetBrains Mono", "SF Mono", "Fira Code", monospace;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.3);
}

.hiw__code {
  margin: 0;
  padding: 1rem 1.2rem 1.3rem;
  font-family: "JetBrains Mono", "SF Mono", "Fira Code", monospace;
  font-size: clamp(0.68rem, 1.1vw, 0.78rem);
  line-height: 1.7;
  color: rgba(220, 215, 205, 0.65);
  white-space: pre;
  overflow-x: auto;
}

.hiw__code code {
  font-family: inherit;
}

.hiw__code-kw      { color: rgba(200, 140, 255, 0.85); }
.hiw__code-str     { color: rgba(130, 220, 160, 0.85); }
.hiw__code-fn      { color: rgba(130, 200, 255, 0.9); }
.hiw__code-prop    { color: rgba(220, 200, 160, 0.85); }
.hiw__code-var     { color: rgba(220, 215, 205, 0.9); }
.hiw__code-num     { color: rgba(245, 185, 80, 0.9); }
.hiw__code-comment { color: rgba(160, 155, 145, 0.4); font-style: italic; }

/* Floating status badges */
.hiw__code-badges {
  position: absolute;
  right: clamp(0.8rem, 1.5vw, 1.5rem);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  z-index: 2;
}

.hiw__code-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.7rem;
  background: rgba(14, 12, 9, 0.78);
  border: 1px solid rgba(255, 245, 230, 0.08);
  border-radius: 8px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  font-family: "Inter", "Sohne", "Avenir Next", "IBM Plex Sans", sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hiw__code-badge--green {
  color: rgba(100, 210, 140, 0.85);
  border-color: rgba(100, 210, 140, 0.12);
}

.hiw__code-badge--amber {
  color: rgba(245, 185, 80, 0.85);
  border-color: rgba(245, 185, 80, 0.12);
}

/* ── HIW block animations ── */
.hiw__block {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 700ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

.hiw__block.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Built section scroll reveal */
.built {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity 800ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 800ms cubic-bezier(0.16, 1, 0.3, 1);
}

.built.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Ambient animations (subtle) ── */
@keyframes hiw-pulse-glow {
  0%, 100% { box-shadow: 0 2px 12px rgba(220, 200, 160, 0.06); }
  50%      { box-shadow: 0 2px 16px rgba(220, 200, 160, 0.12); }
}

@keyframes hiw-badge-in {
  from { opacity: 0; transform: translateX(12px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes hiw-status-blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.4; }
}

@keyframes hiw-cursor-blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0; }
}

@keyframes hiw-tx-slide-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Active pill — subtle glow pulse only */
.hiw__pill--active {
  animation: hiw-pulse-glow 4s ease-in-out infinite;
}

/* Interactive selects */
.hiw__edit-select {
  cursor: pointer;
  transition: border-color 200ms ease, background 200ms ease, box-shadow 200ms ease, transform 120ms ease;
}

.hiw__edit-select:hover {
  border-color: rgba(220, 200, 160, 0.3);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 12px rgba(220, 200, 160, 0.06);
  transform: translateY(-1px);
}

.hiw__edit-select:active {
  transform: scale(0.97);
}

/* Select active cycling state */
.hiw__edit-select.is-cycling {
  border-color: rgba(220, 200, 160, 0.4);
  background: rgba(220, 200, 160, 0.1);
  box-shadow: 0 0 16px rgba(220, 200, 160, 0.1);
}

/* Checkbox interactive */
.hiw__edit-checkbox {
  cursor: pointer;
  transition: color 200ms ease;
}

.hiw__edit-checkbox:hover {
  color: rgba(255, 255, 255, 0.6);
}

.hiw__checkbox-box {
  transition: border-color 200ms ease, background 200ms ease, box-shadow 200ms ease;
}

.hiw__edit-checkbox:hover .hiw__checkbox-box {
  border-color: rgba(220, 200, 160, 0.35);
}

.hiw__checkbox-box.is-checked {
  border-color: rgba(100, 210, 140, 0.5);
  background: rgba(100, 210, 140, 0.15);
  box-shadow: 0 0 8px rgba(100, 210, 140, 0.1);
}

.hiw__checkbox-check {
  display: none;
  width: 10px;
  height: 10px;
  color: rgba(100, 210, 140, 0.9);
}

.hiw__checkbox-box.is-checked .hiw__checkbox-check {
  display: block;
}

/* Invoice list — staggered slide-in */
.hiw__block.is-visible .hiw__invoice-item {
  animation: hiw-tx-slide-in 400ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hiw__block.is-visible .hiw__invoice-item:nth-child(1) { animation-delay: 100ms; }
.hiw__block.is-visible .hiw__invoice-item:nth-child(2) { animation-delay: 180ms; }
.hiw__block.is-visible .hiw__invoice-item:nth-child(3) { animation-delay: 260ms; }
.hiw__block.is-visible .hiw__invoice-item:nth-child(4) { animation-delay: 340ms; }
.hiw__block.is-visible .hiw__invoice-item:nth-child(5) { animation-delay: 420ms; }
.hiw__block.is-visible .hiw__invoice-item:nth-child(6) { animation-delay: 500ms; }
.hiw__block.is-visible .hiw__invoice-item:nth-child(7) { animation-delay: 580ms; }

/* Pending status dots — gentle blink */
.hiw__invoice-status--pending {
  animation: hiw-status-blink 2.5s ease-in-out infinite;
}

/* Invoice item hover */
.hiw__invoice-item:hover {
  background: rgba(255, 255, 255, 0.02);
}

/* Code badges — staggered entry */
.hiw__code-badge {
  opacity: 0;
}

.hiw__block.is-visible .hiw__code-badge {
  animation: hiw-badge-in 500ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hiw__block.is-visible .hiw__code-badge:nth-child(1) { animation-delay: 600ms; }
.hiw__block.is-visible .hiw__code-badge:nth-child(2) { animation-delay: 800ms; }
.hiw__block.is-visible .hiw__code-badge:nth-child(3) { animation-delay: 1000ms; }

/* Cursor blink in code card */
.hiw__code-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: rgba(220, 200, 160, 0.7);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: hiw-cursor-blink 1s step-end infinite;
}


/* ── Responsive ── */
@media (max-width: 900px) {
  .hiw__block-inner,
  .hiw__block-inner--reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .hiw__block-visual {
    border-left: none;
    border-right: none;
    border-top: 1px solid rgba(255, 245, 230, 0.06);
    min-height: auto;
  }

  .hiw__block-visual--split {
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem;
  }

  .hiw__pills {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.4rem;
  }

  .hiw__pill {
    flex: 0 0 auto;
  }

  .hiw__edit-panel {
    width: 100%;
    margin-top: 0.8rem;
  }

  .hiw__block-visual:not(.hiw__block-visual--split) {
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem;
  }

  .hiw__invoice-list {
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .hiw__pills {
    flex-direction: column;
  }

  .hiw__pill {
    width: 100%;
  }
}

/* ── Waitlist Modal ── */

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 150ms ease, visibility 150ms ease;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 3, 2, 0.4);
  backdrop-filter: blur(28px) saturate(1.6) brightness(0.7);
  -webkit-backdrop-filter: blur(28px) saturate(1.6) brightness(0.7);
}

.modal__card {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: linear-gradient(
    145deg,
    rgba(28, 24, 18, 0.75) 0%,
    rgba(14, 12, 9, 0.88) 100%
  );
  backdrop-filter: blur(60px) saturate(1.8) brightness(1.1);
  -webkit-backdrop-filter: blur(60px) saturate(1.8) brightness(1.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 32px;
  padding: clamp(2rem, 5vw, 2.8rem);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 32px 80px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: translateY(12px) scale(0.98);
  transition: transform 250ms cubic-bezier(0.16, 1, 0.3, 1);
}

.modal.is-open .modal__card {
  transform: translateY(0) scale(1);
}

.modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: color 200ms ease, background 200ms ease;
  padding: 0;
}

.modal__close:hover {
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.08);
}

.modal__header {
  margin-bottom: 1.8rem;
}

.modal__title {
  margin: 0 0 0.4rem;
  font-family: "Playfair Display", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  font-size: clamp(1.3rem, 3vw, 1.6rem);
  font-weight: 400;
  color: #fff;
  line-height: 1.2;
}

.modal__subtitle {
  margin: 0;
  font-family: "Inter", "Sohne", "Avenir Next", "IBM Plex Sans", sans-serif;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.45;
}

.modal__form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.modal__field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.modal__label {
  font-family: "Inter", "Sohne", "Avenir Next", "IBM Plex Sans", sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.02em;
}

.modal__input,
.modal__select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-family: "Inter", "Sohne", "Avenir Next", "IBM Plex Sans", sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 200ms ease, background 200ms ease, box-shadow 200ms ease;
  -webkit-appearance: none;
  appearance: none;
}

.modal__input::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

.modal__input:focus,
.modal__select:focus {
  border-color: rgba(255, 245, 230, 0.3);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(255, 245, 230, 0.06);
}

.modal__select-wrap {
  position: relative;
}

.modal__select {
  padding-right: 2.4rem;
  cursor: pointer;
}

.modal__select option {
  background: #1a1816;
  color: #fff;
}

.modal__select-arrow {
  position: absolute;
  right: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.3);
  pointer-events: none;
}

.modal__submit {
  margin-top: 0.4rem;
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: none;
  background: #fff;
  color: #020202;
  font-family: "Inter", "Sohne", "Avenir Next", "IBM Plex Sans", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 200ms ease, box-shadow 200ms ease, transform 180ms ease;
}

.modal__submit:hover {
  background: #f0ede8;
  box-shadow: 0 8px 28px rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.modal__submit:active {
  transform: translateY(0);
}

.modal__disclaimer {
  margin: 0;
  text-align: center;
  font-family: "Inter", "Sohne", "Avenir Next", "IBM Plex Sans", sans-serif;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.25);
}

/* Success state */
.modal__success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.6rem;
  padding: 1.5rem 0;
}

.modal__success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: rgba(255, 245, 230, 0.8);
  margin-bottom: 0.6rem;
}

/* ── CTA Final Section ── */

.cta-final {
  position: relative;
  min-height: clamp(520px, 60vh, 700px);
  background: var(--page-bg);
  overflow: hidden;
}

/* divider removed — image bleeds seamlessly */

/* Full-bleed background image (WebGL canvas) */
.cta-final__bg {
  position: absolute;
  inset: -4rem -6rem;          /* bleed beyond section boundaries */
  z-index: 0;
}

.cta-final__canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* Content container — floats left over the image */
.cta-final__inner {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  min-height: inherit;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: clamp(4rem, 8vw, 6rem) clamp(1.2rem, 4vw, 2.4rem);
}

.cta-final__content {
  text-align: left;
  max-width: 480px;
}

.cta-final__kicker {
  margin: 0 0 0.8rem;
  font-family: "Inter", "Sohne", "Avenir Next", "IBM Plex Sans", sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(200, 195, 185, 0.5);
}

.cta-final__heading {
  margin: 0 0 1.2rem;
  font-family: "Playfair Display", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--text-main);
}

.cta-final__sub {
  margin: 0 0 clamp(1.6rem, 3vw, 2.2rem);
  font-family: "Inter", "Sohne", "Avenir Next", "IBM Plex Sans", sans-serif;
  font-size: clamp(0.88rem, 1.1vw, 1rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.6);
  max-width: 38ch;
}

.cta-final__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 2rem;
  background: rgba(255, 245, 230, 0.08);
  border: 1px solid rgba(255, 245, 230, 0.15);
  border-radius: 999px;
  color: rgba(255, 245, 230, 0.9);
  font-family: "Inter", "Sohne", "Avenir Next", "IBM Plex Sans", sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 300ms ease, border-color 300ms ease, transform 300ms ease, box-shadow 300ms ease;
}

.cta-final__btn:hover {
  background: rgba(255, 245, 230, 0.14);
  border-color: rgba(255, 245, 230, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(220, 200, 160, 0.1);
}

.cta-final__btn svg {
  transition: transform 200ms ease;
}

.cta-final__btn:hover svg {
  transform: translateX(3px);
}

.cta-final__note {
  margin: 1rem 0 0;
  font-family: "Inter", "Sohne", "Avenir Next", "IBM Plex Sans", sans-serif;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.25);
}

/* CTA scroll reveal */
.cta-final__content {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 800ms cubic-bezier(0.16, 1, 0.3, 1), transform 800ms cubic-bezier(0.16, 1, 0.3, 1);
}

.cta-final__content.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive: stack on mobile */
@media (max-width: 768px) {
  .cta-final__inner {
    justify-content: center;
  }
  .cta-final__content {
    text-align: center;
    max-width: 100%;
  }
  .cta-final__sub {
    max-width: 100%;
  }
  .cta-final__bg {
    inset: -2rem -3rem;
  }
}

/* ── Footer ── */

.footer {
  background: var(--page-bg);
  padding: clamp(4rem, 8vw, 6rem) clamp(1.2rem, 4vw, 2.4rem) clamp(2rem, 4vw, 3rem);
  position: relative;
}

/* footer divider removed — seamless transition from CTA */

.footer__container {
  max-width: 1120px;
  margin: 0 auto;
}

/* Agent block — terminal style */
.footer__agent-block {
  text-align: center;
  max-width: 680px;
  margin: 0 auto clamp(3rem, 6vw, 4.5rem);
}

/* Terminal card */
.footer__terminal {
  background: rgba(6, 5, 4, 0.9);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: clamp(1.5rem, 3vw, 2rem);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.footer__terminal-topbar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}

.footer__terminal-dots {
  display: flex;
  gap: 5px;
}

.footer__terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.footer__terminal-dot--red    { background: rgba(255, 95, 87, 0.5); }
.footer__terminal-dot--yellow { background: rgba(254, 188, 46, 0.5); }
.footer__terminal-dot--green  { background: rgba(40, 200, 64, 0.5); }

.footer__terminal-title {
  font-family: "JetBrains Mono", "SF Mono", "Fira Code", monospace;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.25);
}

.footer__terminal-body {
  padding: 1.2rem 1.4rem 1.4rem;
  text-align: left;
}

.footer__terminal-line {
  margin: 0;
  font-family: "JetBrains Mono", "SF Mono", "Fira Code", monospace;
  font-size: clamp(0.72rem, 1.1vw, 0.82rem);
  line-height: 1.8;
  color: rgba(220, 215, 205, 0.5);
}

.footer__terminal-prompt {
  color: rgba(100, 210, 140, 0.7);
  user-select: none;
}

.footer__terminal-cmd {
  color: rgba(255, 255, 255, 0.75);
}

.footer__terminal-line--response {
  color: rgba(220, 215, 205, 0.4);
}

.footer__terminal-str {
  color: rgba(130, 220, 160, 0.75);
}

/* Blinking cursor */
.footer__terminal-cursor {
  display: inline-block;
  width: 8px;
  height: 1.1em;
  background: rgba(100, 210, 140, 0.6);
  vertical-align: text-bottom;
  animation: terminal-blink 1s step-end infinite;
}

@keyframes terminal-blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0; }
}

.footer__agent-desc {
  margin: 0 0 1.4rem;
  font-family: "Inter", "Sohne", "Avenir Next", "IBM Plex Sans", sans-serif;
  font-size: clamp(0.88rem, 1.3vw, 0.95rem);
  color: rgba(255, 255, 255, 0.48);
  line-height: 1.6;
}

.footer__agent-actions {
  display: flex;
  gap: 0.7rem;
  justify-content: center;
  flex-wrap: wrap;
}

.button--sm {
  padding: 0.5rem 1rem;
  font-size: 0.84rem;
}

/* AI model logos */
.footer__models {
  text-align: center;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.footer__models-label {
  margin: 0 0 clamp(1rem, 2vw, 1.6rem);
  font-family: "Inter", "Sohne", "Avenir Next", "IBM Plex Sans", sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: rgba(200, 195, 185, 0.35);
  text-transform: uppercase;
}

.footer__models-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(2rem, 5vw, 4rem);
  flex-wrap: wrap;
}

.footer__model {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.3);
  transition: color 300ms ease;
}

.footer__model:hover {
  color: rgba(255, 255, 255, 0.6);
}

.footer__model-icon {
  flex-shrink: 0;
  color: inherit;
  opacity: 0.7;
}

.footer__model-name {
  font-family: "Inter", "Sohne", "Avenir Next", "IBM Plex Sans", sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: inherit;
  letter-spacing: -0.01em;
}

/* Divider */
.footer__divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 245, 230, 0.1), transparent);
  margin-bottom: clamp(1.4rem, 3vw, 2rem);
}

/* Bottom row */
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.5);
  font-family: "Inter", "Sohne", "Avenir Next", "IBM Plex Sans", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.footer__links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
}

.footer__links a {
  text-decoration: none;
  font-family: "Inter", "Sohne", "Avenir Next", "IBM Plex Sans", sans-serif;
  font-size: 0.82rem;
  font-weight: 450;
  color: rgba(255, 255, 255, 0.35);
  transition: color 200ms ease;
}

.footer__links a:hover {
  color: rgba(255, 255, 255, 0.75);
}

.footer__copy {
  margin: 0;
  font-family: "Inter", "Sohne", "Avenir Next", "IBM Plex Sans", sans-serif;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.18);
}

/* ── Hero responsive (cards + mask) ── */
@media (max-width: 1200px) {
  .hero__spend-card {
    width: clamp(150px, 18vw, 190px);
    padding: 0.7rem 0.8rem;
  }
  .hero__spend-value { font-size: 1rem; }
}

@media (max-width: 768px) {
  .hero__content {
    align-items: center;
    text-align: center;
  }
  .hero__copy { max-width: 100%; }
  .hero__actions { justify-content: center; }

  .hero__spend-card {
    width: clamp(130px, 26vw, 170px);
    padding: 0.55rem 0.65rem;
  }
  .hero__spend-value { font-size: 0.85rem; }
  .hero__spend-label,
  .hero__spend-tx,
  .hero__spend-bar-label,
  .hero__spend-currency { font-size: 0.58rem; }
  .hero__spend-status { font-size: 0.56rem; padding: 0.08rem 0.35rem; }

  /* Hide cards on mobile — text takes full width */
  .hero__spend-card { display: none; }
}

/* Footer responsive */
@media (max-width: 768px) {
  .footer__bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.8rem;
  }

  .footer__links {
    justify-content: center;
  }
}

/* ── Mid-page CTA ── */

.mid-cta {
  position: relative;
  padding: clamp(3rem, 6vw, 4.5rem) clamp(1.2rem, 4vw, 2.4rem);
  background: var(--page-bg);
}

.mid-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(600px, 50%);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(255, 245, 230, 0.18), transparent);
}

.mid-cta__container {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.mid-cta__text {
  margin: 0;
  font-family: "Playfair Display", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: -0.015em;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .mid-cta__container {
    flex-direction: column;
    text-align: center;
  }
  .mid-cta__text {
    white-space: normal;
  }
}

/* ── Product Dashboard Showcase ── */

.dash {
  background: var(--page-bg);
  padding: clamp(4rem, 8vw, 6rem) clamp(1.2rem, 4vw, 2.4rem);
  position: relative;
}

.dash::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(1120px, calc(100% - 2.4rem));
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--stroke-glow), transparent);
}

.dash__container {
  max-width: 1120px;
  margin: 0 auto;
}

.dash__kicker {
  margin: 0 0 0.8rem;
  text-align: center;
  font-family: "Inter", "Sohne", "Avenir Next", "IBM Plex Sans", sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(200, 195, 185, 0.45);
}

.dash__heading {
  margin: 0 0 0.8rem;
  text-align: center;
  font-family: "Playfair Display", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #f9fbfc;
}

.dash__heading em {
  font-style: italic;
}

.dash__sub {
  margin: 0 auto clamp(2.5rem, 5vw, 3.5rem);
  text-align: center;
  max-width: 480px;
  font-family: "Inter", "Sohne", "Avenir Next", "IBM Plex Sans", sans-serif;
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.6;
}

/* ── Glassmorphism block (mirrors HIW) ── */
.dash__block {
  position: relative;
  background: rgba(12, 10, 8, 0.72);
  backdrop-filter: blur(40px) saturate(1.4);
  -webkit-backdrop-filter: blur(40px) saturate(1.4);
  border-radius: 20px;
  overflow: clip;
  border: 1px solid rgba(255, 245, 230, 0.08);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* Warm premium gradient overlay at the base */
.dash__block::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 45%;
  background: linear-gradient(
    to top,
    rgba(220, 200, 160, 0.06) 0%,
    rgba(220, 200, 160, 0.03) 30%,
    transparent 100%
  );
  border-radius: 0 0 20px 20px;
  pointer-events: none;
  z-index: 1;
}

.dash__block-inner {
  display: grid;
  grid-template-columns: clamp(170px, 20vw, 210px) 1fr;
  min-height: 640px;
}

/* ── Left: Navigation pills ── */
.dash__nav {
  display: flex;
  flex-direction: column;
  padding: clamp(1.2rem, 2.5vw, 1.8rem);
  border-right: 1px solid rgba(255, 245, 230, 0.06);
  background: rgba(255, 255, 255, 0.015);
}

.dash__nav-pills {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}

.dash__pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem;
  background: rgba(14, 12, 9, 0.65);
  border: 1px solid rgba(255, 245, 230, 0.08);
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: box-shadow 200ms ease, border-color 200ms ease, background 200ms ease;
  cursor: pointer;
}

.dash__pill:hover {
  border-color: rgba(255, 245, 230, 0.15);
  background: rgba(255, 255, 255, 0.04);
}

.dash__pill--active {
  border-color: rgba(220, 200, 160, 0.25);
  box-shadow: 0 2px 12px rgba(220, 200, 160, 0.08);
  background: rgba(220, 200, 160, 0.08);
}

.dash__pill-icon {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.4);
  flex-shrink: 0;
  transition: background 200ms ease, color 200ms ease;
}

.dash__pill-icon--accent {
  background: rgba(220, 200, 160, 0.12);
  color: rgba(220, 200, 160, 0.85);
}

.dash__pill-info {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: 0;
}

.dash__pill-name {
  font-family: "Inter", "Sohne", "Avenir Next", "IBM Plex Sans", sans-serif;
  font-size: 0.78rem;
  font-weight: 550;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash__pill-type {
  font-family: "Inter", "Sohne", "Avenir Next", "IBM Plex Sans", sans-serif;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.3);
  line-height: 1.2;
  white-space: nowrap;
}

/* User pill at bottom */
.dash__user-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.7rem;
  margin-top: 0.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  cursor: default;
}

.dash__user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(220, 200, 160, 0.15);
  border: 1px solid rgba(220, 200, 160, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Inter", "Sohne", "Avenir Next", "IBM Plex Sans", sans-serif;
  font-size: 0.6rem;
  font-weight: 600;
  color: rgba(220, 200, 160, 0.8);
  flex-shrink: 0;
}

/* ── Right: Dashboard panel ── */
.dash__panel {
  background: rgba(14, 12, 9, 0.5);
  padding: clamp(1.4rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  overflow: hidden;
  transition: opacity 350ms ease, transform 350ms ease;
}

/* Panel header */
.dash__panel-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  z-index: 10;
}

.dash__panel-title {
  margin: 0;
  font-family: "Inter", "Sohne", "Avenir Next", "IBM Plex Sans", sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: #f9fbfc;
}

.dash__panel-live {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: rgba(100, 210, 140, 0.1);
  color: rgba(100, 210, 140, 0.85);
  font-family: "Inter", "Sohne", "Avenir Next", "IBM Plex Sans", sans-serif;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dash__panel-live::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(100, 210, 140, 0.8);
  animation: dash-live-pulse 2s ease-in-out infinite;
}

@keyframes dash-live-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.3; }
}

.dash__panel-spacer {
  flex: 1;
}

.dash__panel-select {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  font-family: "Inter", "Sohne", "Avenir Next", "IBM Plex Sans", sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
  cursor: pointer;
  position: relative;
}

.dash__panel-select:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.7);
}

.dash__panel-select svg {
  color: rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
}

/* ── Stat row (mirrors HIW edit-row) ── */
.dash__panel-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
}

.dash__panel-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.65rem 0.75rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
}

.dash__panel-label {
  font-family: "Inter", "Sohne", "Avenir Next", "IBM Plex Sans", sans-serif;
  font-size: 0.62rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.dash__panel-val {
  font-family: "JetBrains Mono", "SF Mono", "Fira Code", monospace;
  font-size: 1.1rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.dash__panel-val-dim {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 500;
}

.dash__panel-delta {
  font-family: "Inter", "Sohne", "Avenir Next", "IBM Plex Sans", sans-serif;
  font-size: 0.58rem;
  font-weight: 500;
}

.dash__panel-delta--up   { color: rgba(100, 210, 140, 0.7); }
.dash__panel-delta--down { color: rgba(100, 180, 255, 0.7); }

.dash__panel-bar {
  margin-top: 0.15rem;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.dash__panel-bar-fill {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(100, 210, 140, 0.5), rgba(220, 200, 160, 0.55));
}

/* ── Panel sections (chart, agent list) ── */
.dash__panel-section {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.dash__panel-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dash__panel-unit {
  font-family: "JetBrains Mono", "SF Mono", "Fira Code", monospace;
  font-size: 0.55rem;
  color: rgba(255, 255, 255, 0.2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.dash__panel-link {
  font-family: "Inter", "Sohne", "Avenir Next", "IBM Plex Sans", sans-serif;
  font-size: 0.62rem;
  color: rgba(220, 200, 160, 0.5);
  cursor: pointer;
  transition: color 200ms ease;
}

.dash__panel-link:hover {
  color: rgba(220, 200, 160, 0.85);
}

/* ── Bar chart ── */
.dash__chart {
  position: relative;
}

.dash__chart-bars {
  display: flex;
  align-items: flex-end;
  gap: clamp(0.3rem, 0.8vw, 0.55rem);
  height: 110px;
}

.dash__chart-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  height: 100%;
  justify-content: flex-end;
}

.dash__chart-bar {
  width: 100%;
  border-radius: 4px 4px 2px 2px;
  background: rgba(220, 200, 160, 0.18);
  transition: height 600ms cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 4px;
}

.dash__chart-bar--peak {
  background: rgba(220, 200, 160, 0.42);
  box-shadow: 0 0 12px rgba(220, 200, 160, 0.12);
}

.dash__chart-bar--today {
  background: linear-gradient(to top, rgba(100, 210, 140, 0.3), rgba(100, 210, 140, 0.5));
  box-shadow: 0 0 10px rgba(100, 210, 140, 0.08);
}

.dash__chart-col span {
  font-family: "Inter", "Sohne", "Avenir Next", "IBM Plex Sans", sans-serif;
  font-size: 0.55rem;
  color: rgba(255, 255, 255, 0.2);
}

/* ── Agent list (mirrors HIW invoice list) ── */
.dash__agent-list {
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(14, 12, 9, 0.5);
  border: 1px solid rgba(255, 245, 230, 0.06);
}

.dash__agent-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 150ms ease;
}

.dash__agent-item:hover {
  background: rgba(255, 255, 255, 0.025);
}

.dash__agent-item:last-child {
  border-bottom: none;
}

.dash__agent-status {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dash__agent-status--active  { background: rgba(100, 210, 140, 0.75); }
.dash__agent-status--warning { background: rgba(245, 185, 80, 0.75); }
.dash__agent-status--blocked { background: rgba(255, 107, 107, 0.75); }

.dash__agent-name {
  font-family: "JetBrains Mono", "SF Mono", "Fira Code", monospace;
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash__agent-badge {
  font-family: "Inter", "Sohne", "Avenir Next", "IBM Plex Sans", sans-serif;
  font-size: 0.6rem;
  font-weight: 500;
  padding: 0.1rem 0.42rem;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

.dash__agent-badge--settled {
  background: rgba(100, 210, 140, 0.1);
  color: rgba(100, 210, 140, 0.85);
}

.dash__agent-badge--warning {
  background: rgba(245, 185, 80, 0.1);
  color: rgba(245, 185, 80, 0.85);
}

.dash__agent-badge--blocked {
  background: rgba(255, 107, 107, 0.1);
  color: rgba(255, 107, 107, 0.85);
}

.dash__agent-spacer {
  flex: 1;
}

.dash__agent-model {
  font-family: "Inter", "Sohne", "Avenir Next", "IBM Plex Sans", sans-serif;
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.25);
  white-space: nowrap;
  flex-shrink: 0;
}

.dash__agent-spend {
  font-family: "JetBrains Mono", "SF Mono", "Fira Code", monospace;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Panel footer / Safeguard checkboxes ── */
.dash__panel-footer {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: auto;
}

.dash__check {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: "Inter", "Sohne", "Avenir Next", "IBM Plex Sans", sans-serif;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: color 150ms ease;
}

.dash__check:hover {
  color: rgba(255, 255, 255, 0.6);
}

.dash__check-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  border-radius: 4px;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  flex-shrink: 0;
  color: transparent;
}

.dash__check-box svg {
  width: 10px;
  height: 10px;
}

.dash__check-box--checked {
  border-color: rgba(100, 210, 140, 0.4);
  background: rgba(100, 210, 140, 0.12);
  color: rgba(100, 210, 140, 0.85);
}

/* ── Period dropdown ── */
.dash__period-dropdown {
  position: fixed;
  min-width: 170px;
  background: rgba(16, 14, 11, 0.98);
  border: 1px solid rgba(255, 245, 230, 0.1);
  border-radius: 10px;
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  z-index: 9999;
  padding: 4px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  animation: dash-dd-in 160ms cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: top right;
}

@keyframes dash-dd-in {
  from { opacity: 0; transform: translateY(-6px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.dash__period-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.65rem;
  font-family: "Inter", "Sohne", "Avenir Next", sans-serif;
  font-size: 0.72rem;
  font-weight: 450;
  color: rgba(255, 255, 255, 0.5);
  border-radius: 7px;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease;
  white-space: nowrap;
  user-select: none;
}

.dash__period-item:hover {
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.9);
}

.dash__period-item.is-active {
  background: rgba(220, 200, 160, 0.1);
  color: rgba(220, 200, 160, 0.92);
  font-weight: 550;
}

.dash__period-check {
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dash__period-check svg {
  width: 12px;
  height: 12px;
}

/* Active state on the trigger button */
.dash__panel-select.is-open {
  border-color: rgba(220, 200, 160, 0.3);
  background: rgba(220, 200, 160, 0.08);
  color: rgba(255, 255, 255, 0.85);
}

.dash__panel-select.is-open svg {
  transform: rotate(180deg);
  transition: transform 160ms ease;
}

/* ── Analytics — Model Breakdown ── */
.dash__breakdown-list {
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  background: rgba(14, 12, 9, 0.45);
  border: 1px solid rgba(255, 245, 230, 0.06);
  overflow: hidden;
}

.dash__breakdown-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.035);
  transition: background 120ms ease;
}

.dash__breakdown-row:last-child {
  border-bottom: none;
}

.dash__breakdown-row:hover {
  background: rgba(255, 255, 255, 0.025);
}

.dash__breakdown-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dash__breakdown-model {
  font-family: "Inter", "Sohne", "Avenir Next", sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  white-space: nowrap;
  width: 120px;
  flex-shrink: 0;
}

.dash__breakdown-bar-wrap {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
  min-width: 40px;
}

.dash__breakdown-bar {
  height: 100%;
  border-radius: 3px;
  transition: width 700ms cubic-bezier(0.16, 1, 0.3, 1);
  min-width: 3px;
}

.dash__breakdown-pct {
  font-family: "JetBrains Mono", "SF Mono", "Fira Code", monospace;
  font-size: 0.68rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  width: 34px;
  text-align: right;
  flex-shrink: 0;
}

.dash__breakdown-spend {
  font-family: "JetBrains Mono", "SF Mono", "Fira Code", monospace;
  font-size: 0.66rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.32);
  width: 70px;
  text-align: right;
  flex-shrink: 0;
}

/* ── Alert feed ── */
.dash__alert-feed {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.dash__alert-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  transition: background 150ms ease;
}

.dash__alert-item:hover {
  filter: brightness(1.2);
}

.dash__alert-msg {
  font-family: "Inter", "Sohne", "Avenir Next", "IBM Plex Sans", sans-serif;
  font-size: 0.7rem;
  font-weight: 450;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.4;
  flex: 1;
}

.dash__alert-time {
  font-family: "Inter", "Sohne", "Avenir Next", "IBM Plex Sans", sans-serif;
  font-size: 0.58rem;
  color: rgba(255, 255, 255, 0.25);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Dashboard scroll reveal ── */
.dash__block {
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  transition:
    opacity 800ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 800ms cubic-bezier(0.16, 1, 0.3, 1);
}

.dash__block.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ── Dashboard responsive ── */
@media (max-width: 900px) {
  .dash__block-inner {
    grid-template-columns: 1fr;
  }

  .dash__nav {
    flex-direction: row;
    border-right: none;
    border-bottom: 1px solid rgba(255, 245, 230, 0.06);
    padding: 0.8rem;
    overflow-x: auto;
    gap: 0.5rem;
    -webkit-overflow-scrolling: touch;
  }

  .dash__nav-pills {
    flex-direction: row;
    gap: 0.4rem;
  }

  .dash__pill {
    min-width: max-content;
  }

  .dash__pill-type {
    display: none;
  }

  .dash__user-pill {
    display: none;
  }

  .dash__panel-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .dash__panel-row {
    grid-template-columns: 1fr 1fr;
  }

  .dash__agent-model {
    display: none;
  }

  .dash__chart-bars {
    height: 70px;
  }
}

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