/* figo 官网 — 品牌 token 见 figo/branding/README.md */
:root {
  --brand-mint: #23CDB8;
  --brand-blue: #4B7CFF;
  --brand-violet: #7047EB;
  --brand-ink: #111827;
  --brand-night: #0D1424;
  --brand-paper: #F4F7FF;
  --night-2: #121B30;
  --night-3: #1A2540;
  --line: rgba(244, 247, 255, 0.10);
  --text: #E7ECF8;
  --text-dim: #9AA6C4;
  --grad: linear-gradient(135deg, #23CDB8 0%, #4B7CFF 52%, #7047EB 100%);
  --mono: "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
  --radius: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--brand-night);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand-mint); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- 顶栏 ---------- */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 20, 36, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; gap: 28px;
  height: 60px;
}
.nav .logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--text); }
.nav .logo img { height: 30px; }
.nav .links { display: flex; gap: 22px; margin-left: auto; font-size: 14px; }
.nav .links a { color: var(--text-dim); }
.nav .links a:hover { color: var(--text); text-decoration: none; }
.nav .gh {
  border: 1px solid var(--line); border-radius: 8px; padding: 5px 14px;
  color: var(--text) !important; font-size: 13px;
}
.nav .gh:hover { border-color: var(--brand-blue); }
.nav .lang {
  border: 1px solid var(--line); border-radius: 8px; padding: 5px 12px;
  color: var(--text-dim); font-size: 13px; font-weight: 600;
}
.nav .lang:hover { color: var(--text); border-color: var(--brand-mint); text-decoration: none; }

/* ---------- Hero ---------- */
.hero { padding: 88px 0 72px; text-align: center; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -20% auto;
  height: 130%;
  background:
    radial-gradient(600px 320px at 28% 30%, rgba(35, 205, 184, 0.14), transparent 70%),
    radial-gradient(700px 360px at 72% 20%, rgba(112, 71, 235, 0.16), transparent 70%),
    radial-gradient(500px 300px at 50% 60%, rgba(75, 124, 255, 0.10), transparent 70%);
  pointer-events: none;
}
.hero > .wrap { position: relative; }
.hero img.mark { height: 84px; margin-bottom: 28px; }
.hero h1 { font-size: clamp(32px, 5.4vw, 54px); line-height: 1.22; letter-spacing: -0.02em; }
.hero h1 .grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.sub {
  margin: 22px auto 0; max-width: 640px;
  color: var(--text-dim); font-size: 18px;
}
.hero .cta { margin-top: 38px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 12px 28px; border-radius: 10px;
  font-size: 15px; font-weight: 600; transition: transform 0.15s, box-shadow 0.15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn.primary { background: var(--grad); color: #fff; box-shadow: 0 6px 24px rgba(75, 124, 255, 0.35); }
.btn.ghost { border: 1px solid var(--line); color: var(--text); }
.btn.ghost:hover { border-color: var(--brand-mint); }

.hero .equation {
  margin: 56px auto 0; display: inline-flex; align-items: center; gap: 16px;
  font-family: var(--mono); font-size: 15px; flex-wrap: wrap; justify-content: center;
  background: var(--night-2); border: 1px solid var(--line);
  padding: 16px 28px; border-radius: var(--radius);
}
.hero .equation .chip {
  padding: 6px 16px; border-radius: 8px; font-weight: 600;
}
.chip.design { background: rgba(35, 205, 184, 0.14); color: var(--brand-mint); border: 1px solid rgba(35, 205, 184, 0.35); }
.chip.logic { background: rgba(75, 124, 255, 0.14); color: #8FADFF; border: 1px solid rgba(75, 124, 255, 0.35); }
.chip.app { background: rgba(112, 71, 235, 0.16); color: #A88BFF; border: 1px solid rgba(112, 71, 235, 0.4); }
.hero .equation .op { color: var(--text-dim); font-size: 18px; }

/* ---------- 区块 ---------- */
section { padding: 76px 0; border-top: 1px solid var(--line); }
section .kicker {
  font-size: 13px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--brand-mint); margin-bottom: 12px;
}
section h2 { font-size: clamp(26px, 3.6vw, 36px); letter-spacing: -0.01em; margin-bottom: 14px; }
section p.lead { color: var(--text-dim); font-size: 17px; max-width: 720px; }

/* ---------- 痛点对比 ---------- */
.contrast { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 44px; }
.contrast .card {
  background: var(--night-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 30px;
}
.contrast .card.bad { border-color: rgba(255, 107, 107, 0.25); }
.contrast .card.good { border-color: rgba(35, 205, 184, 0.35); }
.contrast .card h3 { font-size: 17px; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.contrast .card.bad h3 { color: #FF8A8A; }
.contrast .card.good h3 { color: var(--brand-mint); }
.contrast ul { list-style: none; }
.contrast li { padding: 7px 0 7px 26px; position: relative; color: var(--text-dim); font-size: 15px; }
.contrast .bad li::before { content: "✕"; position: absolute; left: 2px; color: #FF8A8A; font-size: 13px; }
.contrast .good li::before { content: "✓"; position: absolute; left: 2px; color: var(--brand-mint); font-size: 13px; }
.contrast .good li strong { color: var(--text); }

/* ---------- Pipeline ---------- */
.pipeline {
  margin-top: 44px; background: var(--night-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 34px; overflow-x: auto;
}
.pipe-flow {
  display: flex; align-items: center; gap: 0; min-width: 760px;
  justify-content: space-between;
}
.pipe-col { display: flex; flex-direction: column; gap: 10px; }
.pipe-node {
  background: var(--night-3); border: 1px solid var(--line);
  border-radius: 10px; padding: 10px 18px; font-family: var(--mono);
  font-size: 13px; text-align: center; white-space: nowrap;
}
.pipe-node small { display: block; color: var(--text-dim); font-family: inherit; font-size: 11px; margin-top: 2px; }
.pipe-node.hub {
  background: linear-gradient(135deg, rgba(35,205,184,.12), rgba(75,124,255,.14), rgba(112,71,235,.14));
  border: 1px solid rgba(75, 124, 255, 0.45);
  font-weight: 700; font-size: 14px; padding: 16px 22px;
}
.pipe-node.out { border-color: rgba(112, 71, 235, 0.45); }
.pipe-node.in { border-color: rgba(35, 205, 184, 0.4); }
.pipe-arrow { color: var(--text-dim); font-size: 20px; padding: 0 14px; flex-shrink: 0; }
.pipe-note { margin-top: 18px; color: var(--text-dim); font-size: 13.5px; }
.pipe-note code { font-family: var(--mono); color: var(--brand-mint); font-size: 12.5px; }

/* ---------- 特性网格 ---------- */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
.feat {
  background: var(--night-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px;
}
.feat .ico { font-size: 22px; margin-bottom: 12px; }
.feat h3 { font-size: 16px; margin-bottom: 8px; }
.feat p { color: var(--text-dim); font-size: 14px; }
.feat code { font-family: var(--mono); font-size: 12.5px; color: #8FADFF; }

/* ---------- 步骤 ---------- */
.steps { margin-top: 44px; display: flex; flex-direction: column; gap: 16px; }
.step {
  display: grid; grid-template-columns: 56px 1fr; gap: 20px;
  background: var(--night-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 30px;
}
.step .num {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--grad); color: #fff; font-weight: 800; font-size: 19px;
  display: flex; align-items: center; justify-content: center;
}
.step h3 { font-size: 17px; margin-bottom: 6px; }
.step p { color: var(--text-dim); font-size: 14.5px; }
.step pre { margin-top: 12px; }

pre {
  background: #0A101F; border: 1px solid var(--line); border-radius: 10px;
  padding: 16px 20px; overflow-x: auto;
  font-family: var(--mono); font-size: 13px; line-height: 1.65;
}
pre .c { color: #5B688A; }  /* 注释 */
pre .k { color: #8FADFF; }  /* 关键字 */
pre .s { color: #7FE0C8; }  /* 字符串 */
pre .f { color: #C9A7FF; }  /* 函数 */
code.inline {
  font-family: var(--mono); font-size: 0.88em;
  background: var(--night-3); padding: 2px 7px; border-radius: 6px; color: #8FADFF;
}

/* ---------- 视频 ---------- */
.video-shell {
  margin-top: 44px; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: #000;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}
.video-shell video { display: block; width: 100%; height: auto; }

/* ---------- 画廊 ---------- */
.gallery {
  margin-top: 44px;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px;
}
.shot {
  border-radius: 12px; overflow: hidden; border: 1px solid var(--line);
  background: var(--night-2); transition: transform 0.2s, border-color 0.2s;
}
.shot:hover { transform: translateY(-4px); border-color: rgba(75, 124, 255, 0.5); }
.shot img { display: block; width: 100%; height: auto; }
.shot figcaption {
  padding: 9px 12px; font-size: 12.5px; color: var(--text-dim);
  font-family: var(--mono); border-top: 1px solid var(--line);
}
.gallery-note { margin-top: 20px; color: var(--text-dim); font-size: 14px; }

/* ---------- 导出目标 ---------- */
.targets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 44px; }
.target {
  background: var(--night-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; text-align: center;
}
.target .name { font-weight: 700; font-size: 16px; margin-bottom: 6px; }
.target .via { font-family: var(--mono); font-size: 12px; color: var(--brand-mint); }
.target p { font-size: 13px; color: var(--text-dim); margin-top: 8px; }

/* ---------- 页脚 ---------- */
footer {
  border-top: 1px solid var(--line); padding: 44px 0 60px;
  color: var(--text-dim); font-size: 14px;
}
footer .cols { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
footer img { height: 26px; opacity: 0.85; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .grid3 { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .targets { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .contrast { grid-template-columns: 1fr; }
  .grid3 { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .nav .links { display: none; }
  .nav .lang { margin-left: auto; }
  .step { grid-template-columns: 1fr; }
}

/* ---------- 核心与插件（开源核心 + 商业转换插件） ---------- */
.status {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em;
  padding: 2px 10px; border-radius: 999px; white-space: nowrap;
}
.status.available { color: var(--brand-mint); background: rgba(35, 205, 184, 0.12); border: 1px solid rgba(35, 205, 184, 0.4); }
.status.soon { color: var(--text-dim); background: rgba(244, 247, 255, 0.06); border: 1px solid var(--line); }
.core-card {
  margin-top: 44px; padding: 26px 28px; border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(35, 205, 184, 0.08), rgba(75, 124, 255, 0.08));
  border: 1px solid rgba(35, 205, 184, 0.35);
}
.core-card .core-head { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.core-card .cname { font-weight: 800; font-size: 20px; }
.core-card p { color: var(--text-dim); font-size: 14px; max-width: 860px; }
.core-card .btn { margin-top: 14px; }
.targets.plugins3 { grid-template-columns: repeat(3, 1fr); margin-top: 18px; }
.target .thead { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.target .thead .name { margin-bottom: 0; }
.plugin-note { margin-top: 18px; font-size: 13px; color: var(--text-dim); }
@media (max-width: 900px) { .targets.plugins3 { grid-template-columns: 1fr; } }

/* ---------- 插件详情页家族横幅 ---------- */
.family-note {
  background: rgba(75, 124, 255, 0.08); border-bottom: 1px solid var(--line);
  font-size: 13px; color: var(--text-dim); text-align: center; padding: 9px 16px;
}
