/* ===========================
   MERIDIAN — THEME CSS
   =========================== */

:root {
  --bg: #FAF8F5;
  --bg-alt: #F0EDE8;
  --fg: #1C2B1A;
  --fg-muted: #5A6B58;
  --primary: #7A9E7E;
  --primary-dark: #5C7D60;
  --accent: #D4A574;
  --accent-light: #E8C9A4;
  --sage-light: #EBF0EB;
  --border: rgba(122, 158, 126, 0.2);
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

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

/* ---- NAV ---- */
.site-nav {
  padding: 1.5rem 2rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 248, 245, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--fg);
  letter-spacing: -0.02em;
}

.nav-tagline {
  font-size: 0.8rem;
  color: var(--fg-muted);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding-left: 1rem;
  border-left: 1px solid var(--border);
}

/* ---- HERO ---- */
.hero {
  padding: 9rem 2rem 5rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 80%;
  background: radial-gradient(ellipse at center, rgba(122, 158, 126, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 1.25rem;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 1.5rem;
}

.hero-lede {
  font-size: 1.1rem;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 42ch;
}

/* Hero Visual */
.hero-visual {
  position: relative;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.visual-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(122, 158, 126, 0.2);
}

.ring-1 {
  width: 320px;
  height: 320px;
  animation: spin-slow 40s linear infinite;
}

.ring-2 {
  width: 220px;
  height: 220px;
  animation: spin-slow 28s linear infinite reverse;
}

.ring-3 {
  width: 130px;
  height: 130px;
  background: radial-gradient(circle, rgba(122, 158, 126, 0.08) 0%, transparent 70%);
  animation: pulse-soft 4s ease-in-out infinite;
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes pulse-soft {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.04); opacity: 0.7; }
}

.visual-node {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  z-index: 2;
}

.node-icon {
  width: 60px;
  height: 60px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(122, 158, 126, 0.12);
}

.node-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.node-status {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
}

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

.node-text {
  font-size: 0.75rem;
  color: var(--fg-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 500;
}

.agent-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.5rem 1rem 0.5rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--fg);
  box-shadow: 0 4px 16px rgba(28, 43, 26, 0.08);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.badge-dot.green { background: #7A9E7E; }
.badge-dot.sand { background: #D4A574; }
.badge-dot.sage { background: #9DBF9D; }

.badge-1 { top: 15%; right: 8%; }
.badge-2 { bottom: 25%; right: 0%; }
.badge-3 { top: 40%; left: 5%; }

/* Hero Metrics */
.hero-metrics {
  max-width: 1100px;
  margin: 4rem auto 0;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 2rem 2.5rem;
  background: var(--sage-light);
  border-radius: 16px;
  border: 1px solid var(--border);
}

.metric {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.metric-value {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--fg);
  letter-spacing: -0.03em;
}

.metric-label {
  font-size: 0.8rem;
  color: var(--fg-muted);
  letter-spacing: 0.02em;
}

.metric-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
  flex-shrink: 0;
}

/* ---- SECTION SHARED ---- */
.section-label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 1rem;
}

.section-headline {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 3rem;
  max-width: 18ch;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ---- AGENTS SECTION ---- */
.agents-section {
  padding: 7rem 2rem;
  background: var(--bg-alt);
  position: relative;
}

.agents-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border), transparent);
}

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

.agent-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.agent-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(28, 43, 26, 0.08);
}

.agent-icon {
  width: 48px;
  height: 48px;
  background: var(--sage-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.agent-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--fg);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

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

/* ---- MANIFESTO ---- */
.manifesto {
  padding: 8rem 2rem;
  background: var(--fg);
  position: relative;
  overflow: hidden;
}

.manifesto::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 70%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(122, 158, 126, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.manifesto-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.manifesto-mark {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.mark-line {
  flex: 1;
  height: 1px;
  background: rgba(122, 158, 126, 0.3);
}

.mark-text {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(250, 248, 245, 0.5);
  font-weight: 500;
}

.manifesto-statement {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  line-height: 1.4;
  color: var(--bg);
  font-style: normal;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}

.manifesto-body {
  font-size: 0.95rem;
  color: rgba(250, 248, 245, 0.65);
  line-height: 1.75;
  margin-bottom: 1rem;
}

/* ---- OUTCOMES ---- */
.outcomes {
  padding: 7rem 2rem;
  background: var(--sage-light);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.outcome {
  padding: 2.5rem 2rem;
  border-right: 1px solid var(--border);
}

.outcome:last-child {
  border-right: none;
}

.outcome-number {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--primary-dark);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 0.75rem;
}

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

/* ---- CLOSING ---- */
.closing {
  padding: 8rem 2rem;
  background: var(--bg);
}

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

.closing-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 1.5rem;
}

.closing-body {
  font-size: 1.05rem;
  color: var(--fg-muted);
  line-height: 1.75;
  max-width: 55ch;
  margin: 0 auto;
}

/* ---- FOOTER ---- */
.site-footer {
  padding: 2.5rem 2rem;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--fg);
}

.footer-tagline {
  font-size: 0.78rem;
  color: var(--fg-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding-left: 1.5rem;
  border-left: 1px solid var(--border);
}

.footer-copy {
  font-size: 0.78rem;
  color: rgba(90, 107, 88, 0.6);
  margin-left: auto;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-visual {
    height: 280px;
  }

  .ring-1 { width: 240px; height: 240px; }
  .ring-2 { width: 170px; height: 170px; }
  .ring-3 { width: 100px; height: 100px; }

  .agent-badge.badge-1 { top: 10%; right: 5%; }
  .agent-badge.badge-3 { left: 0; }

  .hero-metrics {
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  .metric-divider { display: none; }

  .agents-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .outcomes-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .outcome {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .outcome:nth-child(3),
  .outcome:nth-child(4) {
    border-bottom: none;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 7rem 1.5rem 3rem;
  }

  .hero-metrics {
    padding: 1.5rem;
  }

  .agents-grid {
    grid-template-columns: 1fr;
  }

  .outcomes-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .footer-tagline,
  .footer-copy {
    padding-left: 0;
    border-left: none;
    margin-left: 0;
  }
}