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

:root {
  --bg: #080c14;
  --bg-alt: #0d1220;
  --fg: #e8e9ec;
  --fg-muted: #8a8f9a;
  --accent: #f5e900;
  --accent-dim: #b8b500;
  --border: rgba(255,255,255,0.08);
  --surface: rgba(255,255,255,0.04);
  --green: #4ade80;
  --amber: #fbbf24;
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

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

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
  height: 60px;
  display: flex;
  align-items: center;
  background: rgba(8,12,20,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.navbar-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}
.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.badge {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--accent);
  color: #000;
  padding: 0.2em 0.6em;
  border-radius: 3px;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px clamp(1.5rem, 5vw, 4rem) 60px;
  border-bottom: 1px solid var(--border);
}
.hero-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 5rem);
  align-items: center;
  margin-bottom: 4rem;
}
.hero-copy .headline {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 6.5rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  color: var(--fg);
}
.lede {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--fg-muted);
  max-width: 480px;
  line-height: 1.7;
}

/* Agent Feed */
.hero-feed {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.feed-header {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  padding: 0.8rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}
#feed-items { padding: 0.5rem 0; }
.feed-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.65rem 1.25rem;
  font-size: 0.78rem;
  color: var(--fg-muted);
  border-bottom: 1px solid rgba(255,255,255,0.03);
  line-height: 1.4;
  animation: fadeInUp 0.4s ease both;
}
.feed-item:last-child { border-bottom: none; }
.feed-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 4px;
}
.feed-dot.green { background: var(--green); }
.feed-dot.amber { background: var(--amber); }

/* Stats row */
.hero-stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.stat {
  background: var(--bg-alt);
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.stat-label {
  font-size: 0.75rem;
  color: var(--fg-muted);
  letter-spacing: 0.02em;
}

/* ===== SECTION SHARED ===== */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 3rem;
  line-height: 1.1;
}

/* ===== HOW IT WORKS ===== */
.how-it-works {
  padding: clamp(4rem, 8vw, 7rem) clamp(1.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--border);
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.step {
  background: var(--bg);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.step-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  opacity: 0.5;
}
.step-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--fg);
}
.step-body {
  font-size: 0.88rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* ===== FEATURES ===== */
.features {
  padding: clamp(4rem, 8vw, 7rem) clamp(1.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--border);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.feature-card {
  background: var(--bg-alt);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: background 0.2s ease;
}
.feature-card:hover { background: rgba(245,233,0,0.04); }
.feature-icon {
  color: var(--accent);
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(245,233,0,0.1);
  border-radius: 8px;
}
.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--fg);
}
.feature-card p {
  font-size: 0.85rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* ===== MANIFESTO ===== */
.manifesto {
  padding: clamp(5rem, 10vw, 9rem) clamp(1.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--border);
}
.manifesto-inner {
  max-width: 760px;
}
.manifesto-text {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--fg-muted);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-weight: 300;
}
.manifesto-callout {
  margin-top: 2.5rem;
  padding: 1.5rem 2rem;
  border-left: 3px solid var(--accent);
  background: var(--surface);
  border-radius: 0 8px 8px 0;
}
.callout-label {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg);
  line-height: 1.5;
}

/* ===== CLOSING ===== */
.closing {
  padding: clamp(5rem, 10vw, 9rem) clamp(1.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--border);
}
.closing-inner { max-width: 800px; }
.closing-headline {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--fg);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
.closing-sub {
  font-size: 1.1rem;
  color: var(--fg-muted);
}

/* ===== FOOTER ===== */
.footer {
  padding: 2rem clamp(1.5rem, 5vw, 4rem);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--fg);
}
.footer-copy {
  font-size: 0.8rem;
  color: var(--fg-muted);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.feed-item:nth-child(1) { animation-delay: 0s; }
.feed-item:nth-child(2) { animation-delay: 0.8s; }
.feed-item:nth-child(3) { animation-delay: 1.6s; }
.feed-item:nth-child(4) { animation-delay: 2.4s; }
.feed-item:nth-child(5) { animation-delay: 3.2s; }
.feed-item:nth-child(6) { animation-delay: 4.0s; }
.feed-item:nth-child(7) { animation-delay: 4.8s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .hero { padding-top: 80px; }
  .hero-layout { grid-template-columns: 1fr; }
  .hero-feed { display: none; }
  .hero-stat-row { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .closing-headline { font-size: 2rem; }
}
@media (max-width: 480px) {
  .hero-stat-row { grid-template-columns: 1fr 1fr; }
  .stat { padding: 1rem; }
}