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

:root {
  --bg: #F5F0EB;
  --bg-card: #FFFFFF;
  --fg: #1C1C1E;
  --fg-muted: #6B6B6B;
  --accent: #C84B1C;
  --accent-light: #F0E8E2;
  --border: #E0D8D0;
  --font-display: 'Outfit', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }

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

/* === TEXTURE === */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C84B1C' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* === NAVBAR === */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 48px;
  background: rgba(245, 240, 235, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--fg);
  letter-spacing: -0.5px;
}

.nav-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--fg-muted);
  font-weight: 500;
}

.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color .15s;
}

.nav-link:hover { color: var(--fg); }

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2); }
  50% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.05); }
}

/* === HERO === */
.hero {
  position: relative;
  z-index: 1;
  padding: 80px 48px 72px;
  overflow: hidden;
}

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

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

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(42px, 5vw, 68px);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -2px;
  color: var(--fg);
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 18px;
  color: var(--fg-muted);
  line-height: 1.6;
  max-width: 440px;
}

/* === AGENT CARD === */
.hero-agent {
  display: flex;
  justify-content: center;
}

.agent-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.06), 0 1px 4px rgba(0,0,0,0.04);
}

.agent-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.agent-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.agent-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--fg);
}

.agent-role {
  font-size: 12px;
  color: var(--fg-muted);
}

.agent-status-badge {
  margin-left: auto;
  background: #dcfce7;
  color: #15803d;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
}

.agent-task {
  background: var(--accent-light);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 20px;
}

.task-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
  margin-bottom: 4px;
  font-weight: 600;
}

.task-name {
  font-size: 13px;
  color: var(--fg);
  font-weight: 500;
}

.agent-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}

.stat {
  text-align: center;
  padding: 12px 8px;
  background: var(--bg);
  border-radius: 10px;
}

.stat-val {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: var(--fg);
}

.stat-label {
  font-size: 10px;
  color: var(--fg-muted);
  margin-top: 2px;
}

.agent-log {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.log-line {
  font-size: 12px;
  color: var(--fg-muted);
  display: flex;
  gap: 10px;
}

.log-time {
  color: var(--accent);
  font-weight: 600;
  flex-shrink: 0;
  font-size: 11px;
}

.log-active {
  color: var(--fg);
  font-weight: 500;
}

/* === MANIFESTO === */
.manifesto {
  position: relative;
  z-index: 1;
  padding: 72px 48px;
  background: var(--fg);
  color: #fff;
}

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

.manifesto-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 28px;
  font-weight: 600;
}

.manifesto-quote {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  margin-bottom: 28px;
  border-left: 3px solid var(--accent);
  padding-left: 24px;
}

.manifesto-body {
  font-size: 16px;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  max-width: 580px;
}

/* === HOW IT WORKS === */
.howitworks {
  position: relative;
  z-index: 1;
  padding: 80px 48px;
}

.howitworks-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 20px;
  font-weight: 600;
}

.section-headline {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  color: var(--fg);
  margin-bottom: 56px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.step {
  padding: 32px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.step-num {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 900;
  color: var(--accent-light);
  margin-bottom: 16px;
  line-height: 1;
}

.step-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 12px;
}

.step-desc {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* === OUTCOMES === */
.outcomes {
  position: relative;
  z-index: 1;
  padding: 72px 48px;
  background: var(--accent-light);
}

.outcomes-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.outcome {
  padding: 36px 32px;
  background: var(--bg-card);
  border-radius: 16px;
  border: 1px solid rgba(200,75,28,0.15);
}

.outcome-metric {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 12px;
  line-height: 1;
}

.outcome-text {
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.5;
}

/* === PRINCIPLES === */
.principles {
  position: relative;
  z-index: 1;
  padding: 80px 48px;
}

.principles-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.principles-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 40px;
}

.principle {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 28px;
  align-items: start;
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
}

.principle:first-child { border-top: 1px solid var(--border); }

.principle-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.principle-body h4 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 10px;
}

.principle-body p {
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* === CLOSING === */
.closing {
  position: relative;
  z-index: 1;
  padding: 96px 48px;
  text-align: center;
}

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

.closing-kicker {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 20px;
}

.closing-headline {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 900;
  color: var(--fg);
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
}

.closing-body {
  font-size: 18px;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* === FOOTER === */
.footer {
  position: relative;
  z-index: 1;
  padding: 40px 48px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--fg);
}

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

.footer-copy {
  font-size: 12px;
  color: var(--fg-muted);
  margin-top: 4px;
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .navbar { padding: 16px 24px; }
  .hero { padding: 56px 24px 56px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-text { text-align: center; }
  .hero-sub { margin: 0 auto; }
  .hero-label { text-align: center; }
  .hero-agent { order: -1; }
  .agent-card { max-width: 360px; margin: 0 auto; }
  .manifesto { padding: 56px 24px; }
  .howitworks { padding: 56px 24px; }
  .steps-grid { grid-template-columns: 1fr; }
  .outcomes { padding: 56px 24px; }
  .outcomes-grid { grid-template-columns: 1fr; }
  .principles { padding: 56px 24px; }
  .principle { grid-template-columns: 48px 1fr; gap: 20px; }
  .closing { padding: 72px 24px; }
  .footer { padding: 32px 24px; }
}

@media (max-width: 480px) {
  .agent-stats { grid-template-columns: repeat(3, 1fr); }
  .agent-card { padding: 20px; }
  .step { padding: 24px 20px; }
  .outcome { padding: 28px 24px; }
  .principle { grid-template-columns: 40px 1fr; gap: 16px; }
  .principle-icon { width: 40px; height: 40px; font-size: 18px; }
}