:root {
  --bg: #F5F0E8;
  --bg-alt: #EDE7DC;
  --fg: #0D1B2A;
  --fg-muted: #5A6475;
  --accent: #F59E0B;
  --accent-dark: #D97706;
  --card-bg: #FFFFFF;
  --border: #D4CEB8;
}

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

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

/* NAV */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 48px;
  border-bottom: 1px solid var(--border);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'DM Serif Display', serif;
  font-size: 1.25rem;
  color: var(--fg);
}
.nav-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--fg-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s;
}
.nav-btn-primary {
  background: var(--accent);
  color: white;
}
.nav-btn-primary:hover { background: var(--accent-dark); }
.nav-btn-ghost {
  background: transparent;
  color: var(--fg-muted);
  border: 1px solid var(--border);
}
.nav-btn-ghost:hover { background: var(--bg-alt); }
.status-dot {
  width: 8px;
  height: 8px;
  background: #22C55E;
  border-radius: 50%;
  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 5px rgba(34,197,94,0.1); }
}

/* HERO */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 80px 48px 64px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}
.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-dark);
  margin-bottom: 20px;
}
.hero-headline {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.8rem, 5vw, 4rem);
  line-height: 1.08;
  color: var(--fg);
  margin-bottom: 24px;
}
.hero-headline em {
  font-style: italic;
  color: var(--accent-dark);
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--fg-muted);
  line-height: 1.65;
  max-width: 440px;
}

/* AGENT CARD */
.agent-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 24px rgba(13,27,42,0.08);
}
.agent-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--bg-alt);
}
.agent-name {
  font-weight: 600;
  font-size: 0.9rem;
}
.agent-role {
  font-size: 0.75rem;
  color: var(--fg-muted);
}
.agent-log {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.log-entry {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.8rem;
}
.log-time {
  color: var(--fg-muted);
  font-size: 0.72rem;
  min-width: 46px;
}
.log-text {
  color: var(--fg);
}
.log-entry.done .log-text { color: var(--fg-muted); }
.log-entry.active {
  background: rgba(245,158,11,0.08);
  border-radius: 6px;
  padding: 6px 8px;
  margin: -6px -8px;
}
.log-entry.active .log-text { font-weight: 500; }
.log-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
}

/* WORKBOOK */
.workbook {
  padding: 80px 48px;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.workbook-label, .results-label, .nightshift-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fg-muted);
  margin-bottom: 12px;
}
.workbook-headline, .nightshift-headline {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.2;
  margin-bottom: 48px;
  max-width: 560px;
}
.workflow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}
.workflow-item h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.1rem;
  margin: 12px 0 8px;
}
.workflow-item p {
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.6;
}
.workflow-icon {
  width: 40px;
  height: 40px;
  background: rgba(245,158,11,0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* NIGHTSHIFT */
.nightshift {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  padding: 80px 48px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}
.nightshift-body {
  font-size: 1rem;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 440px;
  margin-top: 20px;
}
.schedule-block {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.schedule-header {
  background: var(--fg);
  color: var(--bg);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 12px 16px;
}
.schedule-row {
  display: grid;
  grid-template-columns: 100px 1fr 80px;
  gap: 12px;
  padding: 12px 16px;
  font-size: 0.8rem;
  border-bottom: 1px solid var(--bg-alt);
  align-items: center;
}
.schedule-row:last-child { border-bottom: none; }
.schedule-row.muted { opacity: 0.5; }
.schedule-day { font-weight: 600; color: var(--fg); }
.schedule-task { color: var(--fg-muted); }
.schedule-status {
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: right;
}
.schedule-status.done { color: #22C55E; }
.schedule-status.active { color: var(--accent-dark); }
.schedule-status.scheduled { color: var(--fg-muted); }

/* RESULTS */
.results {
  padding: 80px 48px;
  background: var(--fg);
}
.results .results-label { color: rgba(245,240,232,0.5); }
.results-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(245,240,232,0.1);
  border: 1px solid rgba(245,240,232,0.1);
  border-radius: 12px;
  overflow: hidden;
  max-width: 1200px;
  margin: 24px auto 0;
}
.result-item {
  background: var(--fg);
  padding: 32px 28px;
}
.result-number {
  font-family: 'DM Serif Display', serif;
  font-size: 2.5rem;
  color: var(--accent);
  line-height: 1;
}
.result-unit {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(245,240,232,0.5);
  margin: 6px 0 12px;
}
.result-desc {
  font-size: 0.85rem;
  color: rgba(245,240,232,0.6);
  line-height: 1.5;
}

/* CLOSING */
.closing {
  padding: 80px 48px 100px;
  background: var(--bg);
  text-align: center;
}
.closing-inner {
  max-width: 640px;
  margin: 0 auto;
}
.closing-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-dark);
  margin-bottom: 16px;
}
.closing-headline {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  margin-bottom: 24px;
}
.closing-body {
  font-size: 1rem;
  color: var(--fg-muted);
  line-height: 1.7;
}

/* FOOTER */
.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px 24px;
  padding: 24px 48px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Serif Display', serif;
  font-size: 1rem;
}
.footer-tagline {
  font-size: 0.8rem;
  color: var(--fg-muted);
}
.footer-evolver {
  width: 100%;
  font-size: 0.75rem;
  color: var(--fg-muted);
  line-height: 1.5;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 48px 24px 40px; }
  .workflow-grid { grid-template-columns: repeat(2, 1fr); }
  .nightshift { grid-template-columns: 1fr; gap: 48px; }
  .results-grid { grid-template-columns: repeat(2, 1fr); }
  .nav { padding: 16px 24px; }
  .footer { flex-direction: column; gap: 12px; text-align: center; }
  .workbook, .nightshift, .closing { padding: 48px 24px; }
  .results { padding: 48px 24px; }
}
@media (max-width: 600px) {
  .workflow-grid { grid-template-columns: 1fr; }
  .results-grid { grid-template-columns: 1fr 1fr; }
}