/* ClashTui — editorial terminal system */
:root {
  --paper: #f2efe6;
  --paper-deep: #e9e5d8;
  --paper-light: #fbf9f2;
  --ink: #11150f;
  --ink-soft: #333b31;
  --muted: #626b5e;
  --line: rgba(17, 21, 15, 0.14);
  --line-strong: rgba(17, 21, 15, 0.32);
  --acid: #d8fb62;
  --acid-deep: #c4ec3f;
  --forest: #173d2c;
  --forest-deep: #0d2a1e;
  --terminal: #0b110d;
  --terminal-soft: #131c15;
  --terminal-line: #27352b;
  --terminal-text: #dfead8;
  --white: #fffdf7;
  --warn: #b7472f;
  --max: 1220px;
  --radius: 22px;
  --shadow-hard: 6px 6px 0 var(--ink);
  --font-sans: "Avenir Next", "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --font-serif: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", serif;
  --font-mono: "SFMono-Regular", "JetBrains Mono", "Cascadia Code", "Roboto Mono", Menlo, Consolas, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(rgba(17, 21, 15, 0.085) 0.65px, transparent 0.65px),
    linear-gradient(90deg, rgba(17, 21, 15, 0.025) 1px, transparent 1px);
  background-size: 18px 18px, 96px 96px;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.68;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

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

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

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

button {
  color: inherit;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure,
blockquote {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  line-height: 1.1;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

code,
kbd,
pre,
samp {
  font-family: var(--font-mono);
}

kbd {
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 5px;
  padding: 1px 5px;
  background: var(--paper-light);
  font-size: 0.82em;
}

:focus-visible {
  outline: 3px solid var(--forest);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: 10px;
  left: 10px;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 8px;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.wrap {
  width: min(calc(100% - 48px), var(--max));
  margin-inline: auto;
}

.section {
  padding: clamp(58px, 7vw, 98px) 0;
}

.section-tight {
  padding: clamp(34px, 4vw, 54px) 0;
}

.section-bottom {
  padding-bottom: clamp(58px, 7vw, 98px);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.72fr);
  gap: clamp(24px, 4vw, 58px);
  align-items: end;
  margin-bottom: clamp(26px, 3vw, 38px);
}

.section-head h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 3.8vw, 46px);
  font-weight: 650;
}

.section-head p {
  margin-bottom: 2px;
  max-width: 40em;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.78;
}

.section-head .text-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 650;
}

.text-link {
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 5px;
  transition: text-decoration-color 0.2s ease, color 0.2s ease;
}

.text-link:hover {
  color: var(--forest);
  text-decoration-color: var(--forest);
}

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

.mono {
  font-family: var(--font-mono);
}

/* Header */
.site-header {
  position: sticky;
  z-index: 80;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(242, 239, 230, 0.91);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  text-decoration: none;
}

.brand-mark {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 11px;
  background: var(--acid);
  box-shadow: 2px 2px 0 var(--ink);
  transition: transform 0.2s ease;
}

.brand-mark img {
  width: 23px;
  height: 23px;
}

.brand:hover .brand-mark {
  transform: rotate(-5deg) translateY(-1px);
}

.brand-name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.brand-sub {
  display: block;
  margin-top: -3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.desktop-nav a {
  position: relative;
  padding: 8px 13px;
  border-radius: 8px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 550;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease;
}

.desktop-nav a:hover {
  background: rgba(17, 21, 15, 0.06);
  color: var(--ink);
}

.desktop-nav a[aria-current="page"]:not(.nav-rank) {
  color: var(--ink);
}

.desktop-nav a[aria-current="page"]:not(.nav-rank)::after {
  content: "";
  position: absolute;
  right: 13px;
  bottom: 2px;
  left: 13px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
}

.nav-rank {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: 8px;
  border: 1px solid var(--ink);
  background: var(--acid);
  color: var(--ink) !important;
  font-weight: 650 !important;
}

.nav-rank::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--forest);
  box-shadow: 0 0 0 3px rgba(23, 61, 44, 0.12);
}

.nav-rank:hover {
  background: var(--acid-deep) !important;
}

.header-cta {
  flex: 0 0 auto;
  display: inline-flex;
  min-height: 39px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.header-cta:hover {
  transform: translate(-2px, -2px);
  box-shadow: 3px 3px 0 var(--acid);
}

.header-rank {
  display: none;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 11px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--acid);
  font-size: 11px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.header-rank span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--forest);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 9px;
  background: var(--paper-light);
  cursor: pointer;
}

.menu-toggle span {
  position: relative;
  display: block;
  width: 17px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 17px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.2s ease;
}

.menu-toggle span::before {
  top: -5px;
}

.menu-toggle span::after {
  top: 5px;
}

.menu-toggle[aria-expanded="true"] span {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] span::before {
  transform: translateY(5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span::after {
  transform: translateY(-5px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  padding: 10px 0 18px;
}

.mobile-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
}

.mobile-nav a:last-child {
  border-bottom: 0;
}

.mobile-nav .mobile-rank {
  margin-top: 10px;
  padding: 14px 16px;
  border: 1px solid var(--ink);
  border-radius: 10px;
  background: var(--acid);
}

.mobile-nav .mobile-rank span {
  color: var(--forest);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
}

/* Buttons */
.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 21px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 650;
  line-height: 1;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover {
  transform: translate(-2px, -2px);
}

.btn-dark {
  background: var(--ink);
  color: var(--paper);
}

.btn-dark:hover {
  box-shadow: 4px 4px 0 var(--acid);
}

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

.btn-outline:hover {
  background: var(--paper-light);
  box-shadow: 4px 4px 0 var(--ink);
}

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

.btn-acid:hover {
  background: var(--white);
  box-shadow: 4px 4px 0 rgba(216, 251, 98, 0.35);
}

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

.btn-paper:hover {
  box-shadow: 4px 4px 0 var(--acid);
}

/* Home hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(440px, 0.98fr);
  gap: clamp(34px, 5vw, 72px);
  align-items: center;
  padding-top: clamp(52px, 6.5vw, 88px);
  padding-bottom: clamp(38px, 4vw, 56px);
}

.hero-copy {
  min-width: 0;
}

.hero h1 {
  margin-bottom: 24px;
  font-size: clamp(39px, 4.7vw, 64px);
  font-weight: 650;
  line-height: 1.04;
  letter-spacing: -0.06em;
}

.hero h1 .mark {
  background-image: linear-gradient(transparent 64%, var(--acid) 64%);
  background-repeat: no-repeat;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.lede {
  max-width: 36em;
  margin-bottom: 26px;
  color: var(--ink-soft);
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.82;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 20px;
  margin-top: 30px;
  padding-top: 19px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.hero-meta span {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
}

.hero-meta strong {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
}

/* Terminal illustration */
.terminal-wrap {
  position: relative;
  min-width: 0;
}

.terminal {
  overflow: hidden;
  border: 1px solid #2a382e;
  border-radius: 22px;
  background: var(--terminal);
  box-shadow: 11px 11px 0 rgba(23, 61, 44, 0.13), 0 28px 64px rgba(17, 21, 15, 0.16);
  color: var(--terminal-text);
  font-family: var(--font-mono);
  transform: rotate(0.45deg);
}

.term-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--terminal-line);
  background: #101711;
}

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

.term-dots i {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3d4c40;
}

.term-dots i:first-child {
  background: #d8fb62;
}

.term-dots i:nth-child(2) {
  background: #7d8d72;
}

.term-title {
  overflow: hidden;
  margin: 0 auto;
  color: #7f9182;
  font-size: 10px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.term-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #9eb894;
  font-size: 9px;
  letter-spacing: 0.08em;
}

.term-live::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 0 3px rgba(216, 251, 98, 0.1);
}

.term-tabs {
  display: flex;
  gap: 3px;
  overflow: hidden;
  padding: 8px 11px;
  border-bottom: 1px solid var(--terminal-line);
}

.term-tab {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 4px;
  color: #7d8d80;
  font-size: 9px;
  white-space: nowrap;
}

.term-tab.active {
  background: var(--acid);
  color: #10160f;
  font-weight: 600;
}

.term-body {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  min-height: 344px;
}

.term-side {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 13px 7px;
  border-right: 1px solid var(--terminal-line);
  background: #080d09;
}

.term-side-item {
  padding: 9px 7px;
  border-radius: 5px;
  color: #718274;
  font-size: 8.5px;
  line-height: 1.2;
  white-space: nowrap;
}

.term-side-item span {
  display: block;
  margin-bottom: 2px;
  color: #4d5d50;
  font-size: 7px;
}

.term-side-item.active {
  background: #18251a;
  color: var(--acid);
}

.term-side-item.active span {
  color: #8eab7e;
}

.term-main {
  min-width: 0;
  padding: 15px 16px 12px;
}

.term-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  color: #c8d7c0;
  font-size: 10px;
}

.term-panel-head span:last-child {
  color: #6e806f;
  font-size: 8px;
}

.term-group {
  margin-bottom: 10px;
  padding: 9px 10px;
  border: 1px solid #25342a;
  border-radius: 7px;
  background: #0f1711;
}

.term-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
  color: #97ab8b;
  font-size: 8px;
  letter-spacing: 0.04em;
}

.term-group-head span:last-child {
  color: #617464;
  letter-spacing: 0;
}

.node-row {
  display: grid;
  grid-template-columns: 6px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 6px 0;
  border-top: 1px dashed #223027;
  color: #aebda7;
  font-size: 9px;
}

.node-row:first-of-type {
  border-top: 0;
}

.node-row.active {
  color: #eef8e7;
}

.node-row i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #58735a;
}

.node-row.active i {
  background: var(--acid);
  box-shadow: 0 0 0 3px rgba(216, 251, 98, 0.08);
}

.node-row span:last-child {
  color: #708574;
  font-size: 8px;
}

.node-row.active span:last-child {
  color: var(--acid);
}

.term-log {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--terminal-line);
  color: #758a78;
  font-size: 8px;
  line-height: 1.85;
}

.term-log b {
  color: #a9c19d;
  font-weight: 400;
}

.term-log .acid {
  color: var(--acid);
}

.term-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 8px 13px;
  border-top: 1px solid var(--terminal-line);
  background: #101711;
  color: #728575;
  font-size: 8px;
}

.term-foot span:last-child {
  margin-left: auto;
}

.terminal-caption {
  position: absolute;
  bottom: 22px;
  left: -18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--paper-light);
  box-shadow: 3px 3px 0 rgba(17, 21, 15, 0.12);
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 550;
}

.terminal-caption::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--forest);
}

/* Ranking callout */
.rank-callout {
  padding-top: 10px;
}

.rank-callout-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) auto;
  gap: 34px;
  align-items: end;
  overflow: hidden;
  padding: clamp(28px, 4.5vw, 50px);
  border: 1px solid var(--forest-deep);
  border-radius: 26px;
  background: var(--forest);
  color: var(--paper);
}

.rank-callout-inner::before {
  content: "";
  position: absolute;
  top: -110px;
  right: 18%;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(216, 251, 98, 0.2);
  border-radius: 50%;
}

.rank-callout-inner::after {
  content: "";
  position: absolute;
  right: -26px;
  bottom: -56px;
  width: 210px;
  height: 210px;
  border: 1px solid rgba(216, 251, 98, 0.14);
  border-radius: 50%;
}

.rank-callout h2 {
  position: relative;
  z-index: 1;
  margin-bottom: 12px;
  font-size: clamp(38px, 4.8vw, 62px);
  font-weight: 650;
  letter-spacing: -0.055em;
}

.rank-callout p {
  position: relative;
  z-index: 1;
  max-width: 37em;
  margin-bottom: 0;
  color: #c4d3c7;
  font-size: 14.5px;
}

.rank-callout-side {
  position: relative;
  z-index: 1;
  display: flex;
  min-width: 176px;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.rank-callout-side small {
  color: #a9bdaa;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.03em;
}

.rank-callout-side .btn {
  width: 100%;
}

/* Feature cards */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
}

.feature {
  position: relative;
  display: flex;
  min-height: 226px;
  flex-direction: column;
  padding: 25px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: var(--paper-light);
}

.feature:nth-child(1) {
  grid-column: span 7;
  background: var(--ink);
  color: var(--terminal-text);
}

.feature:nth-child(2) {
  grid-column: span 5;
  background: var(--acid);
}

.feature:nth-child(3),
.feature:nth-child(4),
.feature:nth-child(5) {
  grid-column: span 4;
}

.feature-icon {
  width: 28px;
  height: 28px;
  margin-bottom: 30px;
  color: currentColor;
}

.feature h3 {
  margin-bottom: 9px;
  font-size: 21px;
  font-weight: 650;
  letter-spacing: -0.03em;
}

.feature p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.75;
}

.feature:nth-child(1) p {
  color: #a8b8ab;
}

.feature:nth-child(2) p {
  color: #324321;
}

.feature-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 22px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
}

.feature:nth-child(1) .feature-note {
  color: #829485;
}

.feature:nth-child(2) .feature-note {
  color: #425429;
}

.core-switch {
  display: flex;
  gap: 5px;
  margin-top: auto;
  padding-top: 22px;
}

.core-switch span {
  padding: 5px 9px;
  border: 1px solid #354438;
  border-radius: 5px;
  color: #8fa092;
  font-family: var(--font-mono);
  font-size: 9px;
}

.core-switch .on {
  border-color: var(--acid);
  background: var(--acid);
  color: var(--ink);
}

.terminal-mini {
  margin-top: auto;
  padding-top: 24px;
  color: #8ea18f;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 2;
}

.terminal-mini .acid {
  color: var(--acid);
}

/* Workflow */
.workflow {
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: clamp(58px, 7vw, 94px) 0;
  background: var(--forest-deep);
  color: var(--paper);
}

.workflow::before {
  content: "";
  position: absolute;
  top: -140px;
  right: -90px;
  width: 430px;
  height: 430px;
  border: 1px solid rgba(216, 251, 98, 0.12);
  border-radius: 50%;
}

.workflow .section-head {
  position: relative;
  z-index: 1;
}

.workflow .section-head h2 {
  color: var(--paper);
}

.workflow .section-head p {
  color: #aabeb0;
}

.steps {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(242, 239, 230, 0.18);
  list-style: none;
}

.step {
  min-width: 0;
  padding: 23px 22px 0 0;
  border-right: 1px solid rgba(242, 239, 230, 0.14);
}

.step + .step {
  padding-left: 22px;
}

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

.step-num {
  margin-bottom: 25px;
  color: var(--acid);
  font-family: var(--font-mono);
  font-size: 12px;
}

.step h3 {
  margin-bottom: 9px;
  color: var(--paper);
  font-size: 19px;
  font-weight: 600;
}

.step p {
  margin-bottom: 0;
  color: #aabeb0;
  font-size: 13px;
  line-height: 1.76;
}

.step code {
  color: var(--acid);
  font-size: 0.92em;
}

.workflow-foot {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 32px;
}

.workflow-foot span {
  color: #8fa494;
  font-size: 12px;
}

/* Notes */
.notes-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.note-card {
  position: relative;
  display: flex;
  min-height: 278px;
  flex-direction: column;
  padding: 25px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: var(--paper-light);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.note-card:hover {
  transform: translate(-3px, -3px);
  background: var(--white);
  box-shadow: 5px 5px 0 var(--ink);
}

.note-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 30px;
}

.note-index {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
}

.note-tag {
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 10px;
}

.note-card h3 {
  max-width: 17em;
  margin-bottom: 11px;
  font-size: clamp(21px, 2vw, 25px);
  font-weight: 650;
}

.note-card h3 a {
  text-decoration: none;
}

.note-card h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.note-card p {
  max-width: 32em;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 13.5px;
}

.note-foot {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
}

/* Ranking strip */
.rank-strip {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.6fr);
  gap: 28px;
  align-items: center;
  overflow: hidden;
  padding: clamp(27px, 4vw, 44px);
  border: 1px solid var(--ink);
  border-radius: 22px;
  background: var(--acid);
  box-shadow: 8px 8px 0 var(--ink);
}

.rank-strip h2 {
  margin-bottom: 11px;
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 650;
}

.rank-strip p {
  max-width: 38em;
  margin-bottom: 0;
  color: #334325;
  font-size: 14px;
}

.rank-strip-link {
  display: block;
  padding: 20px;
  border: 1px solid var(--ink);
  border-radius: 14px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-strip-link:hover {
  transform: translate(-3px, -3px);
  box-shadow: 4px 4px 0 var(--white);
}

.rank-strip-name {
  display: block;
  margin-bottom: 5px;
  color: var(--acid);
  font-size: 22px;
  font-weight: 650;
}

.rank-strip-copy {
  display: block;
  color: #aebcae;
  font-size: 12px;
}

/* Footer */
.site-footer {
  margin-top: clamp(28px, 4vw, 48px);
  border-top: 1px solid var(--line);
  padding: 28px 0 34px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.footer-brand .brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  box-shadow: none;
}

.footer-brand .brand-mark img {
  width: 18px;
  height: 18px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  justify-content: center;
}

.footer-nav a {
  color: var(--muted);
  font-size: 12.5px;
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-copy {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  white-space: nowrap;
}

/* Page hero */
.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.55fr);
  gap: clamp(30px, 5vw, 70px);
  align-items: end;
  padding-top: clamp(46px, 6vw, 82px);
  padding-bottom: clamp(30px, 4vw, 50px);
}

.page-hero h1 {
  margin-bottom: 20px;
  font-size: clamp(44px, 6vw, 72px);
  font-weight: 650;
  letter-spacing: -0.06em;
}

.page-hero .lede {
  margin-bottom: 0;
}

.page-hero-side {
  padding: 22px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: var(--paper-light);
}

.page-hero-side h2 {
  margin-bottom: 10px;
  font-size: 19px;
  font-weight: 650;
}

.page-hero-side p {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 13px;
}

.page-hero-side .text-link {
  font-size: 12px;
  font-weight: 600;
}

/* Download page */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.os-card {
  display: flex;
  min-height: 310px;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: var(--paper-light);
}

.os-card:nth-child(2) {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--terminal-text);
}

.os-card.is-current {
  box-shadow: inset 0 0 0 2px var(--acid);
}

.os-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 35px;
}

.os-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.os-arch {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
}

.os-card:nth-child(2) .os-arch,
.os-card:nth-child(2) .os-copy {
  color: #9eafa0;
}

.os-card h2 {
  margin-bottom: 7px;
  font-size: 29px;
  font-weight: 650;
}

.os-support {
  margin-bottom: 18px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.02em;
}

.os-card:nth-child(2) .os-support {
  color: #8fa294;
}

.os-copy {
  max-width: 25em;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 13px;
}

.os-links {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: auto;
}

.os-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 40px;
  padding: 8px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.os-links a:hover {
  border-color: var(--ink);
  background: var(--acid);
  color: var(--ink);
}

.os-card:nth-child(2) .os-links a {
  border-color: #3a4c3e;
  color: var(--terminal-text);
}

.os-card:nth-child(2) .os-links a:hover {
  border-color: var(--acid);
  background: var(--acid);
  color: var(--ink);
}

.os-links a span:last-child {
  color: var(--muted);
  font-size: 9px;
}

.os-card:nth-child(2) .os-links a span:last-child {
  color: #839785;
}

.os-links a:hover span:last-child {
  color: var(--ink);
}

.download-callout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 16px;
  padding: 15px 17px;
  border: 1px dashed var(--line-strong);
  border-radius: 11px;
  background: rgba(255, 253, 247, 0.42);
  color: var(--muted);
  font-size: 12px;
}

.download-callout a {
  font-weight: 650;
  color: var(--ink);
}

.file-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--paper-light);
  -webkit-overflow-scrolling: touch;
}

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

.file-table th,
.file-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.file-table th {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.file-table tr:last-child td {
  border-bottom: 0;
}

.file-table td:first-child {
  font-weight: 650;
}

.file-table td:nth-child(3) {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
}

.file-table a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  font-size: 11px;
  text-decoration: none;
}

.file-table a:hover {
  background: var(--acid);
  border-color: var(--ink);
}

.install-band {
  padding: clamp(54px, 7vw, 88px) 0;
  background: var(--ink);
  color: var(--terminal-text);
}

.install-band .section-head h2 {
  color: var(--paper);
}

.install-band .section-head p {
  color: #a2b1a4;
}

.install-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid #344237;
}

.install-col {
  padding: 22px 24px 0 0;
  border-right: 1px solid #2b392e;
}

.install-col + .install-col {
  padding-left: 24px;
}

.install-col:last-child {
  border-right: 0;
}

.install-col h3 {
  margin-bottom: 18px;
  color: var(--paper);
  font-size: 19px;
  font-weight: 600;
}

.install-col p,
.install-col li {
  color: #9fb0a2;
  font-size: 12.5px;
  line-height: 1.75;
}

.install-col p {
  margin-bottom: 15px;
}

.install-col ol {
  margin: 0 0 16px;
  padding-left: 18px;
}

.install-col li {
  margin-bottom: 6px;
}

.install-col code {
  color: #d9e9d0;
  font-size: 0.95em;
}

.command {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 11px 0;
  padding: 10px 11px;
  border: 1px solid #334337;
  border-radius: 8px;
  background: #080d09;
  color: var(--acid);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.6;
  word-break: break-all;
}

.command code {
  color: inherit;
  font-size: inherit;
}

.copy-btn {
  flex: 0 0 auto;
  padding: 1px 5px;
  border: 1px solid #4d604f;
  border-radius: 4px;
  background: transparent;
  color: #97ab99;
  font-family: var(--font-mono);
  font-size: 8px;
  line-height: 1.6;
  cursor: pointer;
}

.copy-btn:hover {
  border-color: var(--acid);
  color: var(--acid);
}

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

.check {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper-light);
}

.check-mark {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--acid);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
}

.check h3 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 650;
}

.check p {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
}

.faq-list {
  border-top: 1px solid var(--line-strong);
}

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

.faq-item summary {
  position: relative;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 400;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  max-width: 60em;
  margin: -4px 0 20px;
  color: var(--muted);
  font-size: 14px;
}

/* Ranking page */
.rank-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.58fr);
  gap: clamp(30px, 5vw, 64px);
  align-items: end;
  padding-top: clamp(48px, 6vw, 82px);
  padding-bottom: clamp(26px, 3vw, 40px);
}

.rank-hero h1 {
  margin-bottom: 18px;
  font-size: clamp(54px, 7vw, 74px);
  font-weight: 650;
  letter-spacing: -0.065em;
}

.rank-hero .lede {
  margin-bottom: 18px;
}

.rank-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.02em;
}

.method-card {
  padding: 23px;
  border: 1px solid var(--ink);
  border-radius: 17px;
  background: var(--ink);
  color: var(--terminal-text);
}

.method-card h2 {
  margin-bottom: 14px;
  color: var(--paper);
  font-size: 18px;
  font-weight: 650;
}

.method-card ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: method;
}

.method-card li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 8px;
  padding: 9px 0;
  border-top: 1px solid #2d3b30;
  color: #a9b9ab;
  font-size: 12px;
  line-height: 1.55;
  counter-increment: method;
}

.method-card li::before {
  content: "0" counter(method);
  color: var(--acid);
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.9;
}

.sample-note {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  align-items: start;
  gap: 9px 28px;
  margin-top: 2px;
  margin-bottom: 30px;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(255, 253, 247, 0.46);
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.7;
}

.sample-note span:first-child {
  color: var(--ink);
  font-weight: 500;
}

.sample-note .sample-price-range {
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.01em;
  text-align: right;
}

.sample-price-range strong {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
}

.top-picks {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr) minmax(0, 0.85fr);
  gap: 14px;
}

.pick-card {
  display: flex;
  min-height: 432px;
  flex-direction: column;
  padding: 23px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: var(--paper-light);
}

.pick-card:first-child {
  border-color: var(--forest-deep);
  background: var(--forest);
  color: var(--paper);
}

.pick-card:nth-child(2) {
  background: var(--acid);
}

.pick-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 39px;
}

.pick-rank {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
}

.pick-card:first-child .pick-rank {
  color: #a6bda9;
}

.pick-card:nth-child(2) .pick-rank {
  color: #4b5c2b;
}

.pick-level {
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.04em;
}

.pick-card:first-child .pick-level {
  border-color: #49634f;
  color: #a9c2ac;
}

.pick-card:nth-child(2) .pick-level {
  border-color: rgba(17, 21, 15, 0.22);
  color: #425227;
}

.pick-code {
  margin-bottom: 5px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
}

.pick-card:first-child .pick-code {
  color: #9cb3a0;
}

.pick-card:nth-child(2) .pick-code {
  color: #4b5c2b;
}

.pick-card h3 {
  margin-bottom: 12px;
  font-size: clamp(25px, 2.7vw, 34px);
  font-weight: 650;
  letter-spacing: -0.04em;
}

.pick-card:first-child h3 {
  color: var(--paper);
}

.pick-card p {
  margin-bottom: 19px;
  color: var(--muted);
  font-size: 13px;
}

.pick-card:first-child p {
  color: #b4c7b8;
}

.pick-card:nth-child(2) p {
  color: #3e4d26;
}

.pick-specs {
  margin: 0 0 22px;
  border-top: 1px solid var(--line);
}

.pick-card:first-child .pick-specs {
  border-color: #3c5543;
}

.pick-specs div {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}

.pick-card:first-child .pick-specs div {
  border-color: #32483a;
}

.pick-specs dt {
  color: var(--muted);
}

.pick-card:first-child .pick-specs dt {
  color: #91a896;
}

.pick-specs dd {
  margin: 0;
  text-align: right;
}

.sample-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 8px;
  margin: 0 0 16px;
  padding: 9px 11px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: rgba(17, 21, 15, 0.035);
}

.price-label {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.price-value {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.price-note {
  margin-left: auto;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10.5px;
}

.pick-card:first-child .sample-price {
  border-color: #3c5543;
  background: rgba(216, 251, 98, 0.06);
}

.pick-card:first-child .price-label,
.pick-card:first-child .price-note {
  color: #91a896;
}

.pick-card:first-child .price-value {
  color: var(--acid);
}

.pick-card:nth-child(2) .sample-price {
  border-color: rgba(17, 21, 15, 0.24);
  background: rgba(255, 255, 255, 0.2);
}

.pick-card:nth-child(2) .price-label,
.pick-card:nth-child(2) .price-note {
  color: #42532b;
}

.pick-card .visit-btn {
  margin-top: auto;
}

.pick-card:first-child .visit-btn {
  border-color: var(--acid);
  background: var(--acid);
  color: var(--ink);
}

.visit-btn {
  display: flex;
  width: 100%;
  min-height: 43px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  font-weight: 650;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.visit-btn:hover {
  transform: translateY(-1px);
  background: var(--forest);
  color: var(--paper);
}

.pick-card:nth-child(2) .visit-btn:hover {
  background: var(--forest);
}

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

.airport-card {
  display: flex;
  min-height: 350px;
  flex-direction: column;
  padding: 23px;
  border: 1px solid var(--line-strong);
  border-radius: 17px;
  background: var(--paper-light);
}

.airport-top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 21px;
}

.airport-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 31px;
  flex: 0 0 auto;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
}

.airport-title {
  min-width: 0;
}

.airport-title h3 {
  margin-bottom: 3px;
  font-size: 25px;
  font-weight: 650;
  letter-spacing: -0.035em;
}

.airport-title p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.airport-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 16px;
}

.airport-tags span {
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 9px;
}

.airport-card > p {
  margin-bottom: 16px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.75;
}

.airport-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 18px;
  margin: 0 0 20px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.airport-specs div {
  min-width: 0;
  padding: 4px 0;
}

.airport-specs dt {
  margin-bottom: 1px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.03em;
}

.airport-specs dd {
  overflow: hidden;
  margin: 0;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.airport-card .visit-btn {
  margin-top: auto;
}

@media (min-width: 721px) {
  .airport-card-wide {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(270px, 0.7fr);
    grid-template-areas:
      "top specs"
      "tags specs"
      "copy specs"
      "price specs"
      "button button";
    column-gap: 38px;
    min-height: 0;
  }

  .airport-card-wide .airport-top {
    grid-area: top;
    margin-bottom: 14px;
  }

  .airport-card-wide .airport-tags {
    grid-area: tags;
    margin-bottom: 11px;
  }

  .airport-card-wide > p {
    grid-area: copy;
    max-width: 48em;
    margin-bottom: 0;
  }

  .airport-card-wide .airport-specs {
    grid-area: specs;
    align-content: start;
    margin: 0;
    padding: 2px 0 2px 27px;
    border-top: 0;
    border-bottom: 0;
    border-left: 1px solid var(--line);
  }

  .airport-card-wide .sample-price {
    grid-area: price;
    max-width: 320px;
    margin: 13px 0 0;
  }

  .airport-card-wide .visit-btn {
    grid-area: button;
    width: 100%;
    margin-top: 20px;
  }
}

.criteria-table {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid var(--line-strong);
  font-size: 13px;
}

.criteria-table th,
.criteria-table td {
  padding: 16px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.criteria-table th {
  width: 22%;
  font-weight: 650;
}

.criteria-table td {
  color: var(--muted);
}

.criteria-table td:last-child {
  width: 15%;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 10px;
  white-space: nowrap;
}

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

.risk-item {
  display: grid;
  grid-template-columns: 23px minmax(0, 1fr);
  gap: 11px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper-light);
}

.risk-item span {
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  border-radius: 50%;
  background: #f0d9cf;
  color: var(--warn);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
}

.risk-item h3 {
  margin: 0 0 3px;
  font-size: 14px;
  font-weight: 650;
}

.risk-item p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

/* Article index */
.article-list {
  border-top: 1px solid var(--line-strong);
}

.article-row {
  position: relative;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) minmax(180px, 0.35fr);
  gap: 24px;
  align-items: start;
  padding: 26px 0;
  border-bottom: 1px solid var(--line-strong);
  transition: padding 0.2s ease, background 0.2s ease;
}

.article-row:hover {
  padding-left: 10px;
  background: rgba(255, 253, 247, 0.42);
}

.article-row-index {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.8;
}

.article-row h2 {
  max-width: 18em;
  margin-bottom: 7px;
  font-size: clamp(22px, 2.4vw, 29px);
  font-weight: 650;
}

.article-row h2 a {
  text-decoration: none;
}

.article-row h2 a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.article-row p {
  max-width: 50em;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

.article-row-meta {
  padding-top: 5px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.9;
  text-align: right;
}

.article-row-meta span {
  display: block;
}

/* Article page */
.article-hero {
  max-width: 870px;
  padding-top: clamp(46px, 6vw, 76px);
  padding-bottom: clamp(26px, 3vw, 38px);
}

.article-hero h1 {
  margin-bottom: 18px;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -0.055em;
}

.article-deck {
  max-width: 42em;
  margin-bottom: 22px;
  color: var(--ink-soft);
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.8;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 15px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9.5px;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(245px, 300px);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
  padding-bottom: clamp(52px, 7vw, 88px);
}

.prose {
  min-width: 0;
}

.prose p {
  margin-bottom: 20px;
  color: #30382e;
  font-size: 16.5px;
  line-height: 1.92;
}

.prose h2 {
  margin: 48px 0 16px;
  font-size: clamp(26px, 2.7vw, 32px);
  font-weight: 650;
  scroll-margin-top: 104px;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin: 32px 0 11px;
  font-size: 20px;
  font-weight: 650;
  scroll-margin-top: 104px;
}

.prose ul,
.prose ol {
  margin: 0 0 22px;
  padding-left: 22px;
  color: #30382e;
  font-size: 16px;
}

.prose li {
  margin-bottom: 9px;
  padding-left: 3px;
  line-height: 1.85;
}

.prose li::marker {
  color: var(--forest);
}

.prose strong {
  font-weight: 650;
  color: var(--ink);
}

.prose a {
  color: var(--forest);
  font-weight: 600;
  text-decoration-color: rgba(23, 61, 44, 0.35);
}

.prose a:hover {
  text-decoration-color: var(--forest);
}

.prose blockquote {
  margin: 26px 0;
  padding: 17px 20px;
  border-left: 3px solid var(--forest);
  background: rgba(255, 253, 247, 0.52);
  color: var(--ink-soft);
  font-size: 15.5px;
}

.prose blockquote p:last-child {
  margin-bottom: 0;
}

.prose code {
  padding: 2px 5px;
  border: 1px solid rgba(17, 21, 15, 0.1);
  border-radius: 4px;
  background: rgba(17, 21, 15, 0.055);
  font-size: 0.87em;
}

.prose pre {
  overflow-x: auto;
  margin: 20px 0 24px;
  padding: 17px 18px;
  border: 1px solid #2c392f;
  border-radius: 11px;
  background: var(--terminal);
  color: var(--terminal-text);
  font-size: 12px;
  line-height: 1.75;
  -webkit-overflow-scrolling: touch;
}

.prose pre code {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font-size: inherit;
}

.prose .callout {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 13px;
  margin: 28px 0;
  padding: 18px 19px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: var(--acid);
}

.prose .callout-mark {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
}

.prose .callout p {
  margin: 0;
  color: #2d3a20;
  font-size: 14px;
  line-height: 1.8;
}

.prose .callout a {
  color: var(--ink);
}

.prose .article-rank-link {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 32px 0;
  padding: 18px 19px;
  border: 1px solid var(--ink);
  border-radius: 11px;
  background: var(--forest);
  color: var(--paper);
}

.prose .article-rank-link p {
  margin: 0;
  color: #d7e2d6;
  font-size: 13px;
}

.prose .article-rank-link a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 12px;
  border-radius: 6px;
  background: var(--acid);
  color: var(--ink);
  font-size: 11px;
  text-decoration: none;
}

.article-side {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.toc {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 253, 247, 0.5);
}

.toc h2 {
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0;
}

.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}

.toc li {
  border-top: 1px solid var(--line);
  counter-increment: toc;
}

.toc a {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 4px;
  padding: 9px 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.45;
  text-decoration: none;
}

.toc a::before {
  content: "0" counter(toc);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 8px;
  line-height: 1.9;
}

.toc a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.side-rank {
  padding: 19px;
  border: 1px solid var(--ink);
  border-radius: 12px;
  background: var(--ink);
  color: var(--paper);
}

.side-rank h2 {
  margin-bottom: 7px;
  color: var(--paper);
  font-size: 17px;
  font-weight: 650;
}

.side-rank p {
  margin-bottom: 14px;
  color: #a7b6a9;
  font-size: 11.5px;
}

.side-rank .btn {
  width: 100%;
  min-height: 38px;
  border-radius: 6px;
  font-size: 11px;
}

.article-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--line-strong);
}

.article-footer a {
  font-size: 13px;
  font-weight: 650;
}

.article-next {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  text-align: right;
}

.article-next span {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8px;
}

/* Responsive */
@media (max-width: 1100px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(380px, 0.92fr);
    gap: 38px;
  }

  .term-body {
    grid-template-columns: 67px minmax(0, 1fr);
  }

  .term-main {
    padding: 13px 13px 10px;
  }

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

  .pick-card:first-child {
    grid-column: span 2;
    min-height: 350px;
  }

  .pick-card {
    min-height: 380px;
  }
}

@media (max-width: 960px) {
  .wrap {
    width: min(calc(100% - 36px), var(--max));
  }

  .desktop-nav,
  .header-cta {
    display: none;
  }

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

  .header-rank {
    display: inline-flex;
    margin-left: auto;
  }

  .menu-toggle {
    display: grid;
    margin-left: 0;
  }

  .mobile-nav {
    display: none;
  }

  .site-header.menu-open .mobile-nav {
    display: block;
  }

  .site-header.menu-open {
    background: var(--paper);
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 42px;
    padding-top: 46px;
  }

  .hero h1 {
    max-width: 14em;
  }

  .terminal-wrap {
    max-width: 660px;
  }

  .terminal {
    transform: none;
  }

  .section-head,
  .page-hero,
  .rank-hero {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .page-hero-side {
    max-width: 500px;
  }

  .rank-hero {
    padding-top: 44px;
  }

  .method-card {
    max-width: 540px;
  }

  .feature:nth-child(1),
  .feature:nth-child(2) {
    grid-column: span 6;
  }

  .feature:nth-child(3),
  .feature:nth-child(4),
  .feature:nth-child(5) {
    grid-column: span 6;
  }

  .feature:nth-child(5) {
    grid-column: span 12;
  }

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

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

  .step:nth-child(3) {
    padding-left: 0;
    border-top: 1px solid rgba(242, 239, 230, 0.14);
    margin-top: 22px;
    padding-top: 22px;
  }

  .step:nth-child(4) {
    border-top: 1px solid rgba(242, 239, 230, 0.14);
    margin-top: 22px;
    padding-top: 22px;
  }

  .rank-strip {
    grid-template-columns: 1fr;
  }

  .rank-strip-link {
    max-width: 420px;
  }

  .footer-inner {
    flex-wrap: wrap;
  }

  .footer-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    padding-top: 16px;
    border-top: 1px solid var(--line);
  }

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

  .os-card {
    min-height: 0;
  }

  .os-top {
    margin-bottom: 24px;
  }

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

  .install-col {
    padding: 22px 0 0;
    border-right: 0;
    border-bottom: 1px solid #2b392e;
    padding-bottom: 22px;
  }

  .install-col + .install-col {
    padding-left: 0;
  }

  .install-col:last-child {
    border-bottom: 0;
  }

  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-side {
    position: static;
    order: -1;
  }

  .toc {
    display: none;
  }

  .side-rank {
    display: none;
  }

  .article-row {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .article-row-meta {
    display: none;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 15px;
  }

  .wrap {
    width: min(calc(100% - 28px), var(--max));
  }

  .brand-name {
    font-size: 18px;
  }

  .hero {
    padding-top: 38px;
    padding-bottom: 34px;
  }

  .hero h1 {
    font-size: clamp(36px, 9vw, 52px);
    line-height: 1.08;
  }

  .lede {
    font-size: 15.5px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-meta {
    gap: 8px 14px;
  }

  .terminal-caption {
    left: 10px;
    bottom: 12px;
    font-size: 10px;
  }

  .term-body {
    grid-template-columns: 58px minmax(0, 1fr);
    min-height: 310px;
  }

  .term-side {
    padding: 10px 5px;
  }

  .term-side-item {
    padding: 8px 5px;
    font-size: 7.5px;
  }

  .term-main {
    padding: 12px 10px 9px;
  }

  .term-panel-head {
    font-size: 9px;
  }

  .node-row {
    font-size: 8px;
  }

  .term-log {
    display: none;
  }

  .term-foot {
    font-size: 7px;
  }

  .rank-callout-inner {
    grid-template-columns: 1fr;
    gap: 22px;
    align-items: start;
  }

  .rank-callout-side {
    width: 100%;
  }

  .rank-callout h2 {
    font-size: clamp(38px, 11vw, 54px);
  }

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

  .feature:nth-child(1),
  .feature:nth-child(2),
  .feature:nth-child(3),
  .feature:nth-child(4),
  .feature:nth-child(5) {
    grid-column: span 1;
    min-height: 205px;
  }

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

  .step,
  .step + .step,
  .step:nth-child(3),
  .step:nth-child(4) {
    padding: 20px 0 0;
    border-right: 0;
    border-top: 1px solid rgba(242, 239, 230, 0.14);
    margin-top: 18px;
  }

  .step:first-child {
    border-top: 0;
    margin-top: 0;
    padding-top: 20px;
  }

  .step-num {
    margin-bottom: 12px;
  }

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

  .note-card {
    min-height: 240px;
  }

  .rank-strip {
    padding: 22px;
    box-shadow: 5px 5px 0 var(--ink);
  }

  .rank-strip h2 {
    font-size: clamp(26px, 7vw, 36px);
  }

  .footer-inner {
    gap: 16px;
  }

  .footer-copy {
    margin-left: auto;
  }

  .page-hero h1 {
    font-size: clamp(40px, 11vw, 58px);
  }

  .page-hero-side {
    padding: 18px;
  }

  .file-table-wrap {
    overflow: visible;
    border: 0;
    background: transparent;
  }

  .file-table {
    min-width: 0;
  }

  .file-table thead {
    display: none;
  }

  .file-table,
  .file-table tbody,
  .file-table tr,
  .file-table td {
    display: block;
    width: 100%;
  }

  .file-table tr {
    margin-bottom: 9px;
    padding: 14px 15px;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    background: var(--paper-light);
  }

  .file-table td {
    padding: 1px 0;
    border: 0;
  }

  .file-table td:first-child {
    font-size: 15px;
  }

  .file-table td:nth-child(2) {
    color: var(--muted);
    font-size: 11px;
  }

  .file-table td:nth-child(2)::before {
    content: "架构 · ";
    font-family: var(--font-sans);
  }

  .file-table td:nth-child(3) {
    margin: 4px 0 8px;
    font-size: 9.5px;
    word-break: break-all;
  }

  .file-table td:last-child a {
    width: 100%;
    justify-content: center;
  }

  .checks,
  .risk-grid {
    grid-template-columns: 1fr;
  }

  .faq-item summary {
    font-size: 15px;
  }

  .rank-hero h1 {
    font-size: clamp(54px, 15vw, 68px);
  }

  .top-picks {
    grid-template-columns: 1fr;
  }

  .pick-card:first-child {
    grid-column: span 1;
    min-height: 390px;
  }

  .pick-card {
    min-height: 360px;
  }

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

  .sample-note {
    grid-template-columns: 1fr;
  }

  .sample-note .sample-price-range {
    text-align: left;
  }

  .criteria-table,
  .criteria-table tbody,
  .criteria-table tr,
  .criteria-table th,
  .criteria-table td {
    display: block;
    width: 100%;
  }

  .criteria-table thead {
    display: none;
  }

  .criteria-table tr {
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
  }

  .criteria-table tr:first-child {
    border-top: 1px solid var(--line);
  }

  .criteria-table th {
    padding: 0 0 5px;
    border: 0;
    font-size: 15px;
  }

  .criteria-table td {
    padding: 0;
    border: 0;
    font-size: 13px;
  }

  .criteria-table td:last-child {
    display: none;
  }

  .article-row {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 14px;
    padding: 20px 0;
  }

  .article-row h2 {
    font-size: 22px;
  }

  .article-hero h1 {
    font-size: clamp(33px, 9vw, 46px);
  }

  .prose p {
    font-size: 16px;
  }

  .prose pre {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }

  .prose pre code {
    white-space: inherit;
  }

  .prose h2 {
    font-size: 25px;
    margin-top: 38px;
  }

  .article-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .article-next {
    align-items: flex-start;
    text-align: left;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: clamp(33px, 10.2vw, 45px);
  }

  .hero-meta span:nth-child(3) {
    display: none;
  }

  .terminal {
    border-radius: 15px;
  }

  .term-tabs {
    gap: 1px;
    padding: 7px 8px;
  }

  .term-tab {
    padding: 4px 5px;
    font-size: 8px;
  }

  .term-body {
    grid-template-columns: 51px minmax(0, 1fr);
  }

  .term-side-item {
    font-size: 6.7px;
    letter-spacing: -0.01em;
  }

  .term-side-item span {
    font-size: 6px;
  }

  .term-group {
    padding: 8px 7px;
  }

  .term-group-head {
    font-size: 7px;
  }

  .node-row {
    gap: 5px;
    font-size: 7.3px;
  }

  .node-row span:last-child {
    font-size: 6.8px;
  }

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

  .rank-strip-link {
    padding: 16px;
  }

  .rank-strip-name {
    font-size: 19px;
  }

  .article-hero h1 {
    font-size: clamp(31px, 9.8vw, 41px);
  }

  .article-deck {
    font-size: 15px;
  }

  .prose p {
    font-size: 15.5px;
    line-height: 1.88;
  }

  .prose .article-rank-link {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-copy {
    width: 100%;
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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