/* =========================================================
   ClashX Meta 中文站 — visual system
   Ink / paper / Mihomo blue / amber whisker
   ========================================================= */

:root {
  --ink: #0d1b2a;
  --ink-soft: #1a3047;
  --ink-2: #223b55;
  --paper: #f7f4ed;
  --paper-2: #efe9dd;
  --paper-3: #e7dfd0;
  --white: #fffdf8;
  --blue: #2b7bbb;
  --blue-2: #1b5f95;
  --blue-deep: #0f3b5c;
  --sky: #dcebf8;
  --sky-2: #eef5fb;
  --amber: #f2b233;
  --amber-2: #d9961b;
  --amber-soft: #fbe9bd;
  --muted: #5d6a75;
  --muted-2: #7c8790;
  --line: rgba(13, 27, 42, 0.12);
  --line-strong: rgba(13, 27, 42, 0.22);
  --shadow: 0 18px 50px -22px rgba(13, 27, 42, 0.3);
  --shadow-sm: 0 8px 24px -16px rgba(13, 27, 42, 0.35);
  --radius: 18px;
  --radius-lg: 28px;
  --wrap: 1180px;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --serif: "Songti SC", "Noto Serif SC", "STSong", "SimSun", serif;
  --latin: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
}

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

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

html,
body {
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

img,
svg {
  max-width: 100%;
  vertical-align: middle;
}

a {
  color: var(--blue-2);
  text-decoration: none;
}

a:hover {
  color: var(--blue-deep);
}

p {
  margin: 0 0 1.15em;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 700;
  line-height: 1.2;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

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

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

.skip-link:focus {
  transform: none;
  color: var(--white);
}

/* ---------- buttons & labels ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

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

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

.btn-primary {
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 14px 28px -16px rgba(13, 27, 42, 0.8);
}

.btn-primary:hover {
  background: var(--ink-2);
  color: var(--white);
}

.btn-amber {
  background: var(--amber);
  color: var(--ink);
  box-shadow: 0 14px 28px -18px rgba(217, 150, 27, 0.85);
}

.btn-amber:hover {
  background: #f7bd4d;
  color: var(--ink);
}

.btn-blue {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 14px 28px -18px rgba(43, 123, 187, 0.9);
}

.btn-blue:hover {
  background: var(--blue-2);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--ink);
  background: rgba(255, 253, 248, 0.7);
  color: var(--ink);
}

.btn-light {
  background: var(--white);
  color: var(--ink);
}

.btn-light:hover {
  background: var(--paper-2);
  color: var(--ink);
}

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

.btn-outline-light:hover {
  border-color: var(--white);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.btn-sm {
  min-height: 40px;
  padding: 0 18px;
  font-size: 13.5px;
}

.btn-lg {
  min-height: 58px;
  padding: 0 30px;
  font-size: 16px;
}

.btn-meta {
  padding-left: 10px;
  border-left: 1px solid rgba(255, 255, 255, 0.28);
  font-family: var(--latin);
  font-size: 12px;
  font-weight: 600;
  opacity: 0.7;
}

.eyebrow,
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 16px;
  color: var(--blue-2);
  font-family: var(--latin);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.eyebrow .dot,
.kicker .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(242, 178, 51, 0.16);
}

.kicker--light {
  color: rgba(255, 253, 248, 0.62);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 6px;
  background: var(--paper-2);
  color: var(--ink-soft);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
}

.badge--amber {
  background: var(--amber-soft);
  color: #7a5100;
}

.badge--blue {
  background: var(--sky);
  color: var(--blue-deep);
}

.badge--dark {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 253, 248, 0.85);
}

/* ---------- reading progress ---------- */

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  width: 100%;
  height: 3px;
  background: transparent;
  pointer-events: none;
}

.reading-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--amber);
  transition: width 0.1s linear;
}

/* ---------- announcement + header ---------- */

.top-note {
  position: relative;
  z-index: 60;
  background: var(--ink);
  color: rgba(255, 253, 248, 0.72);
  font-size: 12.5px;
  letter-spacing: 0.02em;
}

.top-note .wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 36px;
  padding-block: 4px;
  text-align: center;
}

.top-note a {
  color: var(--amber);
  font-weight: 600;
  white-space: nowrap;
}

.top-note .tag {
  display: inline-block;
  padding: 1px 7px;
  border: 1px solid rgba(242, 178, 51, 0.45);
  border-radius: 4px;
  color: var(--amber);
  font-family: var(--latin);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 244, 237, 0.86);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -24px rgba(13, 27, 42, 0.6);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: none;
  color: var(--ink);
}

.brand:hover {
  color: var(--ink);
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  box-shadow: 0 5px 14px -7px rgba(13, 27, 42, 0.5);
}

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

.brand-text strong {
  font-family: var(--latin);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.brand-text small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
}

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

.nav-link {
  position: relative;
  padding: 8px 13px;
  border-radius: 8px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover {
  color: var(--ink);
  background: rgba(13, 27, 42, 0.05);
}

.nav-link.is-active {
  color: var(--blue-2);
  font-weight: 700;
}

.nav-link.is-active::after {
  content: "";
  position: absolute;
  right: 13px;
  bottom: 2px;
  left: 13px;
  height: 2px;
  border-radius: 2px;
  background: var(--amber);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 14px;
  padding: 11px 17px;
  border-radius: 10px;
  background: var(--amber);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 800;
  box-shadow: 0 8px 20px -12px rgba(217, 150, 27, 0.9);
  transition: transform 0.2s ease, background 0.2s ease;
}

.nav-cta:hover {
  background: #f7bd4d;
  color: var(--ink);
  transform: translateY(-1px);
}

.nav-cta.is-current {
  box-shadow: 0 0 0 2px var(--ink), 0 8px 20px -12px rgba(217, 150, 27, 0.9);
}

.nav-cta svg {
  width: 14px;
  height: 14px;
}

.nav-cta .live {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink);
  animation: pulse 2.4s ease-in-out infinite;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  margin: 4px auto;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

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

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

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

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

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

.mobile-nav .wrap {
  display: grid;
  gap: 2px;
  padding-block: 12px 18px;
}

.mobile-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 600;
}

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

.mobile-nav .mobile-cta {
  margin-top: 10px;
  padding: 14px 18px;
  border-radius: 10px;
  background: var(--amber);
  color: var(--ink);
  border-bottom: 0;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 70px;
  background:
    radial-gradient(1100px 660px at 78% 12%, rgba(194, 222, 245, 0.85) 0%, rgba(247, 244, 237, 0) 62%),
    linear-gradient(180deg, #faf8f2 0%, var(--paper) 100%);
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(13, 27, 42, 0.13) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.28;
  mask-image: linear-gradient(90deg, transparent 0%, #000 55%, #000 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 55%, #000 100%);
}

.hero::after {
  content: "M";
  position: absolute;
  right: -2vw;
  bottom: -15vw;
  color: transparent;
  font-family: var(--latin);
  font-size: 48vw;
  font-weight: 700;
  line-height: 0.72;
  -webkit-text-stroke: 1px rgba(43, 123, 187, 0.12);
  pointer-events: none;
  user-select: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  align-items: center;
  gap: clamp(36px, 6vw, 80px);
}

.hero-copy {
  max-width: 640px;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(38px, 4.5vw, 60px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.hero h1 .brand-line {
  display: block;
  margin-bottom: 12px;
  font-family: var(--latin);
  font-size: clamp(32px, 3.8vw, 50px);
  font-weight: 700;
  letter-spacing: -0.045em;
  color: var(--ink);
}

.hero h1 em {
  position: relative;
  font-style: normal;
  color: var(--blue-2);
  white-space: nowrap;
}

.hero h1 em::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -2px;
  bottom: 5px;
  left: -2px;
  height: 12px;
  background: var(--amber);
  opacity: 0.55;
  transform: skewX(-10deg);
}

.lede {
  max-width: 548px;
  margin: 26px 0 0;
  color: #3e5060;
  font-size: clamp(16px, 1.35vw, 18px);
  line-height: 1.85;
}

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

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 12.5px;
}

.hero-meta li {
  position: relative;
  padding-left: 15px;
}

.hero-meta li::before {
  content: "";
  position: absolute;
  top: 0.6em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
}

/* ---------- menu bar mock ---------- */

.hero-stage {
  position: relative;
  padding: 16px 8px 0 0;
}

.menu-demo {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 470px;
  margin-left: auto;
  border: 1px solid rgba(13, 27, 42, 0.14);
  border-radius: 22px;
  background: #eef2f5;
  box-shadow:
    0 40px 80px -48px rgba(13, 27, 42, 0.6),
    0 8px 20px -14px rgba(13, 27, 42, 0.3);
  overflow: hidden;
  transform: rotate(-1.2deg);
}

.demo-bar {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 9px 14px;
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid rgba(13, 27, 42, 0.1);
  color: #273747;
  font-size: 11px;
  backdrop-filter: blur(8px);
}

.demo-bar .apple {
  width: 11px;
  height: 13px;
  border-radius: 50% 50% 45% 45%;
  background: #273747;
  clip-path: polygon(30% 0, 70% 0, 70% 22%, 100% 22%, 100% 60%, 70% 60%, 70% 100%, 30% 100%, 30% 60%, 0 60%, 0 22%, 30% 22%);
}

.demo-bar .bar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  color: #4b5b69;
}

.demo-bar .bar-actions i {
  display: inline-block;
  width: 13px;
  height: 9px;
  border: 1px solid currentColor;
  border-radius: 2px;
  opacity: 0.7;
}

.demo-bar .cat {
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border-radius: 5px;
  background: var(--ink);
}

.demo-bar .cat img {
  width: 15px;
  height: 15px;
  object-fit: contain;
  filter: invert(1);
}

.demo-body {
  padding: 0 0 8px;
  background: #f7f9fb;
}

.demo-head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 15px 17px 12px;
}

.demo-head img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 10px -5px rgba(13, 27, 42, 0.5);
}

.demo-head strong {
  display: block;
  font-family: var(--latin);
  font-size: 14px;
  line-height: 1.25;
}

.demo-head small {
  display: block;
  margin-top: 2px;
  color: #6c7b88;
  font-size: 10px;
}

.demo-head .switch {
  position: relative;
  width: 32px;
  height: 19px;
  margin-left: auto;
  border-radius: 999px;
  background: var(--blue);
}

.demo-head .switch::after {
  content: "";
  position: absolute;
  top: 2px;
  right: 2px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.demo-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 17px;
  border-top: 1px solid rgba(13, 27, 42, 0.07);
  font-size: 11.5px;
}

.demo-row .label {
  color: #6c7b88;
}

.demo-row .value {
  color: #233747;
  font-weight: 600;
  text-align: right;
}

.demo-row .value em {
  font-style: normal;
  color: var(--blue-2);
}

.latency-list {
  padding: 8px 17px 6px;
  border-top: 1px solid rgba(13, 27, 42, 0.07);
}

.latency {
  display: grid;
  grid-template-columns: 1fr 56px 38px;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
  font-size: 11px;
}

.latency .name {
  color: #2b3d4d;
}

.latency .bar {
  height: 4px;
  border-radius: 4px;
  background: #e2e8ed;
  overflow: hidden;
}

.latency .bar span {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--blue), #59a8e0);
}

.latency .ms {
  color: #5e7080;
  font-family: var(--latin);
  font-size: 10px;
  text-align: right;
}

.demo-rank {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 8px 12px 4px;
  padding: 10px 12px;
  border-radius: 9px;
  background: var(--ink);
  color: var(--white);
  font-size: 11.5px;
  font-weight: 700;
}

.demo-rank span:last-child {
  color: var(--amber);
  font-family: var(--latin);
}

.stage-note {
  position: relative;
  z-index: 3;
  max-width: 360px;
  margin: 18px 0 0 auto;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.float-chip {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border: 1px solid rgba(13, 27, 42, 0.1);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.float-chip .pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3f9b63;
  box-shadow: 0 0 0 4px rgba(63, 155, 99, 0.15);
}

.float-chip--top {
  top: -32px;
  right: 18px;
  animation: float 5s ease-in-out infinite;
}

.float-chip--bottom {
  bottom: 76px;
  left: -14px;
  animation: float 6s 0.8s ease-in-out infinite;
}

.float-chip strong {
  font-family: var(--latin);
  font-size: 13px;
  color: var(--blue-2);
}

/* ---------- ticker ---------- */

.ticker {
  overflow: hidden;
  background: var(--ink);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 38s linear infinite;
}

.ticker:hover .ticker-track {
  animation-play-state: paused;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 14px 26px;
  color: rgba(255, 253, 248, 0.62);
  font-size: 12px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.ticker-item::after {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--amber);
}

.ticker-item b {
  color: var(--white);
  font-weight: 600;
}

/* ---------- generic sections ---------- */

.section {
  position: relative;
  padding: clamp(64px, 8vw, 105px) 0;
}

.section--tight {
  padding: clamp(50px, 6vw, 76px) 0;
}

.section--paper {
  background: var(--paper-2);
  border-block: 1px solid var(--line);
}

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

.section-head h2 {
  max-width: 760px;
  font-family: var(--serif);
  font-size: clamp(30px, 3.8vw, 46px);
  letter-spacing: -0.02em;
}

.section-head .head-side {
  max-width: 330px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.section-head .head-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: none;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line-strong);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 700;
}

.section-head .head-link:hover {
  border-color: var(--ink);
  color: var(--blue-2);
}

/* ---------- editorial intro ---------- */

.intro {
  background: var(--paper);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(36px, 7vw, 100px);
}

.intro h2 {
  font-family: var(--serif);
  font-size: clamp(30px, 3.7vw, 46px);
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.intro h2 em {
  font-style: normal;
  color: var(--blue-2);
}

.intro-side {
  padding-top: 4px;
}

.intro-side p {
  color: #3c4e5e;
  font-size: 17px;
  line-height: 1.9;
}

.intro-side p:first-child::first-letter {
  float: left;
  margin: 7px 10px 0 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 62px;
  font-weight: 700;
  line-height: 0.76;
}

.pull-quote {
  margin: 28px 0 0;
  padding: 20px 0 20px 22px;
  border-left: 3px solid var(--amber);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.65;
}

.pull-quote span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 12px;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 34px;
}

.stat {
  padding: 20px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 253, 248, 0.55);
}

.stat strong {
  display: block;
  font-family: var(--latin);
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.03em;
}

.stat span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.5;
}

/* ---------- features ---------- */

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

.feature-card {
  position: relative;
  min-height: 230px;
  padding: 27px 25px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(43, 123, 187, 0.3);
  box-shadow: var(--shadow);
}

.feature-card--dark {
  background: linear-gradient(145deg, var(--ink) 0%, #183a53 100%);
  border-color: transparent;
  color: var(--white);
}

.feature-card--dark .feature-num,
.feature-card--dark p {
  color: rgba(255, 253, 248, 0.62);
}

.feature-card--dark h3 {
  color: var(--white);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 24px;
  border-radius: 12px;
  background: var(--sky-2);
  color: var(--blue-2);
}

.feature-card--dark .feature-icon {
  background: rgba(255, 255, 255, 0.1);
  color: var(--amber);
}

.feature-icon svg {
  width: 23px;
  height: 23px;
}

.feature-card h3 {
  margin-bottom: 9px;
  font-size: 18px;
  letter-spacing: -0.01em;
}

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

.feature-num {
  position: absolute;
  top: 24px;
  right: 24px;
  color: var(--paper-3);
  font-family: var(--latin);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* ---------- ranking band ---------- */

.rank-band {
  position: relative;
  overflow: hidden;
  padding: clamp(70px, 9vw, 112px) 0;
  background: var(--ink);
  color: var(--white);
}

.rank-band::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(43, 123, 187, 0.38), transparent 68%);
  pointer-events: none;
}

.rank-band::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 74px 74px;
  mask-image: radial-gradient(circle at 75% 35%, #000, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at 75% 35%, #000, transparent 70%);
  pointer-events: none;
}

.rank-band .wrap {
  position: relative;
  z-index: 1;
}

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

.rank-head h2 {
  font-family: var(--serif);
  font-size: clamp(38px, 5.2vw, 66px);
  letter-spacing: -0.03em;
  line-height: 1;
}

.rank-head h2 span {
  display: inline-block;
  margin-left: 14px;
  color: var(--amber);
  font-family: var(--latin);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  vertical-align: middle;
}

.rank-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 16px;
  color: rgba(255, 253, 248, 0.55);
  font-size: 12px;
}

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

.rank-meta span::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--amber);
}

.rank-head .head-link {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.3);
}

.rank-head .head-link:hover {
  color: var(--amber);
  border-color: var(--amber);
}

.podium {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  align-items: stretch;
}

.podium-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: 26px 24px 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--white);
  backdrop-filter: blur(6px);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.podium-card:hover {
  transform: translateY(-5px);
  border-color: rgba(242, 178, 51, 0.4);
  background: rgba(255, 255, 255, 0.07);
}

.podium-card:first-child {
  background: var(--white);
  color: var(--ink);
  border-color: transparent;
  border-top: 4px solid var(--amber);
  transform: translateY(-14px);
  box-shadow: 0 30px 70px -36px rgba(0, 0, 0, 0.8);
}

.podium-card:first-child:hover {
  transform: translateY(-19px);
}

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

.podium-rank {
  color: var(--amber);
  font-family: var(--latin);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.podium-card:not(:first-child) .podium-rank {
  color: rgba(255, 253, 248, 0.45);
}

.podium-card:first-child .podium-rank {
  color: var(--amber-2);
}

.podium-name {
  margin: 26px 0 4px;
  font-family: var(--serif);
  font-size: 29px;
  letter-spacing: -0.02em;
}

.podium-sub {
  color: var(--muted);
  font-size: 11.5px;
}

.podium-card:not(:first-child) .podium-sub {
  color: rgba(255, 253, 248, 0.5);
}

.podium-score {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 18px;
}

.podium-score strong {
  font-family: var(--latin);
  font-size: 42px;
  line-height: 0.9;
  letter-spacing: -0.05em;
}

.podium-score span {
  color: var(--muted);
  font-size: 10px;
}

.podium-card:not(:first-child) .podium-score span {
  color: rgba(255, 253, 248, 0.45);
}

.podium-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 16px 0 0;
}

.podium-note {
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.75;
}

.podium-card:not(:first-child) .podium-note {
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 253, 248, 0.56);
}

.podium-card .podium-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 18px;
  color: var(--blue-2);
  font-size: 12px;
  font-weight: 700;
}

.podium-card:not(:first-child) .podium-arrow {
  color: var(--amber);
}

/* Light-background variant, used on the ranking page. */
.podium--light .podium-card:not(:first-child) {
  background: var(--white);
  border-color: var(--line);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.podium--light .podium-card:not(:first-child) .podium-rank,
.podium--light .podium-card:not(:first-child) .podium-sub,
.podium--light .podium-card:not(:first-child) .podium-score span,
.podium--light .podium-card:not(:first-child) .podium-note {
  color: var(--muted);
}

.podium--light .podium-card:not(:first-child) .podium-note {
  border-color: var(--line);
}

.podium--light .podium-card:not(:first-child) .badge--dark {
  background: var(--paper-2);
  color: var(--ink-soft);
}

.podium--light .podium-card:not(:first-child) .podium-arrow {
  color: var(--blue-2);
}

.rank-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: 34px;
}

.rank-foot p {
  max-width: 660px;
  margin: 0;
  color: rgba(255, 253, 248, 0.45);
  font-size: 11.5px;
  line-height: 1.7;
}


/* Reserved ranking CTAs: anchors intentionally have no href yet. */
.rank-action {
  margin-top: 16px;
  align-self: flex-start;
  color: var(--ink);
  border-color: var(--line-strong);
  background: transparent;
}

.rank-action:hover {
  color: var(--ink);
  border-color: var(--ink);
  background: rgba(13, 27, 42, 0.05);
}

.rank-action--podium {
  margin-top: 14px;
}

.rank-action--item {
  margin-top: 14px;
}

.award-price {
  margin: 10px 0 0;
  color: var(--blue-2);
  font-size: 12px;
  font-weight: 600;
}

/* ---------- download strip ---------- */

.download-strip {
  background:
    radial-gradient(800px 400px at 90% 80%, rgba(220, 235, 248, 0.8), transparent 70%),
    var(--paper);
}

.download-card {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(30px, 5vw, 70px);
  padding: clamp(30px, 5vw, 58px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow);
}

.download-copy h2 {
  margin-bottom: 16px;
  font-family: var(--serif);
  font-size: clamp(30px, 3.6vw, 44px);
  letter-spacing: -0.02em;
}

.download-copy p {
  max-width: 440px;
  color: var(--muted);
  font-size: 14.5px;
}

.download-copy .btn {
  margin-top: 10px;
}

.download-copy .fine {
  margin: 16px 0 0;
  color: var(--muted-2);
  font-size: 11.5px;
}

.steps {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.step {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 15px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

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

.step-num {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--paper-2);
  color: var(--blue-2);
  font-family: var(--latin);
  font-size: 12px;
  font-weight: 700;
}

.step h3 {
  margin-bottom: 4px;
  font-size: 14.5px;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.7;
}

.step code {
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--paper-2);
  color: var(--ink-soft);
  font-size: 11.5px;
  overflow-wrap: anywhere;
}

/* ---------- article cards ---------- */

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

.article-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 270px;
  padding: 26px 24px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.article-card:hover {
  transform: translateY(-4px);
  border-color: rgba(43, 123, 187, 0.32);
  box-shadow: var(--shadow);
  color: var(--ink);
}

.article-card--featured {
  grid-row: span 2;
  min-height: 100%;
  padding: 32px 30px 26px;
  background: linear-gradient(155deg, var(--ink) 0%, #143a55 100%);
  border-color: transparent;
  color: var(--white);
}

.article-card--featured:hover {
  color: var(--white);
  border-color: rgba(242, 178, 51, 0.4);
}

.article-card--featured .article-tag {
  background: rgba(242, 178, 51, 0.16);
  color: var(--amber);
}

.article-card--featured .article-title {
  margin-top: 74px;
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.35;
  color: var(--white);
}

.article-card--featured .article-excerpt {
  color: rgba(255, 253, 248, 0.62);
}

.article-card--featured .article-foot {
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 253, 248, 0.55);
}

.article-card--featured .article-num {
  color: rgba(255, 255, 255, 0.12);
}

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

.article-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 5px;
  background: var(--paper-2);
  color: var(--ink-soft);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.article-num {
  color: var(--paper-3);
  font-family: var(--latin);
  font-size: 12px;
  font-weight: 700;
}

.article-title {
  margin: 22px 0 10px;
  font-size: 20px;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

.article-excerpt {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.8;
}

.article-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 11px;
}

.article-foot .arrow {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--paper-2);
  color: var(--ink);
  transition: transform 0.2s ease, background 0.2s ease;
}

.article-card:hover .article-foot .arrow {
  transform: translateX(3px);
  background: var(--amber);
}

.article-card--featured .article-foot .arrow {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.article-card--featured:hover .article-foot .arrow {
  background: var(--amber);
  color: var(--ink);
}

/* ---------- FAQ ---------- */

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(30px, 5vw, 60px);
}

.faq-intro h2 {
  margin-bottom: 16px;
  font-family: var(--serif);
  font-size: clamp(28px, 3.2vw, 40px);
  letter-spacing: -0.02em;
}

.faq-intro p {
  color: var(--muted);
  font-size: 14px;
}

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

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

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 2px;
  cursor: pointer;
  font-size: 15.5px;
  font-weight: 600;
  list-style: none;
}

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

.faq-item summary::after {
  content: "+";
  flex: none;
  color: var(--blue-2);
  font-family: var(--latin);
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-a {
  padding: 0 40px 22px 2px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.85;
}

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

/* ---------- final CTA ---------- */

.final-cta {
  padding: clamp(50px, 6.5vw, 82px) 0;
  background: var(--amber);
  color: var(--ink);
}

.final-cta .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
}

.final-cta .kicker {
  color: rgba(13, 27, 42, 0.6);
}

.final-cta .kicker .dot {
  background: var(--ink);
  box-shadow: 0 0 0 4px rgba(13, 27, 42, 0.12);
}

.final-cta h2 {
  max-width: 760px;
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 50px);
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.final-cta p {
  max-width: 600px;
  margin: 12px 0 0;
  color: rgba(13, 27, 42, 0.68);
  font-size: 14px;
}

/* ---------- page hero (inner pages) ---------- */

.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 6vw, 76px) 0 clamp(42px, 5vw, 62px);
  background:
    radial-gradient(900px 420px at 88% 0%, rgba(202, 228, 248, 0.8), transparent 66%),
    var(--paper);
  border-bottom: 1px solid var(--line);
}

.page-hero::after {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(43, 123, 187, 0.16);
  border-radius: 50%;
  box-shadow:
    0 0 0 40px rgba(43, 123, 187, 0.04),
    0 0 0 80px rgba(43, 123, 187, 0.03);
  pointer-events: none;
}

.page-hero .wrap {
  position: relative;
  z-index: 1;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 11.5px;
}

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

.breadcrumb a:hover {
  color: var(--blue-2);
}

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

.page-hero h1 {
  max-width: 900px;
  font-family: var(--serif);
  font-size: clamp(38px, 5.2vw, 62px);
  letter-spacing: -0.03em;
  line-height: 1.18;
}

.page-hero .lede {
  max-width: 760px;
  margin-top: 20px;
}

.page-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 12px;
}

.page-hero-meta .pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.6);
  font-size: 11.5px;
  font-weight: 600;
}

/* ---------- ranking page ---------- */

.rank-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(46px, 6vw, 74px) 0 0;
  background: var(--ink);
  color: var(--white);
}

.rank-hero::before {
  content: "";
  position: absolute;
  top: -30%;
  left: 55%;
  width: 900px;
  height: 900px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(43, 123, 187, 0.38), transparent 62%);
  pointer-events: none;
}

.rank-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.14;
  background-image: radial-gradient(rgba(255, 255, 255, 0.5) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(90deg, #000, transparent 70%);
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 70%);
  pointer-events: none;
}

.rank-hero .wrap {
  position: relative;
  z-index: 1;
}

.rank-hero .breadcrumb,
.rank-hero .breadcrumb a {
  color: rgba(255, 253, 248, 0.5);
}

.rank-hero .breadcrumb a:hover {
  color: var(--amber);
}

.rank-hero .breadcrumb span {
  color: rgba(255, 253, 248, 0.3);
}

.rank-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  align-items: end;
  gap: 40px;
  padding-bottom: 44px;
}

.rank-hero h1 {
  margin: 12px 0 0;
  font-family: var(--serif);
  font-size: clamp(56px, 9vw, 112px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

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

.rank-hero .lede {
  max-width: 660px;
  margin-top: 24px;
  color: rgba(255, 253, 248, 0.62);
  font-size: 15.5px;
}

.rank-stamp {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  padding-bottom: 8px;
  text-align: right;
}

.rank-stamp .issue {
  font-family: var(--latin);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: rgba(255, 253, 248, 0.45);
}

.rank-stamp .season {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid rgba(242, 178, 51, 0.4);
  border-radius: 8px;
  color: var(--amber);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.rank-stamp .updated {
  color: rgba(255, 253, 248, 0.42);
  font-size: 11px;
}

.rank-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.rank-stat {
  padding: 24px 20px 28px 0;
}

.rank-stat + .rank-stat {
  padding-left: 24px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.rank-stat strong {
  display: block;
  font-family: var(--latin);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
}

.rank-stat strong small {
  margin-left: 3px;
  color: rgba(255, 253, 248, 0.45);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
}

.rank-stat span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 253, 248, 0.45);
  font-size: 11px;
}

.rank-section {
  padding: clamp(56px, 7vw, 90px) 0;
}

.rank-section--paper {
  background: var(--paper-2);
  border-block: 1px solid var(--line);
}

.rank-section .section-head {
  margin-bottom: 32px;
}

.rank-section h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 3.6vw, 42px);
  letter-spacing: -0.02em;
}

.rank-section h2 .tiny {
  display: inline-block;
  margin-left: 10px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  vertical-align: middle;
}

.rank-list {
  display: grid;
  gap: 12px;
}

.rank-item {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) 128px;
  align-items: center;
  gap: 22px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.rank-item:hover {
  border-color: rgba(43, 123, 187, 0.32);
  box-shadow: var(--shadow-sm);
}

.rank-item--top {
  border-left: 4px solid var(--amber);
}

.rank-place {
  color: var(--paper-3);
  font-family: var(--latin);
  font-size: 38px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.06em;
}

.rank-item--top .rank-place {
  color: var(--amber-2);
}

.rank-main {
  min-width: 0;
}

.rank-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.rank-title h3 {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: -0.02em;
}

.rank-verdict {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.75;
}

.rank-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 9px;
  color: var(--muted-2);
  font-size: 11px;
}

.rank-facts b {
  color: var(--ink-soft);
  font-weight: 600;
}

.rank-score {
  text-align: right;
}

.rank-score strong {
  display: block;
  font-family: var(--latin);
  font-size: 32px;
  line-height: 1;
  letter-spacing: -0.05em;
}

.rank-score span {
  display: block;
  margin-top: 5px;
  color: var(--muted-2);
  font-size: 10px;
}

.score-bar {
  width: 100%;
  height: 3px;
  margin-top: 10px;
  border-radius: 3px;
  background: var(--paper-2);
  overflow: hidden;
}

.score-bar i {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--blue), var(--amber));
}

.rank-note {
  grid-column: 2 / -1;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-size: 11.5px;
}

.rank-note b {
  color: var(--ink-soft);
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

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

.table-hint {
  display: none;
  margin: 8px 0 0;
  color: var(--muted-2);
  font-size: 10.5px;
}

.table-scroll .price-table {
  border: 0;
  border-radius: 0;
  min-width: 680px;
}

.price-table th {
  padding: 13px 16px;
  background: var(--ink);
  color: rgba(255, 253, 248, 0.7);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: left;
  white-space: nowrap;
}

.price-table td {
  padding: 13px 16px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  white-space: nowrap;
}

.price-table tr:nth-child(even) td {
  background: rgba(239, 233, 221, 0.35);
}

.price-table td strong {
  color: var(--ink);
}

.price-table .yes {
  color: #2f7d4e;
  font-weight: 700;
}

.price-table .no {
  color: var(--muted-2);
}

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

.award-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
}

.award-card .award-label {
  color: var(--blue-2);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.award-card h3 {
  margin: 10px 0 5px;
  font-family: var(--serif);
  font-size: 20px;
}

.award-card p {
  margin: 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.7;
}

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

.method-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
}

.method-card .weight {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.method-card h3 {
  font-size: 15px;
}

.method-card .weight strong {
  color: var(--blue-2);
  font-family: var(--latin);
  font-size: 22px;
  letter-spacing: -0.04em;
}

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

.method-bar {
  height: 5px;
  margin-top: 16px;
  border-radius: 5px;
  background: var(--paper-2);
  overflow: hidden;
}

.method-bar i {
  display: block;
  height: 100%;
  border-radius: 5px;
  background: var(--amber);
}

.monitor {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 28px;
  padding: 28px;
  border-radius: 18px;
  background: var(--ink);
  color: var(--white);
}

.monitor h3 {
  margin-bottom: 10px;
  font-family: var(--serif);
  font-size: 24px;
}

.monitor p {
  margin: 0;
  color: rgba(255, 253, 248, 0.55);
  font-size: 12.5px;
  line-height: 1.8;
}

.monitor-log {
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.log-item {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 11.5px;
}

.log-item time {
  color: rgba(255, 253, 248, 0.38);
  font-family: var(--latin);
}

.log-item span {
  color: rgba(255, 253, 248, 0.7);
}

.disclaimer {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 253, 248, 0.6);
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.8;
}

.disclaimer strong {
  color: var(--ink-soft);
}

/* ---------- guide page ---------- */

.guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
  gap: clamp(28px, 4vw, 56px);
}

.guide-list {
  display: grid;
  gap: 12px;
}

.guide-card {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr) 26px;
  align-items: center;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  color: var(--ink);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.guide-card:hover {
  transform: translateX(4px);
  border-color: rgba(43, 123, 187, 0.32);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
}

.guide-card .num {
  color: var(--paper-3);
  font-family: var(--latin);
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.05em;
}

.guide-card h2 {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

.guide-card p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.guide-card .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 8px;
  color: var(--muted-2);
  font-size: 10.5px;
}

.guide-card .arrow {
  color: var(--blue-2);
  font-size: 18px;
  transition: transform 0.2s ease;
}

.guide-card:hover .arrow {
  transform: translateX(3px);
}

.reading-path {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper-2);
}

.reading-path h2 {
  margin-bottom: 16px;
  font-family: var(--serif);
  font-size: 22px;
}

.reading-path ol {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.9;
}

.reading-path li {
  padding: 5px 0;
}

/* ---------- article pages ---------- */

.article-hero {
  padding: clamp(36px, 5vw, 60px) 0 clamp(34px, 4.5vw, 52px);
  background:
    radial-gradient(800px 360px at 90% 0%, rgba(220, 235, 248, 0.75), transparent 65%),
    var(--paper);
  border-bottom: 1px solid var(--line);
}

.article-hero .wrap {
  max-width: 1010px;
}

.article-hero h1 {
  max-width: 880px;
  margin-top: 8px;
  font-family: var(--serif);
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.3;
  letter-spacing: -0.025em;
}

.article-dek {
  max-width: 760px;
  margin: 18px 0 0;
  color: #405364;
  font-size: 16px;
  line-height: 1.85;
}

.article-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 11.5px;
}

.article-meta-row .author {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  font-weight: 600;
}

.article-meta-row .author .avatar {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--amber);
  font-family: var(--serif);
  font-size: 12px;
}

.article-meta-row .sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--line-strong);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 306px;
  align-items: start;
  gap: clamp(34px, 5vw, 62px);
  padding: clamp(42px, 5.5vw, 68px) 0 clamp(56px, 7vw, 88px);
}

.article-body {
  min-width: 0;
  max-width: 760px;
  font-size: 17px;
  line-height: 1.95;
  color: #2c3e4d;
}

.article-body > p:first-of-type {
  color: var(--ink-soft);
  font-size: 18.5px;
}

.article-body h2 {
  position: relative;
  margin: 2.4em 0 0.8em;
  padding-top: 20px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(25px, 2.8vw, 31px);
  letter-spacing: -0.02em;
  line-height: 1.4;
}

.article-body h2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 3px;
  border-radius: 3px;
  background: var(--amber);
}

.article-body h3 {
  margin: 1.9em 0 0.6em;
  color: var(--ink);
  font-size: 20px;
  letter-spacing: -0.01em;
}

.article-body p {
  margin: 0 0 1.35em;
}

.article-body a {
  color: var(--blue-2);
  font-weight: 600;
  background-image: linear-gradient(var(--amber), var(--amber));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 2px;
  transition: background-size 0.2s ease;
}

.article-body a:hover {
  color: var(--blue-deep);
  background-size: 100% 8px;
}

.article-body strong {
  color: var(--ink);
  font-weight: 700;
}

.article-body em {
  font-style: normal;
  padding: 0 3px;
  background: linear-gradient(transparent 58%, var(--amber-soft) 58%);
}

.article-body ul,
.article-body ol {
  margin: 0 0 1.4em;
  padding-left: 1.35em;
}

.article-body li {
  margin: 0.45em 0;
  padding-left: 0.2em;
}

.article-body ul li::marker {
  color: var(--amber-2);
}

.article-body blockquote {
  margin: 2em 0;
  padding: 22px 24px;
  border-left: 3px solid var(--amber);
  border-radius: 0 10px 10px 0;
  background: var(--paper-2);
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.75;
}

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

.article-body code {
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(43, 123, 187, 0.1);
  color: var(--blue-deep);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.86em;
  overflow-wrap: anywhere;
}

.article-body pre {
  margin: 1.6em 0;
  padding: 18px 20px;
  border-radius: 12px;
  background: var(--ink);
  color: #dbe8f3;
  font-size: 12.5px;
  line-height: 1.7;
  overflow-x: auto;
}

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

.article-body table {
  width: 100%;
  margin: 1.8em 0;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.6;
}

.article-body th {
  padding: 10px 12px;
  background: var(--ink);
  color: rgba(255, 253, 248, 0.75);
  font-weight: 600;
  text-align: left;
}

.article-body td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}

.article-body tr:nth-child(even) td {
  background: rgba(239, 233, 221, 0.35);
}

.callout {
  margin: 2em 0;
  padding: 20px 22px;
  border: 1px solid rgba(43, 123, 187, 0.18);
  border-left: 3px solid var(--blue);
  border-radius: 4px 12px 12px 4px;
  background: var(--sky-2);
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.85;
}

.callout .callout-title {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 6px;
  color: var(--blue-2);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

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

.callout--amber {
  border-color: rgba(217, 150, 27, 0.24);
  border-left-color: var(--amber-2);
  background: #fdf6e4;
}

.callout--amber .callout-title {
  color: #8a5c00;
}

.callout--dark {
  border: 0;
  border-radius: 14px;
  background: var(--ink);
  color: rgba(255, 253, 248, 0.7);
}

.callout--dark .callout-title {
  color: var(--amber);
}

.callout--dark strong {
  color: var(--white);
}

.callout--dark a {
  color: var(--amber);
  background-image: none;
}

.article-side {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 14px;
}

.side-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
}

.side-card--dark {
  background: linear-gradient(150deg, var(--ink), #153a55);
  border-color: transparent;
  color: var(--white);
}

.side-card .side-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--blue-2);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.side-card--dark .side-kicker {
  color: var(--amber);
}

.side-card h2 {
  margin-bottom: 10px;
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.45;
}

.side-card p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}

.side-card--dark p {
  color: rgba(255, 253, 248, 0.55);
}

.side-card .btn {
  width: 100%;
}

.mini-rank {
  display: grid;
  gap: 0;
  margin: 0 0 14px;
}

.mini-rank-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 253, 248, 0.78);
  font-size: 12px;
}

.mini-rank-item .n {
  width: 18px;
  color: var(--amber);
  font-family: var(--latin);
  font-size: 10px;
  font-weight: 700;
}

.mini-rank-item .s {
  margin-left: auto;
  color: var(--amber);
  font-family: var(--latin);
  font-size: 11px;
  font-weight: 700;
}

.side-download {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 12px;
}

.side-download img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
}

.side-download strong {
  display: block;
  font-family: var(--latin);
  font-size: 14px;
}

.side-download small {
  display: block;
  color: var(--muted-2);
  font-size: 10px;
}

.article-end {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--line-strong);
}

.article-end .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 22px;
}

.article-end .tag {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 10.5px;
}

.article-end .tag:hover {
  border-color: var(--blue);
  color: var(--blue-2);
}

.article-bio {
  display: flex;
  gap: 14px;
  padding: 18px;
  border-radius: 12px;
  background: var(--paper-2);
}

.article-bio .bio-avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--amber);
  font-family: var(--serif);
  font-size: 18px;
}

.article-bio strong {
  display: block;
  font-size: 13px;
}

.article-bio p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.7;
}

.related {
  margin-top: 40px;
}

.related h2 {
  margin-bottom: 16px;
  font-family: var(--serif);
  font-size: 24px;
}

.related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.related-link {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.related-link:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
  color: var(--ink);
}

.related-link span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted-2);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
}

/* ---------- download page ---------- */

.dl-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  align-items: center;
  gap: clamp(30px, 5vw, 70px);
}

.dl-app {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.dl-app img {
  width: 62px;
  height: 62px;
  border-radius: 15px;
  box-shadow: 0 10px 25px -14px rgba(13, 27, 42, 0.6);
}

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

.dl-app strong {
  display: block;
  font-family: var(--latin);
  font-size: 16px;
}

.version-panel {
  position: relative;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.version-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 26px;
  width: 54px;
  height: 4px;
  border-radius: 0 0 4px 4px;
  background: var(--amber);
}

.version-panel .vp-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 10.5px;
  letter-spacing: 0.08em;
}

.version-panel .vp-version {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}

.version-panel .vp-version strong {
  font-family: var(--latin);
  font-size: 42px;
  line-height: 1;
  letter-spacing: -0.05em;
}

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

.version-panel .vp-date {
  color: var(--muted);
  font-size: 11.5px;
}

.version-panel .vp-specs {
  display: grid;
  gap: 0;
  margin: 18px 0;
  border-top: 1px solid var(--line);
}

.version-panel .vp-specs div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 11.5px;
}

.version-panel .vp-specs span {
  color: var(--muted);
}

.version-panel .vp-specs b {
  color: var(--ink-soft);
  font-weight: 600;
  text-align: right;
}

.version-panel .btn {
  width: 100%;
}

.version-panel .vp-note {
  margin: 12px 0 0;
  color: var(--muted-2);
  font-size: 10px;
  line-height: 1.6;
  text-align: center;
}

.version-panel .vp-note a {
  color: var(--blue-2);
}

.dl-section {
  padding: clamp(50px, 6vw, 78px) 0;
}

.dl-section--paper {
  background: var(--paper-2);
  border-block: 1px solid var(--line);
}

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

.install-card {
  position: relative;
  padding: 24px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
}

.install-card::before {
  counter-increment: install;
  content: "0" counter(install);
  display: block;
  margin-bottom: 18px;
  color: var(--amber-2);
  font-family: var(--latin);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.install-card h3 {
  margin-bottom: 8px;
  font-size: 15px;
}

.install-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}

.install-card code {
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--paper-2);
  font-size: 10.5px;
}

.versions-table {
  min-width: 640px;
}

.versions-table td .tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--amber-soft);
  color: #7a5100;
  font-size: 9px;
  font-weight: 700;
}

.trouble-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.trouble {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}

.trouble h3 {
  display: flex;
  gap: 8px;
  margin-bottom: 7px;
  font-size: 14px;
}

.trouble h3 span {
  color: var(--amber-2);
}

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

/* ---------- about ---------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(30px, 6vw, 80px);
}

.about-aside {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  align-self: start;
}

.about-aside img {
  width: 64px;
  height: 64px;
  border-radius: 15px;
  margin-bottom: 16px;
}

.about-aside h2 {
  font-family: var(--serif);
  font-size: 24px;
}

.about-aside p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.about-aside dl {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 11px;
}

.about-aside dl div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.about-aside dt {
  color: var(--muted);
}

.about-aside dd {
  margin: 0;
  color: var(--ink-soft);
  font-weight: 600;
  text-align: right;
}

.principle-list {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}

.principle {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
}

.principle .pn {
  color: var(--amber-2);
  font-family: var(--latin);
  font-size: 11px;
  font-weight: 700;
}

.principle strong {
  display: block;
  margin-bottom: 3px;
  font-size: 13px;
}

.principle p {
  margin: 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.7;
}

/* ---------- footer ---------- */

.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: rgba(255, 253, 248, 0.62);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -260px;
  right: -160px;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(43, 123, 187, 0.24), transparent 66%);
  pointer-events: none;
}

.footer-top {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 30px;
  padding: 52px 0 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-top h2 {
  max-width: 600px;
  color: var(--white);
  font-family: var(--serif);
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.footer-top h2 em {
  color: var(--amber);
  font-style: normal;
}

.footer-top .footer-cta {
  justify-self: end;
}

.footer-main {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap: 32px;
  padding: 44px 0 38px;
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 13px;
}

.footer-brand img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
}

.footer-brand strong {
  display: block;
  color: var(--white);
  font-family: var(--latin);
  font-size: 18px;
  line-height: 1.3;
}

.footer-brand p {
  max-width: 280px;
  margin: 8px 0 0;
  color: rgba(255, 253, 248, 0.45);
  font-size: 11.5px;
  line-height: 1.8;
}

.footer-col h3 {
  margin-bottom: 14px;
  color: rgba(255, 253, 248, 0.35);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.footer-col ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col a {
  color: rgba(255, 253, 248, 0.62);
  font-size: 12.5px;
}

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

.footer-col .hot {
  color: var(--amber);
}

.footer-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 253, 248, 0.32);
  font-size: 10.5px;
  line-height: 1.8;
}

.footer-bottom p {
  max-width: 800px;
  margin: 0;
}

.footer-bottom .footer-mark {
  flex: none;
  color: rgba(255, 255, 255, 0.18);
  font-family: var(--latin);
  font-size: 11px;
  letter-spacing: 0.14em;
}

/* ---------- slim footer ---------- */

.footer-slim {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 30px 0 26px;
}

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

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  color: var(--white);
  font-family: var(--latin);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

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

.footer-logo img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 22px;
}

.footer-nav a {
  color: rgba(255, 253, 248, 0.62);
  font-size: 12.5px;
  font-weight: 500;
}

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

.footer-slim-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 253, 248, 0.34);
  font-size: 10.5px;
  line-height: 1.7;
}

.footer-slim-bottom p {
  margin: 0;
}

.footer-slim-bottom a {
  color: rgba(255, 253, 248, 0.45);
  white-space: nowrap;
}

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

@media (max-width: 720px) {
  .footer-slim {
    padding: 26px 0 22px;
  }

  .footer-slim-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .footer-nav {
    justify-content: flex-start;
    gap: 8px 18px;
  }

  .footer-slim-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
  }
}

/* ---------- to top ---------- */

.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.to-top.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.to-top:hover {
  background: var(--amber);
}

.to-top svg {
  width: 16px;
  height: 16px;
}

/* ---------- reveal ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.delay-1 {
  transition-delay: 0.08s;
}

.delay-2 {
  transition-delay: 0.16s;
}

/* ---------- animations ---------- */

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(13, 27, 42, 0.35); }
  50% { opacity: 0.7; box-shadow: 0 0 0 4px rgba(13, 27, 42, 0); }
}

/* ---------- responsive ---------- */

@media (max-width: 1040px) {
  .hero-grid {
    gap: 40px;
  }

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

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

  .article-card--featured {
    grid-row: auto;
    grid-column: span 2;
    min-height: 300px;
  }

  .article-card--featured .article-title {
    margin-top: 34px;
  }

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

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

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

@media (max-width: 900px) {
  .main-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .header-inner {
    gap: 16px;
  }

  .hero {
    padding-top: 54px;
  }

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

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

  .hero-stage {
    max-width: 560px;
    margin-inline: auto;
    width: 100%;
  }

  .menu-demo {
    margin-inline: auto;
  }

  .stage-note {
    margin-inline: auto;
    text-align: center;
  }

  .float-chip--top {
    right: 4px;
  }

  .intro-grid,
  .faq-grid,
  .about-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .intro h2 {
    max-width: 680px;
  }

  .rank-hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .rank-stamp {
    align-items: flex-start;
    text-align: left;
    flex-direction: row;
    flex-wrap: wrap;
    padding-bottom: 0;
  }

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

  .rank-stat:nth-child(3) {
    border-left: 0;
  }

  .rank-stat:nth-child(n + 3) {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

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

  .podium-card:first-child {
    transform: none;
  }

  .podium-card:first-child:hover {
    transform: translateY(-5px);
  }

  .podium {
    gap: 12px;
  }

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

  .download-card {
    grid-template-columns: 1fr;
  }

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

  .article-side {
    position: static;
    grid-template-columns: 1fr 1fr;
  }

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

  .dl-hero-grid {
    grid-template-columns: 1fr;
  }

  .version-panel {
    max-width: 460px;
  }

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

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

  .footer-top .footer-cta {
    justify-self: start;
  }

  .final-cta .wrap {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .wrap {
    width: calc(100% - 36px);
  }

  body {
    font-size: 16px;
  }

  .hero h1 {
    font-size: clamp(36px, 10vw, 52px);
  }

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

  .float-chip--bottom {
    left: 0;
  }

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

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 30px;
  }

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

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

  .stat-row {
    grid-template-columns: 1fr 1fr;
  }

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

  .article-card--featured {
    grid-column: auto;
  }

  .article-card {
    min-height: 230px;
  }

  .rank-item {
    grid-template-columns: 52px 1fr 72px;
    gap: 12px;
    padding: 18px 16px;
  }

  .rank-place {
    font-size: 28px;
  }

  .rank-title h3 {
    font-size: 19px;
  }

  .rank-score strong {
    font-size: 26px;
  }

  .rank-note {
    grid-column: 1 / -1;
  }

  .rank-foot {
    align-items: flex-start;
  }

  .method-grid,
  .trouble-grid {
    grid-template-columns: 1fr;
  }

  .monitor {
    grid-template-columns: 1fr;
    padding: 22px;
  }

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

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

  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 26px 18px;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
  }

  .article-hero h1 {
    font-size: 30px;
  }

  .article-body {
    font-size: 16px;
  }

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

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

  .article-meta-row {
    gap: 7px 12px;
  }

  .table-hint {
    display: block;
  }

  .article-body > p:first-of-type {
    font-size: 17.5px;
  }

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

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

  .final-cta .btn {
    justify-self: start;
  }

  .top-note .wrap {
    gap: 8px;
    font-size: 11px;
  }

  .top-note .hide-mobile {
    display: none;
  }

  .demo-bar .mb-menu,
  .demo-bar .mb-date {
    display: none;
  }

  .demo-bar {
    gap: 9px;
  }
}

@media (max-width: 380px) {
  .top-note .tag {
    display: none;
  }

  .top-note .wrap {
    gap: 6px;
    font-size: 10.5px;
  }
}

@media (max-width: 480px) {
  .brand-text small {
    display: none;
  }

  .brand-text strong {
    font-size: 17px;
  }

  .hero {
    padding: 42px 0 52px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

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

  .stat-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .stat {
    padding: 14px 11px;
  }

  .stat strong {
    font-size: 24px;
  }

  .stat span {
    font-size: 10.5px;
  }

  .intro-side p:first-child::first-letter {
    float: none;
    margin: 0;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
  }

  .rank-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .rank-head h2 span {
    display: block;
    margin: 10px 0 0;
  }

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

  .rank-stat {
    padding-right: 10px;
  }

  .rank-stat + .rank-stat {
    padding-left: 14px;
  }

  .rank-item {
    grid-template-columns: 40px 1fr;
  }

  .rank-score {
    grid-column: 2;
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: left;
  }

  .rank-score span {
    margin-top: 0;
  }

  .rank-score .score-bar {
    flex: 1;
    margin-top: 0;
  }

  .rank-note {
    grid-column: 1 / -1;
  }

  .guide-card {
    grid-template-columns: 44px 1fr;
    gap: 12px;
    padding: 18px;
  }

  .guide-card .num {
    font-size: 26px;
  }

  .guide-card .arrow {
    display: none;
  }

  .version-panel {
    padding: 22px;
  }

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

  .footer-brand {
    grid-column: auto;
  }

  .to-top {
    right: 16px;
    bottom: 16px;
  }
}

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

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

  .ticker-track {
    animation: none;
  }
}
