/* ==========================================================================
   Tkone — white / green AI gateway site
   Design system + components. No frameworks, no external CSS.
   ========================================================================== */

/* ---------- 1. Tokens ------------------------------------------------ */
:root {
  --green: #7fc229;
  --green-500: #75b521;
  --green-600: #68a51b;
  --green-700: #4e7d12;
  --green-800: #36570b;
  --green-900: #1b2a0b;
  --ink: #0b1206;
  --ink-2: #18210f;
  --body: #4f5a45;
  --muted: #6e7864;
  --line: #e3e9d9;
  --line-strong: #ccd6bd;
  --paper: #ffffff;
  --paper-2: #f6f9f1;
  --paper-3: #edf4e3;
  --paper-4: #e4efd4;
  --max: 1320px;
  --gutter: 32px;
  --radius: 2px;
  --shadow-sm: 0 8px 24px rgba(27, 42, 11, 0.06);
  --shadow-md: 0 18px 50px rgba(27, 42, 11, 0.08);
  --shadow-lg: 0 32px 90px rgba(27, 42, 11, 0.12);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --font-sans: "Inter", "PingFang SC", "HarmonyOS Sans SC", "Noto Sans CJK SC",
    "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "SFMono-Regular", "JetBrains Mono", "Cascadia Code", Consolas,
    "Liberation Mono", monospace;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- 2. Reset ------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

body.menu-open {
  overflow: hidden;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: 0;
  background: none;
}

h1,
h2,
h3,
h4,
h5,
p,
figure,
ul,
ol {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

::selection {
  background: var(--green);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--green-700);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 300;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus {
  transform: none;
}

/* ---------- 3. Layout ------------------------------------------------ */
.container {
  width: min(var(--max), calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
}

.section {
  padding: 112px 0;
  position: relative;
}

.section-sm {
  padding: 72px 0;
}

.section-tint {
  background: var(--paper-2);
}

.section-tint-strong {
  background: var(--paper-3);
}

.section-dark {
  background: var(--ink);
  color: #fff;
}

.section-deep {
  background: var(--green-900);
  color: #fff;
}

.section-dark .section-title,
.section-deep .section-title {
  color: #fff;
}

.section-dark .section-desc,
.section-deep .section-desc {
  color: rgba(255, 255, 255, 0.62);
}

.section-dark .eyebrow,
.section-deep .eyebrow {
  color: var(--green);
}

.section-dark .eyebrow::before,
.section-deep .eyebrow::before {
  background: var(--green);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 56px;
  align-items: end;
  margin-bottom: 56px;
}

.section-head--center {
  display: block;
  max-width: 760px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head--center .eyebrow {
  justify-content: center;
}

.section-head--center .section-desc {
  margin: 20px auto 0;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 3.45rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
  font-weight: 700;
  text-wrap: balance;
}

.section-desc {
  font-size: 17px;
  line-height: 1.8;
  color: var(--body);
  max-width: 560px;
}

.section-link {
  margin-top: 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-700);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--green-700);
}

.eyebrow--plain::before {
  display: none;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

/* ---------- 4. Type helpers ----------------------------------------- */
.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.text-green {
  color: var(--green-700);
}

.text-muted {
  color: var(--muted);
}

.text-white {
  color: #fff;
}

.lead {
  font-size: 18px;
  line-height: 1.8;
  color: var(--body);
}

.small {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.tiny {
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.nowrap {
  white-space: nowrap;
}

/* ---------- 5. Buttons / links -------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: background 0.18s var(--ease), color 0.18s var(--ease),
    border-color 0.18s var(--ease), transform 0.18s var(--ease),
    box-shadow 0.18s var(--ease);
}

.btn svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--green);
  border-color: var(--green);
  color: var(--ink);
}

.btn-primary:hover {
  background: var(--green-500);
  border-color: var(--green-500);
  box-shadow: 0 10px 28px rgba(127, 194, 41, 0.28);
}

.btn-dark {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.btn-dark:hover {
  background: var(--green-900);
  border-color: var(--green-900);
}

.btn-outline {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.btn-outline:hover {
  background: var(--ink);
  color: #fff;
}

.btn-outline-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.btn-outline-light:hover {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
}

.btn-lg {
  height: 54px;
  padding: 0 28px;
  font-size: 15px;
}

.btn-sm {
  height: 38px;
  padding: 0 16px;
  font-size: 13px;
}

.btn-block {
  width: 100%;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--green-700);
  transition: color 0.18s var(--ease);
}

.link-arrow svg {
  width: 15px;
  height: 15px;
  transition: transform 0.18s var(--ease);
}

.link-arrow:hover {
  color: var(--green-800);
}

.link-arrow:hover svg {
  transform: translateX(4px);
}

.link-arrow--light {
  color: var(--green);
}

.link-arrow--light:hover {
  color: #fff;
}

/* ---------- 6. Topbar + header --------------------------------------- */
.topbar {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  letter-spacing: 0.01em;
}

.topbar-inner {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.topbar-message {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.topbar-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(127, 194, 41, 0.14);
  flex: none;
}

.topbar a {
  color: #fff;
  font-weight: 500;
}

.topbar a:hover {
  color: var(--green);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 22px;
  white-space: nowrap;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px rgba(27, 42, 11, 0.05);
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.brand img {
  height: 27px;
  width: auto;
}

.brand-tag {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 6px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 78px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  transition: color 0.18s var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s var(--ease);
}

.nav-link:hover {
  color: var(--green-700);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.nav-link.is-active {
  color: var(--ink);
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: none;
}

.header-login {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
}

.header-login:hover {
  color: var(--green-700);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ink);
}

.menu-toggle svg {
  width: 20px;
  height: 20px;
}

.menu-toggle .icon-close {
  display: none;
}

.menu-toggle[aria-expanded="true"] .icon-menu {
  display: none;
}

.menu-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: none;
  padding: 120px 24px 40px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(18px);
  overflow-y: auto;
}

.mobile-menu.is-open {
  display: block;
}

.mobile-nav {
  display: grid;
  gap: 4px;
}

.mobile-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.mobile-nav a span {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.mobile-nav a:hover {
  color: var(--green-700);
}

.mobile-actions {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.mobile-meta {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
  display: grid;
  gap: 8px;
}

/* ---------- 7. Hero -------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 86px 0 72px;
  background: var(--paper);
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: 720px;
  height: 720px;
  background: radial-gradient(
    circle,
    rgba(127, 194, 41, 0.18) 0%,
    rgba(127, 194, 41, 0.06) 42%,
    transparent 70%
  );
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle,
    rgba(27, 42, 11, 0.13) 1px,
    transparent 1px
  );
  background-size: 26px 26px;
  mask-image: linear-gradient(90deg, transparent 0%, #000 55%, transparent 100%);
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 55%,
    transparent 100%
  );
  opacity: 0.55;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 64px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 32px;
  padding: 0 12px 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  color: var(--body);
}

.hero-badge b {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--paper-3);
  color: var(--green-800);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-title {
  margin-top: 26px;
  font-size: clamp(2.8rem, 5.2vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
  font-weight: 700;
  text-wrap: balance;
}

.hero-title .accent {
  display: block;
  color: var(--green-700);
}

.hero-sub {
  margin-top: 28px;
  max-width: 620px;
  font-size: 17.5px;
  line-height: 1.82;
  color: var(--body);
}

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

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 30px;
  font-size: 12.5px;
  color: var(--muted);
}

.hero-chips li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-chips li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  flex: none;
}

/* Router visual */
.hero-visual {
  position: relative;
  min-width: 0;
}

.router {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.router::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle,
    rgba(27, 42, 11, 0.08) 1px,
    transparent 1px
  );
  background-size: 18px 18px;
  mask-image: linear-gradient(180deg, #000, transparent 70%);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%);
  pointer-events: none;
}

.router-top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
}

.router-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--green-800);
}

.live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(127, 194, 41, 0.16);
  animation: pulse 2.4s infinite;
}

.router-rows {
  position: relative;
  padding: 14px 18px 10px;
  display: grid;
  gap: 2px;
}

.router-rows::before {
  content: "";
  position: absolute;
  left: 30px;
  top: 24px;
  bottom: 18px;
  width: 1px;
  background: linear-gradient(
    180deg,
    rgba(127, 194, 41, 0),
    rgba(127, 194, 41, 0.55) 18%,
    rgba(127, 194, 41, 0.55) 82%,
    rgba(127, 194, 41, 0)
  );
}

.router-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr) 58px;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 10px 0 26px;
  border-radius: 2px;
  font-size: 12px;
  transition: background 0.18s var(--ease);
}

.router-row:hover {
  background: var(--paper-2);
}

.router-row::before {
  content: "";
  position: absolute;
  left: 5px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid var(--green);
  box-shadow: 0 0 0 3px rgba(127, 194, 41, 0.12);
}

.router-model {
  display: flex;
  align-items: center;
 gap: 8px;
  min-width: 0;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.router-model span {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--green-700);
  background: var(--paper-3);
  padding: 2px 5px;
}

.router-meta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--muted);
  text-align: right;
  white-space: nowrap;
}

.router-lat {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--green-800);
  text-align: right;
  white-space: nowrap;
}

.router-gate {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 18px 0;
  padding: 16px 16px;
  border-radius: 3px;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
}

.router-gate::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    transparent 20%,
    rgba(127, 194, 41, 0.16) 45%,
    transparent 70%
  );
  transform: translateX(-100%);
  animation: sweep 5s var(--ease) infinite;
}

.router-gate img {
  width: 26px;
  height: 26px;
  flex: none;
}

.router-gate b {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.router-gate small {
  display: block;
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.52);
}

.router-pulse {
  margin-left: auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(127, 194, 41, 0.42);
  display: grid;
  place-items: center;
  flex: none;
}

.router-pulse i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 18px rgba(127, 194, 41, 0.8);
  animation: pulse 2.4s infinite;
}

.router-foot {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1.2fr;
  gap: 12px;
  padding: 16px 18px 18px;
}

.router-foot small {
  display: block;
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.router-foot b {
  display: block;
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.router-spark {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

.router-spark svg {
  width: 100%;
  max-width: 120px;
  height: 32px;
  overflow: visible;
}

.router-spark path {
  fill: none;
  stroke: var(--green);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.router-spark .area {
  fill: rgba(127, 194, 41, 0.12);
  stroke: none;
}

.float-chip {
  position: absolute;
  right: 18px;
  top: -26px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-md);
  font-size: 10.5px;
  color: var(--body);
  z-index: 2;
  animation: floatY 6s ease-in-out infinite;
}

.float-chip b {
  color: var(--ink);
  font-weight: 600;
}

.float-chip .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.float-chip--bottom {
  top: auto;
  right: auto;
  left: 18px;
  bottom: -16px;
  animation-delay: -2.5s;
}

/* ---------- 8. Stats strip ------------------------------------------ */
.stats {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat {
  padding: 30px 32px;
  border-right: 1px solid var(--line);
}

.stat:last-child {
  border-right: 0;
}

.stat-value {
  font-size: clamp(1.7rem, 2.6vw, 2.3rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.stat-value em {
  font-style: normal;
  color: var(--green-700);
}

.stat-label {
  margin-top: 7px;
  font-size: 12.5px;
  color: var(--muted);
}

.stats--dark {
  background: var(--ink);
  border-color: rgba(255, 255, 255, 0.1);
}

.stats--dark .stat {
  border-color: rgba(255, 255, 255, 0.1);
}

.stats--dark .stat-value {
  color: #fff;
}

.stats--dark .stat-label {
  color: rgba(255, 255, 255, 0.52);
}

/* ---------- 9. Cards ------------------------------------------------- */
.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.card:hover {
  border-color: var(--green);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--paper-2);
  color: var(--green-700);
}

.card-icon svg {
  width: 20px;
  height: 20px;
}

.card-title {
  margin-top: 22px;
  font-size: 19px;
  line-height: 1.35;
  letter-spacing: -0.015em;
  font-weight: 650;
}

.card-text {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.78;
  color: var(--body);
}

.card-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--green-700);
}

.feature-card {
  display: flex;
  flex-direction: column;
  min-height: 250px;
}

.feature-card .card-text {
  flex: 1;
}

.feature-card .link-arrow {
  margin-top: 22px;
}

/* Model cards */
.model-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.model-card {
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: 26px;
}

.model-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.model-vendor {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.model-ratio {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--green-800);
  background: var(--paper-3);
  padding: 3px 7px;
  white-space: nowrap;
}

.model-name {
  margin-top: 16px;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.025em;
  font-weight: 650;
}

.model-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 7px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--paper-2);
  font-size: 10px;
  font-weight: 500;
  color: var(--body);
  white-space: nowrap;
}

.tag--green {
  background: var(--paper-3);
  border-color: var(--paper-4);
  color: var(--green-800);
}

.model-desc {
  flex: 1;
  margin-top: 14px;
  font-size: 13.5px;
  line-height: 1.72;
  color: var(--body);
}

.model-prices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.model-price small {
  display: block;
  font-size: 9.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}

.model-price b {
  display: block;
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.model-price b span {
  font-size: 9px;
  font-weight: 400;
  color: var(--muted);
}

.model-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}

.model-foot .link-arrow {
  font-size: 12.5px;
}

/* ---------- 10. Hero page (subpages) -------------------------------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 82px 0 72px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.page-hero::before {
  content: "";
  position: absolute;
  right: -8%;
  top: -40%;
  width: 640px;
  height: 640px;
  background: radial-gradient(
    circle,
    rgba(127, 194, 41, 0.14) 0%,
    rgba(127, 194, 41, 0.04) 45%,
    transparent 70%
  );
  pointer-events: none;
}

.page-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 64px;
  align-items: center;
}

.page-title {
  margin-top: 22px;
  font-size: clamp(2.4rem, 4.4vw, 4.3rem);
  line-height: 1.06;
  letter-spacing: -0.045em;
  font-weight: 700;
  text-wrap: balance;
}

.page-title .accent {
  color: var(--green-700);
}

.page-sub {
  margin-top: 24px;
  max-width: 620px;
  font-size: 17px;
  line-height: 1.8;
  color: var(--body);
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 26px;
  font-size: 12px;
  color: var(--muted);
}

.page-meta li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.page-meta li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
}

/* Typographic giant number visual */
.giant {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 340px;
}

.giant-number {
  font-size: clamp(6rem, 12vw, 10.5rem);
  line-height: 0.8;
  letter-spacing: -0.08em;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 2px var(--green);
  font-variant-numeric: tabular-nums;
  position: relative;
  z-index: 1;
}

.giant-caption {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-transform: uppercase;
  text-align: center;
}

.giant-tags {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.giant-tags span {
  position: absolute;
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line);
  background: #fff;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--body);
  box-shadow: 0 8px 24px rgba(27, 42, 11, 0.05);
}

.giant-tags span:nth-child(1) {
  top: 10%;
  left: 4%;
}

.giant-tags span:nth-child(2) {
  top: 8%;
  right: 4%;
}

.giant-tags span:nth-child(3) {
  bottom: 20%;
  left: 2%;
}

.giant-tags span:nth-child(4) {
  bottom: 10%;
  right: 6%;
}

.giant-tags span:nth-child(5) {
  top: 48%;
  left: 47%;
  background: var(--green);
  border-color: var(--green);
  color: var(--ink);
  font-weight: 700;
}

/* Token ledger visual */
.ledger {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.ledger-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
}

.ledger-head span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.ledger-head b {
  font-size: 11px;
  font-weight: 600;
  color: var(--green-800);
}

.ledger-rows {
  padding: 6px 20px;
}

.ledger-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.9fr) 64px;
  gap: 12px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 11.5px;
}

.ledger-row:last-child {
  border-bottom: 0;
}

.ledger-name {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ledger-name i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  flex: none;
}

.ledger-name i.v2 {
  background: var(--green-700);
}

.ledger-name i.v3 {
  background: var(--ink);
}

.ledger-tokens {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  text-align: right;
  white-space: nowrap;
}

.ledger-cost {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
}

.ledger-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  background: var(--ink);
  color: #fff;
}

.ledger-total small {
  display: block;
  font-size: 9px;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
}

.ledger-total b {
  display: block;
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 600;
}

.ledger-total .link-arrow {
  font-size: 11px;
  color: var(--green);
}

/* ---------- 11. Token section --------------------------------------- */
.token-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.flow-step {
  position: relative;
  padding: 24px 20px;
  border: 1px solid var(--line);
  background: #fff;
}

.flow-step::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -13px;
  width: 13px;
  height: 1px;
  background: var(--line-strong);
}

.flow-step:last-child::after {
  display: none;
}

.flow-num {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--green-700);
}

.flow-title {
  margin-top: 12px;
  font-size: 15px;
  font-weight: 650;
}

.flow-text {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.65;
  color: var(--muted);
}

/* Dashboard mock */
.dash {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.dash-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
}

.dash-head span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.dash-head b {
  font-size: 11px;
  font-weight: 600;
  color: var(--green-800);
}

.dash-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
}

.dash-kpi {
  padding: 18px 20px;
  border-right: 1px solid var(--line);
}

.dash-kpi:last-child {
  border-right: 0;
}

.dash-kpi small {
  display: block;
  font-size: 9.5px;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.dash-kpi b {
  display: block;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.dash-body {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: 0;
}

.dash-chart {
  padding: 24px 20px 20px;
  border-right: 1px solid var(--line);
}

.dash-chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.dash-chart-head small {
  font-size: 10px;
  color: var(--muted);
}

.dash-chart-head b {
  font-size: 11px;
  color: var(--ink);
}

.bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 150px;
  padding-top: 8px;
  border-bottom: 1px solid var(--line);
  background-image: linear-gradient(
    to top,
    transparent 24.9%,
    var(--line) 25%,
    transparent 25.1%,
    transparent 49.9%,
    var(--line) 50%,
    transparent 50.1%,
    transparent 74.9%,
    var(--line) 75%,
    transparent 75.1%
  );
}

.bar {
  flex: 1;
  min-width: 8px;
  height: calc(var(--h) * 1%);
  background: linear-gradient(180deg, var(--green) 0%, var(--green-600) 100%);
  opacity: 0.9;
  transition: height 0.8s var(--ease), opacity 0.2s var(--ease);
  position: relative;
}

.bar:hover {
  opacity: 1;
}

.bar.is-muted {
  background: var(--paper-4);
}

.bar-labels {
  display: flex;
  gap: 8px;
  margin-top: 7px;
}

.bar-labels span {
  flex: 1;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 8.5px;
  color: var(--muted);
}

.dash-breakdown {
  padding: 24px 20px;
}

.dash-breakdown h4 {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}

.breakdown-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.breakdown-item {
  display: grid;
  gap: 6px;
}

.breakdown-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 10.5px;
}

.breakdown-top b {
  font-weight: 600;
}

.breakdown-top span {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--muted);
}

.breakdown-bar {
  height: 4px;
  background: var(--paper-3);
  overflow: hidden;
}

.breakdown-bar i {
  display: block;
  height: 100%;
  width: var(--w);
  background: var(--green);
}

.dash-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.dash-foot .live {
  font-size: 9px;
}

/* ---------- 12. Code ------------------------------------------------ */
.code-card {
  border: 1px solid #26331c;
  border-radius: 4px;
  background: #070c04;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
}

.code-head {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 48px;
  padding: 0 16px;
  border-bottom: 1px solid #1c2714;
  background: #0c1308;
}

.code-dots {
  display: flex;
  gap: 5px;
  flex: none;
}

.code-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2b3a20;
}

.code-dots i:first-child {
  background: #475c35;
}

.code-dots i:nth-child(2) {
  background: var(--green-700);
}

.code-tabs {
  display: flex;
  gap: 2px;
  margin-left: auto;
}

.code-tab {
  padding: 5px 10px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.48);
  transition: color 0.15s var(--ease), background 0.15s var(--ease);
}

.code-tab:hover {
  color: #fff;
}

.code-tab.is-active {
  background: rgba(127, 194, 41, 0.12);
  border-color: rgba(127, 194, 41, 0.28);
  color: var(--green);
}

.code-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 8px;
  border: 1px solid #26331c;
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease);
}

.code-copy:hover {
  color: var(--green);
  border-color: var(--green-700);
}

.code-copy svg {
  width: 12px;
  height: 12px;
}

.code-body {
  position: relative;
}

.code-pane {
  display: none;
}

.code-pane.is-active {
  display: block;
}

.code-pane pre {
  margin: 0;
  padding: 24px 22px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.85;
  color: #d7e5c8;
  tab-size: 2;
}

.code-pane code {
  font-family: inherit;
}

.tok-key {
  color: #9be564;
}

.tok-str {
  color: #c8e6a0;
}

.tok-com {
  color: #6b7a5e;
}

.tok-num {
  color: #e0b95a;
}

.tok-fn {
  color: #f0f4e8;
}

.code-note {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-top: 1px solid #1c2714;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  color: #6b7a5e;
}

.code-note i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
}

/* ---------- 13. Tables ---------------------------------------------- */
.table-wrap {
  border: 1px solid var(--line);
  background: #fff;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  min-width: 720px;
}

thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 15px 18px;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: left;
  white-space: nowrap;
}

thead th.num,
tbody td.num {
  text-align: right;
}

tbody td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover td {
  background: #fbfdf8;
}

.table-model {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.table-model i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  flex: none;
}

.table-vendor {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}

.table-tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.table-tags span {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 6px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  font-size: 9.5px;
  color: var(--body);
  white-space: nowrap;
}

.table-price {
  font-family: var(--font-mono);
  font-size: 12px;
  white-space: nowrap;
}

.table-price b {
  font-weight: 600;
}

.table-price span {
  font-size: 9px;
  color: var(--muted);
}

.sort-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}

.sort-btn svg {
  width: 10px;
  height: 10px;
  opacity: 0.4;
}

.sort-btn.is-active svg {
  opacity: 1;
  color: var(--green-700);
}

.table-note {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
  font-size: 11px;
  color: #5f6855;
}

/* ---------- 14. Filter bar ------------------------------------------ */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  margin-bottom: 28px;
  padding: 14px;
  border: 1px solid var(--line);
  background: #fff;
}

.filter-search {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 300px;
  min-width: 180px;
  padding: 0 12px;
  height: 40px;
  border: 1px solid var(--line);
  background: var(--paper-2);
}

.filter-search svg {
  width: 15px;
  height: 15px;
  color: var(--muted);
  flex: none;
}

.filter-search input {
  width: 100%;
  border: 0;
  background: transparent;
  font-size: 13px;
  outline: none;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1 1 100%;
  order: 4;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.chip {
  height: 34px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #fff;
  font-size: 12px;
  color: var(--body);
  white-space: nowrap;
  transition: all 0.16s var(--ease);
}

.chip:hover {
  border-color: var(--green);
  color: var(--green-800);
}

.chip.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.filter-sort {
  height: 40px;
  min-width: 132px;
  padding: 0 10px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 12px;
  color: var(--body);
}

.filter-count {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--muted);
  white-space: nowrap;
}

.empty-state {
  display: none;
  padding: 64px 24px;
  border: 1px dashed var(--line-strong);
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.empty-state.is-visible {
  display: block;
}

/* ---------- 15. Calculator ------------------------------------------ */
.calc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: 0;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-md);
}

.calc-form {
  padding: 40px;
  border-right: 1px solid var(--line);
}

.calc-field {
  margin-bottom: 28px;
}

.calc-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.calc-label label {
  font-size: 13px;
  font-weight: 600;
}

.calc-label output {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--green-800);
}

.calc-hint {
  margin-top: 7px;
  font-size: 10.5px;
  color: var(--muted);
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: var(--paper-4);
  outline: none;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--green);
  border: 3px solid #fff;
  box-shadow: 0 0 0 1px var(--green-600), 0 2px 8px rgba(27, 42, 11, 0.2);
}

input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--green);
  border: 3px solid #fff;
  box-shadow: 0 0 0 1px var(--green-600), 0 2px 8px rgba(27, 42, 11, 0.2);
}

.calc-select {
  width: 100%;
  height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: #fff;
  font-size: 13px;
}

.calc-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.calc-presets button {
  height: 28px;
  padding: 0 9px;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--muted);
  transition: all 0.15s var(--ease);
}

.calc-presets button:hover,
.calc-presets button.is-active {
  border-color: var(--green);
  color: var(--green-800);
  background: var(--paper-3);
}

.calc-result {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
}

.calc-result::before {
  content: "";
  position: absolute;
  right: -30%;
  bottom: -40%;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(127, 194, 41, 0.24),
    transparent 68%
  );
  pointer-events: none;
}

.calc-result > * {
  position: relative;
  z-index: 1;
}

.calc-result-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.48);
  text-transform: uppercase;
}

.calc-total {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.05em;
  font-weight: 600;
  color: var(--green);
  font-variant-numeric: tabular-nums;
}

.calc-total small {
  font-size: 0.24em;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 400;
}

.calc-breakdown {
  display: grid;
  gap: 10px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.calc-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.62);
}

.calc-row b {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: #fff;
  font-weight: 600;
}

.calc-compare {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.calc-compare h4 {
  font-size: 9.5px;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.46);
  text-transform: uppercase;
}

.compare-list {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}

.compare-item {
  display: grid;
  gap: 4px;
}

.compare-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.7);
}

.compare-top b {
  font-family: var(--font-mono);
  font-weight: 500;
  color: #fff;
}

.compare-bar {
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
}

.compare-bar i {
  display: block;
  height: 100%;
  width: var(--w);
  background: var(--green);
  transition: width 0.4s var(--ease);
}

.calc-disclaimer {
  margin-top: 16px;
  font-size: 9px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.38);
}

/* ---------- 16. FAQ -------------------------------------------------- */
.faq {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 24px 0;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 600;
  text-align: left;
  color: var(--ink);
  transition: color 0.16s var(--ease);
}

.faq-q:hover {
  color: var(--green-700);
}

.faq-icon {
  position: relative;
  width: 22px;
  height: 22px;
  flex: none;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: var(--ink);
  transition: transform 0.22s var(--ease), background 0.22s var(--ease);
}

.faq-icon::before {
  width: 10px;
  height: 1px;
}

.faq-icon::after {
  width: 1px;
  height: 10px;
}

.faq-item.is-open .faq-icon {
  border-color: var(--green);
  background: var(--paper-3);
}

.faq-item.is-open .faq-icon::before,
.faq-item.is-open .faq-icon::after {
  background: var(--green-800);
}

.faq-item.is-open .faq-icon::after {
  transform: scaleY(0);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.32s var(--ease);
}

.faq-a-inner {
  padding: 0 48px 24px 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--body);
  max-width: 820px;
}

.faq-item.is-open .faq-a {
  max-height: 320px;
}

/* ---------- 17. CTA band -------------------------------------------- */
.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--green-900);
  color: #fff;
  padding: 88px 0;
}

.cta-band::before {
  content: "";
  position: absolute;
  right: -6%;
  top: -60%;
  width: 680px;
  height: 680px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(127, 194, 41, 0.26),
    transparent 66%
  );
  pointer-events: none;
}

.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.12) 1px,
    transparent 1px
  );
  background-size: 28px 28px;
  mask-image: linear-gradient(90deg, transparent, #000 60%, transparent);
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 60%,
    transparent
  );
  opacity: 0.35;
  pointer-events: none;
}

.cta-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 48px;
  align-items: center;
}

.cta-title {
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  font-weight: 700;
  text-wrap: balance;
}

.cta-text {
  margin-top: 18px;
  max-width: 560px;
  font-size: 16px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.62);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.cta-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.46);
}

.cta-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.cta-meta span::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
}

.cta-card {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
}

.cta-card-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.42);
  text-transform: uppercase;
}

.cta-card-value {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 30px;
  letter-spacing: -0.03em;
  color: var(--green);
}

.cta-card-rows {
  display: grid;
  gap: 10px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.cta-card-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.56);
}

.cta-card-row b {
  font-family: var(--font-mono);
  color: #fff;
  font-weight: 500;
}

/* ---------- 18. Footer ---------------------------------------------- */
.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.62);
  padding: 72px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 0.8fr));
  gap: 48px;
}

.footer-brand img {
  height: 30px;
  width: auto;
}

.footer-brand p {
  margin-top: 18px;
  max-width: 320px;
  font-size: 12.5px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.48);
}

.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.52);
}

.footer-status i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(127, 194, 41, 0.14);
}

.footer-col h4 {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.58);
}

.footer-col ul {
  display: grid;
  gap: 11px;
  margin-top: 18px;
}

.footer-col a {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.66);
  transition: color 0.16s var(--ease);
}

.footer-col a:hover {
  color: var(--green);
}

.footer-legal {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 11px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.58);
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.66);
}

.footer-legal a:hover {
  color: var(--green);
}

.footer-beian {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.footer-beian img {
  width: 14px;
  height: 14px;
}

/* ---------- 19. Auth pages ------------------------------------------ */
.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  background: #fff;
}

.auth-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
  padding: 56px 64px;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
}

.auth-visual::before {
  content: "";
  position: absolute;
  right: -20%;
  top: -10%;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(127, 194, 41, 0.22),
    transparent 68%
  );
  pointer-events: none;
}

.auth-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 1px,
    transparent 1px
  );
  background-size: 26px 26px;
  mask-image: linear-gradient(180deg, #000, transparent 80%);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 80%);
  opacity: 0.3;
  pointer-events: none;
}

.auth-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.auth-top img {
  height: 30px;
  width: auto;
}

.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.56);
}

.auth-back:hover {
  color: var(--green);
}

.auth-back svg {
  width: 13px;
  height: 13px;
}

.auth-copy {
  position: relative;
  z-index: 1;
  max-width: 560px;
}

.auth-copy h1 {
  font-size: clamp(2.2rem, 3.8vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
  font-weight: 700;
}

.auth-copy h1 span {
  display: block;
  color: var(--green);
}

.auth-copy p {
  margin-top: 20px;
  max-width: 480px;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.56);
}

.auth-ledger {
  position: relative;
  z-index: 1;
  max-width: 420px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
}

.auth-ledger-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.42);
}

.auth-ledger-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.62);
}

.auth-ledger-row:last-child {
  border-bottom: 0;
}

.auth-ledger-row b {
  font-family: var(--font-mono);
  color: #fff;
  font-weight: 500;
}

.auth-ledger-total {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(127, 194, 41, 0.1);
  font-size: 10.5px;
  color: var(--green);
}

.auth-ledger-total b {
  font-family: var(--font-mono);
  color: var(--green);
  font-weight: 600;
}

.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
  background: #fff;
}

.auth-card {
  width: min(420px, 100%);
}

.auth-card-head {
  margin-bottom: 32px;
}

.auth-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--green-700);
  text-transform: uppercase;
}

.auth-card h2 {
  margin-top: 10px;
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.auth-card-sub {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.auth-form {
  display: grid;
  gap: 18px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
}

.input-wrap {
  position: relative;
}

.input {
  width: 100%;
  height: 50px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: #fff;
  font-size: 14px;
  transition: border-color 0.16s var(--ease), box-shadow 0.16s var(--ease);
}

.input::placeholder {
  color: #6e7864;
}

.input:focus {
  outline: none;
  border-color: var(--green-700);
  box-shadow: 0 0 0 3px rgba(127, 194, 41, 0.14);
}

.input-wrap .input {
  padding-right: 46px;
}

.input-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--muted);
}

.input-toggle:hover {
  color: var(--green-700);
}

.input-toggle svg {
  width: 16px;
  height: 16px;
}

.input-code {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.input-code .btn {
  height: 50px;
}

.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
}

.checkbox {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--muted);
}

.checkbox input {
  width: 15px;
  height: 15px;
  margin: 1px 0 0;
  accent-color: var(--green-700);
  flex: none;
}

.auth-forgot {
  color: var(--green-700);
  font-weight: 500;
}

.auth-forgot:hover {
  color: var(--green-800);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0;
  font-size: 10px;
  color: var(--muted);
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.auth-switch {
  margin-top: 24px;
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
}

.auth-switch a {
  color: var(--green-700);
  font-weight: 600;
}

.auth-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 24px;
  padding: 12px 14px;
  border: 1px solid var(--paper-4);
  background: var(--paper-2);
  font-size: 11px;
  line-height: 1.65;
  color: var(--body);
}

.auth-note svg {
  width: 14px;
  height: 14px;
  color: var(--green-700);
  flex: none;
  margin-top: 2px;
}

.auth-note a {
  color: var(--green-700);
  font-weight: 600;
}

/* ---------- 20. 404 -------------------------------------------------- */
.notfound {
  position: relative;
  min-height: 70vh;
  display: grid;
  place-items: center;
  padding: 80px 0;
  overflow: hidden;
}

.notfound-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 680px;
}

.notfound-code {
  font-family: var(--font-mono);
  font-size: clamp(6rem, 18vw, 13rem);
  line-height: 0.8;
  letter-spacing: -0.08em;
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 2px var(--green);
}

.notfound h1 {
  margin-top: 24px;
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
  letter-spacing: -0.03em;
}

.notfound p {
  margin-top: 14px;
  color: var(--body);
}

.notfound-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

/* ---------- 21. Reveal / motion ------------------------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--d, 0s);
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.82);
  }
}

@keyframes floatY {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes sweep {
  0% {
    transform: translateX(-100%);
  }
  55%,
  100% {
    transform: translateX(100%);
  }
}

@keyframes dash {
  to {
    stroke-dashoffset: -240;
  }
}

/* ---------- 22. Responsive ------------------------------------------ */
@media (max-width: 1180px) {
  .hero-grid,
  .page-hero-grid {
    gap: 44px;
  }

  .main-nav {
    gap: 22px;
  }

  .hero-title {
    font-size: clamp(2.6rem, 4.6vw, 4.2rem);
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 0.8fr));
    gap: 32px;
  }
}

@media (max-width: 1024px) {
  .hero-grid,
  .page-hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-visual {
    max-width: 680px;
  }

  .hero-title {
    font-size: clamp(2.8rem, 7vw, 4.6rem);
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .section-desc {
    max-width: 720px;
  }

  .model-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .token-flow {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .flow-step:nth-child(3)::after {
    display: none;
  }

  .cta-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .cta-card {
    max-width: 520px;
  }

  .auth {
    grid-template-columns: 1fr;
  }

  .auth-visual {
    min-height: 420px;
    padding: 40px;
  }

  .auth-ledger {
    display: none;
  }

  .auth-copy {
    margin-top: 40px;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  :root {
    --gutter: 24px;
  }

  .main-nav,
  .header-actions .header-login,
  .header-actions .btn {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .header-inner {
    min-height: 68px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat {
    border-bottom: 1px solid var(--line);
  }

  .stat:nth-child(2n) {
    border-right: 0;
  }

  .stat:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .calc {
    grid-template-columns: 1fr;
  }

  .calc-form {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 32px;
  }

  .calc-result {
    padding: 32px;
  }

  .dash-body {
    grid-template-columns: 1fr;
  }

  .dash-chart {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .filter-bar {
    flex-wrap: wrap;
  }

  .filter-search {
    flex-basis: 100%;
  }

  .filter-chips {
    order: 4;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-legal {
    flex-direction: column;
  }

  .section {
    padding: 88px 0;
  }

  .topbar-right {
    display: none;
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 20px;
  }

  .topbar-inner {
    min-height: 34px;
    font-size: 11px;
  }

  .topbar-message {
    gap: 8px;
  }

  .hero {
    padding: 56px 0 48px;
  }

  .hero-title {
    font-size: clamp(2.35rem, 10.5vw, 3.2rem);
    letter-spacing: -0.04em;
  }

  .hero-sub,
  .page-sub {
    font-size: 15.5px;
  }

  .hero-actions,
  .page-actions,
  .cta-actions {
    gap: 10px;
  }

  .hero-actions .btn,
  .page-actions .btn,
  .cta-actions .btn {
    flex: 1 1 auto;
  }

  .hero-chips {
    gap: 8px 16px;
  }

  .float-chip {
    right: 10px;
    top: -14px;
  }

  .float-chip--bottom {
    top: auto;
    right: auto;
    left: 10px;
    bottom: -14px;
  }

  .router-row {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.7fr) 48px;
  }

  .router-foot {
    grid-template-columns: 1fr 1fr;
  }

  .router-spark {
    display: none;
  }

  .section {
    padding: 72px 0;
  }

  .section-sm {
    padding: 56px 0;
  }

  .section-title {
    font-size: clamp(1.85rem, 7.5vw, 2.5rem);
  }

  .section-desc {
    font-size: 15.5px;
  }

  .model-grid,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .stat {
    padding: 22px 20px;
  }

  .stat-value {
    font-size: 1.9rem;
  }

  .token-flow {
    grid-template-columns: 1fr 1fr;
  }

  .flow-step:nth-child(2n)::after {
    display: none;
  }

  .flow-step:nth-child(3)::after {
    display: block;
  }

  .flow-step:last-child::after {
    display: none;
  }

  .dash-kpis {
    grid-template-columns: repeat(2, 1fr);
  }

  .dash-kpi:nth-child(2n) {
    border-right: 0;
  }

  .dash-kpi:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .code-pane pre {
    font-size: 11px;
    padding: 18px 16px;
  }

  .table-note {
    flex-direction: column;
    gap: 6px;
  }

  .calc-form,
  .calc-result {
    padding: 24px;
  }

  .calc-total {
    font-size: 2.8rem;
  }

  .footer {
    padding: 56px 0 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .auth-visual {
    min-height: 340px;
    padding: 28px 24px;
  }

  .auth-copy h1 {
    font-size: 2.1rem;
  }

  .auth-panel {
    padding: 40px 24px 56px;
  }

  .auth-card h2 {
    font-size: 26px;
  }

  .notfound {
    min-height: 60vh;
  }
}

@media (max-width: 420px) {
  .hero-actions .btn,
  .page-actions .btn,
  .cta-actions .btn {
    width: 100%;
    flex-basis: 100%;
  }

  .header-inner {
    gap: 16px;
  }

  .brand img {
    height: 23px;
  }

  .brand-tag {
    display: none;
  }

  .model-prices {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- 23. Reduced motion -------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- 24. Print ----------------------------------------------- */
@media print {
  .topbar,
  .site-header,
  .footer,
  .cta-band,
  .mobile-menu {
    display: none !important;
  }
}

/* ---------- 25. Developer split ------------------------------------- */
.dev-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: 64px;
  align-items: center;
}

.steps {
  display: grid;
  gap: 22px;
  margin-top: 34px;
}

.step {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.step-num {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--green);
}

.step-title {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

.step-text {
  margin-top: 4px;
  font-size: 12.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.52);
}

.step-text code {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--green);
  background: rgba(127, 194, 41, 0.1);
  padding: 2px 5px;
}

.check-list {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--body);
}

.check-list svg {
  width: 15px;
  height: 15px;
  margin-top: 3px;
  color: var(--green-700);
  flex: none;
}

.section-dark .check-list li,
.section-deep .check-list li {
  color: rgba(255, 255, 255, 0.58);
}

.section-dark .check-list svg,
.section-deep .check-list svg {
  color: var(--green);
}

/* ---------- 26. Formula / plans ------------------------------------- */
.formula-card {
  border: 1px solid var(--line);
  background: #fff;
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.formula-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--body);
}

.formula-line:last-of-type {
  border-bottom: 0;
}

.formula-line b {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.formula-line--total {
  margin-top: 10px;
  padding: 18px;
  border: 0;
  background: var(--paper-2);
}

.formula-line--total span {
  font-weight: 600;
  color: var(--ink);
}

.formula-line--total b {
  font-size: 22px;
  color: var(--green-800);
}

.formula-note {
  margin-top: 16px;
  font-size: 11px;
  color: var(--muted);
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.plan-card {
  display: flex;
  flex-direction: column;
  padding: 30px;
  border: 1px solid var(--line);
  background: #fff;
}

.plan-card--featured {
  border-color: var(--green);
  box-shadow: var(--shadow-md);
}

.plan-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.plan-name {
  font-size: 18px;
  font-weight: 650;
}

.plan-badge {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  padding: 3px 7px;
  background: var(--paper-3);
  color: var(--green-800);
}

.plan-price {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 34px;
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 600;
}

.plan-price small {
  font-size: 11px;
  letter-spacing: 0;
  color: var(--muted);
  font-weight: 400;
}

.plan-text {
  margin-top: 12px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--body);
}

.plan-list {
  display: grid;
  gap: 10px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  flex: 1;
}

.plan-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--body);
}

.plan-list svg {
  width: 13px;
  height: 13px;
  color: var(--green-700);
  flex: none;
  margin-top: 2px;
}

.plan-card .btn {
  margin-top: 24px;
}

/* ---------- 27. About ------------------------------------------------ */
.about-story {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 72px;
  align-items: start;
}

.about-copy {
  display: grid;
  gap: 18px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--body);
}

.about-copy strong {
  color: var(--ink);
  font-weight: 600;
}

.company-card {
  border: 1px solid var(--line);
  background: #fff;
  padding: 32px;
}

.company-row {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.company-row:last-child {
  border-bottom: 0;
}

.company-row dt {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.company-row dd {
  margin: 0;
  color: var(--ink);
  font-weight: 500;
}

/* ---------- 28. Misc ------------------------------------------------ */
[id] {
  scroll-margin-top: 104px;
}

.section-dark .card,
.section-deep .card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}

.section-dark .card-title,
.section-deep .card-title {
  color: #fff;
}

.section-dark .card-text,
.section-deep .card-text {
  color: rgba(255, 255, 255, 0.56);
}

.section-dark .tag,
.section-deep .tag {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.64);
}

@media (max-width: 1024px) {
  .dev-grid,
  .about-story {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .plan-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .plan-grid {
    grid-template-columns: 1fr;
  }

  .company-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .formula-card {
    padding: 24px;
  }
}

.token-flow--six {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.token-flow--six .flow-step {
  padding: 22px 16px;
}

@media (max-width: 1180px) {
  .token-flow--six {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .token-flow--six .flow-step:nth-child(3n)::after {
    display: none;
  }
}

@media (max-width: 640px) {
  .token-flow--six {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .token-flow--six .flow-step:nth-child(3n)::after {
    display: block;
  }
  .token-flow--six .flow-step:nth-child(2n)::after {
    display: none;
  }
}

@media (max-width: 640px) {
  .float-chip {
    display: none;
  }

  .router-gate small {
    font-size: 7.5px;
    letter-spacing: 0.04em;
    white-space: nowrap;
  }

  .router-gate {
    gap: 10px;
  }

  .router-gate b {
    font-size: 11.5px;
  }
}

/* ---------- 29. Readability refinements ----------------------------- */
.ledger-head span {
  font-size: 11px;
}

.ledger-head b {
  font-size: 12px;
}

.ledger-row {
  font-size: 12.5px;
}

.ledger-tokens {
  font-size: 10.5px;
}

.ledger-cost {
  font-size: 12px;
}

.ledger-total small {
  font-size: 9.5px;
}

.ledger-total b {
  font-size: 20px;
}

.model-tags .tag {
  font-size: 10.5px;
  height: 23px;
}

.model-desc {
  font-size: 14px;
}

.footer-legal {
  font-size: 11.5px;
}

.code-pane pre {
  font-size: 13px;
}

@media (max-width: 640px) {
  .code-pane pre {
    font-size: 11px;
  }
}

.sort-btn[data-direction="asc"] svg {
  transform: rotate(180deg);
}
