/* ==========================================================================
   Clash Lite 中文站
   A warm paper / cobalt ink visual system for a small iOS network client.
   ========================================================================== */

:root {
  --paper: #f5f1e7;
  --paper-2: #ece6d8;
  --paper-3: #e5ddcb;
  --card: #fbf8f0;
  --ink: #101a22;
  --ink-soft: #243038;
  --muted: #5c666c;
  --muted-2: #6c757a;
  --blue: #1f5ff0;
  --blue-deep: #0d2b7a;
  --blue-wash: #e7eefc;
  --lime: #ddf56b;
  --lime-soft: #eff7c4;
  --coral: #c4553b;
  --green: #1e7a52;
  --line: rgba(16, 26, 34, 0.14);
  --line-soft: rgba(16, 26, 34, 0.08);
  --line-strong: rgba(16, 26, 34, 0.32);
  --white: #fffdf8;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-serif: "Songti SC", "Noto Serif SC", "STSong", "SimSun", serif;
  --font-mono: "SF Mono", "Menlo", "JetBrains Mono", "Roboto Mono", ui-monospace, monospace;
  --shadow-sm: 0 8px 24px rgba(16, 26, 34, 0.06);
  --shadow-md: 0 22px 54px rgba(16, 26, 34, 0.1);
  --shadow-lg: 0 40px 90px rgba(16, 26, 34, 0.16);
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 26px;
  --wrap: 1200px;
}

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

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

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

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% -4%, rgba(31, 95, 240, 0.07), transparent 34%),
    radial-gradient(circle at 88% 4%, rgba(221, 245, 107, 0.24), transparent 30%);
}

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

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

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

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

ul,
ol {
  padding: 0;
  list-style: none;
}

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

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -70px;
  z-index: 200;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 0 0 10px 10px;
  font-size: 14px;
  transition: top 0.2s ease;
}

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

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

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

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

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

/* --------------------------------------------------------------------------
   Top strip + header
   -------------------------------------------------------------------------- */

.topbar {
  background: var(--ink);
  color: rgba(245, 241, 231, 0.72);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}

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

.topbar__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.topbar__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 3px rgba(221, 245, 107, 0.16);
}

.topbar__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--lime);
  white-space: nowrap;
}

.topbar__link:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-head {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(245, 241, 231, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(1.1);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

.site-head.is-scrolled {
  box-shadow: 0 10px 30px rgba(16, 26, 34, 0.06);
  background: rgba(245, 241, 231, 0.96);
}

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

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

.brand__mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: var(--white);
  padding: 3px;
  box-shadow: 0 2px 0 rgba(16, 26, 34, 0.03);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand__name {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand__sub {
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

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

.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--ink-soft);
  transition: color 0.2s ease, background 0.2s ease;
}

.nav__link:hover {
  color: var(--blue-deep);
  background: rgba(31, 95, 240, 0.06);
}

.nav__link.is-active {
  color: var(--ink);
  font-weight: 600;
}

.nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--blue);
}

.nav__link--rank {
  margin-left: 8px;
  padding: 0 15px;
  background: var(--lime);
  color: var(--ink);
  font-weight: 700;
  border-radius: 999px;
}

.nav__link--rank:hover {
  background: #e7fa92;
  color: var(--ink);
}

.nav__link--rank::after {
  display: none;
}

.head-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.head-cta:hover {
  background: var(--blue-deep);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(31, 95, 240, 0.22);
}

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
}

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

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

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

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

.drawer {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: var(--paper);
  padding: 24px;
  overflow-y: auto;
}

.drawer[hidden] {
  display: none;
}

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 34px;
}

.drawer__close {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.drawer__nav {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.drawer__nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
}

.drawer__nav a span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.drawer__cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 32px;
}

.drawer__note {
  margin-top: 28px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
}

body.is-locked {
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   Shared type + buttons
   -------------------------------------------------------------------------- */

.display {
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.08;
}

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

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

.btn--primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 12px 26px rgba(31, 95, 240, 0.18);
}

.btn--primary:hover {
  background: var(--blue-deep);
  box-shadow: 0 16px 30px rgba(31, 95, 240, 0.24);
}

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

.btn--ink:hover {
  background: var(--blue-deep);
}

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

.btn--lime:hover {
  background: #e9fa94;
}

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

.btn--ghost:hover {
  border-color: var(--ink);
  background: rgba(16, 26, 34, 0.04);
}

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

.btn--light:hover {
  background: #fff;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue-deep);
  border-bottom: 1px solid rgba(13, 43, 122, 0.28);
  padding-bottom: 2px;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.text-link:hover {
  color: var(--blue);
  border-color: var(--blue);
}

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

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

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.75fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 46px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.section-intro {
  max-width: 460px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.85;
  padding-bottom: 6px;
}

.section-intro strong {
  color: var(--ink);
  font-weight: 600;
}

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

.hero {
  position: relative;
  padding: 68px 0 54px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(16, 26, 34, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(16, 26, 34, 0.045) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), transparent 78%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), transparent 78%);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(320px, 0.94fr);
  gap: 56px;
  align-items: center;
}

.hero__copy {
  position: relative;
  z-index: 2;
  padding: 18px 0 0;
}

.hero__title {
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.96;
}

.hero__name {
  display: block;
  font-size: clamp(3.6rem, 7vw, 4.75rem);
  color: var(--ink);
}

.hero__line {
  display: block;
  margin-top: 12px;
  font-size: clamp(2.25rem, 4.5vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hl {
  position: relative;
  display: inline-block;
  isolation: isolate;
}

.hl::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -0.04em;
  right: -0.04em;
  bottom: 0.07em;
  height: 0.2em;
  background: var(--lime);
  border-radius: 2px;
}

.hero__lead {
  max-width: 540px;
  text-wrap: balance;
  margin-top: 26px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.9;
}

.hero__lead strong {
  color: var(--ink);
  font-weight: 600;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin-top: 30px;
}

.hero__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 50px;
  padding: 0 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.hero__link:hover {
  color: var(--blue);
  border-color: var(--blue);
}

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.hero__fact {
  padding-right: 24px;
  margin-right: 24px;
  border-right: 1px solid var(--line);
}

.hero__fact:last-child {
  padding-right: 0;
  margin-right: 0;
  border-right: 0;
}

.hero__fact dt {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--muted-2);
  text-transform: uppercase;
}

.hero__fact dd {
  margin-top: 3px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   Device mockup
   -------------------------------------------------------------------------- */

.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 600px;
  z-index: 1;
}

.hero__ring {
  position: absolute;
  width: 500px;
  height: 500px;
  border: 1px solid var(--line);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.hero__ring::before {
  content: "";
  position: absolute;
  inset: 56px;
  border: 1px dashed rgba(16, 26, 34, 0.12);
  border-radius: 50%;
}

.hero__blob {
  position: absolute;
  width: 240px;
  height: 240px;
  right: 12px;
  top: 42px;
  border-radius: 50%;
  background: var(--lime);
  filter: blur(2px);
  opacity: 0.55;
}

.device {
  position: relative;
  width: 292px;
  height: 594px;
  padding: 11px;
  border-radius: 48px;
  background: #0b1217;
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.14) inset,
    0 34px 80px rgba(16, 26, 34, 0.24),
    0 4px 12px rgba(16, 26, 34, 0.16);
  transform: rotate(-2.5deg);
  z-index: 2;
}

.device::before {
  content: "";
  position: absolute;
  top: 120px;
  left: -3px;
  width: 3px;
  height: 54px;
  border-radius: 3px 0 0 3px;
  background: #28343d;
}

.device::after {
  content: "";
  position: absolute;
  top: 192px;
  left: -3px;
  width: 3px;
  height: 34px;
  border-radius: 3px 0 0 3px;
  background: #28343d;
}

.device__screen {
  position: relative;
  height: 100%;
  border-radius: 38px;
  overflow: hidden;
  background: #f2f2f6;
  color: #111;
  font-family: -apple-system, "PingFang SC", "Hiragino Sans GB", sans-serif;
}

.device__status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 24px 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.device__status-right {
  display: flex;
  align-items: center;
  gap: 5px;
}

.device__signal {
  display: inline-flex;
  gap: 1.5px;
  align-items: end;
  height: 9px;
}

.device__signal i {
  display: block;
  width: 2px;
  border-radius: 1px;
  background: #111;
}

.device__signal i:nth-child(1) { height: 3px; }
.device__signal i:nth-child(2) { height: 5px; }
.device__signal i:nth-child(3) { height: 7px; }
.device__signal i:nth-child(4) { height: 9px; }

.device__battery {
  position: relative;
  width: 18px;
  height: 9px;
  border: 1px solid rgba(17, 17, 17, 0.5);
  border-radius: 3px;
}

.device__battery::before {
  content: "";
  position: absolute;
  inset: 1px;
  width: 11px;
  border-radius: 1px;
  background: #111;
}

.device__battery::after {
  content: "";
  position: absolute;
  right: -3px;
  top: 2px;
  width: 2px;
  height: 4px;
  border-radius: 0 1px 1px 0;
  background: rgba(17, 17, 17, 0.5);
}

.device__app {
  padding: 22px 18px 0;
}

.device__app-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.device__app-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.device__plus {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 300;
  line-height: 1;
  color: #111;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.device__connected {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 13px;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.device__globe {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #eaf1ff;
  display: grid;
  place-items: center;
  color: #1f5ff0;
  flex-shrink: 0;
}

.device__connected-text {
  min-width: 0;
  flex: 1;
}

.device__connected-text b {
  display: block;
  font-size: 12.5px;
  font-weight: 650;
}

.device__connected-text small {
  display: block;
  margin-top: 1px;
  font-size: 9px;
  color: #8a8f98;
}

.device__switch {
  position: relative;
  width: 38px;
  height: 23px;
  border-radius: 999px;
  background: #34c759;
  flex-shrink: 0;
}

.device__switch::after {
  content: "";
  position: absolute;
  top: 2px;
  right: 2px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.device__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 22px 4px 8px;
  font-size: 10px;
  color: #8a8f98;
}

.device__refresh {
  font-size: 12px;
  color: #8a8f98;
}

.device__config {
  padding: 13px;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.device__config-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.device__check {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #1f5ff0;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 9px;
  flex-shrink: 0;
}

.device__config-name {
  font-size: 12px;
  font-weight: 650;
}

.device__config-meta {
  margin-top: 4px;
  padding-left: 24px;
  font-family: var(--font-mono);
  font-size: 8px;
  color: #9a9fa6;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.device__config-time {
  margin-top: 8px;
  padding-left: 24px;
  font-size: 8px;
  color: #b0b4ba;
}

.device__tabs {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 5px 4px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.04);
}

.device__tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 3px 0;
  font-size: 7px;
  color: #a3a7ad;
}

.device__tab svg {
  width: 16px;
  height: 16px;
}

.device__tab.is-on {
  color: #1f5ff0;
}

.device__tab.is-on svg {
  stroke: #1f5ff0;
}

.device-note {
  position: absolute;
  left: 50%;
  bottom: -2px;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--muted-2);
  white-space: nowrap;
}

.trace-float {
  position: absolute;
  left: -46px;
  bottom: 76px;
  width: 262px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 15px;
  box-shadow: var(--shadow-md);
  transform: rotate(1.5deg);
  z-index: 3;
}

.trace-float__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.09em;
  color: var(--muted);
  text-transform: uppercase;
}

.trace-float__dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  margin-right: 5px;
}

.trace-float__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 9px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--ink-soft);
}

.trace-float__row span + span {
  color: var(--muted-2);
}

.trace-float__row b {
  font-weight: 600;
  color: var(--blue-deep);
}

/* --------------------------------------------------------------------------
   Feature list
   -------------------------------------------------------------------------- */

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

.feature {
  display: grid;
  grid-template-columns: 58px minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 30px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.25s ease;
}

.feature:hover {
  background: rgba(221, 245, 107, 0.12);
}

.feature__num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--blue);
  padding-top: 6px;
  letter-spacing: 0.06em;
}

.feature__title {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.feature__text {
  max-width: 560px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.85;
  padding-top: 2px;
}

.feature__text strong {
  color: var(--ink);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Dark trace section
   -------------------------------------------------------------------------- */

.dark-band {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
}

.dark-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 84% 8%, rgba(31, 95, 240, 0.28), transparent 34%),
    radial-gradient(circle at 10% 92%, rgba(221, 245, 107, 0.08), transparent 32%);
  pointer-events: none;
}

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

.dark-band .section-title {
  color: var(--paper);
}

.dark-band .section-intro {
  color: rgba(245, 241, 231, 0.64);
}

.trace-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 64px;
  align-items: start;
}

.trace-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4.6vw, 3.5rem);
  line-height: 1.14;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.trace-title em {
  font-style: normal;
  color: var(--lime);
}

.trace-lead {
  max-width: 480px;
  margin-top: 20px;
  color: rgba(245, 241, 231, 0.64);
  font-size: 16px;
  line-height: 1.9;
}

.trace-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 30px;
}

.trace-flow span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(245, 241, 231, 0.18);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  color: rgba(245, 241, 231, 0.8);
}

.trace-flow i {
  font-style: normal;
  color: rgba(245, 241, 231, 0.3);
  font-size: 12px;
}

.trace-points {
  margin-top: 38px;
  border-top: 1px solid rgba(245, 241, 231, 0.14);
}

.trace-point {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(245, 241, 231, 0.12);
}

.trace-point__num {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--lime);
  padding-top: 4px;
}

.trace-point h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--paper);
}

.trace-point p {
  margin-top: 4px;
  font-size: 13.5px;
  line-height: 1.75;
  color: rgba(245, 241, 231, 0.58);
}

.log-card {
  border: 1px solid rgba(245, 241, 231, 0.16);
  border-radius: var(--radius);
  background: #0a141b;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.log-card__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(245, 241, 231, 0.1);
}

.log-card__bar i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(245, 241, 231, 0.2);
}

.log-card__bar i:nth-child(1) { background: #ff6b5a; }
.log-card__bar i:nth-child(2) { background: #f5c451; }
.log-card__bar i:nth-child(3) { background: #52c98a; }

.log-card__bar span {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: rgba(245, 241, 231, 0.4);
}

.log-card__body {
  padding: 18px 18px 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 2.05;
  color: rgba(245, 241, 231, 0.6);
  overflow-x: auto;
}

.log-line {
  display: flex;
  gap: 12px;
  white-space: nowrap;
}

.log-line__time {
  color: rgba(245, 241, 231, 0.3);
}

.log-line__tag {
  width: 52px;
  flex-shrink: 0;
  color: var(--lime);
}

.log-line__tag--blue { color: #7ea5ff; }
.log-line__tag--muted { color: rgba(245, 241, 231, 0.35); }
.log-line__tag--coral { color: #ff9a85; }

.log-line__text {
  color: rgba(245, 241, 231, 0.78);
  white-space: normal;
}

.log-highlight {
  color: var(--lime);
}

.log-card__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 18px;
  border-top: 1px solid rgba(245, 241, 231, 0.1);
}

.log-card__foot span {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.05em;
  color: rgba(245, 241, 231, 0.5);
  border: 1px solid rgba(245, 241, 231, 0.14);
  border-radius: 999px;
  padding: 3px 9px;
}

/* --------------------------------------------------------------------------
   Steps
   -------------------------------------------------------------------------- */

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

.step {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 250px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.step:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.step__num {
  font-family: var(--font-serif);
  font-size: 54px;
  line-height: 1;
  color: var(--blue);
  letter-spacing: -0.04em;
}

.step h3 {
  margin-top: 22px;
  font-family: var(--font-serif);
  font-size: 23px;
  font-weight: 700;
  line-height: 1.35;
}

.step p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.step__link {
  margin-top: auto;
  padding-top: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-deep);
  border-bottom: 1px solid transparent;
  align-self: flex-start;
}

.step__link:hover {
  border-color: var(--blue-deep);
}

/* --------------------------------------------------------------------------
   Ranking teaser + airport cards
   -------------------------------------------------------------------------- */

.rank-teaser {
  position: relative;
  overflow: hidden;
  background: #e9f0ff;
  border-bottom: 1px solid var(--line);
}

.rank-teaser::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(16, 26, 34, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(16, 26, 34, 0.05) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.65), transparent 90%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.65), transparent 90%);
  pointer-events: none;
}

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

.rank-teaser__head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 40px;
  align-items: end;
  margin-bottom: 32px;
}

.rank-teaser__title {
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 4.6vw, 3.5rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.rank-teaser__title span {
  display: inline-block;
  padding: 0 6px;
  background: var(--lime);
}

.rank-teaser__copy {
  max-width: 450px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.85;
  padding-bottom: 4px;
}

.rank-teaser__copy a {
  color: var(--blue-deep);
  font-weight: 600;
  border-bottom: 1px solid rgba(13, 43, 122, 0.3);
}

.rank-teaser__copy a:hover {
  border-color: var(--blue-deep);
}

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

.airport-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.airport-card:hover {
  transform: translateY(-3px);
  border-color: rgba(31, 95, 240, 0.4);
  box-shadow: var(--shadow-sm);
}

.airport-card__top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.airport-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 13px;
  background: var(--paper-2);
  color: var(--blue-deep);
  font-family: var(--font-serif);
  font-size: 23px;
  font-weight: 700;
}

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

.airport-id h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.airport-id p {
  margin-top: 3px;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.airport-score {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 26px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ink);
  white-space: nowrap;
}

.airport-score small {
  font-size: 10px;
  color: var(--muted-2);
  letter-spacing: 0;
}

.airport-review {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.78;
}

.airport-facts {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
}

.airport-facts dt {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--muted-2);
  text-transform: uppercase;
}

.airport-facts dd {
  margin-top: 2px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.airport-risk {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--green);
  white-space: nowrap;
}

.airport-risk::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.airport-risk--watch {
  color: #9a6a12;
}

.airport-risk--high {
  color: var(--coral);
}

/* The one shared link on every airport card. No icon, no arrow, no href yet. */
.airport-go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.2s ease;
}

.airport-go:hover {
  background: var(--blue);
  transform: translateY(-1px);
}

.airport-go:active {
  transform: translateY(0);
}

.rank-teaser__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid rgba(16, 26, 34, 0.14);
}

.rank-teaser__note {
  font-size: 11.5px;
  color: var(--muted);
}

.rank-teaser__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.rank-teaser__link:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* --------------------------------------------------------------------------
   Articles
   -------------------------------------------------------------------------- */

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

.article-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.article-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.article-card__thumb {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  min-height: 130px;
  padding: 18px 20px;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
}

.article-card:nth-child(2) .article-card__thumb { background: #e9f0ff; }
.article-card:nth-child(3) .article-card__thumb { background: var(--lime-soft); }

.article-card__glyph {
  font-family: var(--font-serif);
  font-size: 64px;
  line-height: 0.85;
  color: rgba(16, 26, 34, 0.2);
  letter-spacing: -0.05em;
}

.article-card__index {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.article-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px;
}

.article-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--muted-2);
  text-transform: uppercase;
}

.article-card h3 {
  margin-top: 10px;
  text-wrap: balance;
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.42;
  letter-spacing: -0.01em;
}

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

.article-card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.75;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card__more {
  margin-top: auto;
  padding-top: 16px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--blue-deep);
}

.articles-foot {
  display: flex;
  justify-content: flex-end;
  margin-top: 24px;
}

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

.faq {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: 64px;
  align-items: start;
}

.faq__intro p {
  max-width: 360px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.85;
}

.faq__intro .text-link {
  margin-top: 20px;
}

.faq__list {
  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: 18px;
  min-height: 70px;
  padding: 16px 0;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  list-style: none;
}

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

.faq__item summary::after {
  content: "+";
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 400;
  color: var(--muted);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.faq__item[open] summary::after {
  content: "−";
  background: var(--lime);
  color: var(--ink);
  border-color: var(--lime);
}

.faq__answer {
  padding: 0 40px 22px 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.9;
}

.faq__answer a {
  color: var(--blue-deep);
  border-bottom: 1px solid rgba(13, 43, 122, 0.3);
}

/* --------------------------------------------------------------------------
   Final CTA
   -------------------------------------------------------------------------- */

.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--blue);
  color: #fff;
}

.cta-band::before {
  content: "";
  position: absolute;
  right: -80px;
  top: -110px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.cta-band::after {
  content: "";
  position: absolute;
  right: 30px;
  top: 20px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: var(--lime);
  opacity: 0.18;
  filter: blur(2px);
}

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

.cta-band__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: 40px;
  align-items: center;
  padding: 62px 0;
}

.cta-band h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  text-wrap: balance;
  word-break: keep-all;
}

.cta-band p {
  max-width: 520px;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14.5px;
  line-height: 1.8;
}

.cta-band__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  justify-self: end;
}

.cta-band__meta {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.6);
}

.cta-band .btn--light {
  min-width: 210px;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-foot {
  background: var(--paper);
  padding: 40px 0 32px;
}

.site-foot__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.site-foot__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
}

.site-foot__brand img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--white);
  padding: 2px;
}

.site-foot__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  font-size: 13px;
}

.site-foot__nav a {
  color: var(--muted);
  padding: 4px 0;
  border-bottom: 1px solid transparent;
}

.site-foot__nav a:hover {
  color: var(--ink);
  border-color: var(--line-strong);
}

.site-foot__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 18px;
  font-size: 11.5px;
  color: var(--muted-2);
}

.site-foot__bottom p {
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Inner page basics
   -------------------------------------------------------------------------- */

.page-hero {
  position: relative;
  padding: 64px 0 54px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(16, 26, 34, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(16, 26, 34, 0.04) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: linear-gradient(to right, rgba(0, 0, 0, 0.85), transparent 80%);
  -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 0.85), transparent 80%);
  pointer-events: none;
}

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

.page-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.75fr);
  gap: 56px;
  align-items: end;
}

.page-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 5.6vw, 4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.page-hero__lead {
  max-width: 720px;
  text-wrap: balance;
  margin-top: 18px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.9;
}

.page-hero__lead strong {
  color: var(--ink);
  font-weight: 600;
}

.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--muted-2);
}

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

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

.page-side {
  padding-bottom: 4px;
}

.page-side p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}

.page-side .btn {
  margin-top: 18px;
}

/* Download panel */

.download-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow-md);
  padding: 26px;
}

.download-panel__top {
  display: flex;
  align-items: center;
  gap: 16px;
}

.download-panel__icon {
  width: 66px;
  height: 66px;
  border-radius: 17px;
  border: 1px solid var(--line);
  background: var(--white);
  padding: 5px;
  flex-shrink: 0;
}

.download-panel__name {
  font-family: var(--font-serif);
  font-size: 25px;
  font-weight: 700;
  line-height: 1.2;
}

.download-panel__version {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.download-panel .btn {
  width: 100%;
  margin-top: 20px;
}

.download-panel__note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.7;
  text-align: center;
}

.download-panel__facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}

.download-panel__facts dt {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--muted-2);
  letter-spacing: 0.07em;
}

.download-panel__facts dd {
  margin-top: 2px;
  font-size: 12.5px;
  font-weight: 600;
}

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

.install-step {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.install-step__num {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--lime);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
}

.install-step h3 {
  margin-top: 18px;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
}

.install-step p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.info-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.info-strip__item {
  background: var(--card);
  padding: 22px;
}

.info-strip__label {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--muted-2);
  letter-spacing: 0.08em;
}

.info-strip__value {
  margin-top: 6px;
  font-size: 15px;
  font-weight: 600;
}

.info-strip__note {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.7;
}

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

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

.version-table th,
.version-table td {
  padding: 15px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}

.version-table th {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--muted-2);
  text-transform: uppercase;
  background: rgba(236, 230, 216, 0.4);
}

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

.version-table td:first-child {
  font-family: var(--font-mono);
  font-weight: 600;
  white-space: nowrap;
}

.table-hint {
  display: none;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted-2);
  letter-spacing: 0.04em;
}

.version-table td:nth-child(2) {
  white-space: nowrap;
  color: var(--muted);
}

.callout {
  display: flex;
  gap: 16px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgba(231, 238, 252, 0.55);
}

.callout__icon {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
}

.callout h3 {
  font-size: 15px;
  font-weight: 700;
}

.callout p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.8;
}

.callout a {
  color: var(--blue-deep);
  border-bottom: 1px solid rgba(13, 43, 122, 0.3);
}

/* GitHub official entry on the download page */

.gh-entry {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.gh-entry img {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  opacity: 0.82;
}

.gh-entry h3 {
  font-size: 14px;
  font-weight: 700;
}

.gh-entry p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.gh-entry a {
  color: var(--blue-deep);
  font-weight: 600;
  white-space: nowrap;
  border-bottom: 1px solid rgba(13, 43, 122, 0.3);
  margin-left: auto;
  font-size: 12.5px;
}

.gh-entry a:hover {
  border-color: var(--blue-deep);
}

/* --------------------------------------------------------------------------
   Ranking page
   -------------------------------------------------------------------------- */

.rank-hero {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
}

.rank-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 4%, rgba(31, 95, 240, 0.4), transparent 32%),
    radial-gradient(circle at 6% 100%, rgba(221, 245, 107, 0.1), transparent 34%);
  pointer-events: none;
}

.rank-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(245, 241, 231, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(245, 241, 231, 0.05) 1px, transparent 1px);
  background-size: 66px 66px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 90%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 90%);
  pointer-events: none;
}

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

.rank-hero__inner {
  padding: 66px 0 54px;
}

.rank-hero h1 {
  max-width: 850px;
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 6vw, 4.3rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

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

.rank-hero__lead {
  max-width: 700px;
  margin-top: 18px;
  color: rgba(245, 241, 231, 0.66);
  font-size: 16px;
  line-height: 1.9;
}

.rank-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 28px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.07em;
  color: rgba(245, 241, 231, 0.5);
}

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

.rank-hero__meta span::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--lime);
}

.rank-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 40px;
  border-top: 1px solid rgba(245, 241, 231, 0.16);
}

.rank-stat {
  padding: 18px 18px 0 0;
}

.rank-stat strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 46px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--paper);
  white-space: nowrap;
}

.rank-stat strong small {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: rgba(245, 241, 231, 0.45);
  letter-spacing: 0;
  margin-left: 4px;
}

.rank-stat span {
  display: block;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.07em;
  color: rgba(245, 241, 231, 0.44);
}

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

.pick-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pick-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.pick-card__rank {
  position: absolute;
  top: 16px;
  right: 22px;
  font-family: var(--font-serif);
  font-size: 64px;
  font-weight: 700;
  line-height: 1;
  color: rgba(31, 95, 240, 0.12);
  letter-spacing: -0.04em;
  pointer-events: none;
}

.pick-card__tag {
  display: inline-flex;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--lime);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.pick-card h3 {
  margin-top: 16px;
  text-wrap: balance;
  font-family: var(--font-serif);
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.pick-card__type {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.pick-card__score {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}

.pick-card__score b {
  font-family: var(--font-mono);
  font-size: 38px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.05em;
}

.pick-card__score span {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted-2);
}

.pick-card__score em {
  font-style: normal;
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  color: var(--blue-deep);
  white-space: nowrap;
}

.pick-card__text {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.8;
}

.pick-card__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--muted-2);
  letter-spacing: 0.03em;
}

.pick-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
}

.pick-card__foot .airport-risk {
  font-size: 9px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.chip {
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.chip:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.chip.is-active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.rank-search {
  position: relative;
  min-width: 210px;
}

.rank-search input {
  width: 100%;
  height: 38px;
  padding: 0 14px 0 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  font-size: 12px;
  color: var(--ink);
  outline: none;
}

.rank-search input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(31, 95, 240, 0.1);
}

.rank-search::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 50%;
  width: 11px;
  height: 11px;
  border: 1.5px solid var(--muted);
  border-radius: 50%;
  transform: translateY(-60%);
}

.rank-search::after {
  content: "";
  position: absolute;
  left: 23px;
  top: 50%;
  width: 5px;
  height: 1.5px;
  background: var(--muted);
  transform: rotate(45deg) translateY(2px);
}

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

.airport-list .airport-card {
  padding: 22px;
}

.airport-list .airport-card[hidden] {
  display: none;
}

.rank-empty {
  display: none;
  padding: 50px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.rank-empty.is-visible {
  display: block;
}

.rank-count {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted-2);
  letter-spacing: 0.05em;
}

/* Methodology */

.method-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: start;
}

.method-copy p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}

.method-copy p + p {
  margin-top: 14px;
}

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

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

.weight__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.weight__name {
  font-size: 14px;
  font-weight: 600;
}

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

.weight__bar {
  height: 5px;
  margin-top: 9px;
  border-radius: 999px;
  background: var(--paper-3);
  overflow: hidden;
}

.weight__bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
}

.weight:nth-child(2) .weight__bar span { background: #3c7af5; }
.weight:nth-child(3) .weight__bar span { background: #6d9bf8; }
.weight:nth-child(4) .weight__bar span { background: #9cbcfb; }
.weight:nth-child(5) .weight__bar span { background: var(--lime); }

.method-note {
  margin-top: 20px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(236, 230, 216, 0.45);
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
}

/* Risk + personas */

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

.risk-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.risk-item__code {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--paper-2);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--coral);
}

.risk-item h3 {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}

.risk-item p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

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

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

.persona__label {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--blue);
  letter-spacing: 0.08em;
}

.persona h3 {
  margin-top: 12px;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
}

.persona p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.persona ul {
  margin-top: 14px;
  border-top: 1px solid var(--line-soft);
}

.persona li {
  padding: 7px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 12.5px;
  color: var(--ink-soft);
}

.persona li:last-child {
  border-bottom: 0;
}

/* --------------------------------------------------------------------------
   Article pages
   -------------------------------------------------------------------------- */

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

.article-hero__inner {
  max-width: 920px;
  margin-inline: auto;
}

.article-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 3.3vw, 2.9rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.article-hero__lead {
  max-width: 760px;
  text-wrap: balance;
  margin-top: 18px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.85;
}

.article-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--muted-2);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 740px) 230px;
  gap: 80px;
  justify-content: center;
  padding: 54px 0 80px;
}

.article-body {
  min-width: 0;
}

.prose {
  font-size: 17px;
  line-height: 1.95;
  color: #253038;
}

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

.prose p {
  margin-bottom: 24px;
}

.prose h2 {
  margin: 56px 0 18px;
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.prose h3 {
  margin: 34px 0 12px;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
}

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

.prose a {
  color: var(--blue-deep);
  border-bottom: 1px solid rgba(13, 43, 122, 0.3);
}

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

.prose ul,
.prose ol {
  margin: 0 0 24px;
  padding-left: 1.4em;
}

.prose ul {
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

.prose li {
  margin-bottom: 8px;
  padding-left: 0.2em;
}

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

.prose blockquote {
  margin: 34px 0;
  padding: 6px 0 6px 24px;
  border-left: 3px solid var(--blue);
  font-family: var(--font-serif);
  font-size: 21px;
  line-height: 1.7;
  color: var(--ink-soft);
}

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

.prose code {
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--paper-2);
  font-family: var(--font-mono);
  font-size: 0.8em;
  color: var(--blue-deep);
}

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

.prose .article-note {
  margin: 34px 0;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--card);
  font-size: 14px;
  line-height: 1.85;
  color: var(--muted);
}

.prose .article-note strong {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
  color: var(--ink);
}

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

.article-end__label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.09em;
  color: var(--muted-2);
  text-transform: uppercase;
}

.article-end__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 12px;
}

.article-end__links a {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--blue-deep);
  border-bottom: 1px solid rgba(13, 43, 122, 0.26);
}

.article-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 32px;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
}

.article-cta p {
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.5;
  text-wrap: balance;
}

.article-cta .btn {
  flex-shrink: 0;
}

.toc {
  position: sticky;
  top: 104px;
  align-self: start;
  padding-left: 20px;
  border-left: 1px solid var(--line);
}

.toc__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--muted-2);
  text-transform: uppercase;
}

.toc a {
  display: block;
  margin-top: 10px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
}

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

/* Articles index */

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

.article-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 170px;
  gap: 26px;
  align-items: start;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s ease;
}

.article-row:hover {
  background: rgba(221, 245, 107, 0.1);
}

.article-row__num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--blue);
  padding-top: 7px;
}

.article-row h2 {
  font-family: var(--font-serif);
  font-size: 25px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.article-row h2 a:hover {
  color: var(--blue-deep);
}

.article-row p {
  max-width: 640px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.8;
}

.article-row__meta {
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.8;
  color: var(--muted-2);
  text-align: right;
}

/* About */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 64px;
  align-items: start;
}

.about-note {
  position: sticky;
  top: 104px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.about-note p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.85;
}

.about-note p + p {
  margin-top: 10px;
}

.about-note .mono {
  display: block;
  margin-bottom: 12px;
  color: var(--blue);
}

/* Sitemap */

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

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

.map-group h2 {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--muted-2);
  text-transform: uppercase;
}

.map-group ul {
  margin-top: 14px;
}

.map-group li {
  border-bottom: 1px solid var(--line-soft);
}

.map-group li:last-child {
  border-bottom: 0;
}

.map-group a {
  display: block;
  padding: 8px 0;
  font-size: 13.5px;
  color: var(--ink-soft);
}

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

.map-group small {
  display: block;
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--muted-2);
}

/* 404 */

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

.notfound__code {
  font-family: var(--font-serif);
  font-size: 76px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--blue);
}

.notfound h1 {
  margin-top: 18px;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.2;
}

.notfound p {
  max-width: 420px;
  margin: 12px auto 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.notfound .btn {
  margin-top: 26px;
}

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero__copy > * {
    animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .hero__copy > *:nth-child(2) { animation-delay: 0.06s; }
  .hero__copy > *:nth-child(3) { animation-delay: 0.12s; }
  .hero__copy > *:nth-child(4) { animation-delay: 0.18s; }
  .hero__copy > *:nth-child(5) { animation-delay: 0.24s; }

  .device {
    animation: rise 0.9s 0.16s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
}

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

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1120px) {
  .hero__grid {
    gap: 34px;
  }

  .hero__ring {
    width: 430px;
    height: 430px;
  }

  .trace-float {
    left: -24px;
  }

  .trace-grid {
    gap: 42px;
  }

  .article-layout {
    grid-template-columns: minmax(0, 700px) 210px;
    gap: 54px;
  }
}

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

  .head-cta {
    margin-left: auto;
  }

  .mobile-toggle {
    display: flex;
    margin-left: 0;
  }

  .site-head__inner {
    gap: 16px;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .hero__copy {
    max-width: 760px;
  }

  .hero__visual {
    min-height: 560px;
  }

  .hero__ring {
    width: 480px;
    height: 480px;
  }

  .trace-float {
    left: calc(50% - 310px);
    bottom: 36px;
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .section-intro {
    max-width: 620px;
    padding-bottom: 0;
  }

  .trace-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .rank-teaser__head {
    grid-template-columns: 1fr;
    gap: 16px;
  }

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

  .rank-grid .airport-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px 26px;
  }

  .rank-grid .airport-card__top,
  .rank-grid .airport-review {
    grid-column: 1 / -1;
  }

  .rank-grid .airport-facts {
    align-self: start;
  }

  .rank-grid .airport-foot {
    margin-top: 0;
    padding-top: 10px;
  }

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

  .articles-grid .article-card:last-child {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 0.65fr 1fr;
  }

  .articles-grid .article-card:last-child .article-card__thumb {
    min-height: 100%;
    border-bottom: 0;
    border-right: 1px solid var(--line-soft);
  }

  .faq {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .faq__intro p {
    max-width: 620px;
  }

  .cta-band__inner {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 54px 0;
  }

  .cta-band__actions {
    justify-self: start;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
  }

  .page-hero__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .page-hero h1 {
    max-width: 760px;
  }

  .page-side {
    max-width: 560px;
  }

  .download-panel {
    max-width: 560px;
  }

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

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

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

  .method-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

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

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

  .article-layout {
    grid-template-columns: 1fr;
    gap: 34px;
    max-width: 800px;
    margin-inline: auto;
  }

  .toc {
    position: static;
    order: 2;
    padding: 18px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .toc a {
    display: block;
    margin: 0;
    padding: 7px 0;
    border-bottom: 1px solid var(--line-soft);
  }

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

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

  .article-row__meta {
    grid-column: 2;
    text-align: left;
    margin-top: 4px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .about-note {
    position: static;
  }

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

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

  .topbar__inner {
    min-height: 34px;
    font-size: 9.5px;
  }

  .topbar__status {
    max-width: 52%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .site-head__inner {
    min-height: 66px;
  }

  .brand__mark {
    width: 34px;
    height: 34px;
  }

  .brand__name {
    font-size: 18px;
  }

  .brand__sub {
    font-size: 8px;
  }

  .head-cta {
    display: none;
  }

  .section {
    padding: 70px 0;
  }

  .hero {
    padding: 44px 0 46px;
  }

  .hero__title {
    line-height: 1;
  }

  .hero__name {
    font-size: clamp(3.1rem, 12vw, 4rem);
  }

  .hero__line {
    font-size: clamp(2rem, 7.2vw, 2.8rem);
    margin-top: 10px;
  }

  .hero__lead {
    font-size: 15.5px;
    line-height: 1.85;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .hero__actions .btn,
  .hero__link {
    width: 100%;
    justify-content: center;
  }

  .hero__link {
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    padding: 0 20px;
  }

  .hero__facts {
    gap: 14px 0;
  }

  .hero__fact {
    width: 50%;
    padding-right: 14px;
    margin-right: 0;
    border-right: 0;
  }

  .hero__fact:nth-child(odd) {
    border-right: 1px solid var(--line);
  }

  .hero__fact:nth-child(even) {
    padding-left: 16px;
  }

  .hero__visual {
    min-height: 520px;
  }

  .device {
    width: 274px;
    height: 558px;
  }

  .hero__ring {
    width: 390px;
    height: 390px;
  }

  .trace-float {
    display: none;
  }

  .feature {
    grid-template-columns: 40px 1fr;
    gap: 14px 16px;
    padding: 24px 0;
  }

  .feature__title {
    font-size: 22px;
  }

  .feature__text {
    grid-column: 2;
    padding-top: 0;
    font-size: 14.5px;
  }

  .trace-title {
    font-size: clamp(2rem, 9vw, 2.8rem);
  }

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

  .step {
    min-height: 0;
  }

  .step__num {
    font-size: 46px;
  }

  .step__link {
    margin-top: 16px;
  }

  .section-title {
    font-size: clamp(1.9rem, 7.8vw, 2.6rem);
  }

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

  .articles-grid .article-card:last-child {
    display: flex;
    grid-column: auto;
  }

  .articles-grid .article-card:last-child .article-card__thumb {
    min-height: 130px;
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .airport-list {
    grid-template-columns: 1fr;
  }

  .rank-grid .airport-card {
    display: flex;
  }

  .cta-band__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-band .btn {
    width: 100%;
  }

  .cta-band__meta {
    text-align: center;
  }

  .site-foot__top {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .site-foot__nav {
    gap: 4px 16px;
  }

  .page-hero {
    padding: 44px 0 38px;
  }

  .page-hero h1 {
    font-size: clamp(2.3rem, 9vw, 3rem);
  }

  .page-hero__lead {
    font-size: 15.5px;
  }

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

  .table-hint {
    display: block;
  }

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

  .rank-hero__inner {
    padding: 46px 0 40px;
  }

  .rank-hero h1 {
    font-size: clamp(2.5rem, 9.6vw, 3.1rem);
  }

  .rank-stats {
    grid-template-columns: 1fr 1fr;
    gap: 10px 20px;
  }

  .rank-stat strong {
    font-size: 38px;
  }

  .rank-stat {
    padding-top: 14px;
    border-top: 1px solid rgba(245, 241, 231, 0.12);
  }

  .filter-bar {
    align-items: stretch;
  }

  .rank-search {
    min-width: 100%;
  }

  .pick-card {
    padding: 22px;
  }

  .pick-card__rank {
    font-size: 56px;
  }

  .pick-card h3 {
    font-size: 27px;
  }

  .article-hero h1 {
    font-size: clamp(2.1rem, 8vw, 2.7rem);
  }

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

  .article-layout {
    padding: 36px 0 60px;
  }

  .prose {
    font-size: 16.5px;
    line-height: 1.92;
  }

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

  .prose h2 {
    margin-top: 42px;
  }

  .article-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .article-cta .btn {
    width: 100%;
  }

  .article-row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 22px 0;
  }

  .article-row__num {
    padding-top: 0;
  }

  .article-row__meta {
    grid-column: 1;
  }

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

  .gh-entry {
    flex-wrap: wrap;
  }

  .gh-entry a {
    margin-left: 46px;
  }

  .callout {
    flex-direction: column;
  }
}

@media (max-width: 460px) {
  .wrap,
  .wrap--narrow {
    width: min(100% - 30px, var(--wrap));
  }

  .topbar__status {
    display: none;
  }

  .topbar__inner {
    justify-content: flex-end;
  }

  .hero__name {
    font-size: clamp(2.9rem, 13.5vw, 3.4rem);
  }

  .hero__line {
    font-size: clamp(1.85rem, 8.4vw, 2.4rem);
  }

  .hero__visual {
    min-height: 480px;
  }

  .device {
    width: 246px;
    height: 502px;
    padding: 9px;
    border-radius: 42px;
  }

  .device__app {
    padding: 18px 14px 0;
  }

  .device__app-title {
    font-size: 19px;
  }

  .device__tabs {
    left: 9px;
    right: 9px;
    bottom: 8px;
  }

  .hero__ring {
    width: 310px;
    height: 310px;
  }

  .device-note {
    font-size: 8px;
  }

  .airport-card__top {
    gap: 10px;
  }

  .airport-score {
    font-size: 23px;
  }

  .airport-foot {
    flex-direction: column;
    align-items: stretch;
  }

  .airport-go {
    width: 100%;
  }

  .pick-card__foot {
    flex-direction: column;
    align-items: stretch;
  }

  .pick-card__foot .airport-go {
    width: 100%;
  }

  .article-card__glyph {
    font-size: 54px;
  }

  .notfound__code {
    font-size: 64px;
  }
}


@media (max-width: 360px) {
  .info-strip {
    grid-template-columns: 1fr;
  }

  .article-hero h1 {
    font-size: 1.8rem;
  }
}
