:root {
  --bg: #0a0a0f;
  --bg-subtle: #12121a;
  --bg-card: #16161f;
  --fg: #e8e8ed;
  --fg-muted: #8888a0;
  --accent: #6c5ce7;
  --accent-glow: rgba(108, 92, 231, 0.3);
  --accent-bright: #a29bfe;
  --success: #00cec9;
  --border: rgba(255, 255, 255, 0.06);
  --radius: 12px;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 50% at 50% 40%, rgba(108, 92, 231, 0.12) 0%, transparent 70%),
    var(--bg);
}

.hero-inner { max-width: 720px; position: relative; z-index: 1; }

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 100px;
  border: 1px solid var(--accent);
  color: var(--accent-bright);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 32px;
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  margin-bottom: 28px;
  letter-spacing: -1.5px;
}

.hero h1 .accent {
  background: linear-gradient(135deg, var(--accent-bright), var(--success));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

/* Hero visual - neural nodes */
.hero-visual {
  margin-top: 64px;
  position: relative;
  width: 320px;
  height: 260px;
  margin-left: auto;
  margin-right: auto;
}

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

.brain-node .node-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--accent-bright);
  box-shadow: 0 0 24px var(--accent-glow);
}

.brain-node span {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.brain-center { left: 50%; top: 50%; transform: translate(-50%, -50%); }
.brain-center .node-icon {
  width: 68px;
  height: 68px;
  font-size: 26px;
  background: var(--accent);
  color: #fff;
  border-color: var(--accent-bright);
  box-shadow: 0 0 40px var(--accent-glow);
}

.brain-tl { left: 10%; top: 0; }
.brain-tr { right: 10%; top: 0; }
.brain-bl { left: 10%; bottom: 0; }
.brain-br { right: 10%; bottom: 0; }

.brain-connections {
  position: absolute;
  inset: 0;
}

.brain-connections::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200px;
  height: 200px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px dashed rgba(108, 92, 231, 0.2);
}

/* ===== PROBLEM ===== */
.problem {
  padding: 120px 24px;
  background: var(--bg-subtle);
}

.problem-inner {
  max-width: 880px;
  margin: 0 auto;
}

.problem h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  text-align: center;
  margin-bottom: 56px;
  letter-spacing: -0.5px;
}

.strike {
  text-decoration: line-through;
  color: var(--fg-muted);
  text-decoration-color: rgba(255, 100, 100, 0.5);
}

.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.problem-card {
  padding: 36px 32px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.problem-card.highlight {
  border-color: var(--accent);
  box-shadow: 0 0 30px var(--accent-glow);
}

.tool-logos {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--fg-muted);
  margin-bottom: 16px;
  letter-spacing: 0.3px;
}

.highlight .tool-logos {
  color: var(--accent-bright);
  font-size: 18px;
}

.problem-desc {
  color: var(--fg-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.highlight .problem-desc {
  color: var(--fg);
}

/* ===== AGENTS ===== */
.agents {
  padding: 120px 24px;
}

.agents-inner {
  max-width: 960px;
  margin: 0 auto;
}

.agents h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  text-align: center;
  margin-bottom: 64px;
  letter-spacing: -0.5px;
}

.agent-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.agent-card {
  padding: 40px 32px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  position: relative;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.agent-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}

.agent-number {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  color: rgba(108, 92, 231, 0.15);
  position: absolute;
  top: 16px;
  right: 24px;
  line-height: 1;
}

.agent-card h3 {
  font-size: 1.3rem;
  margin-bottom: 14px;
  color: var(--accent-bright);
}

.agent-card p {
  color: var(--fg-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ===== FLOW ===== */
.flow {
  padding: 120px 24px;
  background: var(--bg-subtle);
}

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

.flow h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 56px;
  letter-spacing: -0.5px;
}

.flow-steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
}

.flow-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-text {
  font-size: 0.88rem;
  color: var(--fg);
  white-space: nowrap;
}

.flow-arrow {
  color: var(--accent);
  font-size: 20px;
  font-weight: 700;
}

.flow-tagline {
  font-size: 1.05rem;
  color: var(--fg-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ===== CLOSING ===== */
.closing {
  padding: 120px 24px;
  text-align: center;
  background:
    radial-gradient(ellipse 50% 40% at 50% 60%, rgba(0, 206, 201, 0.08) 0%, transparent 70%),
    var(--bg);
}

.closing-inner {
  max-width: 640px;
  margin: 0 auto;
}

.closing h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 28px;
  letter-spacing: -0.5px;
}

.closing p {
  color: var(--fg-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.closing-bold {
  color: var(--fg) !important;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem !important;
}

/* ===== SIGNUP FORM ===== */
.signup-form {
  display: flex;
  gap: 12px;
  max-width: 440px;
  margin: 32px auto 0;
  justify-content: center;
}

.signup-form input[type="email"] {
  flex: 1;
  padding: 14px 18px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.signup-form input[type="email"]::placeholder {
  color: var(--fg-muted);
}

.signup-form input[type="email"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.signup-form button {
  padding: 14px 24px;
  border-radius: 8px;
  border: none;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, transform 0.1s;
}

.signup-form button:hover { background: var(--accent-bright); }
.signup-form button:active { transform: scale(0.97); }

.signup-note {
  font-size: 0.82rem !important;
  color: var(--fg-muted) !important;
  margin-top: 12px !important;
}

/* ===== FOOTER ===== */
.site-footer {
  padding: 48px 24px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--fg-muted);
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .problem-grid,
  .agent-grid {
    grid-template-columns: 1fr;
  }

  .hero { padding: 60px 20px 40px; min-height: auto; }
  .hero-visual { width: 260px; height: 220px; }
  .brain-center .node-icon { width: 56px; height: 56px; font-size: 22px; }
  .brain-node .node-icon { width: 44px; height: 44px; font-size: 17px; }

  .problem,
  .agents,
  .flow,
  .closing { padding: 80px 20px; }

  .flow-steps { flex-direction: column; gap: 8px; }
  .flow-arrow { transform: rotate(90deg); }
  .step-text { white-space: normal; }

  .agent-number { font-size: 36px; }
}

/* ===== HERO CTA ===== */
.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 36px;
}

.hero-cta-btn {
  display: inline-block;
  padding: 15px 32px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.2px;
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
  box-shadow: 0 0 28px var(--accent-glow);
}

.hero-cta-btn:hover {
  background: var(--accent-bright);
  box-shadow: 0 0 40px rgba(162, 155, 254, 0.4);
  transform: translateY(-1px);
}

.hero-cta-btn:active { transform: scale(0.98); }

.hero-cta-note {
  font-size: 0.82rem;
  color: var(--fg-muted);
}