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

:root {
  --bg:          #f5f7f0;
  --bg2:         #ffffff;
  --bg3:         #eef2e6;
  --bg4:         #e4ead8;
  --surface:     #ffffff;
  --border:      #d6ddc8;
  --border-hi:   #a8bf80;
  --text:        #1a2410;
  --text-muted:  #5a7245;
  --text-light:  #8aa870;
  --forest:      #1a4d2e;
  --forest2:     #15803d;
  --lime:        #65a30d;
  --lime-light:  #a3e635;
  --emerald:     #059669;
  --sage:        #d1e8c0;
  --sage2:       #e8f5d8;
  --code-bg:     #f0f4e8;
  --radius:      14px;
  --font:        'Plus Jakarta Sans', system-ui, sans-serif;
  --display:     'Plus Jakarta Sans', system-ui, sans-serif;
  --mono:        'DM Mono', 'Fira Code', monospace;
  --shadow-sm:   0 1px 4px rgba(26,77,46,0.08);
  --shadow-md:   0 4px 24px rgba(26,77,46,0.10);
  --shadow-lg:   0 12px 48px rgba(26,77,46,0.12);
}

html { scroll-behavior: smooth; }

sub, sup {
  vertical-align: baseline;
  font-size: inherit;
  position: static;
}

strong, b, em, code, span {
  vertical-align: baseline;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px;
}

a { color: var(--forest2); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── ANIMATIONS ───────────────────────────────────────────── */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-10px); }
}
@keyframes blob-drift {
  0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  50%       { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
}

.animate-1 { animation: fade-up 0.6s ease both 0.05s; }
.animate-2 { animation: fade-up 0.7s ease both 0.18s; }
.animate-3 { animation: fade-up 0.7s ease both 0.30s; }
.animate-4 { animation: fade-up 0.7s ease both 0.42s; }
.animate-5 { animation: fade-up 0.7s ease both 0.12s; }
.animate-6 { animation: fade-up 0.6s ease both 0.55s; }

/* ── NAV ──────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 247, 240, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--forest);
  letter-spacing: 0.02em;
}
.logo-sep { color: var(--lime); margin: 0 1px; }
.nav-links { display: flex; gap: 32px; }
.nav-links a {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 400;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* ── HERO ─────────────────────────────────────────────────── */
.hero {
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
  min-height: 88vh;
  display: flex;
  align-items: center;
  background: var(--bg);
}

/* soft organic blobs in background */
.hero-blob {
  position: absolute;
  pointer-events: none;
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  animation: blob-drift 14s ease-in-out infinite;
}
.hero-blob--1 {
  width: 600px; height: 600px;
  top: -200px; right: -100px;
  background: radial-gradient(circle, #d4edba 0%, #e8f5d8 50%, transparent 75%);
  opacity: 0.7;
  animation-delay: 0s;
}
.hero-blob--2 {
  width: 400px; height: 400px;
  bottom: -150px; left: -80px;
  background: radial-gradient(circle, #c8e8a8 0%, transparent 70%);
  opacity: 0.5;
  animation-delay: -7s;
  animation-duration: 18s;
}
.hero-blob--3 {
  width: 250px; height: 250px;
  top: 40%; left: 40%;
  background: radial-gradient(circle, #d9f0c0 0%, transparent 70%);
  opacity: 0.4;
  animation-delay: -3s;
  animation-duration: 20s;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 72px;
  align-items: center;
  position: relative;
  z-index: 1;
  width: 100%;
}

.slogan {
  font-size: 13px;
  font-family: var(--mono);
  color: var(--text-muted);
  letter-spacing: 0.06em;
  margin-bottom: 28px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border: 1px solid var(--border-hi);
  border-radius: 999px;
  font-size: 11px;
  color: var(--forest);
  margin-bottom: 32px;
  font-family: var(--mono);
  background: var(--sage2);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: var(--shadow-sm);
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -2px;
  margin-bottom: 28px;
  color: var(--text);
}
.hero h1 em {
  font-style: normal;
  color: var(--forest2);
}

.hero-sub {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 460px;
  margin-bottom: 44px;
  line-height: 1.8;
  font-weight: 300;
}
.hero-sub strong { color: var(--text); font-weight: 500; }

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-primary {
  padding: 14px 30px;
  background: var(--forest);
  color: #ffffff;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  font-family: var(--font);
  letter-spacing: 0.02em;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover {
  background: var(--forest2);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-ghost {
  padding: 14px 22px;
  background: transparent;
  color: var(--text-muted);
  border-radius: 999px;
  font-weight: 400;
  font-size: 14px;
  transition: color 0.2s, transform 0.15s;
}
.btn-ghost:hover { color: var(--forest); text-decoration: none; transform: translateX(3px); }

/* ── HERO CODE BLOCK ──────────────────────────────────────── */
.hero-right { position: relative; }

.hero-code {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: float 6s ease-in-out infinite;
}

.code-titlebar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--bg3);
}
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot-r { background: #f4a4a4; }
.dot-y { background: #f4d6a4; }
.dot-g { background: var(--lime-light); }
.code-title {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-light);
  margin-left: 8px;
  letter-spacing: 0.04em;
}

pre { overflow-x: auto; padding: 24px 26px; }
code {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 2;
}
.c-brace  { color: var(--text-light); }
.c-colon  { color: var(--text-light); }
.c-key    { color: var(--forest); font-weight: 500; }
.c-str    { color: var(--emerald); }
.c-comment { color: var(--border-hi); }

.code-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  background: var(--bg3);
}
.code-badge {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--forest);
  background: var(--sage);
  border: 1px solid var(--border-hi);
  padding: 4px 14px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background 0.2s;
  display: inline-block;
}
.code-badge:hover { background: var(--bg4); text-decoration: none; }

/* floating savings pill */
.savings-pill {
  position: absolute;
  bottom: -28px;
  right: -24px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--forest);
  border-radius: 16px;
  padding: 16px 22px;
  box-shadow: var(--shadow-lg);
  animation: float 6s ease-in-out infinite;
  animation-delay: -3s;
}
.savings-num {
  font-family: var(--display);
  font-size: 40px;
  font-weight: 800;
  color: var(--lime-light);
  line-height: 1;
}
.savings-text {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
  font-family: var(--mono);
}

/* ── STATS BAR ────────────────────────────────────────────── */
.stats-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  padding: 48px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  text-align: center;
}
.stat {
  padding: 12px;
  border-right: 1px solid var(--border);
}
.stat:last-child { border-right: none; }
.stat-num {
  display: block;
  font-family: var(--display);
  font-size: 48px;
  font-weight: 800;
  color: var(--forest);
  line-height: 1;
  margin-bottom: 10px;
}
.stat-unit { font-size: 36px; }
.stat-label {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-family: var(--mono);
}

/* ── SECTIONS ─────────────────────────────────────────────── */
.section { padding: 108px 0; }
.section-dark {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-cta {
  background: var(--forest);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.section-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 40%, rgba(163,230,53,0.12) 0%, transparent 60%);
  pointer-events: none;
}
.cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 1;
}
.cta-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.cta-inner h2 { color: #ffffff; margin-bottom: 8px; }
.cta-inner h2 em { color: var(--lime-light); }
.cta-inner .hero-actions { margin-top: 12px; justify-content: center; }
.section-cta .btn-primary {
  background: var(--lime-light);
  color: var(--forest);
}
.section-cta .btn-primary:hover { background: #c8f060; }
.section-cta .btn-ghost { color: rgba(255,255,255,0.6); }
.section-cta .btn-ghost:hover { color: #fff; }

.section-header { margin-bottom: 60px; }

h2 {
  font-family: var(--display);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 20px;
  line-height: 1.15;
  color: var(--text);
}
h2 em { font-style: normal; color: var(--forest2); }
.section-sub {
  color: var(--text-muted);
  font-size: 17px;
  max-width: 580px;
  line-height: 1.75;
  font-weight: 300;
  vertical-align: baseline;
}
.section-sub strong { color: var(--text); font-weight: 500; }

/* ── MODES GRID ───────────────────────────────────────────── */
.modes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.mode-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}
.mode-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--forest), var(--lime));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.mode-card:hover {
  border-color: var(--border-hi);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.mode-card:hover::after { transform: scaleX(1); }
.mode-icon { font-size: 28px; margin-bottom: 20px; }
.mode-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text);
}
.mode-card p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
  font-weight: 300;
}
.mode-trigger {
  margin-top: 20px;
  font-size: 11px;
  font-family: var(--mono);
  color: var(--forest);
  background: var(--sage2);
  border: 1px solid var(--border-hi);
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: 0.05em;
}

/* ── BENCHMARKS ───────────────────────────────────────────── */
.benchmark-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.benchmark-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.benchmark-table th {
  text-align: left;
  padding: 14px 24px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  background: var(--bg3);
  border-bottom: 1px solid var(--border);
  font-family: var(--mono);
}
.benchmark-table td {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-weight: 300;
}
.benchmark-table td.dim { color: var(--text-light); }
.benchmark-table tr:last-child td { border-bottom: none; }
.benchmark-table tr:hover td { background: var(--bg3); }
.savings {
  font-weight: 600;
  color: #ffffff;
  font-family: var(--mono);
  background: var(--forest2);
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.04em;
}
.benchmark-note {
  margin-top: 24px;
  font-size: 13px;
  color: var(--text-muted);
  font-family: var(--mono);
  letter-spacing: 0.02em;
}

/* ── INSTALL TABS ─────────────────────────────────────────── */
.install-tabs { display: flex; flex-direction: column; gap: 32px; }

.install-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.install-label-badge {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  color: #fff;
  background: var(--forest);
  padding: 4px 14px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}
.install-label-note {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--emerald);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.install-card {
  background: var(--sage2);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.install-card-body { padding: 28px 32px; }
.install-card-body p {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 16px;
  font-weight: 300;
}
.install-card-body pre {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px 22px;
  margin-bottom: 16px;
}
.install-card-body pre code {
  font-size: 15px;
  font-weight: 500;
}
.install-note {
  font-size: 13px !important;
  color: var(--text-light) !important;
  margin-bottom: 0 !important;
}
.install-note code {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--forest);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 12px;
  font-family: var(--mono);
}

.install-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text-light);
  font-size: 12px;
  font-family: var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.install-divider::before,
.install-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── INSTALL STEPS ────────────────────────────────────────── */
.install-steps { display: flex; flex-direction: column; gap: 0; }
.install-step {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}
.step-track {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}
.step-num {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--forest);
  color: #ffffff;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-md);
}
.step-line {
  width: 1px;
  flex: 1;
  min-height: 48px;
  background: linear-gradient(to bottom, var(--border-hi), var(--border));
  margin: 8px 0;
}
.step-content { padding-bottom: 52px; flex: 1; }
.install-step:last-child .step-content { padding-bottom: 0; }
.step-content h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 14px;
  margin-top: 8px;
  color: var(--text);
}
.step-content p {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 14px;
  font-weight: 300;
}
.step-content code {
  background: var(--sage2);
  border: 1px solid var(--border-hi);
  color: var(--forest);
  padding: 2px 10px;
  border-radius: 5px;
  font-size: 13px;
  font-family: var(--mono);
}
.step-content pre {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 28px;
  margin-top: 12px;
}
.step-content pre code {
  background: none;
  border: none;
  color: var(--text);
  padding: 0;
  font-size: 13px;
}

/* ── FOOTER ───────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  background: var(--surface);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}
.footer-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.footer-brand {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-muted);
}
.footer-author {
  font-size: 13px;
  color: var(--text-light);
}
.footer-author a {
  color: var(--forest2);
  font-weight: 500;
  transition: color 0.2s;
}
.footer-author a:hover { color: var(--forest); text-decoration: underline; }
.footer-links { display: flex; gap: 24px; }
.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--forest); text-decoration: none; }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-layout { grid-template-columns: 1fr; gap: 56px; }
  .hero { min-height: auto; padding: 80px 0 64px; }
  .savings-pill { position: static; margin-top: 20px; display: inline-flex; }
}
@media (max-width: 768px) {
  .modes-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 72px 0; }
  .footer-inner { flex-direction: column; text-align: center; }
  .hero h1 { font-size: clamp(38px, 10vw, 58px); }
  .stat { border-right: none; border-bottom: 1px solid var(--border); }
  .stat:last-child { border-bottom: none; }
}
