:root {
  --bg: #050a12;
  --surface: #0a1420;
  --surface-2: #0f1e30;
  --fg: #f0f4f8;
  --fg-muted: #7a93aa;
  --accent: #00d4aa;
  --accent-dim: rgba(0, 212, 170, 0.12);
  --accent-glow: rgba(0, 212, 170, 0.2);
  --border: rgba(255, 255, 255, 0.07);
  --radius: 12px;
  --font-head: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Manrope', sans-serif;
}

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

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

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

/* ===== TOPBAR ===== */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  background: rgba(5, 10, 18, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.wordmark {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--fg);
}

/* ===== SECTIONS ===== */
section { padding: 0 48px; }

.section-eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

h2 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--fg);
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 40%, rgba(0, 212, 170, 0.07) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 30% 80%, rgba(0, 80, 140, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.hero-text h1 {
  font-family: var(--font-head);
  font-size: clamp(2.8rem, 5.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--fg);
  margin-bottom: 24px;
}

.lede {
  font-size: 1.15rem;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 48px;
}

/* Flow diagram */
.automation-flow {
  display: flex;
  align-items: center;
  gap: 0;
  width: fit-content;
}

.flow-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.node-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

.flow-node.active .node-dot {
  width: 18px;
  height: 18px;
  box-shadow: 0 0 20px rgba(0, 212, 170, 0.5);
}

.flow-node span {
  font-size: 0.72rem;
  color: var(--fg-muted);
  white-space: nowrap;
  font-weight: 500;
}

.flow-arrow {
  display: flex;
  align-items: center;
  height: 14px;
  margin: 0 4px;
  color: var(--accent);
}

.arrow-line {
  width: 36px;
  height: 1px;
  background: var(--accent);
  opacity: 0.4;
}

.arrow-head {
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 6px solid var(--accent);
  opacity: 0.4;
}

/* Hero art panel */
.hero-art { position: relative; }

.neural-net {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 20px;
}

.neural-net svg { width: 100%; height: auto; }

.stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
}

.stat-num {
  display: block;
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.03em;
}

.stat-label {
  display: block;
  font-size: 0.78rem;
  color: var(--fg-muted);
  margin-top: 2px;
  line-height: 1.4;
}

/* ===== PROBLEM ===== */
.problem { padding: 100px 48px; }

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

.problem blockquote {
  font-family: var(--font-head);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 600;
  line-height: 1.5;
  color: var(--fg);
  font-style: italic;
  margin-bottom: 20px;
}

.problem-sub {
  font-size: 1rem;
  color: var(--fg-muted);
  margin-bottom: 40px;
}

.divider-line {
  width: 60px;
  height: 2px;
  background: var(--accent);
  margin: 0 auto;
  border-radius: 2px;
}

/* ===== SERVICES ===== */
.services { padding: 100px 48px; }

.services-header {
  max-width: 1200px;
  margin: 0 auto 64px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color 0.2s, background 0.2s;
}

.service-card:hover {
  border-color: rgba(0, 212, 170, 0.3);
  background: var(--surface-2);
}

.service-icon {
  color: var(--accent);
  margin-bottom: 16px;
}

.service-card h3 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--fg);
}

.service-card p {
  font-size: 0.85rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* ===== HOW ===== */
.how {
  padding: 100px 48px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.how-inner { max-width: 1200px; margin: 0 auto; }

.how h2 { margin-bottom: 56px; }

.steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.step {
  flex: 1;
}

.step-num {
  font-family: var(--font-head);
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.3;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
}

.step-body h3 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--fg);
}

.step-body p {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.6;
  max-width: 280px;
}

.step-connector {
  width: 80px;
  height: 1px;
  background: linear-gradient(to right, var(--border), var(--accent), var(--border));
  margin-top: 36px;
  flex-shrink: 0;
}

/* ===== DIFFERENCE ===== */
.difference { padding: 100px 48px; }

.diff-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.diff-lead {
  font-size: 1.05rem;
  color: var(--fg-muted);
  margin: 24px 0 40px;
  line-height: 1.7;
}

.diff-pillars { display: flex; flex-direction: column; gap: 28px; }

.pillar {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.pillar-icon {
  width: 36px;
  height: 36px;
  background: var(--accent-dim);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.pillar strong { display: block; font-size: 0.95rem; font-weight: 600; margin-bottom: 4px; color: var(--fg); }
.pillar p { font-size: 0.85rem; color: var(--fg-muted); line-height: 1.5; }

/* quote card */
.quote-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  border-left: 3px solid var(--accent);
}

.quote-text {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.6;
  color: var(--fg);
  margin-bottom: 28px;
  font-style: italic;
}

.quote-meta { display: flex; align-items: center; gap: 12px; }

.quote-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 1px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--accent);
}

.quote-name { font-weight: 600; font-size: 0.9rem; color: var(--fg); }
.quote-context { font-size: 0.78rem; color: var(--fg-muted); }

/* ===== CLOSING ===== */
.closing { padding: 100px 48px 120px; }

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

.closing h2 {
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--fg) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.closing p {
  font-size: 1.1rem;
  color: var(--fg-muted);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.closing-meta span {
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  font-weight: 600;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-art { display: none; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .diff-inner { grid-template-columns: 1fr; gap: 48px; }
  .steps { flex-direction: column; gap: 24px; }
  .step-connector { width: 1px; height: 40px; background: linear-gradient(to bottom, var(--border), var(--accent), var(--border)); margin: 0 auto; }
}

/* ===== LEAD FORM ===== */
.lead-form-wrap {
  max-width: 560px;
  margin: 40px auto 0;
}

.lead-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { margin-bottom: 16px; }

.form-field label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--fg-muted);
  letter-spacing: 0.04em;
}

.form-field .optional { font-weight: 400; opacity: 0.6; }

.form-field input,
.form-field textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
  resize: none;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--accent);
}

.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--fg-muted); opacity: 0.5; }

.btn-lead {
  width: 100%;
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: 8px;
  padding: 14px 24px;
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
  transition: opacity 0.2s, transform 0.1s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-lead:hover { opacity: 0.9; }
.btn-lead:active { transform: scale(0.98); }

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(5,10,18,0.3);
  border-top-color: var(--bg);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.form-note {
  text-align: center;
  font-size: 0.75rem;
  color: var(--fg-muted);
  margin-top: 12px;
  opacity: 0.7;
}

.form-success {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
}

.success-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-dim);
  border: 1px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--accent);
  margin: 0 auto 16px;
}

.form-success p { font-size: 0.95rem; color: var(--fg-muted); line-height: 1.6; }

.form-error {
  background: rgba(255, 80, 80, 0.1);
  border: 1px solid rgba(255, 80, 80, 0.3);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.85rem;
  color: #ff6b6b;
  margin-top: 12px;
}

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}