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

:root {
  --bg: #060914;
  --bg-alt: #0a0d1e;
  --fg: #e8eaf0;
  --fg-muted: #6b7290;
  --accent: #39FF14;
  --accent-dim: rgba(57,255,20,0.12);
  --accent-glow: rgba(57,255,20,0.25);
  --border: rgba(255,255,255,0.07);
  --font-head: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --radius: 10px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* === TYPOGRAPHY === */
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.1; }
h1 { font-size: clamp(2.8rem, 5.5vw, 5.5rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(2rem, 3.5vw, 3.2rem); letter-spacing: -0.025em; }
h3 { font-size: clamp(1.1rem, 1.5vw, 1.35rem); }

p { color: var(--fg-muted); font-size: 0.975rem; line-height: 1.7; }

overline, .overline {
  font-family: var(--font-head);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  display: block;
}

em { font-style: italic; color: var(--accent); }

/* === HERO === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(57,255,20,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(57,255,20,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
}
.orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(57,255,20,0.08) 0%, transparent 70%);
  top: -100px; right: 5%;
}
.orb-2 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(80,80,255,0.06) 0%, transparent 70%);
  bottom: 0; left: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 6rem 2rem 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-text h1 { margin-bottom: 1.5rem; }
.hero-text .sub { font-size: 1.05rem; max-width: 460px; }

/* Agent Card Stack */
.agent-card-stack {
  position: relative;
  height: 420px;
}

.agent-card {
  position: absolute;
  width: 320px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  backdrop-filter: blur(12px);
}

.card-1 { top: 0; left: 0; }
.card-2 { top: 100px; left: 40px; }
.card-3 { top: 200px; left: 20px; }

.card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--fg-muted);
}
.status-dot.active { background: var(--accent); box-shadow: 0 0 6px var(--accent-glow); }

.agent-label {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--fg);
  flex: 1;
}

.card-badge {
  font-family: var(--font-head);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(57,255,20,0.2);
  border-radius: 4px;
  padding: 2px 6px;
}

.metric-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}
.metric-label {
  font-size: 0.72rem;
  color: var(--fg-muted);
  font-family: var(--font-head);
}
.metric-val {
  font-size: 0.8rem;
  color: var(--fg);
  font-family: var(--font-head);
  font-weight: 600;
}

.progress-bar {
  height: 3px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 0.75rem;
}
.progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--accent-glow);
  transition: width 0.3s ease;
}

/* === AGENTS SECTION === */
.agents-section {
  padding: 6rem 0;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.section-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-head);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 1.5rem;
}
.label-line {
  display: block;
  width: 32px;
  height: 1px;
  background: var(--accent);
}

.agents-section h2 { margin-bottom: 4rem; max-width: 500px; }

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

.agent-step { padding: 2rem; border: 1px solid var(--border); border-radius: var(--radius); background: rgba(255,255,255,0.015); }

.step-number {
  font-family: var(--font-head);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.step-content h3 { margin-bottom: 0.75rem; }
.step-content p { font-size: 0.9rem; }

.step-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.25rem;
}

.tag {
  font-family: var(--font-head);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--fg-muted);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3px 8px;
}

/* Flow line */
.flow-line {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.flow-node {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(57,255,20,0.2);
  border-radius: 6px;
  padding: 6px 16px;
}
.flow-arrow {
  color: var(--fg-muted);
  font-size: 1.2rem;
}

/* === SERVICES === */
.services-section {
  padding: 6rem 0;
  border-bottom: 1px solid var(--border);
}

.services-inner { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }

.services-header { margin-bottom: 4rem; }
.services-header h2 { margin-top: 0.75rem; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.service-card {
  background: var(--bg);
  padding: 2.5rem;
  transition: background 0.2s ease;
}
.service-card:hover { background: var(--bg-alt); }

.service-icon {
  color: var(--accent);
  margin-bottom: 1.5rem;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-dim);
  border: 1px solid rgba(57,255,20,0.15);
  border-radius: 10px;
}

.service-card h3 { margin-bottom: 0.75rem; color: var(--fg); }
.service-card p { font-size: 0.9rem; }
.service-detail {
  margin-top: 1.25rem;
  font-size: 0.78rem;
  color: var(--fg-muted);
  font-family: var(--font-head);
}
.service-detail strong { color: var(--fg); }

/* === OUTCOMES === */
.outcomes-section {
  padding: 5rem 0;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.outcomes-inner { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }

.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.outcome-card {
  background: var(--bg);
  padding: 2.5rem;
  text-align: center;
}

.outcome-number {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.75rem;
}

.outcome-label {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--fg);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.outcome-source {
  font-size: 0.72rem;
  color: var(--fg-muted);
}

/* === CLOSING === */
.closing-section {
  padding: 8rem 0;
  text-align: center;
}
.closing-inner { max-width: 900px; margin: 0 auto; padding: 0 2rem; }
.closing-line {
  width: 48px; height: 2px;
  background: var(--accent);
  margin: 0 auto 3rem;
}
.closing-statement {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3vw, 2.8rem);
  font-weight: 700;
  color: var(--fg);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}
.closing-sub {
  font-size: 1rem;
  max-width: 560px;
  margin: 0 auto;
  color: var(--fg-muted);
  line-height: 1.7;
}

/* === FOOTER === */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-logo {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--fg);
  display: block;
  margin-bottom: 0.25rem;
}
.footer-brand p { font-size: 0.8rem; }
.footer-right { font-size: 0.78rem; color: var(--fg-muted); }

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; padding-top: 4rem; }
  .hero-text .sub { max-width: 100%; }
  .agent-card-stack { display: none; }
  .agents-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .outcomes-grid { grid-template-columns: 1fr; }
  .flow-line { flex-wrap: wrap; }
}

/* === DEMO SECTION === */
.demo-section {
  padding: 7rem 0;
  border-bottom: 1px solid var(--border);
}

.demo-inner { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }

.demo-header { margin-bottom: 3rem; }
.demo-header h2 { margin-top: 0.75rem; margin-bottom: 1rem; }
.demo-sub { font-size: 1rem; max-width: 480px; }

.demo-toolbar {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  align-items: center;
}

.btn-score {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  background: var(--accent);
  color: #000;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 0 20px var(--accent-glow);
}

.btn-score:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 30px var(--accent-glow);
}

.btn-score:active { transform: translateY(0); }

.btn-score.scoring {
  opacity: 0.7;
  cursor: default;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: transparent;
  color: var(--fg);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.85rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-download:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Tier Summary Bar */
.tier-summary {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.tier-stat {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: 1px solid;
}

.tier-stat.hot   { background: rgba(255, 40, 40, 0.08);  border-color: rgba(255, 40, 40, 0.25);  }
.tier-stat.warm   { background: rgba(255, 165, 0, 0.08);  border-color: rgba(255, 165, 0, 0.25);  }
.tier-stat.cool   { background: rgba(56, 189, 248, 0.08); border-color: rgba(56, 189, 248, 0.25); }
.tier-stat.cold   { background: rgba(107, 114, 144, 0.1);  border-color: rgba(107, 114, 144, 0.2); }

.tier-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.tier-dot.hot   { background: #ff2828; box-shadow: 0 0 4px #ff2828; }
.tier-dot.warm   { background: #ffa500; box-shadow: 0 0 4px #ffa500; }
.tier-dot.cool   { background: #38b9f8; box-shadow: 0 0 4px #38b9f8; }
.tier-dot.cold   { background: var(--fg-muted); }

.tier-stat-label {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--fg-muted);
}

.tier-stat-count {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--fg);
}

/* Table */
.demo-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.02);
}

.demo-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-head);
  font-size: 0.82rem;
}

.demo-table thead th {
  text-align: left;
  padding: 1rem 1.25rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.demo-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.15s ease;
}

.demo-table tbody tr:last-child { border-bottom: none; }

.demo-table tbody tr:hover { background: rgba(255,255,255,0.03); }

.demo-table tbody tr.scored-hot   { background: rgba(255, 40, 40, 0.06); }
.demo-table tbody tr.scored-warm  { background: rgba(255, 165, 0, 0.04); }

.demo-table tbody td {
  padding: 0.85rem 1.25rem;
  color: var(--fg);
  white-space: nowrap;
}

.lead-name { font-weight: 600; color: var(--fg); }
.lead-company { color: var(--fg-muted); }
.lead-deal { font-weight: 600; }

.lead-tier { font-weight: 700; }

/* Tier badges */
.badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 4px;
  font-family: var(--font-head);
}

.badge.hot   { background: rgba(255,40,40,0.15);  color: #ff4444; border: 1px solid rgba(255,40,40,0.3);  }
.badge.warm  { background: rgba(255,165,0,0.12);  color: #ffaa00; border: 1px solid rgba(255,165,0,0.25); }
.badge.cool  { background: rgba(56,189,248,0.1);  color: #38b9f8; border: 1px solid rgba(56,189,248,0.2); }
.badge.cold  { background: rgba(107,114,144,0.15); color: #8b92a8; border: 1px solid rgba(107,114,144,0.2); }

/* Animate rows scoring */
@keyframes rowFlash {
  0%   { background: rgba(57,255,20,0.15); }
  100% { background: transparent; }
}

.demo-table tbody tr.animating { animation: rowFlash 0.4s ease-out; }
.demo-table tbody tr.scored-hot.animating { animation: rowFlashHot 0.4s ease-out; }

@keyframes rowFlashHot {
  0%   { background: rgba(255,40,40,0.2); }
  100% { background: rgba(255,40,40,0.06); }
}

.demo-table tbody tr.scored-warm.animating { animation: rowFlashWarm 0.4s ease-out; }

@keyframes rowFlashWarm {
  0%   { background: rgba(255,165,0,0.15); }
  100% { background: rgba(255,165,0,0.04); }
}

/* CTA */
.demo-cta {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}

.demo-cta p {
  font-size: 1.05rem;
  color: var(--fg);
}

.cta-primary {
  display: inline-block;
  padding: 0.9rem 2rem;
  background: var(--accent);
  color: #000;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.15s ease;
  box-shadow: 0 0 20px var(--accent-glow);
}

.cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 35px var(--accent-glow);
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; padding-top: 4rem; }
  .hero-text .sub { max-width: 100%; }
  .agent-card-stack { display: none; }
  .agents-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .outcomes-grid { grid-template-columns: 1fr; }
  .flow-line { flex-wrap: wrap; }
}

@media (max-width: 600px) {
  h1 { font-size: 2.5rem; }
  .hero-inner { padding: 3rem 1.5rem 2rem; }
  .section-inner, .services-inner, .outcomes-inner, .closing-inner, .footer-inner, .demo-inner { padding: 0 1.5rem; }
  .agents-section, .services-section, .outcomes-section, .closing-section, .demo-section { padding: 4rem 0; }
  .demo-table { font-size: 0.75rem; }
  .demo-table thead th, .demo-table tbody td { padding: 0.7rem 0.75rem; }
  .demo-toolbar { flex-direction: column; align-items: stretch; }
  .tier-summary { gap: 0.5rem; }
  .tier-stat { padding: 0.4rem 0.75rem; }
}
