:root {
  --ink-900: #0b1724;
  --ink-800: #16283a;
  --ink-700: #2b3f54;
  --ink-600: #47576b;
  --ink-500: #66788c;
  --ink-400: #93a3b5;
  --line: #e5ebf2;
  --line-soft: #eef3f8;
  --bg: #ffffff;
  --bg-soft: #f7fafd;
  --bg-tint: #f2f7fb;

  --blue-700: #1d4ed8;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-50: #eff5ff;

  --green-700: #047857;
  --green-600: #059669;
  --green-500: #10b981;
  --green-50: #ecfdf5;

  --teal-600: #0d9488;
  --teal-50: #effcfa;

  --red-600: #dc2626;
  --red-500: #ef4444;
  --red-50: #fef2f2;

  --amber-600: #d97706;
  --amber-50: #fffbeb;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(16, 40, 70, .05), 0 4px 14px rgba(16, 40, 70, .05);
  --shadow: 0 2px 6px rgba(16, 40, 70, .05), 0 16px 40px rgba(16, 40, 70, .08);
  --shadow-lg: 0 24px 70px rgba(16, 40, 70, .16);
  --nav-h: 68px;
  --max: 1160px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink-700);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.7;
  font-size: 15px;
}

h1, h2, h3, h4 { color: var(--ink-900); margin: 0; line-height: 1.3; letter-spacing: -.01em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- NAV ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--nav-h);
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; color: var(--ink-900); }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--blue-600), var(--teal-600)); color: #fff; flex: none;
}
.brand-mark svg { width: 17px; height: 17px; }
.brand small { display: block; font-size: 10.5px; font-weight: 600; color: var(--blue-600); letter-spacing: .08em; margin-top: -4px; }

.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-links a {
  padding: 8px 14px; border-radius: 999px; font-size: 14.5px; font-weight: 600; color: var(--ink-600);
  transition: .18s;
}
.nav-links a:hover { color: var(--ink-900); background: var(--bg-tint); }
.nav-links a.active { color: var(--blue-700); background: var(--blue-50); }
.nav-cta {
  margin-left: 10px; padding: 9px 18px !important; border-radius: 999px;
  background: var(--ink-900) !important; color: #fff !important; font-size: 14px;
}
.nav-cta:hover { background: var(--blue-700) !important; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 7px 9px; cursor: pointer; }
.nav-toggle svg { width: 18px; height: 18px; display: block; stroke: var(--ink-700); }

/* ---------- HERO ---------- */
.hero { padding: 76px 0 60px; text-align: center; background: linear-gradient(180deg, #fbfdff 0%, #fff 100%); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700;
  color: var(--blue-700); background: var(--blue-50); border: 1px solid #dbe7ff;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 26px; letter-spacing: .02em;
}
.eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: var(--green-500); }
.hero h1 { font-size: clamp(30px, 4.6vw, 54px); font-weight: 900; letter-spacing: -.03em; }
.hero h1 .accent {
  display: block;
  background: linear-gradient(92deg, var(--blue-600), var(--teal-600) 65%, var(--green-600));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lead { max-width: 760px; margin: 26px auto 0; font-size: 16.5px; color: var(--ink-600); }
.hero-lead b { color: var(--ink-900); }

.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 54px; text-align: left; }
.trio-card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px 26px; box-shadow: var(--shadow-sm); overflow: hidden; transition: .22s;
}
.trio-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--c); }
.trio-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d7e3f0; }
.trio-ico {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: var(--c-bg); color: var(--c); margin-bottom: 18px;
}
.trio-ico svg { width: 22px; height: 22px; }
.trio-card h3 { font-size: 17.5px; font-weight: 800; margin-bottom: 4px; }
.trio-card .en { font-size: 12.5px; font-weight: 700; color: var(--c); letter-spacing: .04em; }
.trio-card p { margin-top: 12px; font-size: 14px; color: var(--ink-500); line-height: 1.75; }

/* ---------- SECTION ---------- */
.section { padding: 78px 0; }
.section.alt { background: var(--bg-soft); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.sec-head { max-width: 720px; margin-bottom: 40px; }
.sec-tag {
  display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue-600); margin-bottom: 12px;
}
.sec-head h2 { font-size: clamp(24px, 3vw, 33px); font-weight: 900; letter-spacing: -.02em; }
.sec-head p { margin-top: 14px; color: var(--ink-500); font-size: 15.5px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- CHART ---------- */
.chart-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 30px 30px 24px; }
.chart-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.chart-top h3 { font-size: 19px; font-weight: 800; }
.chart-top p { font-size: 13.5px; color: var(--ink-500); margin-top: 6px; }
.seg { display: inline-flex; background: var(--bg-tint); border: 1px solid var(--line); border-radius: 999px; padding: 4px; gap: 2px; }
.seg button {
  border: 0; background: none; padding: 7px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 700;
  color: var(--ink-500); cursor: pointer; transition: .16s;
}
.seg button.on { background: #fff; color: var(--ink-900); box-shadow: var(--shadow-sm); }

.chart { display: flex; align-items: flex-end; gap: 10px; height: 260px; padding: 0 4px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 9px; height: 100%; justify-content: flex-end; cursor: pointer; }
.bar-track { width: 100%; max-width: 52px; flex: 1; min-height: 0; display: flex; align-items: flex-end; }
.bar {
  width: 100%; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, var(--red-500), var(--red-600));
  transition: .3s cubic-bezier(.2, .8, .3, 1); position: relative; min-height: 6px;
}
.bar-col[data-tone="blue"] .bar { background: linear-gradient(180deg, var(--blue-500), var(--blue-600)); }
.bar-col[data-tone="teal"] .bar { background: linear-gradient(180deg, #2dd4bf, var(--teal-600)); }
.bar-col[data-tone="green"] .bar { background: linear-gradient(180deg, var(--green-500), var(--green-600)); }
.bar-col.on .bar { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--blue-500); }
.bar-val { font-size: 11.5px; font-weight: 800; color: var(--ink-500); opacity: 0; transition: .2s; flex: none; white-space: nowrap; }
.bar-col.on .bar-val { opacity: 1; color: var(--ink-900); }
.bar-lbl { font-size: 12.5px; font-weight: 800; color: var(--ink-700); letter-spacing: .01em; flex: none; }
.bar-sub { font-size: 10.5px; color: var(--ink-400); margin-top: -6px; flex: none; }
.chart-foot { margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--line); display: flex; gap: 10px; align-items: flex-start; }
.chart-foot .k { font-size: 13px; font-weight: 800; color: var(--ink-900); white-space: nowrap; }
.chart-foot .v { font-size: 13.5px; color: var(--ink-500); }

/* ---------- SIMULATOR ---------- */
.sim-grid { display: grid; grid-template-columns: 300px 1fr; gap: 22px; align-items: start; }
.chip-panel, .sim-main { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.chip-panel { padding: 22px 20px; }
.chip-panel h4 { font-size: 13px; font-weight: 800; color: var(--ink-500); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 14px; }
.chip-group { margin-bottom: 18px; }
.chip-group:last-child { margin-bottom: 0; }
.chip-group .g-name { font-size: 12px; font-weight: 700; color: var(--ink-400); margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 8px 12px;
  font-size: 13.5px; font-weight: 800; color: var(--ink-700); cursor: pointer; transition: .16s; letter-spacing: .02em;
}
.chip:hover { border-color: var(--blue-500); color: var(--blue-700); background: var(--blue-50); }
.chip.on { background: var(--ink-900); border-color: var(--ink-900); color: #fff; }

.sim-main { padding: 26px 26px 28px; }
.sim-head { display: flex; align-items: center; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--line-soft); flex-wrap: wrap; }
.sim-badge {
  font-size: 22px; font-weight: 900; letter-spacing: .02em; color: #fff;
  background: linear-gradient(135deg, var(--ink-900), var(--blue-700)); padding: 8px 16px; border-radius: 12px;
}
.sim-title { font-size: 19px; font-weight: 800; }
.sim-mode { font-size: 12.5px; font-weight: 700; color: var(--teal-600); background: var(--teal-50); border: 1px solid #ccf1ec; padding: 3px 10px; border-radius: 999px; }

.kv { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 22px; }
.kv-item { background: var(--bg-soft); border: 1px solid var(--line-soft); border-radius: var(--radius-sm); padding: 14px 16px; }
.kv-item .k { font-size: 12px; font-weight: 800; color: var(--ink-400); letter-spacing: .04em; margin-bottom: 6px; }
.kv-item .v { font-size: 14px; color: var(--ink-800); font-weight: 600; line-height: 1.6; }
.kv-item.wide { grid-column: 1 / -1; }
.pill { display: inline-block; font-size: 12px; font-weight: 800; padding: 2px 9px; border-radius: 999px; }
.pill.seller { background: var(--blue-50); color: var(--blue-700); }
.pill.buyer { background: var(--amber-50); color: var(--amber-600); }
.pill.none { background: #f1f5f9; color: var(--ink-500); }

.timeline-wrap { margin-top: 26px; }
.timeline-title { font-size: 13px; font-weight: 800; color: var(--ink-500); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 8px; }
.legend { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 18px; font-size: 12.5px; color: var(--ink-500); font-weight: 600; }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.dot { width: 10px; height: 10px; border-radius: 3px; }
.dot.s { background: var(--blue-600); }
.dot.b { background: var(--amber-600); }
.dot.r { background: var(--red-500); }

.timeline { position: relative; padding-left: 4px; }
.tl-row { display: flex; gap: 14px; align-items: stretch; }
.tl-rail { flex: none; display: flex; flex-direction: column; align-items: center; }
.tl-node {
  width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line);
  background: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: var(--ink-400);
  transition: .2s; flex: none;
}
.tl-line { width: 2px; flex: 1; background: var(--line); min-height: 22px; }
.tl-body {
  flex: 1; border: 1px solid var(--line-soft); background: var(--bg-soft); border-radius: var(--radius-sm);
  padding: 11px 14px; margin-bottom: 10px; cursor: pointer; transition: .18s; position: relative;
}
.tl-body { align-self: flex-start; }
.tl-body:hover { border-color: #cfe0f4; background: #fff; box-shadow: var(--shadow-sm); }
.tl-body.on { border-color: var(--blue-500); background: #fff; box-shadow: 0 0 0 3px var(--blue-50); }
.tl-top { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.tl-name { font-size: 14px; font-weight: 700; color: var(--ink-900); }
.tl-tag { font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px; }
.tl-tag.s { background: var(--blue-50); color: var(--blue-700); }
.tl-tag.b { background: var(--amber-50); color: var(--amber-600); }
.tl-tag.risk-s { background: var(--red-50); color: var(--red-600); }
.tl-tag.risk-b { background: #f1f5f9; color: var(--ink-500); }
.tl-desc { font-size: 12.5px; color: var(--ink-500); margin-top: 6px; }

.stage-pop {
  margin-top: 16px; border-radius: var(--radius); padding: 18px 20px; display: none;
  background: linear-gradient(135deg, #0b1724, #16324f); color: #e6eef8;
}
.stage-pop.show { display: block; animation: pop .3s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.stage-pop .sp-q { font-size: 12px; font-weight: 800; letter-spacing: .06em; color: #7fb2ff; text-transform: uppercase; }
.stage-pop .sp-a { font-size: 18px; font-weight: 800; margin: 8px 0 10px; color: #fff; }
.stage-pop .sp-a em { font-style: normal; color: #6ee7b7; }
.stage-pop .sp-a em.buyer { color: #fcd34d; }
.stage-pop .sp-x { font-size: 13.5px; color: #b8cbe0; line-height: 1.8; }

/* ---------- TERMS ---------- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.filters button {
  border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 9px 18px;
  font-size: 13.5px; font-weight: 700; color: var(--ink-600); cursor: pointer; transition: .16s;
}
.filters button:hover { border-color: var(--blue-500); color: var(--blue-700); }
.filters button.on { background: var(--ink-900); border-color: var(--ink-900); color: #fff; }

.term-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.term-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
  cursor: pointer; transition: .2s; position: relative; overflow: hidden;
}
.term-card::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--c); opacity: 0; transition: .2s; }
.term-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d7e3f0; }
.term-card:hover::after { opacity: 1; }
.tc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.tc-code { font-size: 19px; font-weight: 900; letter-spacing: .02em; color: var(--ink-900); }
.tc-en { font-size: 11px; font-weight: 700; color: var(--ink-400); text-align: right; line-height: 1.4; max-width: 60%; }
.tc-zh { font-size: 14.5px; font-weight: 800; color: var(--c); margin-bottom: 8px; }
.tc-desc { font-size: 13px; color: var(--ink-500); line-height: 1.7; }
.tc-meta { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); display: flex; gap: 8px; flex-wrap: wrap; font-size: 11.5px; }
.tc-meta span { background: var(--bg-tint); border-radius: 6px; padding: 3px 9px; color: var(--ink-600); font-weight: 700; }

/* ---------- MODAL ---------- */
.modal-mask {
  position: fixed; inset: 0; z-index: 90; background: rgba(11, 23, 36, .48);
  backdrop-filter: blur(5px); display: none; align-items: center; justify-content: center; padding: 24px;
}
.modal-mask.show { display: flex; }
.modal {
  background: #fff; border-radius: var(--radius-lg); width: min(680px, 100%); max-height: 86vh; overflow: auto;
  box-shadow: var(--shadow-lg); animation: pop .28s ease;
}
.modal-head { padding: 26px 28px 18px; border-bottom: 1px solid var(--line-soft); display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; position: sticky; top: 0; background: #fff; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.modal-head .mh-code { font-size: 26px; font-weight: 900; color: var(--ink-900); }
.modal-head .mh-zh { font-size: 15px; font-weight: 800; color: var(--blue-600); margin-top: 2px; }
.modal-head .mh-en { font-size: 12.5px; color: var(--ink-400); font-weight: 600; }
.modal-close { border: 1px solid var(--line); background: #fff; border-radius: 10px; width: 34px; height: 34px; cursor: pointer; flex: none; display: grid; place-items: center; }
.modal-close:hover { background: var(--bg-tint); }
.modal-close svg { width: 15px; height: 15px; stroke: var(--ink-600); }
.modal-body { padding: 22px 28px 28px; }
.mb-sec { margin-bottom: 20px; }
.mb-sec:last-child { margin-bottom: 0; }
.mb-sec .k { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--blue-600); margin-bottom: 8px; }
.mb-sec .v { font-size: 14.5px; color: var(--ink-700); line-height: 1.8; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.split .box { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 13px 15px; }
.split .box .bk { font-size: 12px; font-weight: 800; margin-bottom: 7px; }
.split .box.s { background: var(--blue-50); border-color: #dbe7ff; }
.split .box.s .bk { color: var(--blue-700); }
.split .box.b { background: var(--amber-50); border-color: #fdeec8; }
.split .box.b .bk { color: var(--amber-600); }
.split .box li { font-size: 13px; color: var(--ink-700); padding: 2px 0; }
.split .box li::before { content: "· "; color: var(--ink-400); }

/* ---------- QUOTE ---------- */
.quote-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 22px; align-items: start; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 26px; }
.panel h3 { font-size: 18px; font-weight: 800; margin-bottom: 6px; }
.panel .hint { font-size: 13px; color: var(--ink-500); margin-bottom: 20px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12.5px; font-weight: 700; color: var(--ink-600); margin-bottom: 6px; }
.field .inp { position: relative; }
.field input {
  width: 100%; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 11px 14px;
  font-size: 14.5px; font-weight: 600; color: var(--ink-900); font-family: inherit; transition: .16s; background: var(--bg-soft);
}
.field input:focus { outline: none; border-color: var(--blue-500); background: #fff; box-shadow: 0 0 0 3px var(--blue-50); }
.field .unit { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 12.5px; color: var(--ink-400); font-weight: 700; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.calc-out { margin-top: 22px; border-top: 1px dashed var(--line); padding-top: 20px; }
.calc-out .out-title { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-400); margin-bottom: 14px; }
.out-row { display: flex; align-items: center; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--line-soft); }
.out-row:last-child { border-bottom: 0; }
.out-row .ol { font-size: 14px; font-weight: 700; color: var(--ink-700); }
.out-row .ol small { display: block; font-size: 11.5px; font-weight: 600; color: var(--ink-400); }
.out-row .ov { font-size: 19px; font-weight: 900; color: var(--ink-900); font-variant-numeric: tabular-nums; }
.out-row.hi .ov { color: var(--green-600); }
.out-row.final { background: var(--blue-50); border-radius: var(--radius-sm); padding: 14px 16px; margin-top: 8px; border: 0; }
.out-row.final .ov { color: var(--blue-700); }

.cmp-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
.cmp-table th, .cmp-table td { padding: 13px 12px; text-align: left; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.cmp-table th { font-size: 12px; font-weight: 800; color: var(--ink-400); letter-spacing: .04em; text-transform: uppercase; }
.cmp-table td:first-child { font-weight: 800; color: var(--ink-900); white-space: nowrap; }
.cmp-table tbody tr:last-child td { border-bottom: 0; }

/* ---------- PITFALLS ---------- */
.pit-list { display: grid; gap: 12px; }
.pit {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: .2s;
}
.pit.open { border-color: #d7e3f0; box-shadow: var(--shadow-sm); }
.pit-head { display: flex; align-items: center; gap: 14px; padding: 18px 20px; cursor: pointer; }
.pit-num {
  width: 30px; height: 30px; border-radius: 9px; background: var(--red-50); color: var(--red-600);
  display: grid; place-items: center; font-size: 13px; font-weight: 900; flex: none;
}
.pit.open .pit-num { background: var(--red-600); color: #fff; }
.pit-head h4 { font-size: 15.5px; font-weight: 800; flex: 1; }
.pit-arrow { width: 20px; height: 20px; stroke: var(--ink-400); transition: .25s; flex: none; }
.pit.open .pit-arrow { transform: rotate(180deg); stroke: var(--red-600); }
.pit-body { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.pit.open .pit-body { max-height: 460px; }
.pit-inner { padding: 0 20px 20px 64px; font-size: 14px; color: var(--ink-600); line-height: 1.85; }
.pit-inner strong { color: var(--ink-900); }
.pit-inner .fix { display: block; margin-top: 10px; padding: 12px 15px; background: var(--green-50); border-left: 3px solid var(--green-500); border-radius: 0 8px 8px 0; font-size: 13.5px; color: var(--green-700); }

/* ---------- FOOTER ---------- */
.footer { background: var(--ink-900); color: #93a6ba; padding: 54px 0 30px; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,.09); }
.footer .brand { color: #fff; }
.footer .brand small { color: #6ee7b7; }
.footer-desc { max-width: 340px; font-size: 13.5px; line-height: 1.9; margin-top: 14px; }
.footer-cols { display: flex; gap: 60px; flex-wrap: wrap; }
.footer-col h5 { color: #fff; font-size: 13px; font-weight: 800; margin: 0 0 14px; letter-spacing: .04em; }
.footer-col a { display: block; font-size: 13.5px; padding: 5px 0; color: #93a6ba; transition: .16s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: #6b8098; }

/* ---------- REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.3,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1000px) {
  .sim-grid { grid-template-columns: 1fr; }
  .quote-grid { grid-template-columns: 1fr; }
  .term-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 780px) {
  .nav-links { display: none; position: absolute; top: var(--nav-h); left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line); padding: 10px 16px 16px; gap: 2px; box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; border-radius: 10px; }
  .nav-cta { margin-left: 0; text-align: center; }
  .nav-toggle { display: block; }
  .trio { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .chart { height: 210px; gap: 5px; }
  .bar-lbl { font-size: 10.5px; }
  .chart-card, .panel, .sim-main { padding: 20px; }
  .footer-cols { gap: 32px; }
  .pit-inner { padding-left: 20px; }
}
@media (max-width: 460px) {
  .term-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .out-row .ov { font-size: 16px; }
  .wrap { padding: 0 16px; }
}
