/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

:root {
  --bg: #070D1A;
  --bg2: #0B1424;
  --fg: #E8EDF5;
  --fg-muted: #7A8499;
  --accent: #00A3FF;
  --accent-dim: rgba(0, 163, 255, 0.12);
  --amber: #FFB020;
  --amber-dim: rgba(255, 176, 32, 0.12);
  --green: #10D4A0;
  --red: #FF5C6A;
  --border: rgba(255,255,255,0.07);
  --card: rgba(255,255,255,0.04);
}

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Outfit', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.1;
}

a { color: inherit; text-decoration: none; }

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  background: rgba(7,13,26,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}
.nav-links {
  display: flex;
  gap: 32px;
}
.nav-links a {
  font-size: 0.875rem;
  color: var(--fg-muted);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--fg); }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 96px 24px 80px;
  position: relative;
  overflow: hidden;
}
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,163,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,163,255,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, black 30%, transparent 80%);
}
.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(0,163,255,0.2);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 28px;
  letter-spacing: 0.02em;
}
.badge-dot {
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.hero-text h1 {
  font-size: clamp(2.5rem, 4vw, 3.75rem);
  margin-bottom: 24px;
  letter-spacing: -0.03em;
  color: var(--fg);
}
.hero-text h1 em {
  font-style: normal;
  background: linear-gradient(135deg, #00A3FF, #10D4A0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-lede {
  font-size: 1.15rem;
  color: var(--fg-muted);
  max-width: 480px;
  margin-bottom: 40px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 10px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--accent);
  color: #070D1A;
}
.btn-primary:hover {
  background: #1ab8ff;
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(0,163,255,0.3);
}
.btn-ghost {
  background: transparent;
  color: var(--fg-muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover { color: var(--fg); border-color: rgba(255,255,255,0.15); }
.btn-outline {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border);
  width: 100%;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* ===== INBOX MOCK ===== */
.hero-visual {
  position: relative;
}
.inbox-mock {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04) inset;
}
.mock-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
}
.mock-dots {
  display: flex;
  gap: 6px;
}
.mock-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
}
.mock-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--fg-muted);
  flex: 1;
}
.mock-status {
  font-size: 0.75rem;
  color: var(--green);
  font-weight: 500;
  background: rgba(16,212,160,0.1);
  padding: 3px 10px;
  border-radius: 999px;
}
.mock-emails { padding: 8px 0; }
.mock-email {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s;
}
.mock-email:last-child { border-bottom: none; }
.mock-email:hover { background: rgba(255,255,255,0.03); }
.mock-email.urgent { border-left: 2px solid var(--red); }
.email-agent-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}
.email-agent-tag span { font-size: 0.7rem; font-weight: 600; color: var(--fg-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.agent-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.urgent-dot { background: var(--red); }
.green-dot { background: var(--green); }
.amber-dot { background: var(--amber); }
.email-subject {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 4px;
}
.email-preview {
  font-size: 0.78rem;
  color: var(--fg-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.email-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}
.email-time { font-size: 0.7rem; color: rgba(255,255,255,0.3); }
.email-action {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
}
.mock-email.urgent .email-action { background: rgba(255,92,106,0.15); color: var(--red); }
.mock-email:nth-child(2) .email-action { background: rgba(16,212,160,0.1); color: var(--green); }
.mock-email:nth-child(3) .email-action { background: var(--accent-dim); color: var(--accent); }
.mock-email:nth-child(4) .email-action { background: var(--amber-dim); color: var(--amber); }
.mock-agents {
  display: flex;
  gap: 8px;
  padding: 12px 18px;
  border-top: 1px solid var(--border);
}
.agent-chip {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.7rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--card);
  color: var(--fg-muted);
}
.chip-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.chip-green { background: var(--green); }
.chip-amber { background: var(--amber); }

/* ===== STATS ===== */
.stats {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 40px 24px;
}
.stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.stat { text-align: center; }
.stat-value {
  font-family: 'Outfit', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--fg);
  letter-spacing: -0.04em;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--fg-muted);
  max-width: 140px;
  margin-top: 4px;
  line-height: 1.4;
}
.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
}

/* ===== FEATURES ===== */
.features {
  padding: 100px 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 16px;
}
.section-header h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.section-sub {
  color: var(--fg-muted);
  font-size: 1.05rem;
  max-width: 500px;
  margin: 0 auto;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s;
}
.feature-card:hover { border-color: rgba(0,163,255,0.3); transform: translateY(-2px); }
.feature-card.large { grid-column: span 1; }
.feature-card.accent-card {
  background: linear-gradient(135deg, rgba(0,163,255,0.08), rgba(16,212,160,0.06));
  border-color: rgba(0,163,255,0.2);
}
.feature-icon {
  width: 48px; height: 48px;
  background: var(--accent-dim);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent);
}
.feature-icon.light { background: var(--amber-dim); color: var(--amber); }
.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.feature-card p {
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.65;
  margin-bottom: 16px;
}
.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.feature-tags span {
  font-size: 0.7rem;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  color: var(--fg-muted);
  border: 1px solid var(--border);
}

/* ===== HOW ===== */
.how {
  padding: 100px 24px;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.steps {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.step {
  display: grid;
  grid-template-columns: 80px 1fr 200px;
  gap: 32px;
  align-items: center;
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
}
.step:last-child { border-bottom: none; }
.step-num {
  font-family: 'Outfit', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(255,255,255,0.08);
  letter-spacing: -0.04em;
}
.step-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.step-content p {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.7;
}
.step-visual { display: flex; justify-content: flex-end; }
.connect-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.provider-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--fg);
}
.train-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.train-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid rgba(0,163,255,0.15);
}
.running-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: rgba(16,212,160,0.08);
  border: 1px solid rgba(16,212,160,0.2);
  border-radius: 12px;
  position: relative;
}
.pulse-ring {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(16,212,160,0.15);
  position: relative;
}
.pulse-ring::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 1.5s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(2); opacity: 0; }
}
.running-badge span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green);
}

/* ===== WORKFLOW ===== */
.workflow {
  padding: 100px 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.workflow-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.workflow-text .section-tag { text-align: left; }
.workflow-text h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.workflow-text p {
  color: var(--fg-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 32px;
}
.workflow-stats {
  display: flex;
  gap: 32px;
}
.wstat {}
.wstat-num {
  font-family: 'Outfit', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--fg);
  letter-spacing: -0.04em;
}
.wstat-label {
  display: block;
  font-size: 0.75rem;
  color: var(--fg-muted);
  margin-top: 4px;
}
.workflow-diagram {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  gap: 8px;
}
.wf-node {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.wf-node.incoming {
  background: rgba(0,163,255,0.08);
  border-color: rgba(0,163,255,0.2);
}
.wf-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--fg);
}
.wf-sub {
  font-size: 0.7rem;
  color: var(--fg-muted);
}
.wf-arrow {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* ===== CLOSING / PRICING ===== */
.closing {
  padding: 100px 24px;
  background: var(--bg2);
  border-top: 1px solid var(--border);
}
.closing-inner { max-width: 1200px; margin: 0 auto; text-align: center; }
.closing h2 {
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.closing > div > p {
  color: var(--fg-muted);
  font-size: 1rem;
  max-width: 520px;
  margin: 0 auto 56px;
}
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}
.price-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}
.price-card.featured {
  background: linear-gradient(135deg, rgba(0,163,255,0.06), rgba(16,212,160,0.04));
  border-color: rgba(0,163,255,0.25);
  box-shadow: 0 0 40px rgba(0,163,255,0.08);
}
.price-label {
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
}
.price-amount {
  font-family: 'Outfit', sans-serif;
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--fg);
}
.price-amount span {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--fg-muted);
}
.price-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.price-features li {
  font-size: 0.85rem;
  color: var(--fg-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.price-features li::before {
  content: '';
  width: 16px; height: 16px;
  background: var(--accent-dim);
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}
.price-card.featured .price-features li::before {
  background: rgba(0,163,255,0.25);
}

/* ===== FOOTER ===== */
.footer {
  padding: 48px 24px;
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
}
.footer-tagline { font-size: 0.8rem; color: var(--fg-muted); }
.footer-copy { font-size: 0.75rem; color: rgba(255,255,255,0.25); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero-content { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { order: -1; }
  .nav-links { display: none; }
  .stats-inner { flex-wrap: wrap; justify-content: center; gap: 24px; }
  .stat-divider { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .step { grid-template-columns: 60px 1fr; }
  .step-visual { display: none; }
  .workflow-inner { grid-template-columns: 1fr; }
  .pricing-cards { grid-template-columns: 1fr; }
}
