/* ============================================================
   IQ Served — Landing Page Styles
   ============================================================ */

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

:root {
  --c-bg:         #08090d;
  --c-surface:    #0f1117;
  --c-border:     rgba(255,255,255,0.07);
  --c-text:       #e8eaf0;
  --c-muted:      #6e7280;
  --c-accent:     #4f8ef7;
  --c-accent-2:   #9b6bf9;
  --c-green:      #22c55e;
  --c-orange:     #f97316;
  --c-teal:       #14b8a6;
  --c-red:        #ef4444;

  --grad-primary: linear-gradient(135deg, var(--c-accent), var(--c-accent-2));
  --grad-text:    linear-gradient(90deg, #4f8ef7, #9b6bf9, #e879f9);

  --radius-sm:    6px;
  --radius-md:    12px;
  --radius-lg:    20px;
  --radius-xl:    32px;

  --font-body:    'Inter', system-ui, sans-serif;
  --font-display: 'Space Grotesk', system-ui, sans-serif;

  --shadow-card:  0 1px 3px rgba(0,0,0,0.4), 0 8px 32px rgba(0,0,0,0.3);
  --shadow-glow:  0 0 80px rgba(79,142,247,0.15);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ---- UTILITIES ---- */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  border-radius: var(--radius-md);
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 4px 20px rgba(79,142,247,0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(79,142,247,0.5); }
.btn-ghost {
  background: transparent;
  color: var(--c-text);
  border: 1px solid var(--c-border);
}
.btn-ghost:hover { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.15); }
.btn-sm  { font-size: 13px; padding: 7px 16px; }
.btn-lg  { font-size: 16px; padding: 14px 28px; }
.btn-full { width: 100%; }

/* ---- NAV ---- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: background 0.3s, box-shadow 0.3s;
}
.nav.scrolled {
  background: rgba(8,9,13,0.88);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--c-border);
}
.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.logo { text-decoration: none; font-family: var(--font-display); font-size: 22px; font-weight: 700; }
.logo-iq { background: var(--grad-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.logo-served { color: var(--c-text); }
.nav-links { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.nav-links a { color: var(--c-muted); text-decoration: none; font-size: 14px; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--c-text); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 4px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--c-text); border-radius: 2px; transition: all 0.2s; }

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px 0 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.glow-1 { width: 600px; height: 400px; top: -100px; left: 50%; transform: translateX(-60%); background: rgba(79,142,247,0.12); }
.glow-2 { width: 400px; height: 400px; bottom: 0; right: -100px; background: rgba(155,107,249,0.1); }
.glow-3 { width: 800px; height: 600px; top: -200px; left: 50%; transform: translateX(-50%); background: rgba(79,142,247,0.1); }

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(79,142,247,0.1);
  border: 1px solid rgba(79,142,247,0.25);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--c-accent);
  margin-bottom: 28px;
}
.badge-dot {
  width: 6px; height: 6px;
  background: var(--c-accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--c-accent);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(42px, 7vw, 80px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 24px;
}
.hero-sub {
  font-size: 18px;
  color: var(--c-muted);
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.hero-proof {
  font-size: 13px;
  color: var(--c-muted);
}

/* Chat demo */
.hero-visual {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  margin: 60px auto 0;
  padding: 0 24px;
}
.chat-wrap {
  position: relative;
}
.chat-demo {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card), 0 0 60px rgba(79,142,247,0.08);
  transition: opacity 0.45s ease;
}

/* Agent transition splash */
.agent-splash {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card), 0 0 60px rgba(79,142,247,0.08);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.splash-icon {
  font-size: 52px;
  line-height: 1;
  margin-bottom: 14px;
  text-align: center;
}
.splash-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 6px;
  padding: 0 20px;
}
.splash-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--c-muted);
  text-align: center;
}
.chat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--c-border);
  background: rgba(255,255,255,0.02);
}
.chat-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--grad-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #fff;
  flex-shrink: 0;
}
.chat-name { font-size: 13px; font-weight: 600; flex: 1; }
.chat-status { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--c-green); }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--c-green); box-shadow: 0 0 6px var(--c-green); }

.chat-messages {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 425px;
  overflow-y: auto;
  scrollbar-width: none;
  align-content: start;
}
.chat-messages::-webkit-scrollbar { display: none; }
.msg { display: flex; flex-direction: column; gap: 3px; max-width: 85%; }
.msg-in { align-self: flex-start; }
.msg-out { align-self: flex-end; align-items: flex-end; }
.msg-bubble {
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.5;
}
.msg-in .msg-bubble {
  background: rgba(255,255,255,0.06);
  border-bottom-left-radius: 4px;
}
.msg-out .msg-bubble {
  background: linear-gradient(135deg, rgba(79,142,247,0.3), rgba(155,107,249,0.3));
  border: 1px solid rgba(79,142,247,0.2);
  border-bottom-right-radius: 4px;
}
.msg-time { font-size: 10px; color: var(--c-muted); padding: 0 4px; display: flex; align-items: center; gap: 4px; }
.msg-voice { font-size: 10px; opacity: 0.7; }
.msg-drive {
  align-self: center;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
  color: var(--c-muted);
  letter-spacing: 0.03em;
  padding: 2px 0;
  transition: color 0.4s ease;
}
.msg-drive::before,
.msg-drive::after {
  content: '';
  display: block;
  width: 36px;
  height: 1px;
  background: var(--c-border);
}
.msg-drive.arrived { color: var(--c-green); }

/* ---- CHAT INPUT BAR ---- */
.chat-input-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-top: 1px solid var(--c-border);
  background: rgba(255,255,255,0.01);
}
.chat-input-field {
  flex: 1;
  min-height: 36px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 18px;
  padding: 7px 14px;
  font-size: 13px !important;
  color: var(--c-text);
  display: flex;
  align-items: center;
  line-height: 1.4;
  word-break: break-word;
  transition: border-color 0.2s ease;
}
.chat-input-field:empty::before {
  content: 'Message…';
  color: var(--c-muted);
  pointer-events: none;
}
.chat-input-field.active { border-color: rgba(79,142,247,0.35); }
.input-cursor {
  display: inline-block;
  width: 2px;
  height: 13px;
  background: var(--c-accent);
  margin-left: 1px;
  vertical-align: middle;
  animation: cur-blink 1s step-end infinite;
}
@keyframes cur-blink { 50% { opacity: 0; } }
.input-wave {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.input-wave span {
  display: block;
  width: 3px;
  border-radius: 2px;
  background: var(--c-red);
  height: 4px;
  animation: iwave 0.65s ease-in-out infinite;
}
.input-wave span:nth-child(1) { animation-delay: 0.00s; }
.input-wave span:nth-child(2) { animation-delay: 0.10s; }
.input-wave span:nth-child(3) { animation-delay: 0.20s; }
.input-wave span:nth-child(4) { animation-delay: 0.10s; }
.input-wave span:nth-child(5) { animation-delay: 0.00s; }
@keyframes iwave { 0%,100% { height: 4px; } 50% { height: 15px; } }
.chat-input-btns { display: flex; align-items: center; gap: 3px; flex-shrink: 0; }
.chat-ibtn {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: none !important;
  background: transparent !important;
  color: var(--c-muted);
  cursor: default;
  display: flex !important; align-items: center !important; justify-content: center !important;
  transition: color 0.2s ease, background 0.2s ease, transform 0.15s ease;
  position: relative;
  flex-shrink: 0;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 1 !important;
  font-size: 0 !important;
}
.chat-ibtn--send {
  background: rgba(79,142,247,0.12);
  color: var(--c-accent);
}
.chat-ibtn--send.hot {
  background: var(--c-accent);
  color: #fff;
  transform: scale(1.08);
}
#btn-voice.hot { color: var(--c-red); }
#btn-voice.hot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid var(--c-red);
  animation: voice-pulse 0.9s ease-out infinite;
}
@keyframes voice-pulse {
  0%   { transform: scale(1);   opacity: 0.75; }
  100% { transform: scale(1.75); opacity: 0; }
}
#btn-photo.hot { color: var(--c-green); }
.msg-tag {
  display: inline-block;
  background: rgba(249,115,22,0.2);
  color: var(--c-orange);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 11px;
  margin-left: 4px;
}

/* Inline chat link */
.msg-link {
  display: inline-block;
  color: var(--c-accent);
  text-decoration: none;
  font-weight: 600;
  margin-top: 5px;
}
.msg-link:hover { text-decoration: underline; }

/* Photo attachment bubble */
.msg-photo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  opacity: 0.85;
}
.photo-icon { font-size: 20px; line-height: 1; }
.photo-name { color: var(--c-accent); font-weight: 500; }

/* Voice recording waveform */
.msg-recording {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  min-width: 90px;
}
.voice-wave {
  display: flex;
  align-items: center;
  gap: 3px;
}
.voice-wave span {
  display: block;
  width: 3px;
  border-radius: 2px;
  background: rgba(255,255,255,0.75);
  transform-origin: center;
  animation: vwave 0.7s ease-in-out infinite;
}
.voice-wave span:nth-child(1) { height: 6px;  animation-delay: 0.00s; }
.voice-wave span:nth-child(2) { height: 12px; animation-delay: 0.10s; }
.voice-wave span:nth-child(3) { height: 18px; animation-delay: 0.20s; }
.voice-wave span:nth-child(4) { height: 12px; animation-delay: 0.10s; }
.voice-wave span:nth-child(5) { height: 6px;  animation-delay: 0.00s; }
@keyframes vwave {
  0%, 100% { transform: scaleY(0.35); }
  50%       { transform: scaleY(1);    }
}

/* Uploading / analyzing status label on photo bubbles */
.upload-status {
  font-size: 10px;
  color: var(--c-muted);
  font-style: italic;
  animation: upulse 1s ease-in-out infinite;
}
@keyframes upulse {
  0%, 100% { opacity: 0.4; }
  50%       { opacity: 1;   }
}

/* Agent-side "processing" bubble */
.msg-processing {
  display: flex;
  align-items: center;
  gap: 9px;
  font-style: italic;
  color: rgba(255,255,255,0.45);
  font-size: 12px;
}
.proc-spinner {
  flex-shrink: 0;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 2px solid rgba(79,142,247,0.25);
  border-top-color: var(--c-accent);
  animation: spin 0.75s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Inline info / warning / edit / success cards inside agent bubbles */
.msg-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12.5px;
  line-height: 1.5;
  padding-left: 10px;
  border-left: 3px solid transparent;
}
.msg-card--info    { border-left-color: var(--c-accent); }
.msg-card--warning { border-left-color: var(--c-orange); }
.msg-card--edit    { border-left-color: #a78bfa; }
.msg-card--success { border-left-color: var(--c-green); }

.card-title {
  display: block;
  font-weight: 700;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  opacity: 0.6;
  margin-bottom: 3px;
}
.card-row { display: block; }
.card-quote {
  font-style: italic;
  opacity: 0.85;
  border-left: 2px solid rgba(255,255,255,0.15);
  padding-left: 8px;
  margin: 2px 0;
}
.card-ok   { color: var(--c-green); }
.card-warn { color: var(--c-orange); }
.card-accept {
  display: inline-block;
  background: rgba(34,197,94,0.18);
  color: var(--c-green);
  border: 1px solid rgba(34,197,94,0.3);
  border-radius: 4px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
  margin-top: 6px;
  cursor: default;
}

/* Typing indicator */
.typing .msg-bubble {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 12px 16px;
}
.dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c-muted);
  animation: bounce 1.4s infinite;
}
.dot:nth-child(2) { animation-delay: 0.2s; }
.dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes bounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-4px); }
}

/* ---- STATS ---- */
.stats {
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  background: var(--c-surface);
  padding: 40px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat { text-align: center; }
.stat-num {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 800;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label { font-size: 14px; color: var(--c-muted); }

/* ---- SECTION HEADER ---- */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
}
.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--c-accent);
  margin-bottom: 16px;
}
.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 16px;
}
.section-header p { font-size: 17px; color: var(--c-muted); line-height: 1.7; }

/* ---- FEATURES ---- */
.features { padding: 100px 0; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s;
}
.feature-card:hover {
  border-color: rgba(79,142,247,0.3);
  transform: translateY(-3px);
}
.feature-card--highlight {
  border-color: rgba(79,142,247,0.25);
  background: linear-gradient(135deg, rgba(79,142,247,0.05), rgba(155,107,249,0.05));
}
.feature-icon { font-size: 28px; margin-bottom: 14px; }
.feature-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; font-family: var(--font-display); }
.feature-card p { font-size: 14px; color: var(--c-muted); line-height: 1.7; }

/* ---- AGENTS ---- */
.agents {
  padding: 100px 0;
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
}
.agents-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.agent-card {
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  gap: 16px;
  transition: border-color 0.2s, transform 0.2s;
}
.agent-card:hover { border-color: rgba(255,255,255,0.12); transform: translateY(-2px); }
.agent-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.agent-icon--blue   { background: rgba(79,142,247,0.15);  }
.agent-icon--green  { background: rgba(34,197,94,0.15);   }
.agent-icon--purple { background: rgba(155,107,249,0.15); }
.agent-icon--orange { background: rgba(249,115,22,0.15);  }
.agent-icon--teal   { background: rgba(20,184,166,0.15);  }
.agent-icon--red    { background: rgba(239,68,68,0.15);   }
.agent-body h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; font-family: var(--font-display); }
.agent-body p  { font-size: 13px; color: var(--c-muted); line-height: 1.6; margin-bottom: 12px; }
.agent-features { list-style: none; display: flex; flex-direction: column; gap: 5px; }
.agent-features li {
  font-size: 12px;
  color: var(--c-muted);
  padding-left: 14px;
  position: relative;
}
.agent-features li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--c-accent);
}

/* ---- HOW IT WORKS ---- */
.how-it-works { padding: 100px 0; }
.steps { display: flex; align-items: flex-start; gap: 0; }
.step {
  flex: 1;
  text-align: center;
  padding: 0 24px;
}
.step-num {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 900;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 16px;
}
.step h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; font-family: var(--font-display); }
.step p  { font-size: 14px; color: var(--c-muted); line-height: 1.7; }
.step-connector {
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-border), transparent);
  margin-top: 32px;
  flex-shrink: 0;
}

/* ---- DEMO CTA ---- */
.demo-cta {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
}
.demo-bg { position: absolute; inset: 0; pointer-events: none; }
.demo-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.demo-left h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 16px;
}
.demo-left p { font-size: 16px; color: var(--c-muted); line-height: 1.7; margin-bottom: 28px; }
.demo-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.demo-list li { font-size: 15px; color: var(--c-muted); }
.demo-list li::first-letter { color: var(--c-accent); }

/* Form */
.demo-form {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-card);
}
.demo-form h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 24px;
}
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; color: var(--c-muted); }
.form-group input,
.form-group select {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 11px 14px;
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus { border-color: var(--c-accent); }
.form-group input::placeholder { color: var(--c-muted); }
.form-group select option { background: var(--c-surface); }
.form-note { font-size: 12px; color: var(--c-muted); text-align: center; margin-top: 12px; }

/* ---- FOOTER ---- */
.footer {
  border-top: 1px solid var(--c-border);
  padding-top: 60px;
  padding-bottom: 32px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  margin-bottom: 48px;
}
.footer-brand p { color: var(--c-muted); font-size: 14px; margin-top: 12px; max-width: 260px; }
.footer-links { display: flex; gap: 60px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--c-muted); margin-bottom: 4px; }
.footer-col a { color: var(--c-muted); text-decoration: none; font-size: 14px; transition: color 0.2s; }
.footer-col a:hover { color: var(--c-text); }
.footer-bottom { border-top: 1px solid var(--c-border); padding-top: 24px; }
.footer-bottom p { font-size: 13px; color: var(--c-muted); }

/* ---- SUCCESS STATE ---- */
.form-success {
  text-align: center;
  padding: 40px 20px;
}
.form-success .success-icon { font-size: 48px; margin-bottom: 16px; }
.form-success h3 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.form-success p { color: var(--c-muted); }

/* ---- ROUTING / TIMING SECTION ---- */
.routing-section {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
}

.routing-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.glow-r1 {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79,142,247,0.10) 0%, transparent 70%);
  top: -100px;
  right: -100px;
}

.glow-r2 {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(155,107,249,0.09) 0%, transparent 70%);
  bottom: -80px;
  left: 5%;
}

.routing-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.routing-left .section-tag { margin-bottom: 16px; }
.routing-left h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
}

.routing-lead {
  font-size: 17px;
  line-height: 1.7;
  color: var(--c-text);
  margin-bottom: 16px;
}

.routing-left p {
  color: var(--c-muted);
  line-height: 1.7;
  margin-bottom: 32px;
}

.routing-factors-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 20px;
}

.routing-factors {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.routing-factors li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 18px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  transition: border-color 0.2s, background 0.2s;
}

.routing-factors li:hover {
  border-color: rgba(79,142,247,0.3);
  background: rgba(79,142,247,0.04);
}

.factor-icon {
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.routing-factors li div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.routing-factors li strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--c-text);
}

.routing-factors li span {
  font-size: 13px;
  color: var(--c-muted);
  line-height: 1.5;
}

/* ---- FIELD TOOLS SECTION ---- */
.field-section {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--c-bg) 0%, rgba(15,17,23,0.6) 50%, var(--c-bg) 100%);
}

.field-intro {
  font-size: 17px;
  color: var(--c-muted);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 56px;
}

/* Wide card spans 2 columns on the first row */
.field-card--wide {
  grid-column: span 2;
}

.field-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.field-card:hover {
  border-color: rgba(79,142,247,0.3);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
}

.field-card--accent {
  grid-column: span 2;
  border-color: rgba(155,107,249,0.25);
  background: linear-gradient(135deg, rgba(155,107,249,0.06) 0%, rgba(79,142,247,0.04) 100%);
}

.field-card--accent:hover {
  border-color: rgba(155,107,249,0.5);
}

.field-card-icon {
  font-size: 28px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.field-card-body h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--c-text);
}

.field-card-body p {
  font-size: 14px;
  color: var(--c-muted);
  line-height: 1.65;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .agents-grid   { grid-template-columns: repeat(2, 1fr); }
  .routing-inner { grid-template-columns: 1fr; gap: 48px; }
  .field-grid    { grid-template-columns: repeat(2, 1fr); }
  .field-card--wide,
  .field-card--accent { grid-column: span 2; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: rgba(8,9,13,0.97);
    align-items: center;
    justify-content: center;
    gap: 32px;
    z-index: 99;
  }
  .nav-links.open a { font-size: 20px; }
  .nav-toggle { display: flex; position: relative; z-index: 101; }

  .hero { padding: 100px 0 60px; }
  .hero-headline { letter-spacing: -1px; }

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

  .features-grid { grid-template-columns: 1fr; }
  .agents-grid   { grid-template-columns: 1fr; }

  .routing-inner { gap: 40px; }
  .routing-left h2 { font-size: 30px; }
  .field-grid    { grid-template-columns: 1fr; }
  .field-card--wide,
  .field-card--accent { grid-column: span 1; }

  .steps { flex-direction: column; align-items: center; gap: 40px; }
  .step-connector { width: 1px; height: 40px; margin: 0; }

  .demo-inner { grid-template-columns: 1fr; gap: 48px; }

  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-links { flex-wrap: wrap; gap: 40px; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-actions { flex-direction: column; align-items: center; }
  .btn-lg { width: 100%; max-width: 320px; }
}
