:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-soft: #f5f8f7;
  --panel: #ffffff;
  --text: #0d1a16;
  --heading: #06120e;
  --muted: #5b6b66;
  --line: #e4ebe8;
  --line-strong: #cdd9d4;
  --accent: #128a55;
  --accent-strong: #0f7549;
  --accent-soft: #e7f5ee;
  --accent-ink: #0a5e3a;
  --code-bg: #0e1b16;
  --radius: 14px;
  --shadow: 0 18px 40px rgba(13, 40, 31, 0.10);
  --shadow-sm: 0 4px 14px rgba(13, 40, 31, 0.06);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(900px 480px at 78% -8%, rgba(18, 138, 85, 0.07), transparent 60%),
    radial-gradient(700px 460px at 6% 4%, rgba(18, 138, 85, 0.05), transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-strong); }

code {
  font-family: "SF Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.86em;
  background: var(--accent-soft);
  color: var(--accent-ink);
  padding: 0.1em 0.42em;
  border-radius: 5px;
}

/* ---------- NAV ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 13px clamp(16px, 4vw, 40px);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--heading); font-weight: 800; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 9px;
  background: linear-gradient(180deg, #18a064, #0f7549);
  color: #fff;
  font-family: ui-monospace, monospace;
  font-weight: 900;
  font-size: 13px;
  box-shadow: 0 4px 12px rgba(15, 117, 73, 0.32);
}
.brand-name { font-size: 18px; letter-spacing: 0.2px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { color: var(--muted); font-size: 14px; font-weight: 600; }
.nav-links a:hover { color: var(--heading); }
.lang-toggle {
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--text);
  font-weight: 700;
  font-size: 13px;
  width: 42px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.lang-toggle:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
  padding: 11px 18px;
  border-radius: 9px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(180deg, #16a366, #0f7549);
  color: #fff;
  box-shadow: 0 8px 20px rgba(15, 117, 73, 0.28);
}
.btn-primary:hover { color: #fff; box-shadow: 0 12px 26px rgba(15, 117, 73, 0.38); }
.btn-ghost { background: #fff; border-color: var(--line-strong); color: var(--heading); }
.btn-ghost:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); }
.btn-lg { padding: 14px 24px; font-size: 15px; }
.btn-ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- HERO ---------- */
.hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(56px, 10vw, 112px) clamp(16px, 4vw, 40px) 48px;
  text-align: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-ink);
  background: var(--accent-soft);
  border: 1px solid #cdeadd;
  padding: 6px 14px;
  border-radius: 100px;
  margin: 0 0 26px;
}
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(18, 138, 85, 0.16);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }
.hero h1 {
  font-size: clamp(38px, 7vw, 72px);
  line-height: 1.05;
  letter-spacing: -1.5px;
  margin: 0 0 22px;
  font-weight: 850;
  color: var(--heading);
}
.grad {
  background: linear-gradient(120deg, #0f7549 0%, #16a366 55%, #2bb98a 110%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead {
  max-width: 680px;
  margin: 0 auto 34px;
  font-size: clamp(16px, 2.2vw, 19px);
  color: var(--muted);
}
.lead strong { color: var(--heading); }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 38px; }
.hero-badges { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  border: 1px solid var(--line);
  background: #fff;
  padding: 7px 14px 7px 12px;
  border-radius: 100px;
  box-shadow: var(--shadow-sm);
}
.badge::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
}

/* ---------- STATS ---------- */
.stats {
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px clamp(16px, 4vw, 40px) 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.stat {
  text-align: center;
  padding: 26px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
}
.stat-num {
  display: block;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 850;
  color: var(--accent);
  letter-spacing: -0.5px;
}
.stat-label { font-size: 13px; color: var(--muted); }

/* ---------- BLOCKS ---------- */
.block {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(50px, 8vw, 88px) clamp(16px, 4vw, 40px);
  border-top: 1px solid var(--line);
}
.section-index {
  font-family: ui-monospace, monospace;
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--accent);
  text-transform: uppercase;
  margin: 0 0 10px;
}
.block h2 {
  font-size: clamp(26px, 4.5vw, 42px);
  letter-spacing: -0.8px;
  margin: 0 0 14px;
  font-weight: 800;
  color: var(--heading);
}
.section-sub { max-width: 640px; color: var(--muted); font-size: 17px; margin: 0 0 36px; }

/* ---------- ICONS ---------- */
.card-ico, .split-head svg {
  color: var(--accent);
}
.card-ico svg, .split-head svg {
  width: 26px; height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card-ico {
  display: inline-grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 11px;
  background: var(--accent-soft);
  margin-bottom: 14px;
}

/* ---------- CARDS ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  transition: transform 0.15s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 8px; font-size: 17px; color: var(--heading); }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* ---------- PIPELINE ---------- */
.pipeline {
  list-style: none;
  margin: 0 0 40px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.pipeline li {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 16px;
}
.step-n {
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 12px;
}
.pipeline strong { display: block; font-size: 14px; color: var(--heading); }
.pipeline p { margin: 4px 0 0; font-size: 12.5px; color: var(--muted); }

.crypto-table {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.crypto-table h3 { margin: 0 0 16px; font-size: 18px; color: var(--heading); }
.crypto-table table { width: 100%; border-collapse: collapse; }
.crypto-table td { padding: 12px 4px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.crypto-table tr:last-child td { border-bottom: none; }
.crypto-table td:first-child { color: var(--muted); }
.crypto-table td:last-child { text-align: right; }
.note { font-size: 13.5px; color: var(--muted); margin-top: 16px; }
.note-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--accent-ink);
  background: var(--accent-soft);
  padding: 2px 8px;
  border-radius: 6px;
  margin-right: 6px;
}

/* ---------- SECURITY ---------- */
.security-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.sec-item {
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 22px;
  background: var(--panel);
  box-shadow: var(--shadow-sm);
}
.sec-item h3 { margin: 0 0 8px; font-size: 17px; color: var(--heading); }
.sec-item p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* ---------- SPLIT / CODE ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.split-head { display: flex; align-items: center; gap: 10px; font-size: 18px; margin: 0 0 14px; color: var(--heading); }
.split-col p { color: var(--muted); font-size: 14.5px; }
pre {
  background: var(--code-bg);
  border: 1px solid #15241d;
  border-radius: var(--radius);
  padding: 18px;
  overflow-x: auto;
  margin: 0 0 14px;
}
pre code {
  background: none;
  padding: 0;
  color: #d9efe5;
  font-size: 13px;
  line-height: 1.7;
}
pre code .c { color: #6f8e83; }

/* ---------- DOWNLOAD ---------- */
.download-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  background: linear-gradient(135deg, var(--accent-soft), #f3faf6);
  border: 1px solid #cdeadd;
  border-radius: var(--radius);
  padding: 26px 28px;
  margin-bottom: 28px;
}
.dl-name { display: block; font-size: 20px; font-weight: 800; font-family: ui-monospace, monospace; color: var(--heading); }
.dl-meta { font-size: 14px; color: var(--muted); }
.req { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; background: var(--panel); }
.req h3 { margin: 0 0 12px; font-size: 17px; color: var(--heading); }
.req h3:nth-of-type(2) { margin-top: 24px; }
.req ul { margin: 0 0 8px; padding-left: 20px; color: var(--muted); font-size: 14.5px; }
.req li { margin-bottom: 8px; }
.req li strong { color: var(--heading); }

/* ---------- FOOTER ---------- */
.footer {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 50px clamp(16px, 4vw, 40px) 24px;
}
.footer-grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 28px;
}
.foot-tag { color: var(--muted); font-size: 14px; max-width: 240px; margin: 14px 0 0; }
.foot-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.6px; color: var(--heading); margin: 0 0 12px; }
.foot-col a, .foot-col p { display: block; color: var(--muted); font-size: 14px; margin: 0 0 8px; }
.foot-col a:hover { color: var(--accent); }
.foot-col .muted { color: #8a9893; font-size: 13px; }
.foot-bottom {
  max-width: 1120px;
  margin: 36px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  color: #8a9893;
  font-size: 13px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .pipeline { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: 1fr; }
  .security-grid, .split { grid-template-columns: 1fr; }
  .pipeline { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .crypto-table td:last-child { text-align: left; }
}
