:root {
  color-scheme: dark;
  --bg: #06101a;
  --bg-2: #0a1824;
  --panel: rgba(13, 31, 44, 0.86);
  --panel-2: rgba(17, 42, 58, 0.78);
  --line: rgba(151, 190, 211, 0.18);
  --line-strong: rgba(139, 231, 213, 0.34);
  --text: #eef8fb;
  --muted: #98acb8;
  --cyan: #65e5d1;
  --cyan-2: #2ec7c3;
  --lime: #c8f169;
  --amber: #ffc76b;
  --red: #ff8d81;
  --blue: #82b8ff;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  --radius: 18px;
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% -10%, rgba(46, 199, 195, 0.15), transparent 32rem),
    radial-gradient(circle at 95% 5%, rgba(130, 184, 255, 0.11), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--cyan); }

button,
select,
input { font: inherit; }

button:focus-visible,
select:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(101, 229, 209, 0.46);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(6, 16, 26, 0.84);
  backdrop-filter: blur(18px);
}

.nav {
  width: min(calc(100% - 36px), var(--max));
  min-height: 70px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 760;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--cyan);
  background: linear-gradient(135deg, rgba(101, 229, 209, 0.13), rgba(130, 184, 255, 0.08));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
}

.brand-mark svg { width: 22px; height: 22px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 0.9rem;
}

.shell {
  width: min(calc(100% - 36px), var(--max));
  margin: 0 auto;
}

.workspace {
  padding: 42px 0 24px;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.42fr);
  gap: 22px;
  align-items: stretch;
}

.intro-panel,
.picker-panel,
.surface,
.model-card,
.metric-card,
.family-card,
.table-wrap,
.method-card {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(17, 42, 58, 0.78), rgba(9, 25, 37, 0.86));
  box-shadow: var(--shadow);
}

.intro-panel {
  border-radius: 26px;
  padding: clamp(26px, 5vw, 48px);
  overflow: hidden;
  position: relative;
}

.intro-panel::after {
  content: "";
  position: absolute;
  width: 250px;
  height: 250px;
  border: 1px solid rgba(101,229,209,0.2);
  border-radius: 50%;
  right: -145px;
  top: -110px;
  box-shadow: 0 0 0 28px rgba(101,229,209,0.025), 0 0 0 64px rgba(101,229,209,0.02);
  pointer-events: none;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 720;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p { margin-top: 0; }

h1 {
  margin-bottom: 18px;
  font-size: clamp(2.2rem, 5.6vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -0.055em;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  line-height: 1.18;
  letter-spacing: -0.035em;
}

h3 {
  margin-bottom: 7px;
  font-size: 1.05rem;
  line-height: 1.35;
}

.lede {
  max-width: 42rem;
  color: #bfd0d8;
  font-size: 1.04rem;
}

.proof-row {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.proof-value { display: block; font-size: 1.55rem; font-weight: 760; color: var(--lime); }
.proof-label { color: var(--muted); font-size: 0.78rem; }

.picker-panel {
  border-radius: 26px;
  padding: clamp(22px, 4vw, 34px);
  position: relative;
}

.picker-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.estimate-badge,
.measured-badge,
.status,
.tag,
.family-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.estimate-badge,
.measured-badge { padding: 8px 11px; font-size: 0.72rem; }
.estimate-badge { color: #241600; background: var(--amber); }
.measured-badge { color: #052019; background: var(--lime); }

.controls {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 22px;
}

.field label {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
}

.field select {
  width: 100%;
  min-height: 46px;
  padding: 0 38px 0 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--text);
  background: #0b1c28;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 17px) 20px, calc(100% - 12px) 20px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.result-summary {
  padding: 15px 17px;
  margin-bottom: 12px;
  border-left: 3px solid var(--cyan);
  border-radius: 0 11px 11px 0;
  background: rgba(101,229,209,0.06);
  color: #cce0e7;
  font-size: 0.9rem;
}

.recommendations { display: grid; gap: 10px; }

.recommendation {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(7, 20, 30, 0.64);
}

.rank {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(101,229,209,0.24);
  border-radius: 10px;
  color: var(--cyan);
  font-weight: 800;
}

.recommendation-name { margin: 0; font-size: 0.98rem; font-weight: 760; }
.recommendation-meta { color: var(--muted); font-size: 0.76rem; }
.recommendation-speed { text-align: right; }
.speed-value { display: block; color: var(--lime); font-size: 1.05rem; font-weight: 760; }
.speed-label { color: var(--muted); font-size: 0.68rem; }

.section { padding: 54px 0; }
.section.compact { padding: 32px 0; }
.section-heading { max-width: 760px; margin-bottom: 26px; }
.section-heading p { color: var(--muted); }

.notice-strip {
  margin: 18px 0 0;
  padding: 14px 18px;
  border: 1px solid rgba(255, 199, 107, 0.27);
  border-radius: 13px;
  background: rgba(255, 199, 107, 0.06);
  color: #d7c39e;
  font-size: 0.86rem;
}

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }

.metric-card,
.method-card,
.family-card {
  border-radius: var(--radius);
  padding: 22px;
}

.metric-number { font-size: 2rem; font-weight: 800; color: var(--lime); line-height: 1.15; }
.metric-label { margin-top: 5px; color: var(--muted); font-size: 0.82rem; }

.family-card {
  display: flex;
  min-height: 150px;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 160ms ease, border-color 160ms ease;
}
.family-card:hover { transform: translateY(-3px); border-color: var(--line-strong); color: inherit; }
.family-card p { margin-bottom: 18px; color: var(--muted); font-size: 0.84rem; }
.family-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.family-pill { padding: 7px 9px; border: 1px solid var(--line); color: #bdd0d8; font-size: 0.7rem; }

.page-hero {
  padding: 58px 0 32px;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 { max-width: 900px; font-size: clamp(2.35rem, 5.2vw, 4.2rem); }
.page-hero .lede { max-width: 760px; }

.breadcrumb {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.8rem;
}
.breadcrumb span { color: #5e7480; }

.hero-actions { display: flex; gap: 11px; flex-wrap: wrap; margin-top: 24px; }
.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: #072019;
  background: var(--cyan);
  font-weight: 760;
  cursor: pointer;
}
.button:hover { color: #06101a; background: #88f2e0; }
.button.secondary { color: var(--text); background: transparent; border-color: var(--line); }
.button.secondary:hover { color: var(--cyan); background: rgba(101,229,209,0.06); }
.button.small { min-height: 32px; padding: 0 10px; font-size: 0.72rem; }

.surface { border-radius: 22px; padding: clamp(22px, 4vw, 34px); }

.model-list { display: grid; gap: 13px; }
.model-card {
  border-radius: 16px;
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.85fr);
  gap: 20px;
  align-items: center;
}

.model-title-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.model-title-row h3 { margin: 0; }
.model-card p { margin: 8px 0 0; color: var(--muted); font-size: 0.85rem; }

.status { padding: 7px 9px; font-size: 0.67rem; }
.status.good { color: #062018; background: var(--lime); }
.status.slow { color: #241600; background: var(--amber); }
.status.bad { color: #240705; background: var(--red); }
.status.cloud { color: #07142a; background: var(--blue); }

.model-numbers {
  display: grid;
  grid-template-columns: repeat(3, minmax(70px, 1fr));
  gap: 9px;
}
.number-cell { padding-left: 12px; border-left: 1px solid var(--line); }
.number-value { display: block; font-weight: 760; color: #dff4f4; }
.number-label { display: block; color: var(--muted); font-size: 0.68rem; }

.command {
  margin-top: 13px;
  padding: 10px 12px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #06101a;
  color: #b9e9df;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.75rem;
  overflow: hidden;
}
.command code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copy { border: 0; color: var(--cyan); background: transparent; cursor: pointer; font-weight: 700; }

.table-wrap { border-radius: 18px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th, td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--muted); background: rgba(6,16,26,0.48); font-size: 0.75rem; letter-spacing: 0.04em; }
td { color: #d2e0e5; font-size: 0.84rem; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgba(101,229,209,0.035); }

.tag { padding: 6px 8px; margin: 2px 4px 2px 0; border: 1px solid var(--line); color: var(--muted); font-size: 0.67rem; }

.callout {
  padding: 18px 20px;
  border-left: 3px solid var(--lime);
  border-radius: 0 13px 13px 0;
  background: rgba(200,241,105,0.06);
  color: #d6e5ba;
}
.callout p:last-child { margin-bottom: 0; }

.empty-state {
  padding: 26px;
  border: 1px dashed rgba(151,190,211,0.28);
  border-radius: 15px;
  text-align: center;
  color: var(--muted);
}
.empty-state strong { display: block; margin-bottom: 5px; color: var(--text); }

.prose { max-width: 820px; }
.prose h2 { margin-top: 42px; }
.prose h3 { margin-top: 28px; }
.prose p, .prose li { color: #bdd0d8; }
.prose a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.prose code { padding: 2px 6px; border: 1px solid var(--line); border-radius: 6px; background: #07131e; color: #b9e9df; }

.site-footer {
  margin-top: 60px;
  border-top: 1px solid var(--line);
  padding: 28px 0 44px;
  color: var(--muted);
  font-size: 0.78rem;
}
.footer-grid { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 920px) {
  .workspace { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .model-card { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .nav { min-height: 62px; }
  .nav-links a:not(:last-child) { display: none; }
  .workspace { padding-top: 22px; }
  .intro-panel, .picker-panel { border-radius: 20px; }
  .controls { grid-template-columns: 1fr; }
  .proof-row { gap: 8px; }
  .proof-value { font-size: 1.2rem; }
  .proof-label { font-size: 0.67rem; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .recommendation { grid-template-columns: 34px minmax(0, 1fr); }
  .recommendation-speed { grid-column: 2; text-align: left; }
  .model-numbers { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { flex-direction: column; }
  .page-hero { padding-top: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
