:root {
  --bg:        #080b12;
  --surface:   #0e1420;
  --border:    rgba(255,255,255,0.07);
  --accent:    #4f8ef7;
  --accent2:   #a259ff;
  --gradient:  linear-gradient(135deg, #4f8ef7 0%, #a259ff 100%);
  --text:      #e8ecf4;
  --muted:     #7a859a;
  --radius:    14px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 7%;
  height: 64px;
  background: rgba(8,11,18,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--text);
}
.logo-mark {
  width: 30px; height: 30px;
  border-radius: 8px;
}
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  background: var(--gradient);
  color: #fff;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s;
}
.nav-cta:hover { opacity: 0.88; }

/* ─── SECTIONS ─── */
section { padding: 100px 7%; }

/* ─── HERO ─── */
.hero {
  padding-top: 160px;
  padding-bottom: 120px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 600px;
  background: radial-gradient(ellipse at center, rgba(79,142,247,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  top: -100px; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 400px;
  background: radial-gradient(ellipse at center, rgba(162,89,255,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 100px;
  border: 1px solid rgba(79,142,247,0.35);
  background: rgba(79,142,247,0.08);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 28px;
}
.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
h1 {
  font-size: clamp(2.6rem, 5.5vw, 4.4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
h1 .gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  max-width: 620px;
  margin: 0 auto 44px;
  font-size: 1.15rem;
  color: var(--muted);
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-primary {
  padding: 14px 32px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  background: var(--gradient);
  color: #fff;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }
.btn-secondary {
  padding: 14px 32px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}
.btn-secondary:hover {
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.04);
}

/* ─── VISUAL DIAGRAM ─── */
.diagram-section {
  padding-top: 0;
  padding-bottom: 100px;
}
.diagram-wrap {
  max-width: 920px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 48px;
  position: relative;
  overflow: hidden;
}
.diagram-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(79,142,247,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.diagram-title {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 36px;
}
.cycle {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}
.cycle-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 160px;
}
.cycle-icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
}
.cycle-step span {
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
  color: var(--muted);
}
.cycle-arrow {
  font-size: 1.4rem;
  color: var(--muted);
  opacity: 0.4;
  margin: 0 -8px;
  padding-bottom: 20px;
}

/* ─── SECTION HEADER ─── */
.section-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}
h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.7;
}

/* ─── PROBLEM ─── */
.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  margin-top: 60px;
}
.problem-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.problem-card {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s;
}
.problem-card:hover { border-color: rgba(255,255,255,0.14); }
.problem-num {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
}
.problem-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.problem-card p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
}
.stat-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.stat {
  border-bottom: 1px solid var(--border);
  padding-bottom: 28px;
}
.stat:last-child { border-bottom: none; padding-bottom: 0; }
.stat-num {
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 6px;
}
.stat p { font-size: 0.875rem; color: var(--muted); }

/* ─── SOLUTION ─── */
.solution {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.solution-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.925rem;
  color: var(--muted);
}
.check {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 6px;
  background: rgba(79,142,247,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  color: var(--accent);
  margin-top: 1px;
}
.feature-list strong { color: var(--text); }

.visual-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  position: relative;
  overflow: hidden;
}
.visual-card::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(162,89,255,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.card-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 20px;
}
.agent-flow {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.agent-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.82rem;
}
.agent-row.highlight {
  border-color: rgba(79,142,247,0.35);
  background: rgba(79,142,247,0.07);
}
.agent-icon { font-size: 1.1rem; }
.agent-name { flex: 1; font-weight: 600; }
.agent-status {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
}
.status-running {
  background: rgba(79,142,247,0.15);
  color: var(--accent);
}
.status-better {
  background: rgba(52,211,153,0.15);
  color: #34d399;
}
.status-testing {
  background: rgba(251,191,36,0.12);
  color: #fbbf24;
}
.delta {
  font-size: 0.78rem;
  font-weight: 700;
  color: #34d399;
}

/* ─── HOW IT WORKS ─── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 60px;
}
.step-card {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
  transition: border-color 0.2s, transform 0.2s;
}
.step-card:hover {
  border-color: rgba(79,142,247,0.3);
  transform: translateY(-3px);
}
.step-number {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}
.step-emoji { font-size: 1.8rem; margin-bottom: 14px; display: block; }
.step-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.step-card p {
  font-size: 0.845rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ─── CAPABILITIES ─── */
.caps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 60px;
}
.cap-card {
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s;
}
.cap-card:hover { border-color: rgba(255,255,255,0.14); }
.cap-card.featured {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.cap-icon-wrap {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
}
.icon-blue  { background: rgba(79,142,247,0.12); }
.icon-purple { background: rgba(162,89,255,0.12); }
.icon-teal  { background: rgba(52,211,153,0.12); }
.icon-amber { background: rgba(251,191,36,0.12); }
.cap-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.cap-card p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 18px;
}
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag {
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 500;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--muted);
}
.metrics-mini {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.metric-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
}
.metric-name { width: 90px; color: var(--muted); flex-shrink: 0; }
.bar-track {
  flex: 1;
  height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 100px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  border-radius: 100px;
  background: var(--gradient);
}
.metric-val { font-weight: 700; font-size: 0.8rem; width: 36px; text-align: right; }

/* ─── CTA ─── */
.cta-section {
  text-align: center;
  padding: 120px 7%;
}
.cta-box {
  max-width: 700px;
  margin: 0 auto;
  padding: 72px 60px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
}
.cta-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(79,142,247,0.1) 0%, transparent 65%);
  pointer-events: none;
}
.cta-box h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 18px;
}
.cta-box p {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 36px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.access-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 420px;
  margin: 0 auto;
}
.form-row {
  display: flex;
  gap: 10px;
}
.form-row input {
  flex: 1;
  padding: 12px 18px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}
.form-row input::placeholder { color: var(--muted); }
.form-row input:focus { border-color: rgba(79,142,247,0.5); }

.input-row {
  display: flex;
  gap: 10px;
}
.input-row input {
  flex: 1;
  padding: 12px 18px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}
.input-row input::placeholder { color: var(--muted); }
.input-row input:focus { border-color: rgba(79,142,247,0.5); }
.input-row button {
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  background: var(--gradient);
  color: #fff;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s;
}
.input-row button:hover { opacity: 0.88; }

/* ─── FOOTER ─── */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 7%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: gap;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
}
footer p {
  font-size: 0.82rem;
  color: var(--muted);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  nav { padding: 0 5%; }
  .nav-links { display: none; }
  section { padding: 80px 5%; }
  .problem-grid { grid-template-columns: 1fr; }
  .solution-inner { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .caps-grid { grid-template-columns: 1fr; }
  .cap-card.featured { grid-column: auto; grid-template-columns: 1fr; }
  .cta-box { padding: 48px 32px; }
  .input-row { flex-direction: column; }
  .cycle { gap: 8px; }
  .cycle-arrow { display: none; }
}
@media (max-width: 600px) {
  .steps-grid { grid-template-columns: 1fr; }
}
