/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0B0B0F;
  --surface: #141419;
  --surface-2: #1E1E26;
  --yellow: #F5E500;
  --yellow-dim: rgba(245, 229, 0, 0.12);
  --white: #F0F0F0;
  --gray-1: #8A8A9A;
  --gray-2: #5A5A6A;
  --border: rgba(255,255,255,0.06);
  --font-head: 'Syne', sans-serif;
  --font-mono: 'DM Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-head);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.1; }

/* ===== SECTION SHARED ===== */
.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--yellow);
  background: var(--yellow-dim);
  padding: 0.35em 0.8em;
  border-radius: 4px;
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.section-body {
  color: var(--gray-1);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 520px;
}

.section-title.light { color: var(--white); }
.section-tag.light { color: var(--yellow); background: var(--yellow-dim); }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 6rem 8vw 4rem;
  position: relative;
  overflow: hidden;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(245,229,0,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,229,0,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

.hero-content { position: relative; z-index: 2; }

.hero-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--yellow);
  background: var(--yellow-dim);
  border: 1px solid rgba(245,229,0,0.2);
  padding: 0.4em 0.9em;
  border-radius: 4px;
  margin-bottom: 2rem;
}

.hero-headline {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.highlight {
  color: var(--yellow);
  position: relative;
}

.hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--gray-1);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 3rem;
  font-family: var(--font-head);
  font-weight: 400;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.stat { display: flex; flex-direction: column; gap: 0.2rem; }

.stat-num {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--yellow);
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--gray-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  max-width: 120px;
  line-height: 1.4;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* HERO VISUAL */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 400px;
  z-index: 2;
}

.wave-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(245,229,0,0.15);
}

.wave-ring-1 { width: 300px; height: 300px; animation: pulse 4s ease-in-out infinite; }
.wave-ring-2 { width: 420px; height: 420px; animation: pulse 4s ease-in-out infinite 1s; }
.wave-ring-3 { width: 540px; height: 540px; animation: pulse 4s ease-in-out infinite 2s; }

@keyframes pulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.04); }
}

.agent-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.6em 1.2em;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gray-1);
  backdrop-filter: blur(8px);
}

.agent-dot {
  width: 8px;
  height: 8px;
  background: var(--yellow);
  border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ===== WHAT IT DOES ===== */
.what-it-does {
  padding: 6rem 8vw;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header { margin-bottom: 4rem; }

.roles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.role-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  transition: border-color 0.3s ease;
}

.role-card:hover { border-color: rgba(245,229,0,0.2); }

.role-icon {
  margin-bottom: 1.2rem;
  opacity: 0.9;
}

.role-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--white);
}

.role-card p {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--gray-1);
  line-height: 1.7;
}

/* ===== FEATURES ===== */
.features {
  padding: 6rem 8vw;
  background: var(--bg);
}

.features-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 6rem;
  align-items: start;
}

.feature-list { display: flex; flex-direction: column; gap: 0; }

.feature-item {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 1rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}

.feature-item:last-child { border-bottom: none; }

.feature-marker {
  width: 8px;
  height: 8px;
  background: var(--yellow);
  border-radius: 50%;
  margin-top: 0.5rem;
  flex-shrink: 0;
}

.feature-content h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--white);
}

.feature-content p {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--gray-1);
  line-height: 1.7;
}

/* ===== HOW IT WORKS ===== */
.how-it-works {
  padding: 6rem 8vw;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.how-it-works .section-title { margin-bottom: 4rem; }

.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.step {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem 2.5rem;
  max-width: 280px;
  text-align: left;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 500;
  color: var(--yellow);
  opacity: 0.5;
  margin-bottom: 0.8rem;
}

.step-body h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--white);
}

.step-body p {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gray-1);
  line-height: 1.6;
}

.step-connector {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, var(--yellow) 0%, transparent 100%);
  flex-shrink: 0;
}

/* ===== MANIFESTO ===== */
.manifesto {
  padding: 6rem 8vw;
  background: var(--bg);
}

.manifesto-inner { max-width: 860px; }

.manifesto-label { margin-bottom: 2rem; }

.manifesto-quote p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--gray-1);
  margin-bottom: 1.5rem;
  font-family: var(--font-head);
  font-weight: 400;
}

.manifesto-quote p:first-child {
  font-size: 1.3rem;
  color: var(--white);
  font-style: italic;
}

.manifesto-stats {
  display: flex;
  gap: 3rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.m-stat { display: flex; flex-direction: column; gap: 0.3rem; }

.m-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--yellow);
}

.m-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--gray-2);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ===== FOOTER ===== */
.footer {
  padding: 4rem 8vw 3rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.footer-brand { margin-bottom: 2rem; }

.footer-logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--yellow);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.footer-tagline {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--gray-2);
}

.footer-bottom { padding-top: 2rem; border-top: 1px solid var(--border); }

.footer-legal {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--gray-2);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 5rem 6vw 3rem; }
  .hero-visual { display: none; }
  .roles-grid { grid-template-columns: 1fr; }
  .features-inner { grid-template-columns: 1fr; gap: 3rem; }
  .steps { flex-direction: column; gap: 1.5rem; }
  .step-connector { width: 1px; height: 30px; background: linear-gradient(180deg, var(--yellow) 0%, transparent 100%); }
}

@media (max-width: 600px) {
  .hero { padding: 4rem 5vw 2rem; }
  .what-it-does, .features, .how-it-works, .manifesto, .footer { padding: 4rem 5vw; }
  .hero-stats { gap: 1rem; }
  .stat-divider { display: none; }
  .manifesto-stats { gap: 2rem; }
}