/* ==========================================================================
   Box4Magisk — signal / ink
   A dark, instrument-panel inspired editorial system.
   ========================================================================== */

:root {
  --bg: #080b0e;
  --bg-soft: #0b1014;
  --surface: #0f151a;
  --surface-2: #141c22;
  --surface-3: #192229;
  --text: #f3efe4;
  --text-soft: #c4ccc6;
  --muted: #94a19c;
  --muted-2: #6e7b77;
  --line: rgba(243, 239, 228, 0.12);
  --line-strong: rgba(243, 239, 228, 0.22);
  --amber: #f5c451;
  --amber-soft: #ffe3a1;
  --mint: #74e6c6;
  --mint-deep: #2fae92;
  --coral: #ff7a66;
  --violet: #b9a2ff;
  --ink: #080b0e;
  --radius: 20px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  --font-display: "Songti SC", "Noto Serif SC", "STSong", "SimSun", serif;
  --font-mono: "SFMono-Regular", "Cascadia Mono", "SF Mono", "Consolas", "Liberation Mono", monospace;
  --max: 1180px;
  --header-h: 74px;
  --fs-hero: clamp(42px, 7.2vw, 72px);
  --fs-page: clamp(38px, 6.4vw, 68px);
  --fs-article: clamp(36px, 5.4vw, 58px);
  --fs-h2: clamp(30px, 3.8vw, 50px);
  --fs-h3: clamp(20px, 2vw, 25px);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 600px at 82% -8%, rgba(245, 196, 81, 0.09), transparent 62%),
    radial-gradient(760px 560px at -4% 38%, rgba(116, 230, 198, 0.07), transparent 64%),
    linear-gradient(rgba(243, 239, 228, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(243, 239, 228, 0.025) 1px, transparent 1px);
  background-size: auto, auto, 64px 64px, 64px 64px;
  mask-image: linear-gradient(to bottom, black 0%, black 60%, transparent 100%);
}

body.nav-open {
  overflow: hidden;
}

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

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

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

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

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

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

h1,
h2,
h3,
h4 {
  line-height: 1.16;
  font-weight: 700;
  letter-spacing: -0.018em;
}

p {
  margin-bottom: 1.1em;
}

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

code {
  font-size: 0.87em;
  color: var(--amber-soft);
  background: rgba(245, 196, 81, 0.08);
  border: 1px solid rgba(245, 196, 81, 0.18);
  border-radius: 5px;
  padding: 0.12em 0.38em;
  overflow-wrap: anywhere;
}

pre {
  background: #06090b;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 20px;
  overflow-x: auto;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.75;
}

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

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

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

.skip-link {
  position: fixed;
  left: 18px;
  top: -80px;
  z-index: 10000;
  padding: 10px 16px;
  background: var(--amber);
  color: var(--ink);
  font-weight: 700;
  border-radius: 0 0 10px 10px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
}

/* ---------- announcement / header ---------- */
.notice {
  color: var(--text-soft);
  background: #05080a;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  letter-spacing: 0.02em;
}

.notice-inner {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.notice-left,
.notice-right {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.notice-left {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.live-dot {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 0 rgba(116, 230, 198, 0.55);
  animation: pulse 2.8s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(116, 230, 198, 0.5); }
  70% { box-shadow: 0 0 0 7px rgba(116, 230, 198, 0); }
  100% { box-shadow: 0 0 0 0 rgba(116, 230, 198, 0); }
}

.notice-link {
  color: var(--amber);
  font-weight: 700;
  white-space: nowrap;
  border-bottom: 1px solid rgba(245, 196, 81, 0.4);
}

.notice-link:hover {
  border-bottom-color: var(--amber);
}

.notice-right {
  color: var(--muted-2);
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(8, 11, 14, 0.9);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: border-color 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(8, 11, 14, 0.97);
  border-bottom-color: var(--line);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 11px;
  overflow: hidden;
  border: 1px solid rgba(134, 59, 255, 0.6);
  background: #0a0f12;
  box-shadow: 0 0 0 3px rgba(134, 59, 255, 0.09);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 5px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 16px;
  letter-spacing: -0.01em;
}

.brand-text small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  color: var(--text-soft);
}

.nav > a:not(.nav-cta) {
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}

.nav > a:not(.nav-cta):hover,
.nav > a.active:not(.nav-cta) {
  color: var(--text);
  border-bottom-color: var(--amber);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  color: var(--ink);
  background: var(--amber);
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav-cta:hover {
  background: var(--amber-soft);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 4px 0;
  background: var(--text);
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- shared bits ---------- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 12px;
  font-family: var(--font-mono);
}

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

.breadcrumbs a:hover {
  color: var(--amber);
}

.breadcrumbs span {
  color: var(--muted-2);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

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

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

.btn-primary:hover {
  background: var(--amber-soft);
}

.btn-ghost {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(243, 239, 228, 0.03);
}

.btn-ghost:hover {
  border-color: var(--mint);
  color: var(--mint);
}

.btn-quiet {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  color: var(--text-soft);
  border-color: var(--line);
  background: transparent;
  font-size: 12.5px;
}

.btn-quiet:hover {
  border-color: var(--amber);
  color: var(--amber);
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
  white-space: nowrap;
}

.tag-amber {
  color: var(--amber);
  border-color: rgba(245, 196, 81, 0.28);
  background: rgba(245, 196, 81, 0.07);
}

.tag-mint {
  color: var(--mint);
  border-color: rgba(116, 230, 198, 0.28);
  background: rgba(116, 230, 198, 0.06);
}

.tag-coral {
  color: #ff9d8f;
  border-color: rgba(255, 122, 102, 0.3);
  background: rgba(255, 122, 102, 0.07);
}

.section {
  padding: 96px 0;
  border-top: 1px solid var(--line);
}

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

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
  gap: 44px;
  align-items: end;
  margin-bottom: 40px;
}

.section-head h2 {
  margin-bottom: 0;
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  line-height: 1.12;
}

.section-head p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.section-head-line {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 34px;
}

.section-head-line h2 {
  margin-bottom: 0;
  font-family: var(--font-display);
  font-size: var(--fs-h2);
}

.section-head-line p {
  max-width: 340px;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 14px;
}

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

@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;
  }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 90px 0 68px;
}

.hero::after {
  content: "B4";
  position: absolute;
  right: -4vw;
  bottom: -8vw;
  z-index: -1;
  color: rgba(243, 239, 228, 0.025);
  font-family: var(--font-mono);
  font-size: clamp(54px, 10vw, 76px);
  line-height: 1;
  letter-spacing: -0.08em;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.95fr);
  gap: 60px;
  align-items: center;
}

.hero h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-family: var(--font-display);
  font-size: var(--fs-hero);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero h1 em {
  color: var(--amber);
  font-style: normal;
}

.hero-lede {
  max-width: 600px;
  margin-bottom: 30px;
  color: var(--text-soft);
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.82;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 12.5px;
}

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

.hero-points li::before {
  content: "";
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--mint);
}

.hero-visual {
  position: relative;
  min-height: 470px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 8% 0 5% 6%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 196, 81, 0.14), transparent 66%);
  filter: blur(20px);
}

.device {
  position: relative;
  z-index: 2;
  width: min(100%, 430px);
  border: 1px solid rgba(245, 196, 81, 0.3);
  border-radius: 26px;
  background: linear-gradient(160deg, #121a1f, #0a0f12 72%);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transform: rotate(-1.2deg);
}

.device::before {
  content: "";
  position: absolute;
  inset: 14px -10px -14px 10px;
  z-index: -1;
  border: 1px solid rgba(116, 230, 198, 0.18);
  border-radius: 26px;
}

.device-head,
.device-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 18px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

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

.device-head .status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--mint);
}

.device-head .status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
}

.device-screen {
  padding: 22px 18px 18px;
}

.screen-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
}

.screen-title strong {
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1;
}

.screen-title span {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
}

.screen-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-top: 1px solid rgba(243, 239, 228, 0.07);
  font-family: var(--font-mono);
  font-size: 11.5px;
}

.screen-row span:first-child {
  color: var(--muted);
}

.screen-row b {
  color: var(--text);
  font-weight: 600;
}

.screen-row b.ok {
  color: var(--mint);
}

.screen-row b.warn {
  color: var(--amber);
}

.device-cores {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
}

.device-cores span {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 10px;
}

.device-cores span:first-child {
  border-color: rgba(245, 196, 81, 0.38);
  color: var(--amber);
}

.device-foot {
  border-top: 1px solid var(--line);
  color: var(--muted-2);
}

.float-chip {
  position: absolute;
  z-index: 3;
  padding: 10px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(15, 21, 26, 0.94);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-soft);
  line-height: 1.4;
}

.float-chip b {
  display: block;
  color: var(--amber);
  font-size: 12px;
  font-weight: 600;
}

.float-a { top: 7%; left: -4%; transform: rotate(-3deg); }
.float-b { right: -5%; bottom: 21%; transform: rotate(2deg); }
.float-c { left: 4%; bottom: 4%; transform: rotate(-1deg); }

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

.stat {
  padding: 24px 22px;
  border-left: 1px solid var(--line);
}

.stat:first-child {
  border-left: 0;
}

.stat strong {
  display: block;
  margin-bottom: 4px;
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.stat span {
  color: var(--muted);
  font-size: 12px;
}

/* ---------- feature / core / mode ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-card {
  position: relative;
  min-height: 230px;
  padding: 28px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(20, 28, 34, 0.92), rgba(10, 15, 18, 0.9));
  overflow: hidden;
}

.feature-card::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -70px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  border: 1px solid rgba(245, 196, 81, 0.12);
}

.feature-num {
  position: absolute;
  top: 22px;
  right: 24px;
  color: rgba(245, 196, 81, 0.38);
  font-family: var(--font-mono);
  font-size: 34px;
  line-height: 1;
}

.feature-card h3 {
  max-width: 240px;
  margin-bottom: 14px;
  font-size: var(--fs-h3);
}

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

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

.core-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.core-card:hover {
  border-color: rgba(245, 196, 81, 0.4);
  transform: translateY(-3px);
}

.core-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.core-name {
  font-family: var(--font-mono);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.core-role {
  color: var(--muted);
  font-size: 12px;
}

.core-card h3 {
  margin-bottom: 8px;
  font-size: 17px;
}

.core-card p {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.core-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

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

.mode-row {
  display: grid;
  grid-template-columns: 100px 1fr 280px;
  gap: 28px;
  align-items: start;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.mode-id {
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
}

.mode-id strong {
  display: block;
  font-size: 25px;
  line-height: 1.1;
}

.mode-body h3 {
  margin-bottom: 7px;
  font-size: 21px;
}

.mode-body p {
  max-width: 540px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.mode-code {
  justify-self: end;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--mint);
  background: #06090b;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

/* ---------- install ---------- */
.install-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.step-card {
  position: relative;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.step-num {
  display: block;
  margin-bottom: 20px;
  color: rgba(116, 230, 198, 0.55);
  font-family: var(--font-mono);
  font-size: clamp(40px, 5vw, 64px);
  line-height: 0.9;
  letter-spacing: -0.07em;
}

.step-card h3 {
  margin-bottom: 9px;
  font-size: 21px;
}

.step-card p {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 14px;
}

.step-card p:last-child {
  margin-bottom: 0;
}

.note-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  margin-top: 18px;
  border-left: 2px solid var(--amber);
  background: rgba(245, 196, 81, 0.05);
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.7;
}

.note-line strong {
  color: var(--amber);
  white-space: nowrap;
}

/* ---------- ranking band ---------- */
.rank-band {
  position: relative;
  padding: 46px;
  border: 1px solid rgba(245, 196, 81, 0.34);
  border-radius: 28px;
  background:
    radial-gradient(720px 340px at 92% 0%, rgba(245, 196, 81, 0.14), transparent 66%),
    linear-gradient(150deg, #121a1e, #0a0f12);
  overflow: hidden;
}

.rank-band::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -120px;
  width: 340px;
  height: 340px;
  border: 1px solid rgba(116, 230, 198, 0.16);
  border-radius: 50%;
  pointer-events: none;
}

.rank-band-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 30px;
}

.rank-band-head h2 {
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: var(--fs-h2);
}

.rank-band-head p {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.rank-band-head .btn {
  flex: 0 0 auto;
}

.rank-band-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.rank-mini-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(8, 11, 14, 0.68);
}

.rank-mini-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.rank-mini-index {
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 12px;
}

.rank-mini-score {
  color: var(--mint);
  font-family: var(--font-mono);
  font-size: 22px;
  line-height: 1;
}

.rank-mini-card h3 {
  margin-bottom: 5px;
  font-size: 23px;
}

.rank-mini-sub {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 12px;
}

.rank-mini-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.rank-mini-price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  margin-top: auto;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.rank-mini-price strong {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 19px;
  font-weight: 600;
}

.airport-go {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  margin-top: 14px;
  padding: 9px 14px;
  border: 1px solid rgba(245, 196, 81, 0.42);
  border-radius: 9px;
  color: var(--amber);
  background: rgba(245, 196, 81, 0.06);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.airport-go:hover {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--ink);
}

/* ---------- articles ---------- */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.article-card {
  position: relative;
  min-height: 220px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.article-card:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
  transform: translateY(-3px);
}

.article-card.is-featured {
  grid-column: span 2;
  min-height: 260px;
  padding: 36px;
  background:
    radial-gradient(480px 240px at 92% 10%, rgba(116, 230, 198, 0.08), transparent 70%),
    var(--surface);
}

.article-card h3 {
  max-width: 720px;
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.25;
}

.article-card:not(.is-featured) h3 {
  font-size: clamp(20px, 2vw, 25px);
}

.article-card h3 a:hover {
  color: var(--amber);
}

.article-card p {
  max-width: 660px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.78;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: auto;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 10.5px;
}

.article-meta .tag {
  font-family: var(--font-sans);
}

.article-read {
  display: inline-flex;
  margin-top: 18px;
  color: var(--amber);
  font-size: 12.5px;
  font-weight: 700;
  border-bottom: 1px solid rgba(245, 196, 81, 0.35);
}

.article-read:hover {
  border-bottom-color: var(--amber);
}

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

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

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  cursor: pointer;
  list-style: none;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}

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

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

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

.faq-a {
  max-width: 820px;
  padding: 0 0 22px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}

.faq-a p:last-child {
  margin-bottom: 0;
}

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 34px 0;
}

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

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

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

.footer-brand strong {
  display: block;
  font-size: 14px;
}

.footer-brand small {
  display: block;
  margin-top: 2px;
  color: var(--muted-2);
  font-size: 10px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
  font-size: 12.5px;
}

.footer-nav a:hover {
  color: var(--amber);
}

.footer-copy {
  margin: 0;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 10.5px;
}

/* ---------- inner page hero ---------- */
.page-hero {
  padding: 64px 0 44px;
}

.page-hero h1 {
  margin-bottom: 20px;
  font-family: var(--font-display);
  font-size: var(--fs-page);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.page-hero h1 em {
  color: var(--amber);
  font-style: normal;
}

.page-hero-lede {
  max-width: 760px;
  margin-bottom: 24px;
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.82;
}

.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 52px;
  align-items: start;
}

.aside-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.aside-card h2 {
  margin-bottom: 14px;
  font-size: 17px;
}

.aside-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.aside-list li {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0;
  border-top: 1px solid rgba(243, 239, 228, 0.08);
  color: var(--muted);
  font-size: 12.5px;
}

.aside-list li:first-child {
  border-top: 0;
}

.aside-list b {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  text-align: right;
}

.aside-note {
  padding-top: 14px;
  margin-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 11px;
  line-height: 1.7;
}

/* ---------- download ---------- */
.download-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px;
  margin-bottom: 26px;
}

.download-card {
  display: flex;
  flex-direction: column;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.download-card.is-primary {
  border-color: rgba(245, 196, 81, 0.36);
  background:
    radial-gradient(480px 250px at 94% 0%, rgba(245, 196, 81, 0.12), transparent 70%),
    var(--surface);
}

.download-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.download-card h2 {
  margin-bottom: 8px;
  font-size: clamp(24px, 2.8vw, 34px);
}

.download-card .download-sub {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 13.5px;
}

.download-version {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 22px;
  font-family: var(--font-mono);
}

.download-version strong {
  color: var(--amber);
  font-size: clamp(38px, 4.8vw, 56px);
  line-height: 1;
  letter-spacing: -0.06em;
}

.download-version span {
  color: var(--muted-2);
  font-size: 11px;
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.checksum {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #06090b;
  font-family: var(--font-mono);
  font-size: 10.5px;
  overflow-wrap: anywhere;
}

.checksum > span {
  flex: 0 0 auto;
  white-space: nowrap;
}

.checksum code {
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--mint);
  font-size: 10.5px;
  word-break: break-all;
}

.copy-btn {
  flex: 0 0 auto;
  margin-left: auto;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--muted);
  background: transparent;
  font-family: var(--font-sans);
  font-size: 10px;
  cursor: pointer;
}

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

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

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

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

.version-table th {
  color: var(--muted);
  background: var(--surface);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.version-table td {
  color: var(--text-soft);
}

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

.version-table a {
  color: var(--amber);
  border-bottom: 1px solid rgba(245, 196, 81, 0.3);
}

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

.callout {
  padding: 22px 24px;
  border-left: 3px solid var(--coral);
  background: rgba(255, 122, 102, 0.06);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.callout h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.callout p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13.5px;
}

.core-download-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.core-download {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  transition: border-color 0.2s ease;
}

.core-download:hover {
  border-color: rgba(116, 230, 198, 0.4);
}

.core-download strong {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
}

.core-download span {
  color: var(--muted);
  font-size: 11px;
}

.compat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.compat-item {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.compat-item strong {
  display: block;
  margin-bottom: 5px;
  color: var(--amber);
  font-size: 16px;
}

.compat-item span {
  color: var(--muted);
  font-size: 12.5px;
}

/* ---------- ranking page ---------- */
.rank-hero {
  padding: 64px 0 32px;
}

.rank-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 48px;
  align-items: end;
}

.rank-hero h1 {
  max-width: 880px;
  margin-bottom: 20px;
  font-family: var(--font-display);
  font-size: var(--fs-page);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.rank-hero h1 em {
  color: var(--amber);
  font-style: normal;
}

.rank-hero-lede {
  max-width: 760px;
  margin-bottom: 24px;
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.82;
}


.rank-hero-aside {
  padding: 24px;
  border: 1px solid rgba(245, 196, 81, 0.28);
  border-radius: var(--radius);
  background: rgba(15, 21, 26, 0.86);
}

.rank-hero-aside h2 {
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.06em;
  font-weight: 500;
}

.rank-hero-aside .aside-list b {
  color: var(--amber);
}

.podium-section {
  padding: 36px 0 82px;
  border-top: 1px solid var(--line);
}

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

.podium-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.podium-card.is-first {
  border-color: rgba(245, 196, 81, 0.4);
  background:
    radial-gradient(460px 230px at 100% 0%, rgba(245, 196, 81, 0.13), transparent 72%),
    var(--surface);
}

.podium-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
}

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

.podium-rank strong {
  display: block;
  font-size: clamp(40px, 5vw, 62px);
  line-height: 0.9;
  letter-spacing: -0.08em;
  font-weight: 500;
}

.podium-score {
  color: var(--mint);
  font-family: var(--font-mono);
  font-size: 24px;
}

.podium-score small {
  display: block;
  color: var(--muted-2);
  font-size: 9px;
  letter-spacing: 0.03em;
  text-align: right;
}

.podium-card h2 {
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-size: 28px;
}

.podium-sub {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 12.5px;
}

.podium-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.podium-card > p {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.8;
}

.podium-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  padding-top: 16px;
  margin-top: auto;
  border-top: 1px solid var(--line);
}

.podium-price {
  color: var(--muted);
  font-size: 11px;
}

.podium-price strong {
  display: block;
  margin-top: 3px;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 500;
}

.rank-list-section {
  padding: 82px 0;
  border-top: 1px solid var(--line);
}

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

.rank-card {
  display: flex;
  flex-direction: column;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.rank-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

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

.rank-card-index strong {
  display: block;
  margin-top: 2px;
  color: var(--amber);
  font-size: 34px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.06em;
}

.rank-card h2 {
  margin-bottom: 4px;
  font-family: var(--font-display);
  font-size: 27px;
}

.rank-card-sub {
  color: var(--muted);
  font-size: 12px;
}

.rank-card-score {
  flex: 0 0 auto;
  color: var(--mint);
  font-family: var(--font-mono);
  font-size: 24px;
}

.rank-card-score small {
  display: block;
  color: var(--muted-2);
  font-size: 9px;
  text-align: right;
}

.rank-card > p {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.8;
}

.rank-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 14px 0;
  margin-bottom: 16px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.rank-specs span {
  color: var(--muted-2);
  font-size: 10px;
}

.rank-specs b {
  display: block;
  margin-top: 3px;
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
}

.rank-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.rank-card-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  margin-top: auto;
  border-top: 1px solid var(--line);
}

.rank-card-price {
  color: var(--muted);
  font-size: 10.5px;
}

.rank-card-price strong {
  display: block;
  margin-top: 2px;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 19px;
  font-weight: 500;
}

.rank-card .airport-go {
  width: auto;
  min-width: 118px;
  margin-top: 0;
  padding-inline: 20px;
}

.method-section {
  padding: 82px 0;
  border-top: 1px solid var(--line);
}

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

.method-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
}

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

.method-card span {
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.3;
}

.method-card h3 {
  margin: 0;
  font-size: 18px;
}

.method-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.78;
}

.rank-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 20px;
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.rank-note strong {
  color: var(--amber);
  white-space: nowrap;
}

/* ---------- article pages ---------- */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 500;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--amber), var(--mint));
}

.article-hero {
  padding: 56px 0 32px;
}

.article-hero h1 {
  max-width: 980px;
  margin-bottom: 20px;
  font-family: var(--font-display);
  font-size: var(--fs-article);
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.article-lede {
  max-width: 820px;
  margin-bottom: 24px;
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.82;
}

.article-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 10.5px;
}

.article-info .tag {
  font-family: var(--font-sans);
}

.article-cover {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  min-height: 210px;
  padding: 28px;
  margin-top: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(460px 260px at 84% 12%, rgba(245, 196, 81, 0.18), transparent 68%),
    linear-gradient(140deg, #141d22, #090d10);
  overflow: hidden;
}

.article-cover::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(243, 239, 228, 0.08);
  border-radius: 12px;
  pointer-events: none;
}

.article-cover-big {
  position: relative;
  z-index: 1;
  color: rgba(245, 196, 81, 0.2);
  font-family: var(--font-mono);
  font-size: clamp(58px, 9vw, 76px);
  line-height: 0.8;
  letter-spacing: -0.1em;
}

.article-cover-caption {
  position: relative;
  z-index: 1;
  max-width: 360px;
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.article-cover-caption strong {
  display: block;
  margin-bottom: 5px;
  color: var(--text-soft);
  font-size: 14px;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 60px;
  align-items: start;
  padding: 46px 0 84px;
}

.prose {
  min-width: 0;
  max-width: 760px;
  color: var(--text-soft);
  font-size: 16.5px;
  line-height: 1.92;
}

.prose > p:first-child {
  color: var(--text);
  font-size: 18px;
}

.prose h2 {
  margin: 54px 0 18px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: clamp(27px, 3vw, 34px);
  line-height: 1.25;
}

.prose h2:first-of-type {
  margin-top: 36px;
}

.prose h3 {
  margin: 34px 0 12px;
  font-size: 20px;
}

.prose p {
  margin-bottom: 1.15em;
}

.prose ul,
.prose ol {
  padding-left: 1.25em;
  margin-bottom: 1.3em;
}

.prose li {
  margin-bottom: 0.45em;
}

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

.prose strong {
  color: var(--text);
}

.prose a {
  color: var(--amber);
  border-bottom: 1px solid rgba(245, 196, 81, 0.35);
}

.prose a:hover {
  border-bottom-color: var(--amber);
}

.prose blockquote {
  padding: 18px 22px;
  margin: 26px 0;
  border-left: 3px solid var(--mint);
  background: rgba(116, 230, 198, 0.05);
  color: var(--text-soft);
  font-size: 15.5px;
}

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

.prose .callout {
  margin: 26px 0;
}

.prose .callout p {
  font-size: 14px;
}

.prose table {
  width: 100%;
  margin: 24px 0;
  border-collapse: collapse;
  font-size: 13.5px;
}

.prose th,
.prose td {
  padding: 11px 12px;
  border: 1px solid var(--line);
  text-align: left;
}

.prose th {
  color: var(--text);
  background: var(--surface);
  font-weight: 600;
}

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

.prose hr {
  margin: 36px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.toc {
  position: sticky;
  top: 106px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.toc h2 {
  margin-bottom: 12px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
}

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

.toc li {
  counter-increment: toc;
  border-top: 1px solid rgba(243, 239, 228, 0.07);
}

.toc li:first-child {
  border-top: 0;
}

.toc a {
  display: flex;
  gap: 8px;
  padding: 8px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.toc a::before {
  content: counter(toc, decimal-leading-zero);
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 9px;
}

.toc a:hover {
  color: var(--amber);
}

.toc-note {
  padding-top: 14px;
  margin-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 10px;
  line-height: 1.7;
}

.article-cta {
  padding: 34px;
  margin: 46px 0 0;
  border: 1px solid rgba(245, 196, 81, 0.3);
  border-radius: var(--radius);
  background:
    radial-gradient(400px 220px at 92% 0%, rgba(245, 196, 81, 0.13), transparent 70%),
    var(--surface);
}

.article-cta h2 {
  padding: 0;
  margin: 0 0 8px;
  border: 0;
  font-family: var(--font-display);
  font-size: clamp(24px, 2.6vw, 30px);
}

.article-cta p {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 13.5px;
}

.related {
  padding: 64px 0;
  border-top: 1px solid var(--line);
}

.related-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.related-head h2 {
  margin-bottom: 0;
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 38px);
}

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

.related-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.related-card h3 {
  margin-bottom: 8px;
  font-size: 17px;
  line-height: 1.5;
}

.related-card h3 a:hover {
  color: var(--amber);
}

.related-card p {
  margin-bottom: 0;
  color: var(--muted-2);
  font-size: 11px;
}

/* ---------- sitemap / 404 ---------- */
.sitemap-group {
  padding: 32px 0;
  border-top: 1px solid var(--line);
}

.sitemap-group h2 {
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-size: 28px;
}

.sitemap-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.sitemap-list a {
  display: block;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  transition: border-color 0.2s ease;
}

.sitemap-list a:hover {
  border-color: rgba(245, 196, 81, 0.4);
}

.sitemap-list strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}

.sitemap-list span {
  color: var(--muted);
  font-size: 11.5px;
}

.sitemap-meta {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 10px;
}

.not-found {
  min-height: 64vh;
  display: grid;
  place-items: center;
  padding: 80px 0;
  text-align: center;
}

.not-found-code {
  color: rgba(245, 196, 81, 0.35);
  font-family: var(--font-mono);
  font-size: clamp(60px, 9vw, 76px);
  line-height: 1;
  letter-spacing: -0.08em;
}

.not-found h1 {
  margin: 16px 0 12px;
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 54px);
}

.not-found p {
  color: var(--muted);
}

.not-found .hero-actions {
  justify-content: center;
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .hero-grid { gap: 36px; }
  .float-a { left: 0; }
  .float-b { right: 0; }
  .mode-row { grid-template-columns: 82px 1fr 230px; gap: 20px; }
  .article-layout { gap: 36px; }
}

@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 64px; }
  .hero-visual { min-height: 430px; margin-top: 14px; }
  .device { width: min(100%, 500px); }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .core-grid { grid-template-columns: 1fr 1fr; }
  .rank-band-grid { grid-template-columns: 1fr; }
  .rank-mini-card { min-height: 0; }
  .page-grid { grid-template-columns: 1fr; }
  .page-grid .aside-card { order: -1; }
  .download-grid { grid-template-columns: 1fr; }
  .rank-hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .rank-hero-aside { max-width: 460px; }
  .podium-grid { grid-template-columns: 1fr; }
  .podium-card { min-height: 0; }
  .rank-list-grid { grid-template-columns: 1fr; }
  .method-grid { grid-template-columns: 1fr 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .toc { position: static; order: -1; }
  .related-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 840px) {
  .notice-right { display: none; }
  .nav {
    position: fixed;
    top: 110px;
    left: 24px;
    right: 24px;
    z-index: 210;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line-strong);
    border-radius: 16px;
    background: rgba(10, 15, 18, 0.98);
    box-shadow: var(--shadow);
  }
  .nav.is-open { display: flex; }
  .nav > a:not(.nav-cta) {
    padding: 14px 12px;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
  }
  .nav > a:not(.nav-cta):last-of-type { border-bottom: 0; }
  .nav-cta {
    margin: 10px 2px 2px;
    min-height: 46px;
    font-size: 14px;
  }
  .nav-toggle { display: block; margin-left: auto; }
  .section { padding: 76px 0; }
  .section-head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 30px; }
  .section-head p { max-width: 620px; }
  .section-head-line { display: block; }
  .section-head-line p { margin-top: 10px; }
  .mode-row { grid-template-columns: 68px 1fr; }
  .mode-code { grid-column: 2; justify-self: start; max-width: 420px; }
  .article-card.is-featured { padding: 28px; }
  .rank-band { padding: 30px; }
  .rank-band-head { display: block; }
  .rank-band-head .btn { margin-top: 16px; }
  .sitemap-list { grid-template-columns: 1fr; }
  .article-hero { padding-top: 42px; }
  .article-cover { min-height: 170px; }
}

@media (max-width: 680px) {
  .wrap, .wrap-narrow { width: calc(100% - 36px); }
  :root { --header-h: 66px; }
  .notice-inner { min-height: 34px; font-size: 11.5px; }
  .notice-left { gap: 7px; }
  .brand-mark { width: 34px; height: 34px; border-radius: 9px; }
  .brand-text strong { font-size: 14px; }
  .brand-text small { font-size: 9px; }
  .header-inner { gap: 12px; }
  .hero { padding: 48px 0 42px; }
  .hero h1 { margin-bottom: 18px; }
  .hero-lede { font-size: 15.5px; }
  .hero-actions .btn { min-height: 46px; padding-inline: 18px; flex: 1 1 auto; }
  .hero-points { gap: 8px 14px; font-size: 11.5px; }
  .hero-visual { min-height: 360px; margin-top: 4px; }
  .device { transform: none; }
  .device::before { display: none; }
  .float-chip { display: none; }
  .screen-title strong { font-size: 26px; }
  .screen-row { font-size: 10.5px; }
  .stats-strip { grid-template-columns: 1fr 1fr; }
  .stat { border-left: 0; border-top: 1px solid var(--line); }
  .stat:nth-child(odd) { border-right: 1px solid var(--line); }
  .stat:nth-child(-n+2) { border-top: 0; }
  .feature-grid, .core-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 0; }
  .install-grid { grid-template-columns: 1fr; }
  .step-card, .feature-card { padding: 24px; }
  .rank-band { padding: 22px; border-radius: 20px; }
  .rank-band-head h2 { font-size: 34px; }
  .rank-mini-card { padding: 20px; }
  .articles-grid { grid-template-columns: 1fr; }
  .article-card.is-featured { grid-column: auto; }
  .article-card, .article-card.is-featured { padding: 24px; min-height: 0; }
  .article-card h3, .article-card.is-featured h3 { font-size: 22px; }
  .footer-inner { align-items: flex-start; flex-direction: column; gap: 18px; }
  .footer-nav { gap: 14px; }
  .page-hero, .rank-hero { padding-top: 42px; }
  .page-hero-lede, .rank-hero-lede, .article-lede { font-size: 15.5px; }
  .rank-hero h1 { line-height: 1.08; }
  .podium-section, .rank-list-section, .method-section { padding: 58px 0; }
  .podium-card, .rank-card { padding: 22px; }
  .rank-card-top { gap: 12px; }
  .rank-card h2 { font-size: 24px; }
  .rank-specs { gap: 7px; }
  .rank-card-foot { align-items: flex-start; flex-direction: column; }
  .rank-card .airport-go { width: 100%; }
  .method-grid { grid-template-columns: 1fr; }
  .rank-note { display: block; }
  .rank-note strong { display: block; margin-bottom: 4px; }
  .article-hero { padding: 34px 0 22px; }
  .article-cover { padding: 22px; min-height: 145px; }
  .article-cover-caption { max-width: 210px; font-size: 10.5px; }
  .article-cover-caption strong { font-size: 12px; }
  .article-layout { padding: 32px 0 56px; gap: 28px; }
  .prose { font-size: 16px; line-height: 1.9; }
  .prose > p:first-child { font-size: 17px; }
  .prose pre { white-space: pre-wrap; overflow-wrap: anywhere; }
  .prose table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .prose h2 { margin-top: 42px; font-size: 27px; }
  .toc { padding: 18px; }
  .article-cta { padding: 24px; }
  .related { padding: 48px 0; }
  .related-grid { grid-template-columns: 1fr; }
  .core-download-list { grid-template-columns: 1fr; }
  .compat-grid { grid-template-columns: 1fr; }
  .download-card { padding: 24px; }
  .checksum { align-items: flex-start; flex-wrap: wrap; }
  .copy-btn { margin-left: 0; }
  .not-found { min-height: 60vh; }
}

@media (max-width: 400px) {
  .wrap, .wrap-narrow { width: calc(100% - 28px); }
  .brand-text small { display: none; }
  .notice-link { font-size: 11px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .rank-band-head h2 { font-size: 30px; }
  .article-cover-big { font-size: 58px; }
}

/* ---------- print ---------- */
@media print {
  body { background: #fff; color: #111; }
  body::before, .notice, .site-header, .site-footer, .reading-progress, .toc, .article-cta, .related { display: none; }
  .wrap, .wrap-narrow { width: 100%; }
  .article-layout { display: block; padding: 0; }
  .article-hero { padding: 0; }
  .prose { max-width: none; color: #111; }
  .article-hero h1, .prose h2 { color: #111; }
  .article-hero a, .prose a { color: #111; }
}
