/* === BASE === */
:root {
  --bg: #F7F4EE;
  --bg-alt: #EDE9E1;
  --fg: #0F2E1E;
  --fg-muted: #4A6741;
  --accent: #C8923A;
  --accent-light: #E8C07A;
  --ink: #1C1C1C;
  --ink-muted: #5A5A5A;
  --border: #D9D4C9;
  --white: #FFFFFF;
  --dash-bg: #0F2E1E;
  --dash-card: #163524;
  --dash-text: #E8F0EA;
  --dash-muted: #7A9E85;
}

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

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

h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  line-height: 1.15;
}

/* === NAV === */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 244, 238, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}
.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.08em;
  color: var(--fg);
}
.nav-tag {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
  padding: 3px 8px;
  border: 1px solid var(--border);
  border-radius: 100px;
}

/* === HERO === */
.hero {
  padding: 80px 24px 72px;
}
.hero-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 20px;
}
.hero-headline {
  font-size: clamp(36px, 4.5vw, 58px);
  color: var(--ink);
  margin-bottom: 24px;
}
.hero-sub {
  font-size: 17px;
  color: var(--ink-muted);
  max-width: 440px;
  line-height: 1.7;
}

/* === DASHBOARD WIDGET === */
.dash-window {
  background: var(--dash-bg);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(15, 46, 30, 0.22);
  font-family: 'DM Sans', sans-serif;
}
.dash-header {
  background: var(--dash-card);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.dash-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.dash-dot.red { background: #FF5F57; }
.dash-dot.yellow { background: #FFBD2E; }
.dash-dot.green { background: #28CA42; }
.dash-title {
  font-size: 12px;
  color: var(--dash-muted);
  margin-left: 8px;
  font-weight: 500;
}
.dash-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.dash-metric {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.dash-label {
  font-size: 11px;
  color: var(--dash-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}
.dash-value {
  font-size: 26px;
  font-weight: 600;
  color: var(--dash-text);
  line-height: 1.2;
}
.dash-delta {
  font-size: 11px;
  color: #4CAF82;
  font-weight: 500;
}
.dash-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 60px;
  padding: 0 4px;
}
.chart-bar {
  flex: 1;
  height: var(--h);
  background: #C8923A;
  border-radius: 3px 3px 0 0;
  opacity: 0.85;
}
.dash-tasks {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 4px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.task-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--dash-muted);
}
.task-priority {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.p1 { background: #FF5F57; }
.p2 { background: #FFBD2E; }
.p3 { background: #28CA42; }

/* === MANIFESTO === */
.manifesto {
  background: var(--fg);
  padding: 80px 24px;
}
.manifesto-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: center;
}
.quote-mark {
  font-family: 'Playfair Display', serif;
  font-size: 80px;
  line-height: 0.6;
  color: var(--accent);
  margin-bottom: 24px;
}
.manifesto-quote blockquote {
  font-family: 'Playfair Display', serif;
  font-size: clamp(20px, 2.5vw, 28px);
  color: var(--bg);
  font-style: italic;
  line-height: 1.4;
  margin-bottom: 20px;
}
.manifesto-quote cite {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--dash-muted);
  font-style: normal;
  letter-spacing: 0.05em;
}
.manifesto-aside p {
  font-size: 15px;
  color: #9BB89F;
  line-height: 1.8;
}

/* === STACK === */
.stack {
  padding: 80px 24px;
}
.stack-inner {
  max-width: 1160px;
  margin: 0 auto;
}
.section-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-headline {
  font-size: clamp(28px, 3.5vw, 42px);
  color: var(--ink);
  margin-bottom: 48px;
}
.stack-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.stack-card {
  background: var(--bg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.stack-icon {
  width: 44px; height: 44px;
  background: var(--bg-alt);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg);
  margin-bottom: 4px;
}
.stack-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  color: var(--ink);
}
.stack-card p {
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.6;
}

/* === PROTOCOL === */
.protocol {
  background: var(--bg-alt);
  padding: 80px 24px;
}
.protocol-inner {
  max-width: 1160px;
  margin: 0 auto;
}
.protocol-header {
  margin-bottom: 56px;
}
.protocol-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
}
.proto-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.proto-num {
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  opacity: 0.6;
}
.proto-content h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}
.proto-content p {
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.7;
}
.proto-arrow {
  font-size: 24px;
  color: var(--border);
  padding: 32px 24px 0;
  flex-shrink: 0;
}

/* === METRICS === */
.metrics {
  padding: 72px 24px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.metrics-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
}
.big-num {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 8px;
}
.big-num-label {
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.4;
}

/* === CLOSING === */
.closing {
  padding: 96px 24px;
  text-align: center;
}
.closing-inner {
  max-width: 640px;
  margin: 0 auto;
}
.closing h2 {
  font-size: clamp(28px, 3.5vw, 42px);
  color: var(--ink);
  margin-bottom: 20px;
}
.closing p {
  font-size: 16px;
  color: var(--ink-muted);
  line-height: 1.8;
  margin-bottom: 32px;
}
.closing-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: var(--fg);
  color: var(--bg);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
}
.badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #28CA42;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* === FOOTER === */
.footer {
  background: var(--fg);
  padding: 40px 24px;
}
.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--bg);
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 6px;
}
.footer-brand p {
  font-size: 13px;
  color: #5A7A5E;
}
.footer-meta p {
  font-size: 12px;
  color: #4A6741;
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .manifesto-inner { grid-template-columns: 1fr; gap: 32px; }
  .stack-grid { grid-template-columns: 1fr 1fr; }
  .metrics-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .protocol-steps { flex-direction: column; gap: 32px; }
  .proto-arrow { display: none; }
}
@media (max-width: 600px) {
  .hero { padding: 48px 20px 40px; }
  .stack { padding: 48px 20px; }
  .manifesto { padding: 48px 20px; }
  .protocol { padding: 48px 20px; }
  .metrics { padding: 40px 20px; }
  .closing { padding: 64px 20px; }
  .stack-grid { grid-template-columns: 1fr; }
  .metrics-inner { grid-template-columns: 1fr 1fr; }
  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
}