/* ==========================================================================
   GreenTide · 2026 改版设计系统
   ========================================================================== */

:root {
  --bg: #090d12;
  --bg-1: #0d131a;
  --bg-2: #121a23;
  --card: rgba(255, 255, 255, 0.035);
  --card-hover: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #eaf1f6;
  --text-dim: #9db0c0;
  --text-faint: #607086;
  --accent: #2dd4bf;
  --accent-2: #34d399;
  --accent-3: #7c9cff;
  --accent-4: #f5a524;
  --grad-tide: linear-gradient(120deg, #22d3ee 0%, #34d399 55%, #a3e635 100%);
  --grad-moon: linear-gradient(120deg, #7c9cff 0%, #38bdf8 100%);
  --grad-remote: linear-gradient(120deg, #f5a524 0%, #fb7185 100%);
  --shadow-soft: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 9px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code", Consolas, "Courier New", monospace;
  --header-h: 74px;
}

[data-theme="light"] {
  --bg: #f5f7f6;
  --bg-1: #ffffff;
  --bg-2: #eef2f1;
  --card: rgba(15, 30, 25, 0.03);
  --card-hover: rgba(15, 30, 25, 0.06);
  --border: rgba(15, 30, 25, 0.09);
  --border-strong: rgba(15, 30, 25, 0.16);
  --text: #0d1b17;
  --text-dim: #4c5f5a;
  --text-faint: #83948e;
  --shadow-soft: 0 20px 50px -24px rgba(20, 40, 35, 0.25);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 0.25s ease, color 0.25s ease;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
button { font-family: inherit; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- background texture ---------- */
.bg-field {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: var(--bg);
  overflow: hidden;
}
.bg-field::before {
  content: "";
  position: absolute;
  inset: -10%;
  background-image:
    radial-gradient(46rem 30rem at 12% -8%, rgba(45, 212, 191, 0.16), transparent 60%),
    radial-gradient(40rem 26rem at 100% 8%, rgba(124, 156, 255, 0.14), transparent 60%),
    radial-gradient(38rem 30rem at 20% 100%, rgba(52, 211, 153, 0.10), transparent 60%);
}
.bg-field::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 20%, transparent 75%);
  opacity: 0.5;
}
[data-theme="light"] .bg-field::after { opacity: 0.35; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
.brand-mark {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}
.brand-tide { color: var(--text); }
.brand-tide span { background: var(--grad-tide); -webkit-background-clip: text; background-clip: text; color: transparent; }

.nav-primary {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--card);
  border: 1px solid var(--border);
  padding: 5px;
  border-radius: 999px;
}
.nav-primary a {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14.5px;
  color: var(--text-dim);
  font-weight: 600;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.nav-primary a:hover { color: var(--text); background: var(--card-hover); }
.nav-primary a.active { color: #06251f; background: var(--grad-tide); }

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.theme-toggle:hover { color: var(--text); border-color: var(--border-strong); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; flex-shrink: 0; }
.btn-primary {
  background: var(--grad-tide);
  color: #05241d;
  box-shadow: 0 10px 30px -10px rgba(45, 212, 191, 0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgba(45, 212, 191, 0.65); }
.btn-ghost {
  background: var(--card);
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--border-strong); background: var(--card-hover); transform: translateY(-2px); }
.btn-sm { padding: 9px 16px; font-size: 13.5px; }
.btn-block { width: 100%; }
.btn[data-tier="moon"] { background: var(--grad-moon); color: #071022; box-shadow: 0 10px 30px -10px rgba(124, 156, 255, 0.5); }
.btn[data-tier="remote"] { background: var(--grad-remote); color: #2a1103; box-shadow: 0 10px 30px -10px rgba(245, 165, 36, 0.5); }

/* ---------- pill / badge / tag ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px 7px 8px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dim);
}
.eyebrow .dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--grad-tide);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #05241d;
  flex-shrink: 0;
}
.eyebrow .dot svg { width: 12px; height: 12px; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text-dim);
}

/* ---------- hero ---------- */
.hero { padding: 84px 0 40px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero h1 {
  font-size: clamp(38px, 5.2vw, 64px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 22px 0 20px;
}
.hero h1 .grad { background: var(--grad-tide); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 18px; color: var(--text-dim); max-width: 540px; margin-bottom: 30px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-stats { display: flex; gap: 30px; flex-wrap: wrap; }
.hero-stats .stat b { display: block; font-size: 24px; font-weight: 800; }
.hero-stats .stat span { font-size: 13px; color: var(--text-faint); }

.hero-art { position: relative; aspect-ratio: 1/0.92; }
.hero-art svg { width: 100%; height: 100%; }
.hero-art .float-card {
  position: absolute;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--card);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-soft);
  animation: floaty 6s ease-in-out infinite;
}
.hero-art .float-card b { color: var(--text); font-weight: 800; }
.hero-art .fc-1 { top: 6%; left: -4%; animation-delay: 0s; }
.hero-art .fc-2 { bottom: 10%; right: -6%; animation-delay: 1.2s; }
.hero-art .fc-3 { bottom: -2%; left: 14%; animation-delay: 2.4s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- section shell ---------- */
.section { padding: 88px 0; position: relative; }
.section-tight { padding: 56px 0; }
.section-head { max-width: 640px; margin-bottom: 46px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; letter-spacing: -0.015em; margin-top: 16px; }
.section-head p { color: var(--text-dim); font-size: 16.5px; margin-top: 14px; }

.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--border) 20%, var(--border) 80%, transparent); border: none; margin: 0; }

/* ---------- feature grid ---------- */
.grid-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 22px;
  transition: all 0.25s ease;
}
.feature-card:hover { border-color: var(--border-strong); background: var(--card-hover); transform: translateY(-4px); }
.feature-card .fi {
  width: 42px; height: 42px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad-tide); color: #06251f; margin-bottom: 16px;
}
.feature-card .fi svg { width: 22px; height: 22px; }
.feature-card h3 { font-size: 16.5px; font-weight: 750; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--text-dim); }

/* ---------- product matrix cards ---------- */
.grid-products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.product-card {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--card), transparent 40%), var(--bg-1);
  padding: 28px 26px 26px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.product-card:hover { transform: translateY(-6px); border-color: var(--border-strong); }
.product-card::before {
  content: "";
  position: absolute;
  top: -40%; right: -30%;
  width: 60%; height: 60%;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.35;
  background: var(--tier-grad, var(--grad-tide));
  pointer-events: none;
}
.product-card[data-tier="core"] { --tier-grad: var(--grad-tide); }
.product-card[data-tier="moon"] { --tier-grad: var(--grad-moon); }
.product-card[data-tier="remote"] { --tier-grad: var(--grad-remote); }
.product-card .tier-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 800; letter-spacing: 0.03em;
  padding: 5px 11px; border-radius: 999px;
  background: var(--tier-grad); color: #05130f;
  margin-bottom: 18px; width: fit-content;
}
.product-card h3 { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.product-card .ver { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-faint); margin-bottom: 14px; }
.product-card p.desc { color: var(--text-dim); font-size: 14.5px; margin-bottom: 18px; min-height: 44px; }
.product-card .plist { margin-bottom: 22px; flex-grow: 1; }
.product-card .plist li { display: flex; gap: 9px; font-size: 13.5px; color: var(--text-dim); padding: 6px 0; align-items: flex-start; }
.product-card .plist li svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 3px; color: var(--accent-2); }
.product-card .pmeta { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-faint); border-top: 1px solid var(--border); padding-top: 14px; margin-top: auto; margin-bottom: 16px; }

/* ---------- comparison table ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius-md); border: 1px solid var(--border); background: var(--bg-1); }
table.compare { width: 100%; border-collapse: collapse; min-width: 620px; }
table.compare th, table.compare td { padding: 16px 18px; text-align: left; font-size: 14px; border-bottom: 1px solid var(--border); }
table.compare th { color: var(--text-faint); font-weight: 700; font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.04em; }
table.compare td { color: var(--text-dim); }
table.compare td:first-child, table.compare th:first-child { color: var(--text); font-weight: 700; }
table.compare tr:last-child td { border-bottom: none; }
table.compare tr:hover td { background: var(--card); }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 24px; position: relative; }
.step-card .num {
  font-family: var(--font-mono); font-weight: 800; font-size: 13px;
  width: 30px; height: 30px; border-radius: 9px; background: var(--grad-tide);
  color: #06251f; display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.step-card h4 { font-size: 15.5px; font-weight: 750; margin-bottom: 8px; }
.step-card p { font-size: 13.5px; color: var(--text-dim); }

/* ---------- code block ---------- */
.code-block {
  position: relative;
  background: #060a0e;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: 14px 0;
}
[data-theme="light"] .code-block { background: #0d1b17; }
.code-block .cb-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; border-bottom: 1px solid rgba(255,255,255,0.08);
  font-family: var(--font-mono); font-size: 12px; color: #7fa08f;
}
.code-block .copy-btn {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
  color: #d7e5df; border-radius: 7px; padding: 5px 10px; font-size: 11.5px; cursor: pointer;
  display: flex; align-items: center; gap: 5px; transition: background 0.15s ease;
}
.code-block .copy-btn:hover { background: rgba(255,255,255,0.16); }
.code-block .copy-btn svg { width: 12px; height: 12px; }
.code-block pre { margin: 0; padding: 18px 20px; overflow-x: auto; }
.code-block code {
  font-family: var(--font-mono); font-size: 13px; line-height: 1.7; color: #d7f5ea;
  white-space: pre;
}
.code-block .tok-c { color: #5c7a8f; }
.code-block .tok-s { color: #ffd479; }
.code-block .tok-k { color: #7cd4ff; }
.code-block .tok-f { color: #a5f3c4; }

/* ---------- api grid ---------- */
.grid-api { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.api-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 22px; }
.api-card h4 { font-size: 15.5px; font-weight: 750; display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }
.api-card h4 .ic { width: 28px; height: 28px; border-radius: 8px; background: var(--card-hover); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.api-card h4 .ic svg { width: 15px; height: 15px; color: var(--accent-2); }
.api-card ul li {
  font-family: var(--font-mono); font-size: 12.8px; color: var(--text-dim);
  padding: 7px 0; border-top: 1px dashed var(--border);
  display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap;
}
.api-card ul li:first-child { border-top: none; }
.api-card ul li b { color: var(--accent); font-weight: 600; }
.api-card ul li span { color: var(--text-faint); font-family: var(--font); font-size: 12.5px; }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-q {
  width: 100%; background: none; border: none; text-align: left; cursor: pointer;
  padding: 20px 4px; display: flex; align-items: center; justify-content: space-between;
  color: var(--text); font-size: 15.5px; font-weight: 700;
}
.faq-q .chev { width: 18px; height: 18px; color: var(--text-faint); transition: transform 0.25s ease; flex-shrink: 0; }
.faq-item.open .faq-q .chev { transform: rotate(180deg); color: var(--accent); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-a p { padding: 0 4px 20px; color: var(--text-dim); font-size: 14.5px; max-width: 760px; }

/* ---------- CTA band ---------- */
.cta-band {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(45,212,191,0.10), rgba(124,156,255,0.08));
  padding: 52px 48px;
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.cta-band h2 { font-size: 28px; font-weight: 800; margin-bottom: 10px; }
.cta-band p { color: var(--text-dim); font-size: 15px; }
.cta-band .cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 56px 0 30px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 34px; margin-bottom: 40px; }
.footer-brand p { color: var(--text-faint); font-size: 13.5px; margin-top: 14px; max-width: 280px; }
.footer-col h5 { font-size: 13px; font-weight: 750; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 14px; }
.footer-col a, .footer-col span { display: block; font-size: 14px; color: var(--text-dim); padding: 6px 0; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 12.5px; color: var(--text-faint); padding-top: 24px; border-top: 1px solid var(--border); }
.footer-disclaimer { font-size: 12px; color: var(--text-faint); max-width: 900px; margin-top: 10px; line-height: 1.7; }

/* ---------- page hero (secondary pages) ---------- */
.page-hero { padding: 64px 0 20px; }
.page-hero h1 { font-size: clamp(32px, 4.5vw, 46px); font-weight: 800; letter-spacing: -0.02em; margin: 18px 0 14px; }
.page-hero p { color: var(--text-dim); font-size: 16.5px; max-width: 640px; }

/* ---------- module block (products page) ---------- */
.module-block { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 50px; align-items: center; padding: 60px 0; }
.module-block.rev { grid-template-columns: 1.1fr 0.9fr; }
.module-block.rev .module-visual { order: 2; }
.module-visual {
  aspect-ratio: 4/3; border-radius: var(--radius-lg); border: 1px solid var(--border);
  background: var(--card); position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.module-visual svg { width: 78%; height: 78%; }
.module-copy .tag { margin-bottom: 16px; }
.module-copy h3 { font-size: 27px; font-weight: 800; margin-bottom: 14px; letter-spacing: -0.01em; }
.module-copy p.intro { color: var(--text-dim); font-size: 15.5px; margin-bottom: 20px; }
.module-copy .mlist { display: grid; gap: 10px; margin-bottom: 20px; }
.module-copy .mlist li { display: flex; gap: 10px; font-size: 14px; color: var(--text-dim); align-items: flex-start; }
.module-copy .mlist li svg { width: 16px; height: 16px; color: var(--accent-2); margin-top: 3px; flex-shrink: 0; }
.scenario-chips { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- misc pages ---------- */
.info-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 22px 24px; }
.warn-card { background: rgba(245, 165, 36, 0.08); border: 1px solid rgba(245, 165, 36, 0.28); border-radius: var(--radius-md); padding: 18px 22px; font-size: 14px; color: var(--text-dim); display: flex; gap: 12px; }
.warn-card svg { width: 20px; height: 20px; color: var(--accent-4); flex-shrink: 0; margin-top: 2px; }

.dl-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.dl-row:last-child { border-bottom: none; }
.dl-row .dl-info h4 { font-size: 16px; font-weight: 750; margin-bottom: 4px; }
.dl-row .dl-info p { font-size: 13px; color: var(--text-faint); font-family: var(--font-mono); }

.checksum { font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); word-break: break-all; }

/* ---------- toc row ---------- */
.toc-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.toc-row a.tag { transition: all 0.2s ease; }
.toc-row a.tag:hover { color: var(--accent); border-color: var(--accent); background: var(--card-hover); }
.api-count { font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); }
.section-sub-head { margin: 4px 0 22px; scroll-margin-top: 100px; }
.section-sub-head h3 { font-size: 21px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.section-sub-head h3 .n { font-family: var(--font-mono); font-size: 13px; color: var(--bg); background: var(--grad-tide); width: 26px; height: 26px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* ---------- download center ---------- */
.dl-card { border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--bg-1); padding: 36px; position: relative; overflow: hidden; scroll-margin-top: 100px; }
.dl-card::before { content: ""; position: absolute; top: -50%; left: -20%; width: 55%; height: 90%; border-radius: 50%; filter: blur(60px); opacity: 0.22; background: var(--tier-grad, var(--grad-tide)); pointer-events: none; }
.dl-card[data-tier="core"] { --tier-grad: var(--grad-tide); }
.dl-card[data-tier="moon"] { --tier-grad: var(--grad-moon); }
.dl-card[data-tier="remote"] { --tier-grad: var(--grad-remote); }
.dl-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; margin-bottom: 22px; position: relative; }
.dl-head h3 { font-size: 26px; font-weight: 800; margin-bottom: 6px; }
.dl-head p { color: var(--text-dim); font-size: 14.5px; max-width: 520px; }
.kv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 22px 0; position: relative; }
.kv-cell { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px; }
.kv-cell span { display: block; font-size: 11.5px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 6px; }
.kv-cell b { font-size: 14.5px; font-weight: 700; }
.kv-cell.mono b { font-family: var(--font-mono); font-size: 12px; font-weight: 600; word-break: break-all; line-height: 1.5; }
.dl-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; position: relative; }
@media (max-width: 780px) { .kv-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .kv-grid { grid-template-columns: 1fr; } }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .nav-primary { display: none; }
  .nav-toggle { display: flex; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 420px; margin: 0 auto; }
  .grid-features { grid-template-columns: repeat(2, 1fr); }
  .grid-products { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .module-block, .module-block.rev { grid-template-columns: 1fr; }
  .module-block.rev .module-visual { order: 0; }
  .grid-api { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .grid-features { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; }
  .cta-band { padding: 36px 26px; flex-direction: column; align-items: flex-start; }
  .header-inner { gap: 10px; }
}

/* ---------- mobile nav drawer ---------- */
.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
  background: var(--bg); padding: 20px 24px; display: none;
  overflow-y: auto;
}
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: 16px 4px; font-size: 18px; font-weight: 700; border-bottom: 1px solid var(--border); color: var(--text); }
.mobile-nav .btn { margin-top: 20px; }
