/* ============================
   AGENTRY — Design Tokens + Components
   ============================ */

/* --- Fonts --- */
@import url('https://api.fontshare.com/v2/css?f[]=general-sans@300,400,500,600,700&f[]=satoshi@300,400,500,700&display=swap');

/* --- Type Scale (Fluid) --- */
:root {
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);

  /* Spacing (4px base) */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 400ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Content widths */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;
  --content-full: 100%;

  /* Fonts */
  --font-display: 'General Sans', 'Inter', sans-serif;
  --font-body: 'Satoshi', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
}

/* --- LIGHT MODE (default) --- */
:root, [data-theme="light"] {
  --color-bg:             #FAFAFA;
  --color-surface:        #FFFFFF;
  --color-surface-2:      #F5F5F5;
  --color-surface-offset: #F0F0F0;
  --color-surface-dynamic: #E8E8E8;
  --color-divider:        #E0E0E0;
  --color-border:         #D4D4D4;

  --color-text:           #1A1A1A;
  --color-text-muted:     #6B6B6B;
  --color-text-faint:     #A0A0A0;
  --color-text-inverse:   #FAFAFA;

  --color-primary:        #01696F;
  --color-primary-hover:  #015358;
  --color-primary-active: #013E42;
  --color-primary-light:  #E6F3F4;
  --color-primary-highlight: #CEE8EA;

  --color-dark:           #0A2E33;
  --color-dark-lighter:   #0F3D44;

  --color-success:        #16A34A;
  --color-success-light:  #DCFCE7;
  --color-warning:        #D97706;
  --color-error:          #DC2626;

  --shadow-sm: 0 1px 2px rgba(10, 46, 51, 0.06);
  --shadow-md: 0 4px 12px rgba(10, 46, 51, 0.08);
  --shadow-lg: 0 12px 32px rgba(10, 46, 51, 0.12);
  --shadow-card: 0 1px 3px rgba(10, 46, 51, 0.04), 0 4px 16px rgba(10, 46, 51, 0.04);
  --shadow-card-hover: 0 2px 4px rgba(10, 46, 51, 0.06), 0 12px 32px rgba(10, 46, 51, 0.08);
}

/* --- DARK MODE --- */
[data-theme="dark"] {
  --color-bg:             #0C1416;
  --color-surface:        #111D20;
  --color-surface-2:      #162529;
  --color-surface-offset: #1A2D32;
  --color-surface-dynamic: #1E3439;
  --color-divider:        #1E3439;
  --color-border:         #264349;

  --color-text:           #E0E8EA;
  --color-text-muted:     #8BA3A8;
  --color-text-faint:     #5A7A80;
  --color-text-inverse:   #0C1416;

  --color-primary:        #3DBBC4;
  --color-primary-hover:  #5DCDD5;
  --color-primary-active: #7DDEE5;
  --color-primary-light:  rgba(61, 187, 196, 0.1);
  --color-primary-highlight: rgba(61, 187, 196, 0.15);

  --color-dark:           #E0E8EA;
  --color-dark-lighter:   #8BA3A8;

  --color-success:        #4ADE80;
  --color-success-light:  rgba(74, 222, 128, 0.1);
  --color-warning:        #FBBF24;
  --color-error:          #F87171;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.5);
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.2), 0 4px 16px rgba(0, 0, 0, 0.15);
  --shadow-card-hover: 0 2px 4px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.2);
}

/* System preference fallback */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg:             #0C1416;
    --color-surface:        #111D20;
    --color-surface-2:      #162529;
    --color-surface-offset: #1A2D32;
    --color-surface-dynamic: #1E3439;
    --color-divider:        #1E3439;
    --color-border:         #264349;
    --color-text:           #E0E8EA;
    --color-text-muted:     #8BA3A8;
    --color-text-faint:     #5A7A80;
    --color-text-inverse:   #0C1416;
    --color-primary:        #3DBBC4;
    --color-primary-hover:  #5DCDD5;
    --color-primary-active: #7DDEE5;
    --color-primary-light:  rgba(61, 187, 196, 0.1);
    --color-primary-highlight: rgba(61, 187, 196, 0.15);
    --color-dark:           #E0E8EA;
    --color-dark-lighter:   #8BA3A8;
    --color-success:        #4ADE80;
    --color-success-light:  rgba(74, 222, 128, 0.1);
    --color-warning:        #FBBF24;
    --color-error:          #F87171;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.5);
    --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.2), 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-card-hover: 0 2px 4px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.2);
  }
}

/* ============================
   BASE RESET
   ============================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  hanging-punctuation: first last;
  scroll-padding-top: 80px;
}

body {
  min-height: 100dvh;
  line-height: 1.6;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
}

img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
ul[role="list"], ol[role="list"] { list-style: none; }
input, button, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4, h5, h6 { text-wrap: balance; line-height: 1.15; font-family: var(--font-display); }
p, li, figcaption { text-wrap: pretty; max-width: 72ch; }

::selection {
  background: rgba(1, 105, 111, 0.2);
  color: var(--color-text);
}
[data-theme="dark"] ::selection {
  background: rgba(61, 187, 196, 0.25);
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

button { cursor: pointer; background: none; border: none; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-primary-hover); }

a, button, [role="button"], [role="link"], input, textarea, select {
  transition: color var(--transition-interactive),
              background var(--transition-interactive),
              border-color var(--transition-interactive),
              box-shadow var(--transition-interactive),
              transform var(--transition-interactive);
}

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

/* ============================
   LAYOUT
   ============================ */
.container {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-4);
}
@media (min-width: 768px) {
  .container { padding-inline: var(--space-8); }
}

.section {
  padding-block: clamp(var(--space-12), 8vw, var(--space-24));
}

/* ============================
   HEADER / NAV
   ============================ */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(250, 250, 250, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition-slow), box-shadow var(--transition-slow);
}
[data-theme="dark"] .header {
  background: rgba(12, 20, 22, 0.88);
}
.header--scrolled {
  border-bottom-color: var(--color-divider);
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-4);
}
@media (min-width: 768px) {
  .header__inner { padding-inline: var(--space-8); }
}

.header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  color: var(--color-text);
}
.header__logo-text {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.header__nav {
  display: none;
  align-items: center;
  gap: var(--space-6);
}
@media (min-width: 768px) {
  .header__nav { display: flex; }
}

.header__nav a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
}
.header__nav a:hover {
  color: var(--color-text);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  cursor: pointer;
}
.theme-toggle:hover {
  background: var(--color-surface-2);
  color: var(--color-text);
}

.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
}
.mobile-menu-btn:hover {
  background: var(--color-surface-2);
  color: var(--color-text);
}
@media (min-width: 768px) {
  .mobile-menu-btn { display: none; }
}

/* Mobile menu — full-screen overlay (sits OUTSIDE header to avoid stacking context trap) */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  padding: 0 var(--space-6) var(--space-8);
  padding-top: 80px;
  background: #FAFAFA;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}
[data-theme="dark"] .mobile-nav {
  background: #0C1416;
}
@media (prefers-color-scheme: dark) {
  .mobile-nav {
    background: #0C1416;
  }
}
.mobile-nav.active {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.mobile-nav a {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--color-divider);
  letter-spacing: -0.01em;
}
.mobile-nav a:first-child {
  border-top: 1px solid var(--color-divider);
}
.mobile-nav a:active {
  color: var(--color-accent);
}
@media (min-width: 768px) {
  .mobile-nav { display: none !important; }
}

/* ============================
   BUTTONS
   ============================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  border: none;
}

.btn--primary {
  background: var(--color-primary);
  color: #fff;
}
.btn--primary:hover {
  background: var(--color-primary-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn--primary:active {
  background: var(--color-primary-active);
  transform: translateY(0);
}

.btn--secondary {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.btn--secondary:hover {
  background: var(--color-surface-2);
  border-color: var(--color-text-muted);
  color: var(--color-text);
}

.btn--ghost {
  background: transparent;
  color: var(--color-primary);
}
.btn--ghost:hover {
  background: var(--color-primary-light);
  color: var(--color-primary);
}

.btn--lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
  border-radius: var(--radius-lg);
}

/* ============================
   HERO
   ============================ */
.hero {
  position: relative;
  overflow: hidden;
  background: #0A2E33;
  color: #fff;
  padding: clamp(var(--space-16), 12vw, var(--space-32)) 0 clamp(var(--space-12), 10vw, var(--space-24));
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero__grid-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 30%, rgba(1, 105, 111, 0.15) 0%, transparent 70%),
    radial-gradient(ellipse 80% 60% at 80% 80%, rgba(1, 105, 111, 0.08) 0%, transparent 60%);
}
[data-theme="dark"] .hero__gradient {
  background:
    radial-gradient(ellipse 60% 50% at 50% 30%, rgba(61, 187, 196, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 80% 60% at 80% 80%, rgba(61, 187, 196, 0.04) 0%, transparent 60%);
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
  padding-inline: var(--space-4);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  padding: var(--space-1) var(--space-4);
  margin-bottom: var(--space-6);
}
.hero__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3DBBC4;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.hero__title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: var(--space-5);
  color: #fff;
}

.hero__subtitle {
  font-size: var(--text-lg);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--space-8);
  max-width: 580px;
  margin-inline: auto;
}

.hero__ctas {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

.hero .btn--primary {
  background: var(--color-primary);
}
.hero .btn--primary:hover {
  background: #028B93;
}

.hero .btn--secondary {
  color: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.2);
}
.hero .btn--secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

/* ============================
   STATS BAR
   ============================ */
.stats-bar {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-divider);
  padding: var(--space-5) 0;
}

.stats-bar__inner {
  display: flex;
  justify-content: center;
  gap: var(--space-8);
  flex-wrap: wrap;
}

.stats-bar__item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-weight: 500;
}

.stats-bar__value {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-text);
}

.stats-bar__dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-primary);
  flex-shrink: 0;
}

/* ============================
   DIRECTORY SECTION
   ============================ */
.directory {
  background: var(--color-bg);
}

.directory__header {
  text-align: center;
  margin-bottom: var(--space-10);
}

.directory__title {
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-3);
}

.directory__subtitle {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 560px;
  margin-inline: auto;
}

/* Filters */
.directory__filters {
  margin-bottom: var(--space-8);
}

.directory__search {
  max-width: 480px;
  margin-inline: auto;
  margin-bottom: var(--space-6);
  position: relative;
}

.directory__search-icon {
  position: absolute;
  left: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-faint);
  pointer-events: none;
}

.directory__search-input {
  width: 100%;
  padding: var(--space-3) var(--space-4) var(--space-3) var(--space-12);
  font-size: var(--text-sm);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  color: var(--color-text);
  outline: none;
  transition: border-color var(--transition-interactive), box-shadow var(--transition-interactive);
}
.directory__search-input::placeholder {
  color: var(--color-text-faint);
}
.directory__search-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-light);
}

.directory__categories {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  justify-content: center;
}

.category-pill {
  font-size: var(--text-xs);
  font-weight: 500;
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-full);
  background: var(--color-surface);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  cursor: pointer;
  white-space: nowrap;
}
.category-pill:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.category-pill.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

/* Agent cards grid */
.directory__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}
@media (min-width: 640px) {
  .directory__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .directory__grid { grid-template-columns: repeat(3, 1fr); }
}

.agent-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: box-shadow var(--transition-interactive), transform var(--transition-interactive), border-color var(--transition-interactive);
}
.agent-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
  border-color: var(--color-primary-highlight);
}

.agent-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-2);
}

.agent-card__name {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  line-height: 1.3;
}
.agent-card__name:hover {
  color: var(--color-primary);
}

.agent-card__category {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: var(--color-primary-light);
  color: var(--color-primary);
  white-space: nowrap;
  flex-shrink: 0;
}

.agent-card__desc {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.agent-card__pricing {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}
.agent-card__pricing-model {
  font-weight: 600;
  color: var(--color-text);
}

.agent-card__features {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
}
.agent-card__feature-tag {
  font-size: 11px;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  background: var(--color-surface-2);
  color: var(--color-text-muted);
  white-space: nowrap;
}

.agent-card__badges {
  display: flex;
  gap: var(--space-2);
  margin-top: auto;
  padding-top: var(--space-2);
  border-top: 1px solid var(--color-divider);
}
.agent-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
}
.agent-card__badge--yes {
  color: var(--color-success);
}
.agent-card__badge--unknown {
  color: var(--color-text-faint);
}
.agent-card__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.agent-card__badge--yes .agent-card__badge-dot {
  background: var(--color-success);
}
.agent-card__badge--unknown .agent-card__badge-dot {
  background: var(--color-text-faint);
}

.directory__empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--space-12) var(--space-4);
  color: var(--color-text-muted);
}
.directory__empty-icon {
  font-size: 48px;
  margin-bottom: var(--space-4);
  opacity: 0.4;
}
.directory__empty-text {
  font-size: var(--text-lg);
  font-weight: 500;
}

/* Show more */
.directory__show-more {
  text-align: center;
  margin-top: var(--space-8);
}

/* ============================
   HOW IT WORKS
   ============================ */
.how-it-works {
  background: var(--color-surface);
}

.how-it-works__title {
  text-align: center;
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-12);
}

.how-it-works__steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  max-width: var(--content-default);
  margin-inline: auto;
}
@media (min-width: 768px) {
  .how-it-works__steps { grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
}

.step {
  text-align: center;
  padding: var(--space-6);
}

.step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-xl);
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  margin-bottom: var(--space-4);
}

.step__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.step__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  max-width: 300px;
  margin-inline: auto;
}

/* ============================
   BROKER CTA
   ============================ */
.broker-cta {
  background: #0A2E33;
  color: #fff;
  text-align: center;
}
[data-theme="dark"] .broker-cta {
  background: #0F1D20;
}

.broker-cta__title {
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-3);
  color: #fff;
}
[data-theme="dark"] .broker-cta__title {
  color: var(--color-text);
}

.broker-cta__subtitle {
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
  margin-inline: auto;
  margin-bottom: var(--space-8);
}
[data-theme="dark"] .broker-cta__subtitle {
  color: var(--color-text-muted);
}

/* ============================
   INTAKE FORM
   ============================ */
.intake-form-section {
  background: var(--color-bg);
}

.intake-form__wrapper {
  max-width: var(--content-narrow);
  margin-inline: auto;
}

.intake-form__title {
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.03em;
  text-align: center;
  margin-bottom: var(--space-2);
}

.intake-form__subtitle {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-align: center;
  margin-bottom: var(--space-8);
}

.intake-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.form-group label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-text);
  outline: none;
  transition: border-color var(--transition-interactive), box-shadow var(--transition-interactive);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-light);
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}
@media (min-width: 640px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}

.form-success {
  text-align: center;
  padding: var(--space-8);
  border: 2px solid var(--color-success);
  border-radius: var(--radius-lg);
  background: var(--color-success-light);
  display: none;
}
.form-success.active { display: block; }
.form-success__icon {
  font-size: 48px;
  margin-bottom: var(--space-3);
}
.form-success__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}
.form-success__text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ============================
   DEVELOPERS SECTION
   ============================ */
.developers {
  background: var(--color-surface);
}

.developers__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  align-items: center;
}
@media (min-width: 768px) {
  .developers__inner { grid-template-columns: 1fr 1fr; }
}

.developers__content {
  max-width: 480px;
}

.developers__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}

.developers__title {
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-4);
}

.developers__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-6);
}

.developers__ctas {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

/* Code block */
.code-block {
  background: #0F1B1E;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
[data-theme="dark"] .code-block {
  background: #080F11;
  border-color: var(--color-border);
}

.code-block__header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.code-block__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.code-block__dot--red { background: #FF5F57; }
.code-block__dot--yellow { background: #FEBC2E; }
.code-block__dot--green { background: #28C840; }

.code-block__title {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.4);
  margin-left: var(--space-2);
  font-family: var(--font-mono);
}

.code-block__content {
  padding: var(--space-4) var(--space-5);
  overflow-x: auto;
}

.code-block__content pre {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  color: #E0E8EA;
  white-space: pre;
  margin: 0;
}

/* Syntax highlighting */
.code-key { color: #7DD3FC; }
.code-string { color: #86EFAC; }
.code-bool { color: #FCA5A5; }
.code-bracket { color: #8BA3A8; }
.code-punctuation { color: #5A7A80; }

/* ============================
   FOOTER
   ============================ */
.footer {
  background: #071C20;
  color: rgba(255, 255, 255, 0.7);
  padding: var(--space-12) 0 var(--space-6);
}
[data-theme="dark"] .footer {
  background: #080F11;
  color: var(--color-text-muted);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}
@media (min-width: 768px) {
  .footer__inner { grid-template-columns: 2fr 1fr 1fr; }
}

.footer__brand {
  max-width: 300px;
}
.footer__brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  color: #fff;
  margin-bottom: var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
[data-theme="dark"] .footer__brand-name {
  color: var(--color-text);
}
.footer__brand-desc {
  font-size: var(--text-sm);
  line-height: 1.6;
  margin-bottom: var(--space-4);
}

.footer__a2a-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 500;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.6);
}
[data-theme="dark"] .footer__a2a-badge {
  border-color: var(--color-border);
  color: var(--color-text-faint);
}

.footer__links-title {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  color: #fff;
  margin-bottom: var(--space-4);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
[data-theme="dark"] .footer__links-title {
  color: var(--color-text);
}

.footer__links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.footer__links-list a {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
}
.footer__links-list a:hover {
  color: #fff;
}
[data-theme="dark"] .footer__links-list a {
  color: var(--color-text-muted);
}
[data-theme="dark"] .footer__links-list a:hover {
  color: var(--color-text);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: var(--text-xs);
}
[data-theme="dark"] .footer__bottom {
  border-top-color: var(--color-border);
}

.footer__bottom a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
}
.footer__bottom a:hover {
  color: rgba(255, 255, 255, 0.8);
}
[data-theme="dark"] .footer__bottom a {
  color: var(--color-text-faint);
}
[data-theme="dark"] .footer__bottom a:hover {
  color: var(--color-text-muted);
}

/* ============================
   SCROLL REVEAL ANIMATIONS
   ============================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered card reveals */
.agent-card {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow var(--transition-interactive),
              border-color var(--transition-interactive);
}
.agent-card.visible {
  opacity: 1;
  transform: translateY(0);
}
