/* ============================================================
   1. CUSTOM PROPERTIES
   ============================================================ */
@property --glow-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

:root {
  /* Colors */
  --brand: #5B4BEB;
  --brand-hover: #4A3BD4;
  --brand-light: #EDE9FE;
  --brand-subtle: #F5F3FF;
  --brand-border: #C9C2F5;
  --text-primary: #111111;
  --text-secondary: #555555;
  --text-tertiary: #888888;
  --surface: #FFFFFF;
  --surface-elevated: #FAFAFA;
  --surface-muted: #F5F5F5;
  --border: #E5E5E5;
  --border-subtle: #F0F0F0;

  --success: #16A34A;
  --success-light: #DCFCE7;
  --success-border: #BBF7D0;
  --amber: #D97706;
  --amber-light: #FEF3C7;
  --amber-border: #FDE68A;

  --dark: #0a0a0c;
  --dark-surface: #111113;
  --dark-border: rgba(255, 255, 255, 0.08);

  /* Typography */
  --font: 'Figtree', system-ui, -apple-system, sans-serif;
  --display-2xl: clamp(2.75rem, 5vw + 1rem, 4.5rem);
  --display-xl: clamp(2.25rem, 4vw + 0.75rem, 3.75rem);
  --display-lg: clamp(1.875rem, 3vw + 0.75rem, 3rem);
  --display-md: clamp(1.5rem, 2.5vw + 0.5rem, 2.25rem);
  --display-sm: clamp(1.25rem, 2vw + 0.375rem, 1.875rem);
  --display-xs: clamp(1.125rem, 1.5vw + 0.25rem, 1.5rem);
  --text-xl: clamp(1.125rem, 1vw + 0.25rem, 1.25rem);
  --text-lg: clamp(1rem, 0.8vw + 0.25rem, 1.125rem);
  --text-md: clamp(0.9375rem, 0.5vw + 0.25rem, 1rem);
  --text-sm: clamp(0.8125rem, 0.3vw + 0.25rem, 0.875rem);
  --text-xs: clamp(0.6875rem, 0.2vw + 0.25rem, 0.75rem);

  /* Spacing */
  --space-xs: clamp(0.25rem, 0.5vw, 0.5rem);
  --space-sm: clamp(0.5rem, 1vw, 0.75rem);
  --space-md: clamp(0.75rem, 1.5vw, 1rem);
  --space-lg: clamp(1rem, 2vw, 1.5rem);
  --space-xl: clamp(1.5rem, 3vw, 2rem);
  --space-2xl: clamp(2rem, 4vw, 3rem);
  --space-3xl: clamp(3rem, 6vw, 4.5rem);
  --space-4xl: clamp(4rem, 8vw, 6rem);
  --space-section: clamp(4rem, 10vw, 8rem);

  /* Layout */
  --max-w: 76rem;
  --content-w: 42rem;
  --pad: clamp(1.25rem, 5vw, 3rem);
  --radius: 8px;
  --radius-lg: 12px;

  /* Motion */
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --duration: 0.2s;
}


/* ============================================================
   2. RESET & BASE
   ============================================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-size: var(--text-md);
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--surface);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}


/* ============================================================
   3. LAYOUT
   ============================================================ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.container--narrow {
  max-width: var(--content-w);
}


/* ============================================================
   4. SECTION BASES
   ============================================================ */
.section {
  position: relative;
  padding: var(--space-section) 0;
}

.section--light {
  background: var(--surface);
  color: var(--text-primary);
}

.section--subtle {
  background: var(--surface-muted);
  color: var(--text-primary);
}

.section--brand-subtle {
  background: var(--brand-subtle);
  color: var(--text-primary);
}

.section--dark {
  background: var(--dark);
  color: #F5F5F7;
}

.section__header {
  max-width: var(--content-w);
  margin: 0 auto var(--space-2xl);
  text-align: center;
}

.section__heading {
  font-size: var(--display-lg);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-wrap: balance;
}

.section__subtext {
  margin-top: var(--space-lg);
  font-size: var(--text-lg);
  font-weight: 400;
  line-height: 1.65;
  color: var(--text-secondary);
  text-wrap: pretty;
}

.section--dark .section__subtext {
  color: #A1A1AA;
}

.section [id] {
  scroll-margin-top: 4rem;
}


/* ============================================================
   5. SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ============================================================
   6. NAV
   ============================================================ */
.topnav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: clamp(3rem, 4vw, 3.5rem);
  display: flex;
  align-items: center;
  background: rgba(10, 10, 12, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.topnav.nav--light {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(0, 0, 0, 0.06);
  border-top: none;
}

.topnav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.topnav__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #F5F5F7;
}

.topnav__logo-icon {
  width: 32px;
  height: 32px;
}

.topnav__logo-text {
  font-family: 'Sora', sans-serif;
  font-size: clamp(0.9375rem, 1vw + 0.5rem, 1.0625rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.topnav.nav--light .topnav__logo {
  color: var(--text-primary);
}

.topnav__right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(1rem, 2vw, 1.75rem);
}

.topnav__link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: #86868B;
  transition: color 0.2s var(--ease-out);
  white-space: nowrap;
}

.topnav__link:hover {
  color: #D1D1D6;
}

.topnav.nav--light .topnav__link {
  color: var(--text-secondary);
}

.topnav.nav--light .topnav__link:hover {
  color: var(--text-primary);
}

.topnav__cta {
  display: inline-flex;
  align-items: center;
  padding: clamp(0.3rem, 0.5vw, 0.375rem) clamp(0.625rem, 1vw, 0.875rem);
  font-size: var(--text-sm);
  font-weight: 600;
  color: #fff;
  background: var(--brand);
  border-radius: var(--radius);
  transition: background var(--duration) var(--ease-out), transform 160ms var(--ease-out);
  white-space: nowrap;
}

.topnav__cta:hover {
  background: var(--brand-hover);
}

.topnav__cta:active {
  transform: scale(0.97);
}

.topnav__cta:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* Mobile hamburger */
.topnav__menu-toggle {
  display: none;
}

.topnav__menu-btn {
  display: none;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  color: #D1D1D6;
  cursor: pointer;
  position: relative;
  z-index: 102;
  transition: color 0.4s var(--ease-out);
}

.topnav.nav--light .topnav__menu-btn {
  color: var(--text-primary);
}

.topnav__menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
  position: relative;
}

.topnav__menu-btn span::before,
.topnav__menu-btn span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.topnav__menu-btn span::before { top: -6px; }
.topnav__menu-btn span::after { top: 6px; }

.topnav__menu-toggle:checked ~ .topnav__inner .topnav__menu-btn span {
  background: transparent;
}

.topnav__menu-toggle:checked ~ .topnav__inner .topnav__menu-btn span::before {
  top: 0;
  transform: rotate(45deg);
}

.topnav__menu-toggle:checked ~ .topnav__inner .topnav__menu-btn span::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Mobile menu panel */
.topnav__mobile-panel {
  display: none;
}


/* ============================================================
   7. HERO
   ============================================================ */
.hero-wrapper {
  position: relative;
  background: var(--dark);
  overflow: hidden;
  min-height: 100vh;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, black 0%, black 48%, transparent 85%);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 48%, transparent 85%);
}

.hero-bg canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.1;
  mix-blend-mode: overlay;
  background-repeat: repeat;
  background-size: 200px 200px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero {
  position: relative;
  z-index: 3;
  padding: clamp(6rem, 10vh, 8rem) 0 clamp(3rem, 6vw, 5rem);
  text-align: center;
}

.hero__lockup {
  position: relative;
  z-index: 2;
}

.hero__headline {
  font-size: var(--display-2xl);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: #F5F5F7;
  max-width: 48rem;
  margin: 0 auto clamp(0.75rem, 1.5vw, 1.25rem);
  text-wrap: balance;
}

.hero__sub {
  font-size: var(--text-lg);
  font-weight: 400;
  line-height: 1.65;
  color: #A1A1A6;
  max-width: 34rem;
  margin: 0 auto clamp(1.5rem, 2.5vw, 2rem);
  text-wrap: pretty;
}

.hero__form {
  display: flex;
  gap: clamp(0.25rem, 0.5vw, 0.375rem);
  max-width: 24rem;
  margin: 0 auto clamp(0.75rem, 1vw, 1rem);
}

.hero__input {
  flex: 1;
  padding: clamp(0.5rem, 0.8vw, 0.625rem) clamp(0.75rem, 1vw, 0.875rem);
  font-size: var(--text-sm);
  font-family: var(--font);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  outline: none;
  color: #F5F5F7;
  transition: border-color var(--duration) var(--ease-out), background var(--duration) var(--ease-out), box-shadow var(--duration) var(--ease-out);
}

.hero__input::placeholder {
  color: #6E6E73;
}

.hero__input:focus,
.hero__input:focus-visible {
  border-color: rgba(91, 75, 235, 0.55);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 1px rgba(91, 75, 235, 0.25);
  outline: none;
}

.hero__submit {
  padding: clamp(0.5rem, 0.8vw, 0.625rem) clamp(1rem, 1.5vw, 1.25rem);
  font-size: var(--text-sm);
  font-weight: 600;
  color: #fff;
  background: var(--brand);
  border-radius: var(--radius);
  white-space: nowrap;
  transition: background var(--duration) var(--ease-out), transform 160ms var(--ease-out);
}

.hero__submit:hover {
  background: var(--brand-hover);
}

.hero__submit:active {
  transform: scale(0.97);
}

.hero__submit:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Brand text highlight */
.hl {
  color: var(--brand);
}

.hero__headline .hl {
  color: #8B7FF0;
}

.closing__headline .hl {
  color: #8B7FF0;
}

/* Pills */
.hero__pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(0.375rem, 0.75vw, 0.5rem);
  margin-top: clamp(1.25rem, 2vw, 1.75rem);
}

.hero__pill {
  display: inline-flex;
  align-items: center;
  padding: clamp(0.1875rem, 0.3vw, 0.25rem) clamp(0.5rem, 0.8vw, 0.75rem);
  font-size: var(--text-xs);
  font-weight: 500;
  color: #86868B;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
}


/* ============================================================
   8. VIDEO PLACEHOLDER
   ============================================================ */
.video-wrap {
  perspective: 1800px;
  perspective-origin: center 40%;
  overflow: visible;
  margin-top: clamp(2rem, 4vw, 3.5rem);
  position: relative;
}

.video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111113;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transform: rotateX(18deg);
  transform-origin: center top;
  will-change: transform;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.05), 0 0 80px rgba(255, 255, 255, 0.025);
}

.video:not(.video--playing)::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  z-index: 4;
  padding: 1.5px;
  background: conic-gradient(
    from var(--glow-angle),
    rgba(255,255,255,.7) 0%,
    rgba(255,255,255,.3) 4%,
    rgba(255,255,255,.03) 10%,
    transparent 18%,
    transparent 32%,
    rgba(255,255,255,.03) 40%,
    rgba(255,255,255,.3) 46%,
    rgba(255,255,255,.7) 50%,
    rgba(255,255,255,.3) 54%,
    rgba(255,255,255,.03) 60%,
    transparent 68%,
    transparent 82%,
    rgba(255,255,255,.03) 90%,
    rgba(255,255,255,.3) 96%,
    rgba(255,255,255,.7) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  animation: glow-spin 14s linear infinite;
  pointer-events: none;
}

@keyframes glow-spin { to { --glow-angle: 360deg; } }

.video__inner {
  position: absolute;
  inset: 0;
  opacity: 0.05;
}

.video__bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: clamp(24px, 3.5%, 36px);
  background: #1c1c1f;
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 6px;
}

.video__bar-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2c2c2e;
}

.video__sidebar {
  position: absolute;
  top: clamp(24px, 3.5%, 36px);
  left: 0;
  bottom: 0;
  width: clamp(60px, 12%, 120px);
  background: #141416;
  border-right: 1px solid #1c1c1f;
}

.video__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.video__play-btn {
  width: clamp(44px, 5.5vw, 64px);
  height: clamp(44px, 5.5vw, 64px);
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 200ms ease, border-color 200ms ease;
}

.video__play-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
}

.video__play-btn:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.video__play-btn svg {
  width: clamp(14px, 1.8vw, 20px);
  height: clamp(14px, 1.8vw, 20px);
  margin-left: 2px;
  fill: rgba(255, 255, 255, 0.65);
}

/* ============================================================
   10. BENTO GRID (Section 3)
   ============================================================ */
.bento {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
}

.bento__card {
  padding: clamp(1rem, 2vw, 1.5rem);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: none;
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.bento__card--dark {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
  background: var(--dark);
  border: none;
  color: #F5F5F7;
  padding: 12px;
  border-radius: 20px;
  height: clamp(240px, 22vw, 300px);
  overflow: hidden;
  position: relative;
  margin-top: var(--space-lg);
}

.bento__card--dark .bento__desc {
  color: #A1A1AA;
}

/* Grainient animated background */
#work-banner .grainient {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  transition: opacity 3s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
}

#work-banner .grainient--active {
  opacity: 1;
}

#work-banner .kb,
#work-banner > .bento__content {
  position: relative;
  z-index: 1;
}

#work-banner .bento__content {
  align-self: center;
  padding: clamp(1rem, 2vw, 1.5rem) clamp(0.75rem, 1.5vw, 1.25rem);
}

.bento__title {
  font-size: var(--text-lg);
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: var(--space-sm);
  text-wrap: balance;
}

.bento__title--large {
  font-size: var(--display-sm);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin-bottom: var(--space-lg);
}

.bento__desc {
  font-size: var(--text-md);
  color: var(--text-secondary);
  line-height: 1.65;
  text-wrap: pretty;
}

/* Tool pills */
.bento__pills {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(0.375rem, 0.5vw, 0.5rem);
  margin-bottom: var(--space-xl);
}

.bento__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--surface-muted);
  border: 1px solid var(--border-subtle);
  border-radius: 9999px;
}

.bento__pill i {
  font-size: 0.875rem;
}

/* Funnel animation (Card 1) */
/* Logo carousel */
.carousel-wrap,
.changelog-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  min-height: 0;
  margin-bottom: var(--space-lg);
}

.carousel {
  position: relative;
  height: 66px;
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, #000 4%, #000 96%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 4%, #000 96%, transparent 100%);
}

.carousel__mark {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 66px;
  padding: 10px 8px;
  background: var(--surface);
  border-top: 1px solid #d6d6d6;
  border-bottom: 1px solid #d6d6d6;
  border-left: none;
  border-right: none;
  border-radius: 6px;
}

.carousel__mark-icon {
  display: block;
  width: 40px;
  height: 40px;
}

.carousel__track {
  display: flex;
  align-items: center;
  gap: 16px;
  width: max-content;
  height: 100%;
  animation: carousel-scroll 35s linear infinite;
  will-change: transform;
}

.carousel__pill {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 7px;
  background: #f0f0f0;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.04);
  filter: grayscale(1) opacity(0.5);
}

.carousel__pill svg {
  display: block;
  width: 24px;
  height: 24px;
}

.carousel__pill--teams svg {
  width: 22px;
  height: 22px;
}

/* Brand-tinted pill backgrounds (9-pill loop) */
.carousel__pill:nth-child(9n+1) { background: #fff; } /* Airtable */
.carousel__pill:nth-child(9n+2) { background: #fff; } /* Slack */
.carousel__pill:nth-child(9n+3) { background: #fff; } /* Gmail */
.carousel__pill:nth-child(9n+4) { background: #fff; } /* Notion */
.carousel__pill:nth-child(9n+5) { background: #fff; } /* Coda */
.carousel__pill:nth-child(9n+6) { background: #fff; } /* Google Sheets */
.carousel__pill:nth-child(9n+7) { background: #fff; } /* Jira */
.carousel__pill:nth-child(9n+8) { background: #fff; } /* Monday */
.carousel__pill:nth-child(9n+9) { background: #EBEBF5; } /* Teams — light indigo (brand bg) */

@keyframes carousel-scroll {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .carousel__track {
    animation: none;
  }
  .carousel__pill {
    filter: none;
  }
  .carousel__mark::before {
    animation: none;
    opacity: 0.5;
  }
}

/* Changelog widget */
.changelog {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-muted);
  border: 1px solid var(--border);
}

.changelog__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.875rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border-subtle);
}

.changelog__label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
}

.changelog__body {
  --row-h: 2.125rem;
  overflow: hidden;
  height: calc(3 * var(--row-h));
}

.changelog__scroll {
  animation: logTick 15s var(--ease-out) infinite;
}

.changelog__row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 0.875rem;
  height: var(--row-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.6875rem;
}

.changelog__path {
  font-family: ui-monospace, 'SF Mono', 'Cascadia Code', monospace;
  font-weight: 500;
  color: var(--text-tertiary);
  white-space: nowrap;
}

.changelog__tag {
  font-family: var(--font), system-ui, sans-serif;
  font-size: 0.5625rem;
  font-weight: 500;
  padding: 0.1875rem 0.5rem;
  border-radius: 999px;
  white-space: nowrap;
}

.changelog__tag--edit {
  color: #2563EB;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.changelog__tag--review {
  color: #B45309;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.changelog__tag--complete {
  color: #4D7C0F;
  background: rgba(176, 223, 19, 0.1);
  border: 1px solid rgba(176, 223, 19, 0.3);
}

.changelog__tag--add {
  color: var(--brand);
  background: rgba(91, 75, 235, 0.1);
  border: 1px solid rgba(91, 75, 235, 0.2);
}

.changelog__time {
  margin-left: auto;
  color: var(--text-tertiary);
  font-family: ui-monospace, 'SF Mono', 'Cascadia Code', monospace;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

@keyframes logTick {
  0%, 16%  { transform: translateY(0); }
  20%, 36% { transform: translateY(calc(-1 * var(--row-h))); }
  40%, 56% { transform: translateY(calc(-2 * var(--row-h))); }
  60%, 76% { transform: translateY(calc(-3 * var(--row-h))); }
  80%, 96% { transform: translateY(calc(-4 * var(--row-h))); }
  100%     { transform: translateY(calc(-5 * var(--row-h))); }
}

/* Bottom card gradient visual */
.bento__gradient {
  border-radius: var(--radius);
  min-height: clamp(160px, 18vw, 220px);
  background: linear-gradient(135deg, #1E1566 0%, #3D2FA8 30%, #5B4BEB 55%, #A899F5 100%);
}

/* Kanban board UI (Work accumulation banner) — scoped to #work-banner
   to avoid cascade conflicts with the AI Control section's .kb styles */
#work-banner .kb {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #fdfdfd;
  border: none;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05), 0 4px 14px rgba(0,0,0,0.03);
  align-self: start;
  display: block;
  aspect-ratio: auto;
  color: inherit;
  line-height: normal;
  font-size: inherit;
  /* Subtle fade: right side only */
  -webkit-mask-image: linear-gradient(90deg, black 0%, black 94%, transparent 100%);
  mask-image: linear-gradient(90deg, black 0%, black 94%, transparent 100%);
}

#work-banner .kb__grain {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 2s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: 5;
  background-repeat: repeat;
  mix-blend-mode: overlay;
  animation: kbGrain 0.8s steps(4) infinite;
  animation-play-state: paused;
}

#work-banner .kb__grain--active {
  opacity: 1;
  animation-play-state: running;
}

@keyframes kbGrain {
  0%   { background-position: 0 0; }
  25%  { background-position: -64px -32px; }
  50%  { background-position: 32px -96px; }
  75%  { background-position: -96px 64px; }
}

#work-banner .kb__ui {
  position: relative;
  z-index: 1;
  padding: clamp(1.25rem, 2.2vw, 2rem);
  padding-bottom: 0;
  font-family: var(--font);
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Header: "All Requests  56" */
#work-banner .kb__header {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 0.625rem;
  margin-bottom: clamp(0.625rem, 1vw, 0.875rem);
  padding: 0;
  border-bottom: none;
  flex-shrink: 0;
}

#work-banner .kb__title {
  font-size: clamp(1rem, 1.3vw, 1.1875rem);
  font-weight: 600;
  color: #111;
  letter-spacing: -0.015em;
}

#work-banner .kb__badge {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #888;
  background: #f2f2f2;
  padding: 0.125rem 0.4375rem;
  border-radius: 5px;
  font-family: ui-monospace, 'SF Mono', 'Cascadia Code', monospace;
}

#work-banner .kb__tabs {
  display: flex;
  align-items: center;
  gap: clamp(0.875rem, 1.4vw, 1.25rem);
  margin-bottom: clamp(0.625rem, 1vw, 0.875rem);
  border-bottom: 1px solid #eee;
  padding-bottom: clamp(0.5rem, 0.75vw, 0.625rem);
  font-size: inherit;
  color: inherit;
}

#work-banner .kb__tab {
  font-size: 0.8125rem;
  color: #999;
  cursor: default;
  padding-bottom: 3px;
  white-space: nowrap;
}

#work-banner .kb__tab--active {
  color: #333;
  font-weight: 500;
  border-bottom: 2px solid #333;
  margin-bottom: -1px;
}

#work-banner .kb__columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(0.875rem, 1.4vw, 1.25rem);
  flex: 1;
  min-height: 0;
  overflow: visible;
}

#work-banner .kb__col {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-right: none;
  overflow: visible;
}

#work-banner .kb__col-head {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: clamp(0.5rem, 0.8vw, 0.75rem);
  padding: 0;
  border: none;
}

#work-banner .kb__status {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #1a1a1a;
  background: none;
  padding: 0;
  border-radius: 0;
  display: inline;
  gap: 0;
}

#work-banner .kb__status-dot {
  display: none;
}

#work-banner .kb__col-n {
  font-size: 0.8125rem;
  font-weight: 400;
  color: #9e9e9e;
  background: none;
  padding: 0;
  border-radius: 0;
  font-family: inherit;
  font-variant-numeric: tabular-nums;
}

#work-banner .kb__col-menu {
  margin-left: auto;
  font-size: 1rem;
  color: #b0b0b0;
  line-height: 1;
  letter-spacing: -0.05em;
}

#work-banner .kb__cards {
  display: flex;
  flex-direction: column;
  gap: clamp(0.5rem, 0.7vw, 0.625rem);
  flex: 1;
  overflow: hidden;
  padding: 0;
  min-height: auto;
}

/* Request cards */
#work-banner .kb__card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: clamp(0.625rem, 1vw, 0.875rem);
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.4s ease, transform 0.4s ease;
  display: block;
  flex-direction: unset;
  flex-shrink: 1;
}

#work-banner .kb__card--exit {
  opacity: 0;
  transform: translateY(-8px);
}

#work-banner .kb__card--enter {
  opacity: 0;
  transform: translateY(8px);
}

#work-banner .kb__card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4375rem;
}

#work-banner .kb__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  line-height: 1.4;
  color: #555;
  background: #f3f4f6;
}

#work-banner .kb__tag svg { width: 10px; height: 10px; flex-shrink: 0; }

#work-banner .kb__tag--dev { color: #4b5563; }
#work-banner .kb__tag--design { color: #6b21a8; }
#work-banner .kb__tag--seo { color: #0369a1; }

#work-banner .kb__pri {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
}

#work-banner .kb__pri svg { width: 10px; height: 11px; flex-shrink: 0; }

#work-banner .kb__pri--high { color: #EF4444; background: rgba(239, 68, 68, 0.08); }
#work-banner .kb__pri--medium { color: #F59E0B; background: rgba(245, 158, 11, 0.08); }
#work-banner .kb__pri--low { color: #22C55E; background: rgba(34, 197, 94, 0.08); }

#work-banner .kb__card-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.4;
  margin-bottom: 0.3125rem;
}

#work-banner .kb__card-meta {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  color: #838383;
}

#work-banner .kb__card-meta svg { width: 11px; height: 11px; flex-shrink: 0; color: #9ca3af; }

#work-banner .kb__card-due {
  margin-top: 0.375rem;
  padding-top: 0;
  border-top: none;
}

#work-banner .kb__card-due strong {
  font-weight: 600;
  color: #1a1a1a;
}


/* ============================================================
   11. BUILT FOR (Section 4)
   ============================================================ */
.built-for-section {
  padding: var(--space-xl) 0;
}

.built-for-section .section__header {
  margin-bottom: var(--space-lg);
}

.built-for {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  max-width: var(--max-w);
  margin: 0 auto;
}

.built-for__card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 2.5vw, 2rem);
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 24px rgba(0, 0, 0, 0.03);
}


.built-for__figure {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
}

.built-for__title {
  font-size: var(--display-xs);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin-bottom: var(--space-sm);
  text-wrap: balance;
}

.built-for__desc {
  font-size: var(--text-md);
  color: var(--text-secondary);
  line-height: 1.65;
  text-wrap: pretty;
}

/* --- Anim 1: Task saturation (arrive > process) --- */
.bf-saturate {
  width: 100%;
  max-width: 120px;
  height: 96px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.bf-saturate__list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bf-saturate__item {
  display: block;
  width: var(--w, 80%);
  height: 6px;
  border-radius: 3px;
  background: var(--brand);
  opacity: 0;
  animation: bf-task-stay 9s cubic-bezier(.23, 1, .32, 1) infinite;
}

/* Stagger: 12 items arrive top-down, accelerating */
.bf-saturate__item:nth-child(1)  { animation-delay: 0s; }
.bf-saturate__item:nth-child(2)  { animation-delay: 0.3s; }
.bf-saturate__item:nth-child(3)  { animation-delay: 0.55s; }
.bf-saturate__item:nth-child(4)  { animation-delay: 0.8s; }
.bf-saturate__item:nth-child(5)  { animation-delay: 1.0s; }
.bf-saturate__item:nth-child(6)  { animation-delay: 1.18s; }
.bf-saturate__item:nth-child(7)  { animation-delay: 1.32s; }
.bf-saturate__item:nth-child(8)  { animation-delay: 1.44s; }
.bf-saturate__item:nth-child(9)  { animation-delay: 1.54s; }
.bf-saturate__item:nth-child(10) { animation-delay: 1.62s; }
.bf-saturate__item:nth-child(11) { animation-delay: 1.68s; }
.bf-saturate__item:nth-child(12) { animation-delay: 1.74s; }

/* Processed items slide out to the right */
.bf-saturate__item--out {
  animation-name: bf-task-out;
}

/* Last 3 staying items turn amber (overload zone) */
.bf-saturate__item:nth-child(10),
.bf-saturate__item:nth-child(11),
.bf-saturate__item:nth-child(12) {
  background: var(--amber);
}

/* Processed items stay brand-colored (they got handled) */
.bf-saturate__item--out {
  background: var(--brand);
}

/* Items that stay: slide in, accumulate, fade at cycle end */
@keyframes bf-task-stay {
  0%   { opacity: 0; transform: translateX(-8px); }
  6%   { opacity: 0.5; transform: translateX(0); }
  65%  { opacity: 0.5; transform: translateX(0); }
  78%  { opacity: 0; transform: translateX(0); }
  100% { opacity: 0; }
}

/* Items that get processed: slide in, hold briefly, slide out right */
@keyframes bf-task-out {
  0%   { opacity: 0; transform: translateX(-8px); }
  6%   { opacity: 0.5; transform: translateX(0); }
  20%  { opacity: 0.45; transform: translateX(0); }
  30%  { opacity: 0; transform: translateX(20px); }
  100% { opacity: 0; transform: translateX(20px); }
}

/* --- Anim 2: Zoom-out page grid --- */
.bf-zoom {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.bf-zoom__grid {
  display: grid;
  grid-template-columns: repeat(5, 12px);
  gap: 3px;
  animation: bf-zoom-out 6s cubic-bezier(.23, 1, .32, 1) infinite;
  transform-origin: center;
}

.bf-zoom__grid span {
  width: 12px;
  height: 16px;
  border-radius: 2px;
  background: var(--brand-light);
  border: 1px solid var(--brand-border);
}

/* Random tiles flash amber to show staleness */
.bf-zoom__grid span:nth-child(3),
.bf-zoom__grid span:nth-child(9),
.bf-zoom__grid span:nth-child(17),
.bf-zoom__grid span:nth-child(22),
.bf-zoom__grid span:nth-child(31),
.bf-zoom__grid span:nth-child(37) {
  animation: bf-tile-warn 6s ease-in-out infinite;
}
.bf-zoom__grid span:nth-child(9)  { animation-delay: 1s; }
.bf-zoom__grid span:nth-child(17) { animation-delay: 2s; }
.bf-zoom__grid span:nth-child(22) { animation-delay: 0.5s; }
.bf-zoom__grid span:nth-child(31) { animation-delay: 1.5s; }
.bf-zoom__grid span:nth-child(37) { animation-delay: 2.5s; }

@keyframes bf-zoom-out {
  0%   { transform: scale(2.2); opacity: 0.6; }
  30%  { transform: scale(1); opacity: 1; }
  70%  { transform: scale(1); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0.6; }
}

@keyframes bf-tile-warn {
  0%, 100% { background: var(--brand-light); border-color: var(--brand-border); }
  40%, 60% { background: var(--amber-light); border-color: var(--amber-border); }
}

/* --- Anim 3: Revenue bar chart with one dipping --- */
.bf-revenue {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 8px;
}

.bf-revenue__bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 72px;
}

.bf-revenue__bar {
  width: 14px;
  height: var(--h);
  border-radius: 3px 3px 1px 1px;
  background: var(--brand);
  opacity: 0.25;
  animation: bf-bar-grow 4s cubic-bezier(.23, 1, .32, 1) infinite;
}

.bf-revenue__bar:nth-child(1) { animation-delay: 0s; }
.bf-revenue__bar:nth-child(2) { animation-delay: 0.15s; }
.bf-revenue__bar:nth-child(3) { animation-delay: 0.3s; }
.bf-revenue__bar:nth-child(4) { animation-delay: 0.45s; }
.bf-revenue__bar:nth-child(5) { animation-delay: 0.6s; }
.bf-revenue__bar:nth-child(6) { animation-delay: 0.75s; }

@keyframes bf-bar-grow {
  0%   { opacity: 0.15; transform: scaleY(0.3); }
  30%  { opacity: 0.5; transform: scaleY(1); }
  70%  { opacity: 0.5; transform: scaleY(1); }
  100% { opacity: 0.15; transform: scaleY(0.3); }
}

.bf-revenue__bar--drop {
  animation-name: bf-bar-drop;
}

@keyframes bf-bar-drop {
  0%   { opacity: 0.15; transform: scaleY(0.3); }
  30%  { opacity: 0.5; transform: scaleY(1); }
  45%  { opacity: 0.7; transform: scaleY(0.35); background: var(--amber); }
  55%  { opacity: 0.7; transform: scaleY(0.35); background: var(--amber); }
  70%  { opacity: 0.5; transform: scaleY(1); background: var(--brand); }
  100% { opacity: 0.15; transform: scaleY(0.3); }
}


/* ============================================================
   12. APPROACH (Section 5)
   ============================================================ */
.approach-steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0;
  align-items: flex-start;
  max-width: 56rem;
  margin: 0 auto;
}

.approach-card {
  text-align: center;
  padding: clamp(1.5rem, 2.5vw, 2.5rem) clamp(1rem, 2vw, 1.5rem);
}

.approach-card__number {
  width: clamp(40px, 3.5vw, 48px);
  height: clamp(40px, 3.5vw, 48px);
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-md);
  font-weight: 700;
  margin: 0 auto var(--space-md);
}

.approach-card__title {
  font-size: var(--display-xs);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.approach-card__desc {
  font-size: var(--text-md);
  color: var(--text-secondary);
  line-height: 1.65;
  text-wrap: pretty;
}

.approach-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: clamp(1.75rem, 3vw, 2.75rem);
  color: var(--border);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
}

.approach-note {
  text-align: center;
  margin-top: var(--space-2xl);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--text-secondary);
  text-wrap: pretty;
}


/* ============================================================
   13. STEPS (Section 6)
   ============================================================ */
.steps {
  max-width: 36rem;
  margin: 0 auto;
  position: relative;
}

.step {
  position: relative;
  padding-left: clamp(3.5rem, 5vw, 4.5rem);
  padding-bottom: var(--space-2xl);
}

.step:last-child {
  padding-bottom: 0;
}

.step__number {
  position: absolute;
  left: 0;
  top: 0;
  width: clamp(2.25rem, 3.5vw, 2.75rem);
  height: clamp(2.25rem, 3.5vw, 2.75rem);
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: 700;
  z-index: 2;
}

.step__connector {
  position: absolute;
  left: calc(clamp(2.25rem, 3.5vw, 2.75rem) / 2 - 1px);
  top: clamp(2.25rem, 3.5vw, 2.75rem);
  bottom: 0;
  width: 2px;
  background: rgba(91, 75, 235, 0.2);
}

.step:last-child .step__connector {
  display: none;
}

.step__title {
  font-size: var(--display-xs);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.step__desc {
  font-size: var(--text-md);
  color: var(--text-secondary);
  line-height: 1.65;
  text-wrap: pretty;
}

.step-badge {
  display: inline-flex;
  align-items: center;
  margin-top: var(--space-3xl);
  padding: clamp(0.375rem, 0.75vw, 0.5rem) clamp(1rem, 1.5vw, 1.25rem);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--brand);
  background: var(--brand-light);
  border: 1px solid var(--brand-border);
  border-radius: 9999px;
}


/* ============================================================
   14. AI CONTROL (Section 7)
   ============================================================ */
.ai-control-section {
  padding-bottom: clamp(2rem, 5vw, 3.5rem);
}

.ai-control__header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
  margin-bottom: var(--space-2xl);
}

.ai-control__heading {
  font-size: var(--display-lg);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.ai-control__desc {
  font-size: var(--text-xl);
  line-height: 1.6;
  color: var(--text-secondary);
  text-wrap: pretty;
  padding-top: 0.35em;
}

.ai-control__showcase {
  position: relative;
  width: 100%;
}

.ai-control__dashboard {
  position: relative;
}

.ai-control__dashboard > .kb {
  display: block;
  width: 100%;
}

.ai-control__dashboard::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, transparent 45%, rgba(255, 255, 255, 0.3) 68%, rgba(255, 255, 255, 0.7) 86%, var(--surface) 100%),
    linear-gradient(to bottom, transparent 30%, rgba(255, 255, 255, 0.3) 58%, rgba(255, 255, 255, 0.75) 80%, var(--surface) 100%);
  pointer-events: none;
}

.ai-control__drawer {
  position: absolute;
  left: 0;
  top: -3%;
  width: 32%;
  z-index: 2;
}

/* ---- Kanban Board (kb) ---- */
.kb {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: clamp(0.45rem, 0.65vw, 0.75rem);
  background: #FDFDFD;
  border: 0.08em solid #E0E0E0;
  border-radius: 0.8em 0.8em 0 0;
  width: 100%;
  aspect-ratio: 960 / 360;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: #2F2F2F;
  line-height: 1.4;
}

.kb__header {
  display: flex;
  flex-direction: column;
  padding: 1.2em 1.6em;
  gap: 0.8em;
  border-bottom: 0.08em solid #EBEBEB;
  flex-shrink: 0;
}

.kb__header-row1 {
  display: flex;
  align-items: baseline;
  gap: 0.5em;
}

.kb__header-row2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.kb__title {
  font-size: 1.6em;
  font-weight: 700;
  color: #1A1A1A;
}

.kb__count {
  font-size: 1.2em;
  font-weight: 400;
  color: #9E9E9E;
}

.kb__tabs {
  display: flex;
  align-items: center;
  gap: 1.2em;
  font-size: 1em;
  color: #838383;
}

.kb__tab {
  cursor: default;
}

.kb__tab--active {
  font-weight: 600;
  color: #1A1A1A;
}

.kb__toolbar {
  display: flex;
  align-items: center;
  gap: 0.8em;
}

.kb__tool-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #838383;
  font-size: 1.15em;
}

.kb__new-btn {
  font-family: inherit;
  font-size: 0.95em;
  font-weight: 600;
  color: #FFFFFF;
  background: #1A1A1A;
  border: none;
  border-radius: 0.5em;
  padding: 0.4em 1em;
  cursor: default;
  line-height: 1.4;
}

/* Columns */
.kb__columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.kb__col {
  border-right: 0.08em solid #F0F0F0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.kb__col:last-child {
  border-right: none;
}

.kb__col-header {
  display: flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.8em 1em;
  flex-shrink: 0;
}

.kb__col--progress .kb__col-header {
  border-left: 0.2em solid #E88D30;
  padding-left: 0.8em;
}

.kb__col-name {
  font-size: 1em;
  font-weight: 600;
  color: #1A1A1A;
}

.kb__col-count {
  font-size: 0.9em;
  font-weight: 500;
  color: #838383;
  background: #F0F0F0;
  padding: 0.1em 0.45em;
  border-radius: 0.3em;
}

.kb__col-menu {
  margin-left: auto;
  color: #B0B0B0;
  font-size: 1.1em;
  letter-spacing: -0.05em;
  cursor: default;
}

.kb__cards {
  display: flex;
  flex-direction: column;
  gap: 0.6em;
  padding: 0 0.7em 0.7em;
  overflow: hidden;
  flex: 1;
  min-height: 0;
}

.kb__card {
  background: #FFFFFF;
  border: 0.08em solid #E9EAEB;
  border-radius: 0.6em;
  padding: 0.8em;
  display: flex;
  flex-direction: column;
  gap: 0.35em;
  flex-shrink: 0;
}

.kb__card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.kb__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25em;
  font-size: 0.85em;
  font-weight: 500;
  color: #555;
  background: #F3F4F6;
  padding: 0.15em 0.5em;
  border-radius: 0.3em;
}

.kb__tag--dev { color: #4B5563; }
.kb__tag--design { color: #6B21A8; }
.kb__tag--seo { color: #0369A1; }

.kb__priority {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  font-size: 0.85em;
  font-weight: 600;
  padding: 0.2em 0.4em;
  border-radius: 0.3em;
}

.kb__priority--high {
  color: #EF4444;
  background: rgba(239, 68, 68, 0.1);
}
.kb__priority--medium {
  color: #F59E0B;
  background: rgba(245, 158, 11, 0.1);
}
.kb__priority--low {
  color: #22C55E;
  background: rgba(34, 197, 94, 0.1);
}

.kb__card-title {
  font-size: 1em;
  font-weight: 600;
  color: #1A1A1A;
  line-height: 1.35;
}

.kb__card-site {
  display: flex;
  align-items: center;
  gap: 0.3em;
  font-size: 0.85em;
  color: #838383;
}

.kb__card-due {
  display: flex;
  align-items: center;
  gap: 0.3em;
  font-size: 0.85em;
  color: #555;
}

.kb__card-due strong {
  font-weight: 600;
}

.kb__card-due--overdue {
  color: #92400E;
}

.kb__due-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  background: #FEF3C7;
  padding: 0.1em 0.45em;
  border-radius: 0.3em;
}

.kb__card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.2em;
}

.kb__avatars {
  display: flex;
  align-items: center;
}

.kb__avatar {
  width: 1.8em;
  height: 1.8em;
  border-radius: 50%;
  object-fit: cover;
  border: 0.12em solid #FFFFFF;
}

.kb__avatar + .kb__avatar {
  margin-left: -0.5em;
}

.kb__comments {
  display: inline-flex;
  align-items: center;
  gap: 0.25em;
  font-size: 0.85em;
  color: #838383;
}

/* ---- Request Drawer (rqd) ---- */
.rqd {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: clamp(0.35rem, 0.55vw, 0.65rem);
  background: #FDFDFD;
  border: 0.1em solid #D6D6D6;
  border-radius: 0.9em;
  box-shadow: -0.2em 0 0.7em rgba(0, 0, 0, 0.08);
  padding: 1.4em;
  display: flex;
  flex-direction: column;
  gap: 0.9em;
  color: #2F2F2F;
  line-height: 1.4;
  width: 100%;
  box-sizing: border-box;
}

.rqd__field {
  display: flex;
  flex-direction: column;
  gap: 0.3em;
}

.rqd__field--half {
  flex: 1;
  min-width: 0;
}

.rqd__row {
  display: flex;
  gap: 0.7em;
}

.rqd__label {
  font-size: 0.95em;
  font-weight: 600;
  color: #4C4B4B;
  display: flex;
  align-items: center;
  gap: 0.3em;
}

.rqd__input {
  font-family: inherit;
  font-size: 1em;
  color: #2F2F2F;
  background: #FFFFFF;
  border: 0.1em solid #D6D6D6;
  border-radius: 0.55em;
  padding: 0.55em 0.7em;
  line-height: 1.4;
}

.rqd__input--focus {
  border-color: var(--brand);
}

.rqd__select {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #FFFFFF;
  border: 0.1em solid #D6D6D6;
  border-radius: 0.55em;
  padding: 0.45em 0.6em;
  min-height: 2.2em;
  gap: 0.3em;
}

.rqd__select--focus {
  border-color: var(--brand);
}

.rqd__chevron {
  flex-shrink: 0;
  color: #838383;
}

.rqd__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25em;
  font-size: 0.95em;
  color: #2F2F2F;
  white-space: nowrap;
}

.rqd__person {
  display: flex;
  align-items: center;
  gap: 0.3em;
  font-size: 0.9em;
  color: #2F2F2F;
  min-width: 0;
  overflow: hidden;
}

.rqd__person span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rqd__person-avatar {
  width: 1.6em;
  height: 1.6em;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.rqd__remove {
  color: #838383;
  font-size: 0.9em;
  flex-shrink: 0;
  cursor: default;
}

.rqd__add-person {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.4em;
  height: 1.4em;
  border-radius: 50%;
  background: #E9EAEB;
  color: #838383;
  font-size: 0.85em;
  flex-shrink: 0;
  cursor: default;
}

.rqd__checkboxes {
  display: flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.45em 0;
}

.rqd__checkbox {
  display: flex;
  align-items: center;
  gap: 0.25em;
  font-size: 0.9em;
  color: #4C4B4B;
  cursor: default;
}

.rqd__checkbox--checked {
  color: #C7300B;
  font-weight: 600;
}

.rqd__check-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15em;
  height: 1.15em;
  border: 0.1em solid #D6D6D6;
  border-radius: 0.2em;
  background: #FFFFFF;
  flex-shrink: 0;
}

.rqd__check-box--high {
  background: #C7300B;
  border-color: #C7300B;
}

.rqd__status-pill {
  font-size: 0.9em;
  color: #9E9E9E;
  font-weight: 500;
}

/* Declunk AI section */
.rqd__ai {
  background: #F8F9FA;
  border: 0.1em solid #E9EAEB;
  border-radius: 0.6em;
  padding: 1em;
  display: flex;
  flex-direction: column;
  gap: 0.6em;
}

.rqd__ai-title {
  font-size: 1.15em;
  font-weight: 700;
  color: #1A1A1A;
}

.rqd__ai-card {
  display: flex;
  gap: 0;
  background: #FFFFFF;
  border-radius: 0.4em;
  overflow: hidden;
}

.rqd__ai-accent {
  width: 0.22em;
  background: var(--brand);
  flex-shrink: 0;
}

.rqd__ai-content {
  padding: 0.6em 0.8em;
  display: flex;
  flex-direction: column;
  gap: 0.25em;
}

.rqd__ai-heading {
  font-size: 0.95em;
  font-weight: 700;
  color: #1A1A1A;
}

.rqd__ai-body {
  font-size: 0.9em;
  color: #555;
  line-height: 1.5;
}

.rqd__ai-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5em;
  margin-top: 0.2em;
}

.rqd__btn {
  font-family: inherit;
  font-size: 0.9em;
  font-weight: 600;
  border-radius: 0.5em;
  padding: 0.45em 0.9em;
  cursor: default;
  border: none;
  line-height: 1.4;
  white-space: nowrap;
}

.rqd__btn--outline {
  background: #FFFFFF;
  color: #2F2F2F;
  border: 0.1em solid #D6D6D6;
}

.rqd__btn--primary {
  background: var(--brand);
  color: #FFFFFF;
}

.badge-coming {
  display: inline-flex;
  align-items: center;
  gap: clamp(0.25rem, 0.5vw, 0.375rem);
  padding: clamp(0.1875rem, 0.3vw, 0.25rem) clamp(0.5rem, 0.8vw, 0.75rem);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--amber);
  background: var(--amber-light);
  border: 1px solid var(--amber-border);
  border-radius: 9999px;
}

.section__badge-row {
  display: flex;
  justify-content: center;
  margin-top: var(--space-2xl);
}


/* ============================================================
   15. CONNECTED (Section 8) — Dark banner, expand on entry
   ============================================================ */
.connected-section {
  background: var(--surface);
  position: relative;
  padding: var(--space-3xl) 0;
  transition: background-color 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.connected-section:has(.connected__frame.expanded) {
  background: var(--dark);
}

.connected__frame {
  position: relative;
  background: var(--dark);
  padding: clamp(3rem, 7vw, 5rem) 0;
  transition: clip-path 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  overflow: hidden;
  --mouse-x: 50%;
  --mouse-y: 50%;
}

.connected__frame.expanded {
  transition: clip-path 1.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.connected__frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 600px 400px at var(--mouse-x) var(--mouse-y),
    rgba(255, 255, 255, 0.04) 0%,
    transparent 70%
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: 2;
}

.connected__frame.expanded::after {
  opacity: 1;
  transition: opacity 1.2s cubic-bezier(0.23, 1, 0.32, 1) 0.6s;
}

.connected__frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(91, 75, 235, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 80% 100%, rgba(91, 75, 235, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.connected__rays {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.23, 1, 0.32, 1);
  pointer-events: none;
}

.connected__frame.expanded .connected__rays {
  opacity: 1;
  transition: opacity 1.6s cubic-bezier(0.23, 1, 0.32, 1) 0.4s;
}

.connected__inner {
  position: relative;
  z-index: 1;
  max-width: var(--content-w);
  margin: 0 auto;
  text-align: center;
}

.connected__heading {
  font-size: var(--display-lg);
  font-weight: 700;
  line-height: 1.15;
  color: #F5F5F7;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-lg);
  text-wrap: balance;
}

.connected__sub {
  font-size: var(--text-lg);
  line-height: 1.6;
  color: #A1A1A6;
  max-width: 34rem;
  margin: 0 auto var(--space-xl);
  text-wrap: pretty;
}

.connected__icons {
  display: flex;
  justify-content: center;
  gap: clamp(0.5rem, 1vw, 0.75rem);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s cubic-bezier(0.23, 1, 0.32, 1),
              transform 0.25s cubic-bezier(0.23, 1, 0.32, 1);
}

.connected__icons.revealed {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s cubic-bezier(0.23, 1, 0.32, 1) 0.5s,
              transform 0.5s cubic-bezier(0.23, 1, 0.32, 1) 0.5s;
}

.tool-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
}

.tool-icon svg {
  flex-shrink: 0;
  display: block;
}


/* ============================================================
   16. AEO (Section 9) — Dark mode, node diagram
   ============================================================ */
.aeo-section {
  padding-top: var(--space-2xl) !important;
  padding-bottom: var(--space-3xl) !important;
  overflow: hidden;
  --mouse-x: 50%;
  --mouse-y: 50%;
}

/* Mouse-tracking glow (white-ish, matches connected section pattern) */
.aeo-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 600px 400px at var(--mouse-x) var(--mouse-y),
    rgba(255, 255, 255, 0.04) 0%,
    transparent 70%
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: 1;
}

.aeo-section.visible::after {
  opacity: 1;
  transition: opacity 1.2s cubic-bezier(0.23, 1, 0.32, 1) 0.6s;
}

.aeo-section > .container {
  position: relative;
  z-index: 2;
}

.aeo__header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.aeo__header .section__heading {
  margin: 0;
}

.hl--dark {
  color: #8B7FF0;
}

.aeo__badge {
  display: inline-flex;
  align-items: center;
  margin-bottom: var(--space-md);
  padding: 0.25rem 0.875rem;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(180, 170, 255, 0.5);
  border: 1px solid rgba(139, 127, 240, 0.15);
  border-radius: 9999px;
  white-space: nowrap;
}

.aeo__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.aeo__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-xl);
}

.aeo__text--dark {
  font-size: var(--text-lg);
  line-height: 1.75;
  color: #B0ADBE;
  text-wrap: pretty;
  margin: 0;
}

.aeo-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.5rem;
  font-size: var(--text-md);
  font-weight: 600;
  color: #EEEEF2;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  transition: transform 160ms cubic-bezier(0.23, 1, 0.32, 1),
              border-color 0.2s var(--ease-out),
              background 0.2s var(--ease-out);
  text-decoration: none;
}

.aeo-btn-outline:hover {
  border-color: rgba(139, 127, 240, 0.45);
  background: rgba(139, 127, 240, 0.06);
}

.aeo-btn-outline:active {
  transform: scale(0.97);
}

.aeo-btn-outline:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* --- Node Diagram --- */
.aeo__diagram {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 340px;
  margin: 0 auto;
}

#aeo-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.aeo-node {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  pointer-events: auto;
  z-index: 2;
  will-change: transform;
}

.aeo-node__ring {
  position: relative;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: none;
  background: rgba(160, 150, 245, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 8px rgba(139, 127, 240, 0.35);
}

.aeo-node__dot {
  display: none;
}

/* Center node */
.aeo-node--center {
  z-index: 3;
}

.aeo-node__ring--center {
  width: 16px;
  height: 16px;
  background: rgba(210, 200, 255, 0.9);
  box-shadow: 0 0 14px rgba(139, 127, 240, 0.4);
}

.aeo-node__dot--center {
  display: none;
}

.aeo-node__label {
  font-size: clamp(0.625rem, 1vw, 0.75rem);
  font-weight: 600;
  color: rgba(200, 192, 255, 0.7);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  line-height: 1.3;
}

.aeo-node__label--center {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(0.6875rem, 1.1vw, 0.8125rem);
  font-weight: 700;
}

/* Responsive: stack on mobile */
@media (max-width: 768px) {
  .built-for {
    grid-template-columns: 1fr;
    max-width: 24rem;
    margin-left: auto;
    margin-right: auto;
  }

  .aeo__layout {
    grid-template-columns: 1fr;
  }

  .aeo__diagram {
    max-width: 300px;
    order: -1;
  }
}


/* ============================================================
   17. OBJECTIONS (Section 10)
   ============================================================ */
.objections-list {
  max-width: var(--content-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.objection {
  border-bottom: 1px solid var(--border);
}

.objection:first-child {
  border-top: 1px solid var(--border);
}

.objection summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(1rem, 1.5vw, 1.25rem) 0;
  font-size: var(--text-lg);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: color 0.2s var(--ease-out);
}

.objection summary::-webkit-details-marker {
  display: none;
}

.objection summary::after {
  content: '';
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23888888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  transition: transform 0.3s var(--ease-out);
}

.objection[open] summary::after {
  transform: rotate(180deg);
}

.objection summary:hover {
  color: var(--brand);
}

.objection__answer {
  padding-bottom: clamp(1rem, 1.5vw, 1.25rem);
  font-size: var(--text-md);
  color: var(--text-secondary);
  line-height: 1.65;
  text-wrap: pretty;
}


/* ============================================================
   18. ROADMAP (Section 11)
   ============================================================ */
.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  max-width: 56rem;
  margin: 0 auto var(--space-2xl);
}

.roadmap-col {
  padding: clamp(1.5rem, 2.5vw, 2rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.roadmap-col--now {
  border-color: var(--success-border);
  background: var(--success-light);
}

.roadmap-col--next {
  border-color: var(--brand-border);
  background: var(--brand-light);
}

.roadmap-col--later {
  border-color: var(--border);
  background: var(--surface-muted);
}

.roadmap-badge {
  display: inline-flex;
  align-items: center;
  padding: clamp(0.125rem, 0.25vw, 0.1875rem) clamp(0.5rem, 0.75vw, 0.625rem);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 9999px;
  margin-bottom: var(--space-lg);
}

.roadmap-badge--now {
  color: var(--success);
  background: rgba(22, 163, 74, 0.12);
}

.roadmap-badge--next {
  color: var(--brand);
  background: rgba(91, 75, 235, 0.12);
}

.roadmap-badge--later {
  color: var(--text-tertiary);
  background: rgba(0, 0, 0, 0.05);
}

.roadmap-col__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: clamp(0.5rem, 0.75vw, 0.625rem);
}

.roadmap-col__list li {
  display: flex;
  align-items: center;
  gap: clamp(0.375rem, 0.5vw, 0.5rem);
  font-size: var(--text-md);
  font-weight: 500;
}

.roadmap-col__list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.roadmap-col--now .roadmap-col__list li::before {
  background: var(--success);
}

.roadmap-col--next .roadmap-col__list li::before {
  background: var(--brand);
}

.roadmap-col--later .roadmap-col__list li::before {
  background: var(--text-tertiary);
}

.roadmap-note {
  text-align: center;
  font-size: var(--text-sm);
  color: var(--text-tertiary);
}


/* ============================================================
   19. FAQ (Section 12)
   ============================================================ */
.faq-list {
  max-width: var(--content-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item:first-child {
  border-top: 1px solid var(--border);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(1rem, 1.5vw, 1.25rem) 0;
  font-size: var(--text-lg);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: color 0.2s var(--ease-out);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '';
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23888888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  transition: transform 0.3s var(--ease-out);
}

.faq-item[open] summary::after {
  transform: rotate(180deg);
}

.faq-item summary:hover {
  color: var(--brand);
}

.faq-item__answer {
  padding-bottom: clamp(1rem, 1.5vw, 1.25rem);
  font-size: var(--text-md);
  color: var(--text-secondary);
  line-height: 1.65;
  text-wrap: pretty;
}


/* ============================================================
   20. CLOSING CTA + FOOTER (PixelBlast wrap)
   ============================================================ */
.closing-wrap {
  position: relative;
  background: var(--dark);
  overflow: hidden;
}

.closing-wrap canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  pointer-events: none;
  z-index: 0;
}

.closing {
  background: transparent;
  padding: clamp(5rem, 8vw, 7rem) 0 0;
  position: relative;
  z-index: 1;
}

.closing__inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 32rem;
  margin: 0 auto;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

.closing__headline {
  font-size: var(--display-lg);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-lg);
  text-wrap: balance;
  background-image: linear-gradient(
    120deg,
    #D1D1D6 0%, #D1D1D6 35%,
    #ffffff 50%,
    #D1D1D6 65%, #D1D1D6 100%
  );
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shiny-sweep 3s linear infinite;
}

@keyframes shiny-sweep {
  0%   { background-position: 150% center; }
  100% { background-position: -50% center; }
}

.closing__desc {
  font-size: var(--text-lg);
  color: #A1A1A6;
  line-height: 1.6;
  margin-bottom: var(--space-xl);
  text-wrap: pretty;
}

.closing__form {
  display: flex;
  gap: clamp(0.25rem, 0.5vw, 0.375rem);
  max-width: 22rem;
  margin: 0 auto clamp(0.75rem, 1vw, 1rem);
}

.closing__input {
  flex: 1;
  padding: clamp(0.5rem, 0.8vw, 0.625rem) clamp(0.75rem, 1vw, 0.875rem);
  font-size: var(--text-sm);
  font-family: var(--font);
  background: #18181b;
  border: 1px solid #3a3a3e;
  border-radius: var(--radius);
  color: #F5F5F7;
  outline: none;
  transition: border-color 180ms var(--ease-out), box-shadow 180ms var(--ease-out);
}

.closing__input::placeholder {
  color: #6E6E73;
}

.closing__input:focus,
.closing__input:focus-visible {
  border-color: rgba(91, 75, 235, 0.55);
  background: #1e1e21;
  box-shadow: 0 0 0 1px rgba(91, 75, 235, 0.25);
  outline: none;
}

.closing__submit {
  padding: clamp(0.5rem, 0.8vw, 0.625rem) clamp(1rem, 1.5vw, 1.25rem);
  font-size: var(--text-sm);
  font-weight: 600;
  color: #fff;
  background: var(--brand);
  border-radius: var(--radius);
  transition: background var(--duration) var(--ease-out), transform 160ms var(--ease-out);
  white-space: nowrap;
}

.closing__submit:hover {
  background: var(--brand-hover);
}

.closing__submit:active {
  transform: scale(0.97);
}

.closing__submit:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.closing__note {
  font-size: var(--text-xs);
  color: #636366;
}

.footer {
  background: transparent;
  padding: clamp(2rem, 4vw, 3rem) 0 clamp(1.5rem, 3vw, 2rem);
  position: relative;
  z-index: 1;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

.footer__left {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.5rem);
}

.footer__copy {
  font-size: var(--text-xs);
  color: #86868b;
  letter-spacing: 0.01em;
}

.footer__links {
  display: flex;
  gap: 0.375rem;
  align-items: center;
  list-style: none;
}

.footer__links a {
  font-size: var(--text-xs);
  color: #86868b;
  letter-spacing: 0.01em;
  transition: color 180ms var(--ease-out);
}

.footer__links li + li::before {
  content: "\00b7";
  color: #636366;
  margin-right: 0.375rem;
  font-size: var(--text-xs);
}

.footer__links a:hover {
  color: #c7c7cc;
}

.footer__links a:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 4px;
  border-radius: 2px;
}


/* ============================================================
   21. RESPONSIVE: Tablet (max-width: 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .topnav__link { display: none; }
  .topnav__menu-btn { display: flex; }

  /* Mobile menu panel */
  .topnav__mobile-panel {
    display: none;
    position: fixed;
    top: clamp(3rem, 4vw, 3.5rem);
    left: 0;
    right: 0;
    background: rgba(10, 10, 12, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: var(--space-lg) var(--pad) var(--space-xl);
    z-index: 99;
    flex-direction: column;
    gap: var(--space-sm);
  }

  .topnav.nav--light .topnav__mobile-panel {
    background: rgba(255, 255, 255, 0.95);
    border-bottom-color: rgba(0, 0, 0, 0.06);
  }

  .topnav__menu-toggle:checked ~ .topnav__mobile-panel {
    display: flex;
  }

  .topnav__mobile-panel a {
    display: block;
    padding: var(--space-sm) 0;
    font-size: var(--text-lg);
    font-weight: 500;
    color: #A1A1AA;
  }

  .topnav.nav--light .topnav__mobile-panel a {
    color: var(--text-secondary);
  }

  .topnav__mobile-panel a:hover {
    color: #F5F5F7;
  }

  .topnav.nav--light .topnav__mobile-panel a:hover {
    color: var(--text-primary);
  }

  .topnav__mobile-panel .topnav__cta {
    margin-top: var(--space-sm);
    text-align: center;
    justify-content: center;
    padding: var(--space-sm) var(--space-lg);
  }

  .bento {
    grid-template-columns: 1fr;
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
  }

  .carousel-wrap,
  .changelog-wrap {
    flex: 0 0 auto;
  }

  .bento__card--dark {
    grid-template-columns: 1fr;
    max-width: none;
  }

  .bento__card--dark {
    height: auto;
  }

  .ai-control__header {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
  }

  .ai-control__desc {
    padding-top: 0;
  }

  .approach-steps {
    grid-template-columns: 1fr;
    max-width: 24rem;
    margin-left: auto;
    margin-right: auto;
  }

  .approach-connector {
    padding-top: 0;
    padding-bottom: 0;
    transform: rotate(90deg);
  }

  .roadmap-grid {
    grid-template-columns: 1fr;
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
  }

  .connected__heading {
    font-size: var(--display-md);
  }

  .video-wrap {
    perspective: none;
  }

  .video {
    transform: none;
  }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-md);
  }

  .closing__inner {
    max-width: 100%;
  }

  .closing__form {
    flex-direction: column;
  }
}


/* ============================================================
   22. RESPONSIVE: Mobile (max-width: 640px)
   ============================================================ */
@media (max-width: 640px) {
  .hero {
    padding-top: clamp(4.5rem, 8vh, 6rem);
  }

  .hero__headline {
    font-size: clamp(1.75rem, 7.5vw, 2.5rem);
    line-height: 1.15;
  }

  .hero__sub {
    font-size: var(--text-md);
    max-width: none;
  }

  .hero__form {
    flex-direction: column;
    max-width: 100%;
  }

  .hero__input,
  .hero__submit {
    padding: clamp(0.625rem, 1vw, 0.75rem) clamp(0.875rem, 1.25vw, 1rem);
    font-size: var(--text-md);
  }

  .hero__pills {
    gap: clamp(0.25rem, 0.5vw, 0.375rem);
  }

  .hero__pill {
    font-size: 0.625rem;
    padding: 0.1875rem 0.5rem;
  }

  .video {
    border-radius: 8px;
  }

  .video__bar {
    height: 20px;
    padding: 0 8px;
    gap: 4px;
  }

  .video__bar-dot {
    width: 6px;
    height: 6px;
  }

  .video__sidebar {
    top: 20px;
    width: clamp(36px, 10%, 72px);
  }

  .video__play-btn {
    width: 36px;
    height: 36px;
  }

  .video__play-btn svg {
    width: 12px;
    height: 12px;
  }

  .ai-control__heading {
    font-size: var(--display-sm);
  }

  .ai-control__desc {
    font-size: var(--text-lg);
  }

  .tool-icon {
    width: 34px;
    height: 34px;
  }

  .tool-icon svg {
    width: 16px;
    height: 16px;
  }

  .connected__heading {
    font-size: var(--display-sm);
  }

  .changelog__tag {
    display: none;
  }

  .changelog__row {
    gap: 0.375rem;
  }
}


/* ============================================================
   23. RESPONSIVE: Very small (max-width: 380px)
   ============================================================ */
@media (max-width: 380px) {
  .hero {
    padding-top: 3.5rem;
  }

  .hero__headline {
    font-size: 1.5rem;
    line-height: 1.2;
  }

  .hero__sub {
    font-size: var(--text-sm);
  }
}


/* ============================================================
   24. REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .video {
    transform: none !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .connected__frame {
    clip-path: none !important;
    transition: none !important;
  }

  .connected__icons {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .connected__rays {
    display: none !important;
  }

  .hero-bg,
  .closing-wrap canvas {
    display: none;
  }
}


/* ============================================================
   25. FOCUS STYLES
   ============================================================ */
*:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

button:focus:not(:focus-visible),
a:focus:not(:focus-visible) {
  outline: none;
}
