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

:root {
  --bg: #faf7f2;
  --bg-dark: #1a2e1a;
  --fg: #1c1c1c;
  --fg-light: #5c5c5c;
  --fg-muted: #8a8a8a;
  --accent: #e8a838;
  --accent-dark: #c4891a;
  --green: #3a7d44;
  --green-light: #4d9960;
  --amber: #d4920a;
  --surface: #ffffff;
  --border: #e8e2d9;
  --border-dark: #2d4a2d;

  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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 {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--fg);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.nav-tagline {
  font-size: 0.85rem;
  color: var(--fg-muted);
  font-weight: 400;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  overflow: hidden;
  padding: var(--space-2xl) 0 var(--space-xl);
  background: var(--bg);
}

.hero-bg-texture {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 60% 40%, rgba(58, 125, 68, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 10% 80%, rgba(232, 168, 56, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.hero-label {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  background: rgba(58, 125, 68, 0.1);
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 4.5vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 1.5rem;
}

.hero-lede {
  font-size: 1.05rem;
  color: var(--fg-light);
  line-height: 1.7;
  max-width: 480px;
}

/* ===== DASHBOARD MOCK ===== */
.hero-visual {
  position: relative;
}

.dashboard-mock {
  background: #1a2e1a;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(26, 46, 26, 0.25), 0 8px 24px rgba(0,0,0,0.12);
  border: 1px solid #2d4a2d;
  transform: perspective(1000px) rotateY(-3deg) rotateX(2deg);
  transition: transform 0.4s ease;
}

.dashboard-mock:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.mock-bar {
  background: #243524;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border-bottom: 1px solid #2d4a2d;
}

.mock-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3a5a3a;
}

.mock-dot:first-child { background: #e85454; }
.mock-dot:nth-child(2) { background: #e8a838; }
.mock-dot:nth-child(3) { background: #4d9960; }

.mock-title {
  margin-left: 0.75rem;
  font-size: 0.7rem;
  color: #7a9a7a;
  font-family: var(--font-body);
}

.mock-content {
  display: grid;
  grid-template-columns: 120px 1fr;
  min-height: 260px;
}

.mock-sidebar {
  background: #1f3a1f;
  padding: 1rem 0.75rem;
  border-right: 1px solid #2d4a2d;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.sidebar-item {
  font-size: 0.65rem;
  color: #6a8a6a;
  padding: 0.35rem 0.5rem;
  border-radius: 4px;
  cursor: default;
}

.sidebar-item.active {
  background: rgba(232, 168, 56, 0.15);
  color: #e8a838;
}

.mock-main {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mock-kpi-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.mock-kpi {
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
  padding: 0.6rem;
}

.kpi-label {
  font-size: 0.55rem;
  color: #6a8a6a;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.25rem;
  font-family: var(--font-display);
}

.kpi-value {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: #e8e8e8;
}

.kpi-value span {
  font-size: 0.7rem;
  font-weight: 600;
}

.kpi-value.green { color: #4d9960; }
.kpi-value.amber { color: #e8a838; }

.kpi-delta, .kpi-sub {
  font-size: 0.55rem;
  color: #5a7a5a;
  margin-top: 0.15rem;
  font-family: var(--font-body);
}

.kpi-delta.down { color: #4d9960; }

.mock-chart {
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
  padding: 0.75rem;
}

.chart-label {
  font-size: 0.6rem;
  color: #6a8a6a;
  margin-bottom: 0.6rem;
  font-family: var(--font-display);
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 0.4rem;
  height: 70px;
}

.bar {
  flex: 1;
  background: #2d5a2d;
  border-radius: 3px 3px 0 0;
  transition: background 0.2s;
}

.bar[data-active] {
  background: var(--green);
}

/* ===== STATS ROW ===== */
.stats-row {
  background: var(--bg-dark);
  padding: var(--space-xl) 0;
}

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

.stat {
  padding: 0 1rem;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: #f5f0e8;
  margin-bottom: 0.6rem;
  letter-spacing: -0.03em;
}

.stat-desc {
  font-size: 0.85rem;
  color: #7a9a7a;
  line-height: 1.5;
}

.stat-divider {
  width: 1px;
  height: 60px;
  background: #2d4a2d;
}

/* ===== SECTION SHARED ===== */
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-eyebrow {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section-headline {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--fg);
  max-width: 640px;
  margin-bottom: var(--space-xl);
}

/* ===== PROCESS ===== */
.process {
  padding: var(--space-2xl) 0;
  background: var(--bg);
}

.process-steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: start;
  gap: 1rem;
}

.step {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform 0.2s, box-shadow 0.2s;
}

.step:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

.step-number {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.step-icon {
  width: 40px;
  height: 40px;
  color: var(--green);
  margin-bottom: 1rem;
}

.step-icon svg {
  width: 100%;
  height: 100%;
}

.step h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.step p {
  font-size: 0.85rem;
  color: var(--fg-light);
  line-height: 1.6;
}

.step-arrow {
  display: flex;
  align-items: center;
  padding-top: 2rem;
  color: var(--fg-muted);
  width: 32px;
}

.step-arrow svg {
  width: 24px;
  height: 24px;
}

/* ===== FEATURES ===== */
.features {
  padding: var(--space-2xl) 0;
  background: #f0ebe3;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.07);
}

.feature-icon {
  width: 36px;
  height: 36px;
  color: var(--green);
  margin-bottom: 1.25rem;
}

.feature-icon svg {
  width: 100%;
  height: 100%;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--fg-light);
  line-height: 1.65;
}

/* ===== MANIFESTO ===== */
.manifesto {
  padding: var(--space-2xl) 0;
  background: var(--bg-dark);
}

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

.manifesto-badge {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7a9a7a;
  margin-bottom: 2rem;
}

.manifesto blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: #f5f0e8;
  margin-bottom: 1.5rem;
  font-style: normal;
  border-left: 3px solid var(--accent);
  padding-left: 1.5rem;
}

.manifesto p {
  font-size: 1rem;
  color: #7a9a7a;
  line-height: 1.75;
  margin-bottom: 1rem;
}

/* ===== CLOSING ===== */
.closing {
  padding: var(--space-2xl) 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.closing-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
}

.closing-icon {
  margin-bottom: 2rem;
}

.closing h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--fg);
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
}

.closing p {
  font-size: 1.05rem;
  color: var(--fg-light);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--bg-dark);
  padding: 2rem 0;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: #f5f0e8;
}

.footer-meta {
  font-size: 0.8rem;
  color: #5a7a5a;
}

.footer-meta a {
  color: #7a9a7a;
  text-decoration: none;
}

.footer-meta a:hover {
  color: #e8a838;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .hero-visual {
    order: -1;
  }

  .stats-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .stat-divider {
    display: none;
  }

  .process-steps {
    grid-template-columns: 1fr;
  }

  .step-arrow {
    display: none;
  }

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

  .footer-inner {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

@media (max-width: 600px) {
  :root {
    --space-xl: 3rem;
    --space-2xl: 4rem;
  }

  .hero-headline {
    font-size: 2.2rem;
  }

  .mock-kpi-row {
    grid-template-columns: 1fr 1fr;
  }

  .mock-kpi:last-child {
    display: none;
  }

  .section-headline {
    font-size: 1.6rem;
  }

  .stat-number {
    font-size: 1.8rem;
  }
}