/* ============================================================
   Hector.run — Design System
   ============================================================ */

/* --- Tokens --- */
:root {
  --bg-1:          #060A10;
  --bg-2:          #0B1220;
  --bg-3:          #101A2E;
  --border:        #1A2A42;
  --border-bright: #253D60;

  --accent:        #2B7FFF;
  --accent-dim:    rgba(43, 127, 255, 0.12);
  --accent-hover:  #4D94FF;

  --text-1:  #DDE8FF;
  --text-2:  #7A9EC4;
  --text-3:  #3D5A7A;

  --success: #3DCC8C;
  --warning: #F5A23A;
  --danger:  #FF4D68;

  --mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', ui-monospace, monospace;
  --sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 16px;

  --shadow:     0 1px 3px rgba(0,0,0,0.4), 0 4px 16px rgba(0,0,0,0.3);
  --shadow-lg:  0 2px 8px rgba(0,0,0,0.5), 0 12px 40px rgba(0,0,0,0.4);
  --glow:       0 0 0 1px var(--accent), 0 0 24px rgba(43,127,255,0.2);

  --max-w:    1160px;
  --nav-h:    64px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--sans);
  background: var(--bg-1);
  color: var(--text-1);
  line-height: 1.65;
  font-size: 16px;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; }
input, textarea { font-family: inherit; }

/* --- Typography --- */
h1, h2, h3, h4, h5 {
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-1);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
h4 { font-size: 1rem; font-weight: 600; }
p  { color: var(--text-2); line-height: 1.75; }

.mono { font-family: var(--mono); }
.accent { color: var(--accent); }
.muted { color: var(--text-2); }
.dim   { color: var(--text-3); }

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  padding: 96px 0;
}
.section--sm {
  padding: 64px 0;
}
.section-label {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.section-heading {
  margin-bottom: 16px;
}
.section-sub {
  font-size: 1.1rem;
  max-width: 560px;
  margin-bottom: 56px;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  border-bottom: 1px solid var(--border);
  background: rgba(6, 10, 16, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.nav__logo {
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: -0.02em;
}
.nav__logo span { color: var(--accent); }
.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav__links a {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--text-2);
  transition: color 0.15s, background 0.15s;
}
.nav__links a:hover,
.nav__links a.active {
  color: var(--text-1);
  background: var(--bg-3);
}
.nav__cta {
  flex-shrink: 0;
}

/* Mobile nav toggle */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
}
.nav__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-2);
  border-radius: 2px;
  transition: all 0.2s;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  transition: all 0.15s;
  white-space: nowrap;
}
.btn--primary {
  background: var(--accent);
  color: #fff;
}
.btn--primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(43,127,255,0.35);
}
.btn--outline {
  background: transparent;
  color: var(--text-1);
  border: 1px solid var(--border-bright);
}
.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}
.btn--ghost {
  background: var(--bg-3);
  color: var(--text-1);
}
.btn--ghost:hover {
  background: var(--border);
}
.btn--lg {
  padding: 13px 28px;
  font-size: 0.9375rem;
  border-radius: var(--radius-sm);
}

/* --- Cards --- */
.card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.card:hover {
  border-color: var(--border-bright);
  box-shadow: var(--shadow);
}
.card--accent:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 4px 24px rgba(43,127,255,0.1);
}
.card__icon {
  width: 40px;
  height: 40px;
  background: var(--accent-dim);
  border: 1px solid rgba(43,127,255,0.25);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent);
  font-size: 1.1rem;
}
.card__title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-1);
}
.card__body {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.7;
}

/* --- Grid --- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: var(--nav-h);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(43,127,255,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 80% 60%, rgba(43,127,255,0.04) 0%, transparent 60%);
  pointer-events: none;
}
.hero__grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.25;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 0%, transparent 70%);
}
.hero__inner {
  position: relative;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 80px 24px 120px;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--accent-dim);
  border: 1px solid rgba(43,127,255,0.25);
  border-radius: 100px;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 32px;
}
.hero__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}
.hero__title {
  margin-bottom: 24px;
}
.hero__title em {
  font-style: normal;
  color: var(--accent);
}
.hero__sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  max-width: 600px;
  margin: 0 auto 48px;
}
.hero__form {
  display: flex;
  gap: 12px;
  max-width: 440px;
  margin: 0 auto 20px;
}
.hero__form input {
  flex: 1;
  padding: 12px 16px;
  background: var(--bg-2);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-sm);
  color: var(--text-1);
  font-size: 0.9375rem;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}
.hero__form input::placeholder { color: var(--text-3); }
.hero__form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(43,127,255,0.15);
}
.hero__form-note {
  font-size: 0.8rem;
  color: var(--text-3);
}

/* --- Terminal Block --- */
.terminal {
  background: #020609;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 1.7;
  box-shadow: var(--shadow-lg);
}
.terminal__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-3);
  border-bottom: 1px solid var(--border);
}
.terminal__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.terminal__dot--red    { background: #FF5F57; }
.terminal__dot--yellow { background: #FEBC2E; }
.terminal__dot--green  { background: #28C840; }
.terminal__title {
  margin-left: 6px;
  font-size: 0.75rem;
  color: var(--text-3);
}
.terminal__body {
  padding: 20px 24px;
  color: var(--text-2);
}
.terminal__body .prompt { color: var(--accent); user-select: none; }
.terminal__body .cmd    { color: var(--text-1); }
.terminal__body .out    { color: var(--text-2); }
.terminal__body .success{ color: var(--success); }
.terminal__body .warn   { color: var(--warning); }
.terminal__body .dim    { color: var(--text-3); }
.terminal__body .line   { display: block; }

/* --- Agent Loop Diagram --- */
.loop {
  display: flex;
  align-items: flex-start;
  gap: 0;
  overflow-x: auto;
  padding-bottom: 8px;
}
.loop-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 110px;
  flex-shrink: 0;
}
.loop-node {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 700;
  border: 1px solid var(--border-bright);
  background: var(--bg-2);
  color: var(--text-2);
  letter-spacing: 0.05em;
  transition: all 0.2s;
  position: relative;
}
.loop-node--active {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 16px rgba(43,127,255,0.2);
}
.loop-step-label {
  margin-top: 10px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-1);
  text-align: center;
}
.loop-step-role {
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--text-3);
  text-align: center;
}
.loop-arrow {
  display: flex;
  align-items: center;
  padding-top: 14px;
  color: var(--text-3);
  font-size: 1rem;
  flex-shrink: 0;
}

/* --- Primitives / Feature list --- */
.primitive {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 0;
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
  align-items: start;
}
.primitive:first-child { border-top: 1px solid var(--border); }
.primitive__name {
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  padding-top: 2px;
}
.primitive__desc {
  font-size: 0.9375rem;
  color: var(--text-2);
  line-height: 1.75;
}
.primitive__desc strong {
  color: var(--text-1);
  font-weight: 600;
}

/* --- Role cards --- */
.role-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  transition: all 0.2s;
}
.role-card:hover {
  border-color: var(--border-bright);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.role-card__badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 12px;
}
.role-card__name {
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.role-card__desc {
  font-size: 0.85rem;
  color: var(--text-2);
  line-height: 1.6;
}

/* Role badge colours */
.badge--pm      { background: rgba(43,127,255,0.12);  color: #6AABFF; }
.badge--planner { background: rgba(147,51,234,0.12);  color: #C084FC; }
.badge--eng     { background: rgba(16,185,129,0.12);  color: #34D399; }
.badge--qa      { background: rgba(245,162,58,0.12);  color: #F5A23A; }
.badge--design  { background: rgba(236,72,153,0.12);  color: #F472B6; }
.badge--devops  { background: rgba(6,182,212,0.12);   color: #22D3EE; }
.badge--retro   { background: rgba(168,85,247,0.12);  color: #A78BFA; }

/* --- Feature pill list --- */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.feature-item {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.feature-item:last-child { border-bottom: none; }
.feature-item__check {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(61,204,140,0.12);
  border: 1px solid rgba(61,204,140,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.feature-item__check::after {
  content: '✓';
  font-size: 0.65rem;
  color: var(--success);
  font-weight: 700;
}
.feature-item__title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 4px;
}
.feature-item__desc {
  font-size: 0.875rem;
  color: var(--text-2);
}

/* --- Split section (image/content side by side) --- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.split--reverse { direction: rtl; }
.split--reverse > * { direction: ltr; }

/* --- Principle blocks --- */
.principle {
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}
.principle:first-child { padding-top: 0; }
.principle__number {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 8px;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.principle__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.principle__body {
  font-size: 0.9375rem;
  color: var(--text-2);
  line-height: 1.8;
  max-width: 640px;
}

/* --- Stats row --- */
.stats-row {
  display: flex;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat {
  flex: 1;
  padding: 32px 28px;
  text-align: center;
  border-right: 1px solid var(--border);
}
.stat:last-child { border-right: none; }
.stat__value {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--accent);
  font-family: var(--mono);
  line-height: 1;
  margin-bottom: 8px;
}
.stat__label {
  font-size: 0.875rem;
  color: var(--text-2);
}

/* --- CTA banner --- */
.cta-banner {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 64px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.cta-banner__title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 16px;
}
.cta-banner__sub {
  font-size: 1rem;
  max-width: 480px;
  margin: 0 auto 36px;
}
.cta-banner__form {
  display: flex;
  gap: 12px;
  max-width: 420px;
  margin: 0 auto;
}
.cta-banner__form input {
  flex: 1;
  padding: 11px 16px;
  background: var(--bg-1);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-sm);
  color: var(--text-1);
  font-size: 0.9375rem;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.cta-banner__form input::placeholder { color: var(--text-3); }
.cta-banner__form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(43,127,255,0.15);
}

/* --- Waitlist page --- */
.waitlist-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: calc(var(--nav-h) + 40px) 24px 80px;
  text-align: center;
}
.waitlist-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  max-width: 520px;
  width: 100%;
  position: relative;
  overflow: hidden;
}
.waitlist-card::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
}
.waitlist-form input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-1);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-sm);
  color: var(--text-1);
  font-size: 0.9375rem;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.waitlist-form input::placeholder { color: var(--text-3); }
.waitlist-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(43,127,255,0.15);
}
.waitlist-form textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-1);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-sm);
  color: var(--text-1);
  font-size: 0.9375rem;
  outline: none;
  resize: vertical;
  min-height: 80px;
  line-height: 1.6;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.waitlist-form textarea::placeholder { color: var(--text-3); }
.waitlist-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(43,127,255,0.15);
}
.waitlist-success {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 32px 0;
}
.waitlist-success__icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(61,204,140,0.12);
  border: 1px solid rgba(61,204,140,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

/* --- Code block --- */
.code-block {
  background: #020609;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 1.8;
  overflow-x: auto;
  color: var(--text-2);
}
.code-block .comment { color: var(--text-3); }
.code-block .keyword { color: var(--accent); }
.code-block .string  { color: var(--success); }
.code-block .op      { color: var(--text-3); }

/* --- Command snippet --- */
.cmd-snippet {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 12px;
}
.cmd-snippet__prompt {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.8125rem;
  user-select: none;
}
.cmd-snippet__cmd {
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--text-1);
  flex: 1;
}
.cmd-snippet__desc {
  font-size: 0.75rem;
  color: var(--text-3);
}

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 40px;
}
.footer__inner {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 64px;
  margin-bottom: 48px;
}
.footer__brand p {
  font-size: 0.875rem;
  margin-top: 12px;
  max-width: 200px;
  line-height: 1.6;
}
.footer__links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer__col-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  margin-bottom: 16px;
}
.footer__col a {
  display: block;
  font-size: 0.875rem;
  color: var(--text-2);
  padding: 4px 0;
  transition: color 0.15s;
}
.footer__col a:hover { color: var(--text-1); }
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.footer__bottom p {
  font-size: 0.8125rem;
  color: var(--text-3);
}
.footer__bottom a {
  color: var(--text-3);
  transition: color 0.15s;
}
.footer__bottom a:hover { color: var(--text-2); }
.footer__license {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: var(--text-3);
}

/* --- Page header (inner pages) --- */
.page-header {
  padding-top: calc(var(--nav-h) + 64px);
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 80px;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 100%, rgba(43,127,255,0.05) 0%, transparent 70%);
  pointer-events: none;
}

/* --- Divider --- */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* --- Misc helpers --- */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.gap-12 { gap: 12px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.w-full { width: 100%; }

/* --- Mobile nav menu --- */
.nav__mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 16px 24px 20px;
  background: var(--bg-1);
  border-bottom: 1px solid var(--border);
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  z-index: 99;
}
.nav__mobile a {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  color: var(--text-2);
  transition: all 0.15s;
}
.nav__mobile a:hover { color: var(--text-1); background: var(--bg-3); }
.nav__mobile.open { display: flex; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }

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

  .split {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .split--reverse { direction: ltr; }

  .primitive {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer__links {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer__bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .stats-row {
    flex-wrap: wrap;
  }
  .stat {
    flex: 1 1 50%;
    border-bottom: 1px solid var(--border);
  }

  .cta-banner {
    padding: 40px 28px;
  }
  .cta-banner__form {
    flex-direction: column;
  }

  .waitlist-card {
    padding: 40px 28px;
  }
}

@media (max-width: 600px) {
  .section { padding: 64px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

  .hero__form {
    flex-direction: column;
  }

  .loop {
    gap: 0;
  }
  .loop-step {
    min-width: 80px;
  }

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