/* ============================================================
   AgentI Design System
   Aesthetic: Premium Tech Startup — Clean Optimism
   Fonts: Plus Jakarta Sans (headings) / Outfit (body) / Space Mono (data)
   ============================================================ */

:root {
  --blue: #2979FF;
  --blue-light: #5393FF;
  --blue-dark: #1565C0;
  --violet: #7C4DFF;
  --violet-light: #A57AFF;
  --yellow: #FFD600;
  --yellow-dark: #E6C100;
  --green: #00E676;
  --orange: #FF6D00;
  --black: #1A1A2E;
  --black-soft: #2A2A3E;
  --white: #FAFBFC;
  --gray-light: #F0F2F5;
  --gray-mid: #8892A4;
  --gray-border: #E2E6EC;

  --font-head: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Outfit', sans-serif;
  --font-mono: 'Space Mono', monospace;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.10), 0 4px 12px rgba(0,0,0,0.05);
  --shadow-xl: 0 16px 64px rgba(0,0,0,0.12), 0 8px 24px rgba(0,0,0,0.06);
  --shadow-blue: 0 8px 32px rgba(41,121,255,0.25);
  --shadow-violet: 0 8px 32px rgba(124,77,255,0.25);

  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--blue-dark); }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; font-size: 1rem; }

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

/* ---- Typography ---- */
h1, h2, h3, h4, h5 { font-family: var(--font-head); font-weight: 700; line-height: 1.2; color: var(--black); }

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.75rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); letter-spacing: -0.01em; }
h4 { font-size: 0.875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gray-mid); }

p { line-height: 1.7; }

.text-center { text-align: center; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--yellow);
  color: var(--black);
  box-shadow: 0 2px 8px rgba(255,214,0,0.4);
}
.btn-primary:hover {
  background: var(--yellow-dark);
  color: var(--black);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,214,0,0.45);
}

.btn-ghost {
  background: rgba(255,255,255,0.15);
  color: var(--black);
  border: 2px solid rgba(0,0,0,0.12);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.25);
  color: var(--black);
  border-color: rgba(0,0,0,0.2);
}

.btn-outline {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
}
.btn-outline:hover {
  background: var(--blue);
  color: white;
  transform: translateY(-2px);
}

.btn-large { padding: 16px 32px; font-size: 1.05rem; border-radius: var(--radius-lg); }
.btn-block { width: 100%; justify-content: center; }

/* ---- Section shared ---- */
.section { padding: 96px 0; }

.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-header h2 { margin-bottom: 16px; }
.section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  background: rgba(41,121,255,0.08);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.section-intro {
  font-size: 1.1rem;
  color: #4A5568;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ---- Scroll Reveal ---- */
.reveal-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Navigation ---- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition), backdrop-filter var(--transition);
}
.nav.scrolled {
  background: rgba(250,251,252,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--gray-border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--black);
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  text-decoration: none;
}
.nav-link:hover { background: var(--gray-light); color: var(--black); }
.nav-link.active { color: var(--blue); }

.nav-link-cta {
  background: var(--blue);
  color: white;
  padding: 7px 18px;
}
.nav-link-cta:hover { background: var(--blue-dark); color: white; }
.nav-link-cta.active { background: var(--blue-dark); color: white; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  border-radius: var(--radius-sm);
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: all var(--transition);
  display: block;
}

/* ---- Hero Section ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--white);
  padding-top: 80px;
}

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

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(41,121,255,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(41,121,255,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
}
.hero-glow-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(41,121,255,0.4) 0%, transparent 70%);
  top: -200px; right: -100px;
}
.hero-glow-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(124,77,255,0.3) 0%, transparent 70%);
  bottom: 0; left: -50px;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 40px;
  padding-bottom: 80px;
}

/* Hero equation - the signature element */
.hero-equation {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(4rem, 12vw, 9rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.eq-ai {
  color: var(--blue);
  opacity: 0;
  transform: translateX(-30px);
  animation: slideInLeft 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
}

.eq-plus {
  color: var(--violet);
  opacity: 0;
  font-size: 0.7em;
  animation: pulsePlus 2.5s ease-in-out 1s infinite, fadeIn 0.5s ease 0.6s forwards;
  filter: drop-shadow(0 0 20px rgba(124,77,255,0.5));
}

.eq-i {
  color: var(--black);
  opacity: 0;
  transform: translateX(30px);
  animation: slideInRight 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.4s forwards;
}

@keyframes slideInLeft {
  to { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
  to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeIn {
  to { opacity: 1; }
}
@keyframes pulsePlus {
  0%, 100% { filter: drop-shadow(0 0 20px rgba(124,77,255,0.5)); }
  50% { filter: drop-shadow(0 0 40px rgba(124,77,255,0.9)); transform: scale(1.05); }
}

.hero-headline {
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  font-weight: 600;
  color: var(--black);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: #4A5568;
  margin-bottom: 36px;
  max-width: 540px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.hero-proof {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.proof-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.proof-num {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--blue);
  line-height: 1;
  display: inline;
}
.proof-unit {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--blue);
  line-height: 1;
}
.proof-label {
  font-size: 0.78rem;
  color: var(--gray-mid);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.proof-divider {
  width: 1px;
  height: 40px;
  background: var(--gray-border);
}

/* ---- Philosophy Section ---- */
.philosophy { background: white; }

.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.phil-card {
  background: var(--gray-light);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.phil-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.phil-card h3 {
  font-size: 1.15rem;
  margin: 16px 0 10px;
}
.phil-card p { font-size: 0.95rem; color: #4A5568; }

.phil-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}
.phil-icon-blue { background: rgba(41,121,255,0.1); color: var(--blue); }
.phil-icon-violet { background: rgba(124,77,255,0.1); color: var(--violet); }
.phil-icon-yellow { background: rgba(255,214,0,0.15); color: #B8960A; }

/* ---- How It Works ---- */
.how-it-works { background: var(--gray-light); }

.steps-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-bottom: 48px;
  position: relative;
}

.step {
  padding: 32px;
  position: relative;
}

.step-number {
  font-family: var(--font-mono);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--blue);
  opacity: 0.15;
  line-height: 1;
  margin-bottom: 12px;
  letter-spacing: -0.04em;
}

.step-content h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--black);
}
.step-content p { font-size: 0.95rem; color: #4A5568; margin-bottom: 12px; }
.step-price {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gray-mid);
  letter-spacing: 0.02em;
}

.step-connector {
  position: absolute;
  top: 62px;
  right: -1px;
  width: 2px;
  height: 60px;
  background: linear-gradient(to bottom, var(--blue), var(--violet));
  opacity: 0.3;
}

/* ---- Agents Section ---- */
.agents-section { background: white; }

.agents-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.agent-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--white);
  border: 1.5px solid var(--gray-border);
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  text-decoration: none;
  color: var(--black);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.agent-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent, var(--blue));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.agent-card:hover {
  border-color: var(--accent, var(--blue));
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  transform: translateY(-3px);
  color: var(--black);
}
.agent-card:hover::before { transform: scaleX(1); }

.agent-icon {
  width: 52px; height: 52px;
  background: var(--gray-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}

.agent-card h3 { font-size: 1.05rem; margin: 0; }
.agent-card p { font-size: 0.88rem; color: #4A5568; line-height: 1.5; }

.agent-result {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 0.73rem;
  font-weight: 700;
  color: var(--accent, var(--blue));
  letter-spacing: 0.02em;
  padding-top: 10px;
  border-top: 1px solid var(--gray-border);
}

/* ---- Signal Section ---- */
.signal-section { background: var(--black); padding: 96px 0; }

.signal-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.signal-quote-mark {
  font-family: var(--font-head);
  font-size: 6rem;
  line-height: 0.6;
  color: var(--blue);
  opacity: 0.4;
  margin-bottom: 24px;
  display: block;
}

.signal-quote {
  font-family: var(--font-head);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 500;
  color: white;
  line-height: 1.5;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  font-style: normal;
}

.signal-cite {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--gray-mid);
  letter-spacing: 0.05em;
  font-style: normal;
  display: block;
  margin-bottom: 40px;
}

.signal-context p {
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  max-width: 640px;
  margin: 0 auto 12px;
}

/* ---- CTA Section ---- */
.cta-section {
  background: linear-gradient(135deg, var(--blue) 0%, var(--violet) 100%);
  padding: 100px 0;
}

.cta-inner { text-align: center; max-width: 700px; margin: 0 auto; }
.cta-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 16px;
}
.cta-inner h2 { color: white; margin-bottom: 20px; }
.cta-sub { font-size: 1.05rem; color: rgba(255,255,255,0.8); margin-bottom: 36px; line-height: 1.7; }
.cta-fine { font-size: 0.8rem; color: rgba(255,255,255,0.5); margin-top: 16px; }

/* ---- Footer ---- */
.footer {
  background: var(--black);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-bottom: 12px;
}
.footer-logo span {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
  color: white;
}

.footer-tagline { font-family: var(--font-head); font-size: 1rem; color: white; font-weight: 600; margin-bottom: 6px; }
.footer-sub { font-size: 0.85rem; color: rgba(255,255,255,0.5); }

.footer-col h4 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col li a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-col li a:hover { color: white; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom p { font-size: 0.82rem; color: rgba(255,255,255,0.35); }
.footer-built { font-family: var(--font-mono); font-size: 0.75rem !important; }

/* ---- Page Hero (inner pages) ---- */
.page-hero {
  padding: 140px 0 80px;
  background: var(--white);
  border-bottom: 1px solid var(--gray-border);
}
.page-hero h1 { margin-bottom: 16px; }
.page-hero-sub {
  font-size: 1.15rem;
  color: #4A5568;
  max-width: 600px;
  line-height: 1.7;
}

/* ---- Services Page ---- */
.services-list { background: var(--gray-light); }

.service-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 48px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-md);
  position: relative;
}

.service-featured-badge {
  position: absolute;
  top: 28px; right: 28px;
  background: var(--yellow);
  color: var(--black);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
}

.service-card-featured {
  border: 2px solid var(--yellow);
}

.service-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.service-level {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue);
  background: rgba(41,121,255,0.08);
  padding: 4px 10px;
  border-radius: 100px;
}

.service-price {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--black);
}

.service-duration {
  font-size: 0.82rem;
  color: var(--gray-mid);
}

.service-card h2 { font-size: 1.8rem; margin-bottom: 8px; }
.service-tagline { font-size: 1rem; color: var(--gray-mid); margin-bottom: 20px; font-style: italic; }
.service-card > .service-content > p { color: #4A5568; margin-bottom: 28px; font-size: 1rem; }

.service-deliverables h4,
.service-agents-list h4 {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-mid);
  margin-bottom: 12px;
}

.service-deliverables ul {
  list-style: none;
  margin-bottom: 28px;
}
.service-deliverables ul li {
  padding: 6px 0 6px 24px;
  position: relative;
  font-size: 0.95rem;
  color: #2D3748;
  border-bottom: 1px solid var(--gray-border);
}
.service-deliverables ul li:last-child { border-bottom: none; }
.service-deliverables ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 13px;
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 50%;
}

.service-agents-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 28px;
}

.service-agent-item {
  background: var(--gray-light);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.service-agent-item strong { font-size: 0.88rem; color: var(--black); }
.service-agent-item span { font-size: 0.75rem; color: var(--gray-mid); }

/* Upsell flow */
.upsell-section { background: white; }
.upsell-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.upsell-step {
  text-align: center;
  padding: 20px;
}
.upsell-num {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--blue);
  background: rgba(41,121,255,0.08);
  border-radius: var(--radius-md);
  padding: 8px 20px;
  margin-bottom: 8px;
}
.upsell-step p { font-size: 0.85rem; color: var(--gray-mid); }
.upsell-arrow { font-size: 1.5rem; color: var(--gray-border); font-weight: 300; }

/* ---- Agents Detail Page ---- */
.agents-detail { background: var(--gray-light); }

.agent-detail-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 48px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-md);
  border-left: 4px solid var(--accent, var(--blue));
}

.agent-detail-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.agent-detail-icon {
  width: 64px; height: 64px;
  background: var(--gray-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.agent-detail-header h2 { font-size: 1.6rem; margin-bottom: 4px; }
.agent-detail-tagline { font-size: 0.9rem; color: var(--gray-mid); font-style: italic; }

.agent-detail-card > p { color: #4A5568; line-height: 1.7; margin-bottom: 28px; }

.agent-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 20px;
  padding: 24px;
  background: var(--gray-light);
  border-radius: var(--radius-lg);
}

.agent-detail-grid h4 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-mid);
  margin-bottom: 12px;
  font-weight: 700;
}

.agent-detail-grid ul { list-style: none; }
.agent-detail-grid li {
  padding: 5px 0 5px 20px;
  position: relative;
  font-size: 0.9rem;
  color: #2D3748;
}
.agent-detail-grid li::before {
  content: '';
  position: absolute;
  left: 0; top: 12px;
  width: 6px; height: 6px;
  background: var(--accent, var(--blue));
  border-radius: 50%;
}

.agent-detail-result {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--green);
  background: rgba(0,230,118,0.06);
  border: 1px solid rgba(0,230,118,0.2);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
}

/* ---- About Page ---- */
.about-story { background: white; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.about-content p { color: #4A5568; margin-bottom: 16px; font-size: 1rem; }
.about-tagline-large {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--blue);
  margin-top: 32px;
  margin-bottom: 0;
}

.about-equation-card {
  background: var(--gray-light);
  border-radius: var(--radius-xl);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: sticky;
  top: 100px;
}

.about-eq-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
}
.about-eq-label {
  font-family: var(--font-head);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--blue);
  min-width: 60px;
}
.about-eq-desc { font-size: 0.9rem; color: #4A5568; line-height: 1.5; }
.about-eq-divider {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--violet);
  text-align: center;
  padding: 8px 0;
}
.about-eq-equals { color: var(--green); }
.about-eq-result { background: rgba(0,230,118,0.06); border-radius: var(--radius-md); padding: 16px 20px; }

.about-why { background: var(--gray-light); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.why-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}
.why-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.why-card h3 { font-size: 1.05rem; margin-bottom: 12px; }
.why-card p { font-size: 0.92rem; color: #4A5568; line-height: 1.65; }

.about-brand { background: white; }
.name-meanings {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 700px;
  margin: 0 auto;
}
.name-item {
  display: flex;
  align-items: baseline;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--gray-border);
}
.name-item:last-child { border-bottom: none; }
.name-reading {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blue);
  min-width: 140px;
}
.name-item p { font-size: 0.95rem; color: #4A5568; margin: 0; }

/* ---- Contact Page ---- */
.contact-hero { padding: 120px 0 80px; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-intro h1 { margin-bottom: 16px; }
.contact-sub { font-size: 1.05rem; color: #4A5568; line-height: 1.7; margin-bottom: 36px; }

.contact-benefits { display: flex; flex-direction: column; gap: 12px; }
.contact-benefit {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--black);
}
.contact-benefit-icon {
  width: 28px; height: 28px;
  background: rgba(0,230,118,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-form-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 48px;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--gray-border);
}
.contact-form-card h3 { font-size: 1.3rem; margin-bottom: 28px; }

.contact-form { display: flex; flex-direction: column; gap: 20px; }

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--black);
}
.required { color: var(--blue); }

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 1.5px solid var(--gray-border);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  color: var(--black);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(41,121,255,0.12);
}

.form-group textarea { resize: vertical; min-height: 88px; }
.form-fine { font-size: 0.78rem; color: var(--gray-mid); text-align: center; margin-top: 4px; }

.contact-success { text-align: center; padding: 20px 0; }
.success-icon { margin-bottom: 16px; display: flex; justify-content: center; }
.contact-success h3 { font-size: 1.3rem; margin-bottom: 12px; }
.contact-success p { font-size: 0.95rem; color: #4A5568; line-height: 1.7; }

/* ---- Chatbot Widget ---- */
.chat-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.chat-toggle {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(41,121,255,0.4);
  transition: all var(--transition);
  border: none;
  position: relative;
}
.chat-toggle:hover { transform: scale(1.08); box-shadow: 0 8px 28px rgba(41,121,255,0.5); }

.chat-icon-close { display: none; }
.chat-widget.open .chat-icon-open { display: none; }
.chat-widget.open .chat-icon-close { display: block; }

.chat-badge {
  position: absolute;
  top: -4px; right: -4px;
  width: 20px; height: 20px;
  background: var(--yellow);
  color: var(--black);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
}

.chat-panel {
  width: 360px;
  max-height: 540px;
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--gray-border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px) scale(0.95);
  pointer-events: none;
  transition: all var(--transition-slow);
  transform-origin: bottom right;
}

.chat-widget.open .chat-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: linear-gradient(135deg, var(--blue), var(--violet));
}

.chat-header-info { display: flex; align-items: center; gap: 10px; }

.chat-avatar {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-header-name { font-family: var(--font-head); font-size: 0.9rem; font-weight: 600; color: white; }
.chat-header-status { font-size: 0.72rem; color: rgba(255,255,255,0.75); display: flex; align-items: center; gap: 4px; }

.status-dot {
  width: 7px; height: 7px;
  background: var(--green);
  border-radius: 50%;
  display: inline-block;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.chat-close-btn {
  width: 28px; height: 28px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  transition: background var(--transition);
}
.chat-close-btn:hover { background: rgba(255,255,255,0.25); }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-behavior: smooth;
}

.chat-msg {
  max-width: 88%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 0.88rem;
  line-height: 1.55;
}

.chat-msg-bot {
  background: var(--gray-light);
  color: var(--black);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.chat-msg-user {
  background: var(--blue);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chat-lead-form { padding: 12px 16px; border-top: 1px solid var(--gray-border); }

.chat-input-field {
  padding: 10px 14px;
  border: 1.5px solid var(--gray-border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--black);
  width: 100%;
  margin-bottom: 8px;
  outline: none;
  transition: border-color var(--transition);
}
.chat-input-field:focus { border-color: var(--blue); }

.chat-quick-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.chat-quick-btn {
  background: rgba(41,121,255,0.08);
  color: var(--blue);
  border: 1px solid rgba(41,121,255,0.2);
  border-radius: 100px;
  padding: 5px 12px;
  font-size: 0.78rem;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all var(--transition);
}
.chat-quick-btn:hover { background: var(--blue); color: white; }

.chat-lead-submit {
  width: 100%;
  padding: 10px;
  background: var(--blue);
  color: white;
  border-radius: var(--radius-md);
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
  border: none;
  margin-top: 8px;
}
.chat-lead-submit:hover { background: var(--blue-dark); }

.chat-input-area {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--gray-border);
}

#chatInput {
  flex: 1;
  padding: 10px 14px;
  border: 1.5px solid var(--gray-border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--black);
  outline: none;
  transition: border-color var(--transition);
}
#chatInput:focus { border-color: var(--blue); }

#chatSend {
  width: 38px; height: 38px;
  background: var(--blue);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  transition: background var(--transition);
  flex-shrink: 0;
}
#chatSend:hover { background: var(--blue-dark); }

/* Typing indicator */
.chat-typing {
  display: flex;
  gap: 5px;
  padding: 12px 14px;
  background: var(--gray-light);
  border-radius: 16px;
  border-bottom-left-radius: 4px;
  align-self: flex-start;
  width: fit-content;
}
.chat-typing span {
  width: 7px; height: 7px;
  background: var(--gray-mid);
  border-radius: 50%;
  animation: typing-dot 1.2s ease-in-out infinite;
}
.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing-dot {
  0%, 80%, 100% { transform: scale(0.7); opacity: 0.5; }
  40% { transform: scale(1); opacity: 1; }
}

/* ============================================================
   Responsive
   ============================================================ */

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

@media (max-width: 768px) {
  .section { padding: 64px 0; }

  .nav-links {
    display: none;
    position: fixed;
    top: 70px; left: 0; right: 0;
    background: rgba(250,251,252,0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid var(--gray-border);
    box-shadow: var(--shadow-md);
    gap: 4px;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .nav-link { padding: 12px 16px; }

  .philosophy-grid { grid-template-columns: 1fr; }
  .steps-track { grid-template-columns: 1fr; }
  .step-connector { display: none; }
  .agents-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .agent-detail-grid { grid-template-columns: 1fr; }
  .service-agents-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-proof { gap: 20px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .chat-panel { width: calc(100vw - 48px); }
  .upsell-flow { flex-direction: column; }
  .upsell-arrow { transform: rotate(90deg); }
  .service-card { padding: 28px 24px; }
  .contact-form-card { padding: 28px 24px; }
  .agent-detail-card { padding: 28px 24px; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-equation { font-size: clamp(3rem, 18vw, 6rem); }
  .service-agents-grid { grid-template-columns: 1fr; }
}

@media (min-width: 769px) {
  .about-equation-card { position: sticky; top: 100px; }
}
