/* Model Nexus standalone brand pages */
:root {
  --bg: #f7f9fb;
  --surface: #ffffff;
  --surface-2: #eef5f4;
  --ink: #142033;
  --muted: #52657f;
  --line: #dce6ef;
  --teal: #0f766e;
  --teal-2: #0b5e58;
  --blue: #285c8f;
  --amber: #b7791f;
  --rose: #9f3a4a;
  --shadow: 0 18px 48px rgba(20, 32, 51, 0.10);
}
* { box-sizing: border-box; }
html { min-width: 0; background: var(--bg); }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans CJK SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
  letter-spacing: 0;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.site-shell { min-height: 100vh; display: flex; flex-direction: column; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 249, 251, 0.92);
  border-bottom: 1px solid rgba(220, 230, 239, 0.9);
  backdrop-filter: blur(14px);
}
.nav {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
}
.brand img { width: 32px; height: 32px; object-fit: contain; border-radius: 6px; }
.nav-links { display: flex; align-items: center; justify-content: flex-end; gap: 6px; flex-wrap: wrap; }
.nav-links a, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border-radius: 8px;
  padding: 8px 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  color: var(--muted);
}
.nav-links a:hover { color: var(--ink); background: #edf3f7; }
.button.primary { background: var(--teal); color: #fff; box-shadow: 0 12px 24px rgba(15, 118, 110, 0.22); }
.button.primary:hover { background: var(--teal-2); }
.button.secondary { color: var(--teal); border: 1px solid rgba(15, 118, 110, 0.28); background: #fff; }
.button.ghost { border: 1px solid var(--line); background: #fff; color: var(--ink); }
.main { flex: 1; }
.section { padding: 72px 0; }
.section.tight { padding: 48px 0; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 56px;
  background: #eef5f4;
  border-bottom: 1px solid var(--line);
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 -130px auto;
  width: 430px;
  height: 430px;
  background: url('/docs/assets/modelnexus-logo.png') center/contain no-repeat;
  opacity: 0.10;
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 44px;
  align-items: center;
}
.kicker { margin: 0 0 12px; color: var(--teal); font-size: 13px; font-weight: 800; text-transform: uppercase; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 { margin: 0; font-size: clamp(42px, 6vw, 72px); line-height: 1.03; letter-spacing: 0; }
.lead { margin: 18px 0 0; max-width: 780px; color: #40516a; font-size: clamp(17px, 2vw, 21px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-note { margin-top: 18px; color: var(--muted); font-size: 14px; }
.metrics-panel { border: 1px solid rgba(20, 32, 51, 0.10); border-radius: 8px; background: rgba(255, 255, 255, 0.86); box-shadow: var(--shadow); overflow: hidden; }
.metrics-head { display: flex; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; font-weight: 700; }
.metric-row { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 15px 18px; border-bottom: 1px solid #edf2f7; }
.metric-row:last-child { border-bottom: 0; }
.metric-row strong { display: block; color: var(--ink); font-size: 15px; }
.metric-row span { color: var(--muted); font-size: 13px; }
.metric-value { color: var(--teal); font-weight: 900; white-space: nowrap; }
.section-title { max-width: 780px; margin-bottom: 26px; }
.section-title h2 { margin: 0; font-size: clamp(28px, 4vw, 42px); line-height: 1.15; }
.section-title p { margin: 12px 0 0; color: var(--muted); font-size: 17px; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card { border: 1px solid var(--line); border-radius: 8px; background: var(--surface); padding: 22px; }
.card h3 { margin: 0 0 10px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); }
.badge { display: inline-flex; align-items: center; border-radius: 999px; background: #e4f3f0; color: var(--teal-2); padding: 4px 10px; font-size: 12px; font-weight: 800; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
table { width: 100%; min-width: 820px; border-collapse: collapse; }
th, td { padding: 14px 16px; text-align: left; border-bottom: 1px solid #e8eef4; vertical-align: top; }
th { background: #f0f5f8; color: #34445c; font-size: 13px; }
tr:last-child td { border-bottom: 0; }
td strong { color: var(--ink); }
.price-pill { display: inline-flex; border-radius: 999px; padding: 4px 10px; background: #e4f3f0; color: var(--teal-2); font-weight: 800; }
.note { margin-top: 14px; color: var(--muted); font-size: 14px; }
.pricing-section { background: #f7f9fb; }
.pricing-title { max-width: 860px; }
.channel-grid, .plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.channel-grid { margin-bottom: 22px; }
.channel-card, .plan-card { border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.channel-card { position: relative; min-height: 190px; padding: 22px; overflow: hidden; }
.channel-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--teal); }
.muted-card::before { background: var(--blue); }
.priority-card::before { background: var(--amber); }
.featured-card { border-color: rgba(15, 118, 110, 0.32); box-shadow: 0 16px 36px rgba(15, 118, 110, 0.10); }
.pricing-label { color: var(--muted); font-size: 13px; font-weight: 800; }
.ratio-value { margin: 6px 0 10px; color: var(--ink); font-size: 42px; line-height: 1; font-weight: 900; letter-spacing: 0; }
.featured-card .ratio-value { color: var(--teal); }
.priority-card .ratio-value { color: var(--amber); }
.channel-card p { margin: 0; color: var(--muted); }
.plan-grid { align-items: stretch; }
.plan-card { display: grid; align-content: start; padding: 22px; }
.plan-head { min-height: 150px; padding-bottom: 16px; border-bottom: 1px solid #e8eef4; }
.plan-head h3 { margin: 12px 0 8px; font-size: 22px; }
.plan-head p { margin: 0; color: var(--muted); }
.badge.soft { background: #edf3f7; color: var(--blue); }
.badge.warm { background: #fff4df; color: var(--amber); }
.plan-row { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; align-items: center; min-height: 52px; padding: 12px 0; border-bottom: 1px solid #edf2f7; }
.plan-row:last-child { border-bottom: 0; }
.plan-row strong { color: var(--ink); font-size: 19px; }
.plan-row span { color: var(--muted); }
.plan-row.emphasis { margin: 8px -10px; padding: 12px 10px; border: 1px solid rgba(15, 118, 110, 0.18); border-radius: 8px; background: #f1faf8; }
.pricing-footnote { margin: 18px 0 0; border: 1px solid #d9e7ee; border-left: 4px solid var(--teal); border-radius: 8px; background: #fff; padding: 14px 16px; color: #40516a; }
.split { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: 28px; align-items: start; }
.feature-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.feature-list li { position: relative; padding: 14px 16px 14px 38px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--muted); }
.feature-list li::before { content: ""; position: absolute; left: 16px; top: 23px; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.callout { border: 1px solid #d9e7ee; border-left: 4px solid var(--blue); border-radius: 8px; background: #f6fafc; padding: 18px; color: #40516a; }
.legal-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; align-items: start; }
.legal-nav { position: sticky; top: 92px; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 16px; }
.legal-nav a { display: block; padding: 8px 0; color: var(--muted); text-decoration: none; font-size: 14px; }
.legal-nav a:hover { color: var(--teal); }
.legal-doc { border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 34px; }
.legal-doc h1 { font-size: clamp(34px, 5vw, 52px); }
.legal-doc h2 { margin: 34px 0 10px; padding-top: 18px; border-top: 1px solid #e8eef4; font-size: 23px; }
.legal-doc p, .legal-doc li { color: var(--muted); }
.legal-doc ul { padding-left: 22px; }
.site-footer { border-top: 1px solid var(--line); background: #101827; color: #d7e2ee; }
.footer-inner { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 28px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 18px; }
.footer-links a { color: #d7e2ee; text-decoration: none; }
.footer-links a:hover { color: #fff; }
@media (max-width: 900px) {
  .hero-grid, .split, .legal-layout { grid-template-columns: 1fr; }
  .card-grid, .channel-grid, .plan-grid { grid-template-columns: 1fr; }
  .plan-head { min-height: 0; }
  .legal-nav { position: static; }
}
@media (max-width: 640px) {
  .nav { align-items: flex-start; flex-direction: column; padding: 12px 0; }
  .nav-links { justify-content: flex-start; }
  .hero { padding: 46px 0 38px; }
  .section { padding: 48px 0; }
  h1 { font-size: 38px; line-height: 1.08; }
  .lead { font-size: 16px; }
  .ratio-value { font-size: 36px; }
  .plan-row { grid-template-columns: 84px minmax(0, 1fr); }
  .legal-doc { padding: 22px; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}
