:root {
  --bg: #0a0a1a;
  --bg-2: #0e0e20;
  --bg-3: #121228;
  --surface: #1a1a2e;
  --surface-2: #22223a;
  --border: rgba(255,255,255,0.07);
  --text: #E8E8F2;
  --text-muted: #8888a8;
  --accent: #FF6B35;
  --accent-2: #FF8C5A;
  --teal: #00D4AA;
  --green: #22c55e;
}

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

html { scroll-behavior: smooth; }

body {
  background: #0a0a1a;
  color: var(--text);
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* NAV */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 2rem;
  border-bottom: 1px solid var(--border);
  background: rgba(12,12,20,0.85);
  backdrop-filter: blur(16px);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
}
.nav-links {
  display: flex;
  gap: 2rem;
}
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

/* HERO */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 64px;
  overflow: hidden;
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,107,53,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,107,53,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 40%, transparent 100%);
}
.hero-inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero-content { max-width: 520px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,107,53,0.12);
  border: 1px solid rgba(255,107,53,0.25);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 0.8rem;
  color: var(--accent-2);
  font-weight: 500;
  margin-bottom: 1.5rem;
}
.badge-dot {
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}
.hero-headline {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 1.2rem;
}
.hero-headline em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-lede {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 460px;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.btn-primary {
  background: var(--accent);
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s;
  display: inline-block;
}
.btn-primary:hover {
  background: var(--accent-2);
  transform: translateY(-1px);
}
.btn-ghost {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.btn-ghost:hover { color: var(--text); }
.hero-trust {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.dot { color: var(--accent); opacity: 0.5; }

/* AGENT CONSOLE */
.hero-visual { display: flex; justify-content: flex-end; }
.agent-console {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 0 60px rgba(255,107,53,0.08), 0 24px 48px rgba(0,0,0,0.4);
  overflow: hidden;
}
.console-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
}
.console-dots { display: flex; gap: 6px; }
.console-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--surface-2);
}
.console-dots span:nth-child(1) { background: #ff5f57; }
.console-dots span:nth-child(2) { background: #ffbd2e; }
.console-dots span:nth-child(3) { background: #28ca41; }
.console-title {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: auto;
}
.console-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.agent-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--bg-2);
  border: 1px solid transparent;
}
.agent-row.active { border-color: rgba(255,107,53,0.25); background: rgba(255,107,53,0.06); }
.agent-avatar {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  flex-shrink: 0;
}
.agent-avatar.sdr { background: rgba(255,107,53,0.2); color: var(--accent); }
.agent-avatar.wa { background: rgba(37,211,102,0.15); color: #25D366; }
.agent-avatar.crm { background: rgba(99,102,241,0.15); color: #818cf8; }
.agent-avatar.lp { background: rgba(0,212,170,0.15); color: var(--teal); }
.agent-info { flex: 1; }
.agent-name { font-size: 0.8rem; font-weight: 600; display: block; color: var(--text); }
.agent-status { font-size: 0.7rem; color: var(--text-muted); font-family: 'IBM Plex Mono', monospace; }
.agent-pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 1.5s ease-in-out infinite;
}
.agent-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--surface-2); }
.conversation-block {
  background: var(--bg-3);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
  border: 1px solid var(--border);
}
.msg {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  line-height: 1.5;
}
.msg.business { background: var(--surface); color: var(--text); align-self: flex-start; max-width: 90%; }
.msg.flownex {
  background: rgba(255,107,53,0.12);
  color: var(--accent-2);
  align-self: flex-end;
  max-width: 90%;
  border: 1px solid rgba(255,107,53,0.15);
}
.deal-created {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--green);
  background: rgba(34,197,94,0.08);
  border: 1px solid rgba(34,197,94,0.2);
  border-radius: 6px;
  padding: 6px 10px;
  margin-top: 4px;
  font-weight: 500;
}

/* STATS */
.stats {
  padding: 4rem 2rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
}
.stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat-card { padding: 1.5rem 2rem; text-align: center; }
.stat-number {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--accent);
  display: block;
  line-height: 1;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}
.stat-label { font-size: 0.85rem; color: var(--text-muted); font-weight: 500; }
.stat-divider { width: 1px; background: var(--border); align-self: stretch; margin: 1rem 0; }

/* SECTION SHARED */
.section-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.section-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 1rem;
}
.section-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 3rem;
}

/* AGENTS */
.agents { padding: 6rem 2rem; }
.agents-inner { max-width: 1200px; margin: 0 auto; }
.agent-network {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  align-items: center;
}
.an-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.an-node {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  width: 180px;
  text-align: center;
  position: relative;
}
.an-node.inbound { border-color: rgba(255,107,53,0.3); }
.an-node.outbound { border-color: rgba(0,212,170,0.3); }
.an-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(255,107,53,0.1);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
}
.an-icon.sdr-icon { background: rgba(255,107,53,0.1); color: var(--accent); }
.an-icon.c-icon { background: rgba(0,212,170,0.1); color: var(--teal); }
.an-name {
  font-family: 'Syne', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  display: block;
  margin-bottom: 4px;
}
.an-desc { font-size: 0.72rem; color: var(--text-muted); }
.an-arrow { padding: 20px 8px; display: flex; justify-content: center; }
.an-mid { display: flex; align-items: center; justify-content: center; padding: 0 16px; }

/* WORKFLOW */
.workflow { padding: 6rem 2rem; background: var(--bg-2); }
.workflow-inner { max-width: 1000px; margin: 0 auto; }
.workflow-steps { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 0; }
.wf-step { flex: 1; min-width: 160px; padding: 1.5rem; }
.wf-num {
  font-family: 'Syne', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: rgba(255,107,53,0.15);
  line-height: 1;
  margin-bottom: 1rem;
}
.wf-step h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.6rem;
}
.wf-step p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; }
.wf-connector {
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, rgba(255,107,53,0.4), rgba(255,107,53,0.1));
  margin-top: 3.5rem;
  flex-shrink: 0;
}

/* INTEGRATIONS */
.integrations { padding: 6rem 2rem; }
.integrations-inner { max-width: 1200px; margin: 0 auto; text-align: center; }
.int-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 2rem;
}
.int-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: all 0.2s;
}
.int-item:hover { border-color: rgba(255,107,53,0.2); transform: translateY(-2px); }
.int-logo {
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.int-item span { font-size: 0.8rem; color: var(--text-muted); font-weight: 500; }

/* PRICING */
.pricing { padding: 6rem 2rem; background: var(--bg-2); }
.pricing-inner { max-width: 1200px; margin: 0 auto; text-align: center; }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 2rem;
  text-align: left;
}
.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  position: relative;
}
.price-card.featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(255,107,53,0.08) 0%, var(--surface) 60%);
}
.pc-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: white;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 100px;
}
.pc-tier {
  font-family: 'Syne', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
  display: block;
  margin-bottom: 8px;
}
.pc-price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 8px; }
.pc-amount {
  font-family: 'Syne', sans-serif;
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--text);
}
.pc-period { font-size: 0.9rem; color: var(--text-muted); }
.pc-desc { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 20px; }
.pc-features { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.pc-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text);
}
.pc-features li svg { flex-shrink: 0; margin-top: 2px; }

/* CLOSING */
.closing {
  padding: 8rem 2rem;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.closing-inner { position: relative; max-width: 700px; margin: 0 auto; }
.closing-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse, rgba(255,107,53,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.closing-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 1.2rem;
}
.closing-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2.5rem;
}
.closing-cta { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.btn-primary-large {
  background: var(--accent);
  color: white;
  padding: 16px 36px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  transition: all 0.2s;
  display: inline-block;
}
.btn-primary-large:hover { background: var(--accent-2); transform: translateY(-2px); }
.closing-note { font-size: 0.82rem; color: var(--text-muted); }

/* FOOTER */
.footer {
  padding: 4rem 2rem 2rem;
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}
.footer-brand { max-width: 280px; }
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 1rem;
}
.footer-brand p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }
.footer-links { display: flex; gap: 4rem; }
.fl-col { display: flex; flex-direction: column; gap: 10px; }
.fl-head {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.fl-col a {
  font-size: 0.88rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.fl-col a:hover { color: var(--text); }
.footer-bottom {
  max-width: 1200px;
  margin: 1.5rem auto 0;
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; padding: 4rem 2rem 3rem; }
  .hero-visual { justify-content: flex-start; }
  .agent-console { max-width: 100%; }
  .hero-content { max-width: 100%; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat-divider { display: none; }
  .agent-network { grid-template-columns: 1fr; gap: 16px; }
  .an-mid { display: none; }
  .an-col { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 12px; }
  .an-arrow { display: none; }
  .an-node { width: 160px; }
  .workflow-steps { flex-direction: column; }
  .wf-connector { width: 2px; height: 20px; margin: 0; }
  .int-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 2rem auto 0; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-links { flex-direction: row; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .nav-links { display: none; }
}
@media (max-width: 480px) {
  .stats-inner { grid-template-columns: 1fr 1fr; }
  .stat-card { padding: 1rem; }
  .stat-number { font-size: 1.8rem; }
  .hero-headline { font-size: 2rem; }
}