/* FlowZ site — editorial product design system */
:root {
  --ink: #07110f;
  --ink-2: #0b1916;
  --ink-3: #13231f;
  --paper: #f3f2ea;
  --paper-2: #ebeade;
  --paper-3: #fbfaf4;
  --white: #ffffff;
  --text: #18231f;
  --muted: #61706a;
  --muted-dark: #9aada5;
  --line: rgba(19, 35, 31, 0.13);
  --line-strong: rgba(19, 35, 31, 0.24);
  --line-dark: rgba(230, 255, 244, 0.14);
  --mint: #aef6d3;
  --mint-soft: #dcfbea;
  --teal: #19b993;
  --teal-bright: #3ddbb2;
  --blue: #42b8ec;
  --lime: #d7ff68;
  --orange: #ff7c58;
  --cream: #fff8e7;
  --radius-s: 14px;
  --radius-m: 22px;
  --radius-l: 32px;
  --shadow: 0 24px 70px rgba(7, 17, 15, 0.12);
  --shadow-s: 0 12px 34px rgba(7, 17, 15, 0.08);
  --font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --font-display: "Avenir Next", "SF Pro Display", -apple-system, BlinkMacSystemFont,
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-serif: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC",
    Georgia, serif;
}

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

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

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

body.menu-open {
  overflow: hidden;
}

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

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

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

button {
  color: inherit;
}

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

:focus-visible {
  outline: 2px solid var(--teal-bright);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 10px;
  color: var(--ink);
  background: var(--lime);
  font-weight: 700;
  transform: translateY(-180%);
  transition: transform 0.2s ease;
}

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

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

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

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

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

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  color: var(--paper);
  background: rgba(7, 17, 15, 0.7);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: background 0.25s ease, border-color 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(7, 17, 15, 0.93);
  border-bottom-color: var(--line-dark);
}

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

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

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.26);
}

.brand-word {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.brand-tag {
  padding-left: 11px;
  border-left: 1px solid rgba(243, 242, 234, 0.22);
  color: var(--muted-dark);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
  font-size: 14px;
}

.site-nav > a {
  color: rgba(243, 242, 234, 0.72);
  transition: color 0.2s ease;
}

.site-nav > a:hover {
  color: var(--paper);
}

.site-nav .nav-rank {
  padding: 8px 14px;
  border: 1px solid rgba(215, 255, 104, 0.42);
  border-radius: 999px;
  color: var(--lime);
  background: rgba(215, 255, 104, 0.06);
  font-weight: 600;
}

.site-nav .nav-rank:hover {
  color: var(--ink);
  background: var(--lime);
}

.header-cta {
  flex: 0 0 auto;
  padding: 10px 18px;
  border-radius: 999px;
  color: var(--ink);
  background: var(--mint);
  font-size: 14px;
  font-weight: 700;
  transition: background 0.2s ease, transform 0.2s ease;
}

.header-cta:hover {
  background: var(--lime);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(243, 242, 234, 0.24);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  display: block;
  width: 17px;
  height: 1.5px;
  margin: 4px auto;
  background: var(--paper);
  content: "";
  transition: transform 0.2s ease, opacity 0.2s ease;
}

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

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

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

.mobile-menu {
  display: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 49px;
  padding: 13px 23px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.005em;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease,
    transform 0.2s ease;
}

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

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

.btn-primary:hover {
  background: #e4ff8f;
}

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

.btn-light:hover {
  background: var(--lime);
}

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

.btn-dark:hover {
  background: var(--ink-3);
}

.btn-ghost {
  color: var(--paper);
  border-color: rgba(243, 242, 234, 0.3);
  background: rgba(255, 255, 255, 0.02);
}

.btn-ghost:hover {
  border-color: rgba(243, 242, 234, 0.6);
  background: rgba(255, 255, 255, 0.06);
}

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

.btn-ghost-dark:hover {
  border-color: var(--ink);
  background: rgba(19, 35, 31, 0.04);
}

.text-link {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  border-bottom: 1px solid currentColor;
  line-height: 1.5;
}

.text-link-light {
  color: var(--mint);
}

/* Home hero */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--paper);
  background:
    radial-gradient(circle at 79% 31%, rgba(25, 185, 147, 0.17), transparent 29%),
    radial-gradient(circle at 62% 115%, rgba(66, 184, 236, 0.14), transparent 38%),
    var(--ink);
  padding: 156px 0 96px;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(214, 255, 235, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(214, 255, 235, 0.032) 1px, transparent 1px);
  background-size: 86px 86px;
  content: "";
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent 85%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent 85%);
}

.hero::after {
  position: absolute;
  top: -20%;
  right: -14%;
  z-index: -1;
  width: 680px;
  height: 680px;
  border: 1px solid rgba(174, 246, 211, 0.11);
  border-radius: 50%;
  box-shadow:
    0 0 0 110px rgba(174, 246, 211, 0.025),
    0 0 0 230px rgba(174, 246, 211, 0.018);
  content: "";
}

.hero-lines {
  position: absolute;
  top: -70px;
  right: -180px;
  z-index: -1;
  width: 1110px;
  max-width: none;
  height: auto;
  color: var(--teal-bright);
  opacity: 0.33;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.87fr) minmax(0, 1.13fr);
  align-items: center;
  gap: 62px;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5.15vw, 4.65rem);
  font-weight: 760;
  line-height: 1.04;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.hero h1 .accent {
  color: var(--mint);
}

.hero-lede {
  max-width: 520px;
  margin: 27px 0 0;
  color: rgba(243, 242, 234, 0.72);
  font-size: 18px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 34px;
}

.hero-platforms {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-top: 24px;
  color: var(--muted-dark);
  font-size: 12px;
}

.hero-platforms span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-platforms span + span::before {
  width: 3px;
  height: 3px;
  margin-right: 3px;
  border-radius: 50%;
  background: rgba(174, 246, 211, 0.45);
  content: "";
}

.hero-rank {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 510px;
  margin-top: 34px;
  padding-top: 19px;
  border-top: 1px solid var(--line-dark);
}

.hero-rank p {
  margin: 0;
  color: rgba(243, 242, 234, 0.54);
  font-size: 13px;
}

.hero-rank a {
  display: inline-flex;
  align-items: center;
  color: var(--lime);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

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

.hero-visual {
  position: relative;
  z-index: 1;
  perspective: 1600px;
}

.device {
  position: relative;
  padding: 10px;
  border: 1px solid rgba(221, 255, 239, 0.18);
  border-radius: 23px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow:
    0 50px 110px rgba(0, 0, 0, 0.43),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: rotateY(-7deg) rotateX(2.2deg) translateX(9px);
  transform-origin: 50% 50%;
}

.device img {
  width: 100%;
  border-radius: 14px;
}

.device::before {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: 23px;
  background: linear-gradient(130deg, rgba(255, 255, 255, 0.11), transparent 28%);
  content: "";
  pointer-events: none;
}

.float-note {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border: 1px solid rgba(221, 255, 239, 0.21);
  border-radius: 999px;
  color: rgba(243, 242, 234, 0.9);
  background: rgba(7, 17, 15, 0.84);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.26);
  font-size: 12px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.float-note .pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal-bright);
  box-shadow: 0 0 0 5px rgba(61, 219, 178, 0.12);
}

.float-note-top {
  top: -25px;
  right: 3%;
}

.float-note-bottom {
  bottom: -23px;
  left: -4%;
}

.hero-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-top: 84px;
  padding-top: 23px;
  border-top: 1px solid var(--line-dark);
  color: rgba(243, 242, 234, 0.44);
  font-size: 12px;
}

.hero-foot strong {
  color: rgba(243, 242, 234, 0.8);
  font-weight: 500;
}

.hero-foot-list {
  display: flex;
  flex-wrap: wrap;
  gap: 23px;
}

/* Shared sections */
.section {
  padding: 112px 0;
}

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

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

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

.section-head h2 {
  max-width: 710px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3.15rem);
  font-weight: 740;
  line-height: 1.15;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.section-head p {
  max-width: 390px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.section-dark .section-head p {
  color: var(--muted-dark);
}

.section-head-stack {
  display: block;
}

.section-head-stack h2 {
  max-width: 820px;
}

.section-head-stack p {
  max-width: 600px;
  margin-top: 18px;
}

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

.feature-card {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--paper-3);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.82) inset;
}

.feature-card h3 {
  max-width: 340px;
  margin: 0;
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.025em;
}

.feature-card p {
  max-width: 390px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.78;
}

.feature-card-wide {
  grid-column: span 7;
  min-height: 410px;
  color: var(--paper);
  background:
    radial-gradient(circle at 95% 5%, rgba(61, 219, 178, 0.2), transparent 46%),
    var(--ink-2);
  border-color: rgba(216, 255, 237, 0.1);
}

.feature-card-wide h3 {
  max-width: 390px;
  font-size: 30px;
}

.feature-card-wide p {
  color: var(--muted-dark);
}

.feature-card-tall {
  grid-column: span 5;
  min-height: 410px;
}

.feature-card-small {
  grid-column: span 4;
  min-height: 280px;
}

.card-index {
  position: absolute;
  top: 27px;
  right: 29px;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.feature-card-wide .card-index {
  color: rgba(243, 242, 234, 0.36);
}

.rule-viz {
  display: grid;
  gap: 8px;
  margin-top: 47px;
}

.rule-row {
  display: grid;
  grid-template-columns: 1fr auto 122px;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border: 1px solid rgba(216, 255, 237, 0.11);
  border-radius: 10px;
  color: rgba(243, 242, 234, 0.72);
  background: rgba(255, 255, 255, 0.035);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 11px;
}

.rule-row span:nth-child(2) {
  color: rgba(174, 246, 211, 0.44);
}

.rule-row b {
  padding: 4px 8px;
  border-radius: 5px;
  color: var(--mint);
  background: rgba(174, 246, 211, 0.1);
  font-weight: 500;
  text-align: center;
}

.rule-row b.direct {
  color: var(--lime);
  background: rgba(215, 255, 104, 0.09);
}

.rule-row b.block {
  color: #ffab96;
  background: rgba(255, 124, 88, 0.1);
}

.power-dial {
  position: absolute;
  right: 30px;
  bottom: 29px;
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  border: 1px solid rgba(19, 35, 31, 0.16);
  border-radius: 50%;
}

.power-dial::before {
  width: 72px;
  height: 72px;
  border: 1px dashed rgba(19, 35, 31, 0.23);
  border-radius: 50%;
  content: "";
}

.power-dial::after {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 7px rgba(25, 185, 147, 0.12);
  content: "";
}

.feature-tag {
  display: inline-flex;
  margin-top: 22px;
  padding: 5px 9px;
  border-radius: 6px;
  color: var(--ink);
  background: var(--mint);
  font-size: 11px;
  font-weight: 700;
}

.mini-stack {
  display: grid;
  gap: 7px;
  margin-top: 35px;
}

.mini-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: var(--paper);
  font-size: 11px;
}

.mini-bar i {
  display: block;
  width: 35%;
  height: 4px;
  border-radius: 4px;
  background: var(--teal);
}

.mini-bar:nth-child(2) i {
  width: 58%;
  background: var(--blue);
}

.mini-bar:nth-child(3) i {
  width: 24%;
  background: var(--orange);
}

.big-letter {
  position: absolute;
  right: 22px;
  bottom: -16px;
  color: rgba(19, 35, 31, 0.055);
  font-family: var(--font-display);
  font-size: 4.6rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.08em;
  pointer-events: none;
}

.feature-card-wide .big-letter {
  color: rgba(221, 255, 239, 0.06);
}

/* Split feature */
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr);
  align-items: center;
  gap: 76px;
}

.split-copy h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3.15rem);
  font-weight: 740;
  line-height: 1.15;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.split-copy > p {
  margin: 20px 0 0;
  color: var(--muted-dark);
  font-size: 16px;
  line-height: 1.85;
}

.plain-list {
  display: grid;
  gap: 0;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.plain-list li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 13px;
  padding: 15px 0;
  border-top: 1px solid var(--line-dark);
  color: rgba(243, 242, 234, 0.78);
  font-size: 14px;
  line-height: 1.7;
}

.plain-list li::before {
  width: 5px;
  height: 5px;
  margin-top: 9px;
  border-radius: 50%;
  background: var(--mint);
  content: "";
}

.split-visual {
  position: relative;
  padding: 11px;
  border: 1px solid rgba(215, 255, 232, 0.14);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 36px 80px rgba(0, 0, 0, 0.28);
}

.split-visual img {
  width: 100%;
  border-radius: 13px;
}

.split-visual .caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 5px 2px;
  color: var(--muted-dark);
  font-size: 11px;
}

.split-visual .caption span:last-child {
  color: var(--mint);
}

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

.step {
  position: relative;
  min-height: 270px;
  padding: 29px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--paper-3);
}

.step-no {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
}

.step h3 {
  margin: 44px 0 0;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

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

.step a {
  display: inline-flex;
  margin-top: 17px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  border-bottom: 1px solid var(--line-strong);
}

/* Callout download */
.download-band {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 42px;
  padding: 48px;
  border-radius: var(--radius-l);
  color: var(--paper);
  background:
    radial-gradient(circle at 90% 10%, rgba(61, 219, 178, 0.22), transparent 35%),
    var(--ink-2);
}

.download-band h2 {
  max-width: 660px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.3vw, 2.9rem);
  font-weight: 740;
  line-height: 1.18;
  letter-spacing: -0.04em;
}

.download-band p {
  max-width: 610px;
  margin: 16px 0 0;
  color: var(--muted-dark);
  font-size: 15px;
  line-height: 1.8;
}

.download-band .button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 0;
}

.download-band::after {
  position: absolute;
  right: 8%;
  bottom: -110px;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(174, 246, 211, 0.13);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

/* Ranking band */
.rank-band {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 54px;
  align-items: center;
  padding: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background:
    radial-gradient(circle at 18% 10%, rgba(215, 255, 104, 0.38), transparent 38%),
    var(--paper-3);
}

.rank-band h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3.8vw, 3.4rem);
  font-weight: 760;
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.rank-band p {
  max-width: 480px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.rank-band .button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 17px;
  margin-top: 26px;
}

.rank-band .text-link {
  color: var(--muted);
  border-color: var(--line-strong);
  font-weight: 600;
}

.mini-board {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
}

.mini-board-row {
  display: grid;
  grid-template-columns: 33px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 13px 17px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.mini-board-row:first-child {
  border-top: 0;
  color: var(--ink);
  background: var(--lime);
  font-weight: 700;
}

.mini-board-row .num {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.06em;
  opacity: 0.62;
}

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

.mini-board-row:first-child .price {
  color: rgba(7, 17, 15, 0.64);
}

.mini-board-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 17px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
}

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

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

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

.article-cover {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.72 / 1;
  padding: 24px;
  border-bottom: 1px solid var(--line);
  background: var(--ink);
}

.article-cover::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 38px 38px;
  content: "";
}

.article-cover::after {
  position: absolute;
  top: -70px;
  right: -48px;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(174, 246, 211, 0.11);
  border-radius: 50%;
  box-shadow: 0 0 0 28px rgba(174, 246, 211, 0.025);
  content: "";
}

.cover-lines {
  position: absolute;
  inset: auto -8% 2% 16%;
  width: 90%;
  height: auto;
  color: var(--teal-bright);
  opacity: 0.58;
}

.cover-mark {
  position: absolute;
  right: 18px;
  bottom: -10px;
  color: rgba(174, 246, 211, 0.13);
  font-family: var(--font-display);
  font-size: 4.5rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.08em;
}

.article-cover-label {
  position: relative;
  z-index: 1;
  display: inline-flex;
  padding: 6px 9px;
  border: 1px solid rgba(174, 246, 211, 0.24);
  border-radius: 6px;
  color: var(--mint);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
}


.article-card:nth-child(2) .article-cover {
  background: #11202c;
}

.article-card:nth-child(3) .article-cover {
  background: #221b13;
}

.article-card:nth-child(3) .article-cover-label {
  color: var(--lime);
  border-color: rgba(215, 255, 104, 0.28);
}

.article-card:nth-child(3) .cover-mark {
  color: rgba(215, 255, 104, 0.12);
}

.article-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px;
}

.article-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.025em;
}

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

.article-card p {
  margin: 11px 0 24px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.75;
}

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

.article-meta .read {
  color: var(--ink);
  font-weight: 700;
}

/* FAQ */
.faq {
  max-width: 850px;
  margin-inline: auto;
  border-top: 1px solid var(--line-strong);
}

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

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 650;
  line-height: 1.45;
  letter-spacing: -0.01em;
  list-style: none;
  cursor: pointer;
}

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

.faq summary::after {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  content: "+";
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 17px;
  font-weight: 400;
  line-height: 22px;
  text-align: center;
}

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

.faq .faq-body {
  max-width: 730px;
  padding: 0 0 27px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.85;
}

.faq .faq-body p {
  margin: 0;
}

.faq .faq-body a {
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
}

/* Footer */
.site-footer {
  padding: 44px 0 52px;
  color: var(--paper);
  background: var(--ink);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

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

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.footer-brand img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

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

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

.footer-note {
  color: rgba(154, 173, 165, 0.6);
  font-size: 11px;
}

/* Subpage heroes */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 154px 0 78px;
  color: var(--paper);
  background:
    radial-gradient(circle at 88% 10%, rgba(25, 185, 147, 0.15), transparent 32%),
    var(--ink);
}

.page-hero::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(214, 255, 235, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(214, 255, 235, 0.03) 1px, transparent 1px);
  background-size: 86px 86px;
  content: "";
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.65), transparent);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.65), transparent);
  pointer-events: none;
}

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

.page-hero h1 {
  max-width: 860px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.1vw, 4.55rem);
  font-weight: 760;
  line-height: 1.06;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.page-hero p {
  max-width: 650px;
  margin: 22px 0 0;
  color: var(--muted-dark);
  font-size: 17px;
  line-height: 1.85;
}

.page-hero .page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 30px;
}

.page-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  margin-top: 28px;
  color: rgba(154, 173, 165, 0.8);
  font-size: 12px;
}

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

.page-meta span + span::before {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(174, 246, 211, 0.4);
  content: "";
}

.page-hero .hero-lines {
  right: -260px;
  top: -30%;
  opacity: 0.23;
}

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

.platform-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 380px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--paper-3);
}

.platform-index {
  position: absolute;
  top: 27px;
  right: 28px;
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
}

.platform-card h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 720;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.platform-card .platform-sub {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.download-list {
  display: grid;
  gap: 8px;
  margin: 27px 0 0;
  padding: 0;
  list-style: none;
}

.download-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  font-size: 12.5px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.download-list a:hover {
  border-color: var(--line-strong);
  background: var(--white);
}

.download-list a span {
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
}

.platform-card .platform-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 25px;
  color: var(--muted);
  font-size: 11px;
}

.platform-card .platform-foot a {
  color: var(--ink);
  font-weight: 700;
  border-bottom: 1px solid var(--line-strong);
}

.platform-note {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 12px;
  margin-top: 21px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.32);
  font-size: 12.5px;
  line-height: 1.7;
}

.platform-note code,
.install-card code,
.article-body code {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.platform-note::before {
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--teal);
  content: "";
}

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

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

.requirements th {
  width: 24%;
  color: var(--ink);
  font-weight: 700;
}

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

.requirements tr:first-child th,
.requirements tr:first-child td {
  padding-top: 22px;
}

.section-dark .requirements {
  border-top-color: var(--line-dark);
}

.section-dark .requirements th {
  color: var(--paper);
}

.section-dark .requirements td {
  color: var(--muted-dark);
}

.section-dark .requirements th,
.section-dark .requirements td {
  border-bottom-color: var(--line-dark);
}

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

.install-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--paper-3);
}

.install-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: -0.02em;
}

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

.install-card code {
  display: inline-block;
  margin-top: 13px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  background: var(--paper);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
}

/* Ranking page */
.rank-page {
  background: #f3f1e7;
}

.rank-page .site-header {
  background: rgba(7, 17, 15, 0.97);
  border-bottom-color: rgba(230, 255, 244, 0.1);
}

.rank-page .site-header.is-scrolled {
  background: var(--ink);
}

.rank-hero {
  position: relative;
  overflow: hidden;
  padding: 154px 0 70px;
  color: var(--ink);
  background:
    radial-gradient(circle at 83% 16%, rgba(215, 255, 104, 0.55), transparent 27%),
    radial-gradient(circle at 8% 95%, rgba(25, 185, 147, 0.13), transparent 38%),
    #f0eee3;
}

.rank-hero::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(19, 35, 31, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(19, 35, 31, 0.055) 1px, transparent 1px);
  background-size: 82px 82px;
  content: "";
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 88%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 88%);
  pointer-events: none;
}

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

.rank-hero h1 {
  max-width: 980px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5.4vw, 4.7rem);
  font-weight: 780;
  line-height: 1;
  letter-spacing: -0.06em;
}

.rank-hero .rank-deck {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 50px;
  margin-top: 27px;
}

.rank-hero p {
  max-width: 690px;
  margin: 0;
  color: #52615b;
  font-size: 17px;
  line-height: 1.85;
}

.rank-stamp {
  display: grid;
  place-items: center;
  width: 142px;
  height: 142px;
  border: 1px solid rgba(19, 35, 31, 0.32);
  border-radius: 50%;
  font-family: var(--font-display);
  text-align: center;
  transform: rotate(-9deg);
}

.rank-stamp strong {
  display: block;
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.rank-stamp span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.09em;
}

.rank-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 26px;
}

.rank-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border: 1px solid rgba(19, 35, 31, 0.16);
  border-radius: 999px;
  color: #52615b;
  background: rgba(255, 255, 255, 0.26);
  font-size: 11px;
}

.rank-pill:first-child {
  color: var(--ink);
  background: var(--lime);
  border-color: var(--lime);
  font-weight: 700;
}

.price-kind {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}


.rank-section {
  padding: 66px 0 100px;
}

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

.rank-intro h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.2vw, 2.8rem);
  font-weight: 740;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.rank-intro p {
  max-width: 470px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.featured-airport {
  position: relative;
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) 210px;
  gap: 32px;
  overflow: hidden;
  padding: 34px;
  border: 1px solid rgba(19, 35, 31, 0.16);
  border-radius: var(--radius-l);
  background:
    radial-gradient(circle at 9% 0%, rgba(215, 255, 104, 0.6), transparent 23%),
    var(--paper-3);
  box-shadow: var(--shadow-s);
}

.featured-airport::after {
  position: absolute;
  right: -72px;
  bottom: -96px;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(19, 35, 31, 0.1);
  border-radius: 50%;
  box-shadow: 0 0 0 40px rgba(19, 35, 31, 0.025);
  content: "";
  pointer-events: none;
}

.featured-rank {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 200px;
}

.featured-rank .rank-no {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 4.65rem;
  font-weight: 780;
  line-height: 0.9;
  letter-spacing: -0.07em;
}

.featured-rank .rank-caption {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.12em;
  writing-mode: vertical-rl;
}

.featured-main {
  position: relative;
  z-index: 1;
}

.airport-badge {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 5px;
  color: var(--ink);
  background: var(--lime);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.featured-main h3 {
  margin: 16px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.45rem);
  font-weight: 760;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.featured-main > p {
  max-width: 560px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.airport-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 21px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.airport-specs b {
  margin-right: 5px;
  color: var(--ink);
  font-weight: 700;
}

.featured-side {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  padding-left: 28px;
  border-left: 1px solid var(--line);
}

.featured-side .price-line {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 760;
  line-height: 1;
  letter-spacing: -0.05em;
}

.featured-side .price-line small {
  margin-top: 5px;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0;
}

.featured-side .price-note {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.airport-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 45px;
  padding: 12px 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--paper);
  background: var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.airport-cta:hover {
  color: var(--ink);
  background: var(--lime);
}

.featured-side .airport-cta {
  background: var(--ink);
}

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

.airport-card {
  display: flex;
  flex-direction: column;
  min-height: 330px;
  padding: 27px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--paper-3);
  transition: border-color 0.25s ease, box-shadow 0.25s ease,
    transform 0.25s ease;
}

.airport-card:hover {
  border-color: var(--line-strong);
  box-shadow: 0 16px 40px rgba(7, 17, 15, 0.07);
  transform: translateY(-3px);
}

.airport-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.airport-rank-num {
  flex: 0 0 auto;
  color: rgba(19, 35, 31, 0.32);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.airport-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 730;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.airport-card .desc {
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.airport-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 17px;
}

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

.airport-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 22px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.airport-facts div {
  min-width: 0;
}

.airport-facts dt {
  color: var(--muted);
  font-size: 10px;
}

.airport-facts dd {
  overflow: hidden;
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.airport-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 18px;
}

.airport-note {
  max-width: 210px;
  margin: 0;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.6;
}

.airport-note strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
}

.airport-card .airport-cta {
  flex: 0 0 120px;
  width: 120px;
  min-height: 42px;
  padding: 10px 14px;
  font-size: 13px;
}

.rank-footnote {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.rank-footnote::before {
  flex: 0 0 auto;
  width: 5px;
  height: 5px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--orange);
  content: "";
}

.rank-method {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 70px;
  padding: 80px 0;
  border-top: 1px solid var(--line);
}

.rank-method h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.1vw, 2.75rem);
  font-weight: 740;
  line-height: 1.16;
  letter-spacing: -0.04em;
}

.rank-method p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}

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

.method-item {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.32);
}

.method-item strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
}

.method-item span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

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

.budget-card {
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--paper-3);
}

.budget-card .budget-range {
  display: inline-flex;
  margin-top: 10px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--teal);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.budget-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

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

/* Articles index */
.article-index-hero {
  padding-bottom: 104px;
}

.article-index-list {
  display: grid;
  gap: 15px;
}

.article-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 170px;
  align-items: center;
  gap: 26px;
  padding: 27px 0;
  border-top: 1px solid var(--line);
}

.article-row:last-child {
  border-bottom: 1px solid var(--line);
}

.article-row .row-no {
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.08em;
}

.article-row h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 720;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

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

.article-row p {
  max-width: 650px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.article-row .row-meta {
  color: var(--muted);
  font-size: 11px;
  text-align: right;
}

.article-row .row-meta strong {
  display: block;
  margin-bottom: 5px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
}

/* Article page */
.article-hero {
  position: relative;
  overflow: hidden;
  padding: 150px 0 76px;
  color: var(--paper);
  background:
    radial-gradient(circle at 87% 22%, rgba(25, 185, 147, 0.19), transparent 30%),
    var(--ink);
}

.article-hero::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(214, 255, 235, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(214, 255, 235, 0.028) 1px, transparent 1px);
  background-size: 78px 78px;
  content: "";
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent);
}

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

.article-kicker {
  display: inline-flex;
  padding: 5px 9px;
  border: 1px solid rgba(174, 246, 211, 0.28);
  border-radius: 5px;
  color: var(--mint);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
}

.article-hero h1 {
  max-width: 930px;
  margin: 22px 0 0;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4.8vw, 4.25rem);
  font-weight: 750;
  line-height: 1.08;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.article-hero .article-deck {
  max-width: 720px;
  margin: 20px 0 0;
  color: rgba(243, 242, 234, 0.68);
  font-size: 17px;
  line-height: 1.8;
}

.article-hero .article-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  margin-top: 28px;
  color: var(--muted-dark);
  font-size: 11px;
}

.article-hero .article-info span + span::before {
  display: inline-block;
  width: 3px;
  height: 3px;
  margin: 0 12px 3px 0;
  border-radius: 50%;
  background: rgba(174, 246, 211, 0.4);
  content: "";
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 76px;
  align-items: start;
  padding: 74px 0 104px;
}

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

.article-body .lead {
  margin: 0 0 36px;
  color: #2a3732;
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 1.75;
}

.article-body h2 {
  margin: 56px 0 18px;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 720;
  line-height: 1.3;
  letter-spacing: -0.03em;
}

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

.article-body h3 {
  margin: 34px 0 12px;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.018em;
}

.article-body p {
  margin: 0 0 20px;
  color: #34423d;
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.95;
}

.article-body a {
  color: var(--ink);
  border-bottom: 1px solid rgba(19, 35, 31, 0.38);
}

.article-body ul,
.article-body ol {
  margin: 0 0 24px;
  padding-left: 1.35em;
  color: #34423d;
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.95;
}

.article-body li {
  padding-left: 0.25em;
  margin-bottom: 8px;
}

.article-body li::marker {
  color: var(--teal);
}

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

.article-body blockquote {
  margin: 36px 0;
  padding: 4px 0 4px 25px;
  border-left: 2px solid var(--teal);
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 23px;
  line-height: 1.7;
}

.article-body blockquote p {
  margin: 0;
  color: inherit;
  font-size: inherit;
}

.article-body code {
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
  background: var(--paper-2);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.85em;
}

.article-body .note-box {
  margin: 31px 0;
  padding: 21px 23px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper-3);
}

.article-body .note-box p {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

.article-body .note-box strong {
  color: var(--ink);
}

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

.article-body .article-end p {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 13px;
  line-height: 1.8;
}

.article-sidebar {
  position: sticky;
  top: 103px;
  display: grid;
  gap: 15px;
}

.side-card {
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: var(--paper-3);
}

.side-card h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.02em;
}

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

.side-card .side-link {
  display: inline-flex;
  margin-top: 15px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  border-bottom: 1px solid var(--line-strong);
}

.side-rank {
  color: var(--paper);
  background:
    radial-gradient(circle at 90% 0%, rgba(215, 255, 104, 0.22), transparent 40%),
    var(--ink);
  border-color: var(--ink);
}

.side-rank h2 {
  color: var(--paper);
}

.side-rank p {
  color: var(--muted-dark);
}

.side-rank .side-link {
  color: var(--lime);
  border-color: rgba(215, 255, 104, 0.4);
}

.side-list {
  display: grid;
  gap: 11px;
  margin: 15px 0 0;
  padding: 0;
  list-style: none;
}

.side-list a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.55;
}

.side-list a:hover {
  color: var(--teal);
}

.side-list span {
  flex: 0 0 auto;
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
}

.article-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 42px;
}

.article-nav a {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper-3);
  transition: border-color 0.2s ease;
}

.article-nav a:hover {
  border-color: var(--line-strong);
}

.article-nav small {
  display: block;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 10px;
}

.article-nav strong {
  display: block;
  margin-top: 7px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: -0.02em;
}

/* 404 */
.error-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 120px 0 70px;
  color: var(--paper);
  background: var(--ink);
}

.error-page .error-inner {
  max-width: 620px;
}

.error-page h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5.4vw, 4.7rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.error-page p {
  margin: 20px 0 0;
  color: var(--muted-dark);
  font-size: 16px;
}

.error-page .page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 27px;
}

/* Responsive */
@media (max-width: 1100px) {
  .hero-grid {
    gap: 38px;
  }

  .site-nav {
    gap: 20px;
  }

  .brand-tag {
    display: none;
  }

  .split {
    gap: 42px;
  }

  .featured-airport {
    grid-template-columns: 130px minmax(0, 1fr) 190px;
    gap: 24px;
  }

  .article-layout {
    gap: 48px;
  }
}

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

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

  .menu-toggle {
    display: block;
  }

  .mobile-menu {
    display: grid;
    gap: 2px;
    max-height: calc(100vh - 76px);
    overflow-y: auto;
    padding: 6px 24px 24px;
    border-top: 1px solid var(--line-dark);
    background: rgba(7, 17, 15, 0.98);
  }

  .mobile-menu[hidden] {
    display: none;
  }

  .mobile-menu a {
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    color: rgba(243, 242, 234, 0.82);
    font-size: 15px;
  }

  .mobile-menu a:last-child {
    margin-top: 8px;
    border-bottom: 0;
    color: var(--lime);
    font-weight: 700;
  }

  .hero {
    padding-top: 132px;
  }

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

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

  .hero-lede {
    max-width: 610px;
  }

  .hero-visual {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
  }

  .device {
    transform: none;
  }

  .hero-foot {
    margin-top: 70px;
  }

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

  .feature-card-wide,
  .feature-card-tall,
  .feature-card-small {
    grid-column: span 2;
    min-height: auto;
  }

  .feature-card-wide {
    min-height: 390px;
  }

  .feature-card-tall {
    min-height: 310px;
  }

  .feature-card-small {
    grid-column: span 1;
    min-height: 250px;
  }

  .section-head {
    display: block;
  }

  .section-head p {
    max-width: 650px;
    margin-top: 16px;
  }

  .split {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .split-copy {
    max-width: 700px;
  }

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

  .step {
    min-height: 0;
  }

  .step h3 {
    margin-top: 26px;
  }

  .download-band {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 38px;
  }

  .rank-band {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 36px;
  }

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

  .article-card {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
  }

  .article-cover {
    aspect-ratio: auto;
    min-height: 240px;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .article-card-body {
    padding: 27px;
  }

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

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

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

  .rank-stamp {
    display: none;
  }

  .featured-airport {
    grid-template-columns: 1fr;
    padding: 29px;
  }

  .featured-rank {
    flex-direction: row;
    align-items: end;
    min-height: 0;
  }

  .featured-rank .rank-caption {
    writing-mode: initial;
  }

  .featured-side {
    padding: 23px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .featured-side .airport-cta {
    max-width: 230px;
  }

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

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

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

  .article-layout {
    grid-template-columns: 1fr;
    gap: 50px;
    padding-top: 55px;
  }

  .article-sidebar {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-nav {
    margin-top: 30px;
  }

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

  .footer-note {
    width: 100%;
    order: 3;
  }
}

@media (max-width: 680px) {
  .wrap,
  .wrap-narrow,
  .wrap-wide {
    width: min(100% - 34px, 1180px);
  }

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

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

  .brand-word {
    font-size: 19px;
  }

  .header-cta {
    display: none;
  }

  .menu-toggle {
    margin-left: auto;
  }

  .mobile-menu {
    max-height: calc(100vh - 68px);
    padding-inline: 17px;
  }

  .hero {
    padding: 116px 0 67px;
  }

  .hero h1 {
    font-size: clamp(2rem, 10vw, 3.2rem);
  }

  .hero-lede {
    margin-top: 21px;
    font-size: 15.5px;
    line-height: 1.8;
  }

  .hero-actions {
    margin-top: 27px;
  }

  .hero-actions .btn {
    flex: 1;
    min-width: 145px;
    padding-inline: 14px;
  }

  .hero-rank {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
    margin-top: 26px;
  }

  .hero-rank a {
    white-space: normal;
  }

  .hero-platforms {
    margin-top: 19px;
    font-size: 10.5px;
  }

  .float-note-top {
    top: -16px;
    right: 2%;
    padding: 7px 10px;
    font-size: 10px;
  }

  .float-note-bottom {
    bottom: -15px;
    left: 2%;
    padding: 7px 10px;
    font-size: 10px;
  }

  .hero-foot {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    margin-top: 54px;
    font-size: 10.5px;
  }

  .hero-foot-list {
    gap: 14px;
  }

  .section {
    padding: 76px 0;
  }

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

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

  .section-head h2 {
    font-size: clamp(1.85rem, 8.4vw, 2.35rem);
  }

  .section-head p {
    font-size: 14px;
  }

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

  .feature-card-small,
  .feature-card-wide,
  .feature-card-tall {
    grid-column: span 1;
  }

  .feature-card {
    padding: 24px;
  }

  .feature-card-wide {
    min-height: 380px;
  }

  .feature-card-wide h3 {
    font-size: 25px;
  }

  .feature-card-tall {
    min-height: 280px;
  }

  .feature-card-small {
    min-height: 230px;
  }

  .card-index {
    top: 22px;
    right: 22px;
  }

  .rule-viz {
    margin-top: 36px;
  }

  .rule-row {
    grid-template-columns: 1fr auto 97px;
    font-size: 9.5px;
  }

  .power-dial {
    right: 20px;
    bottom: 20px;
    width: 85px;
    height: 85px;
  }

  .power-dial::before {
    width: 58px;
    height: 58px;
  }

  .split-copy h2 {
    font-size: clamp(1.85rem, 8.4vw, 2.35rem);
  }

  .split-copy > p {
    font-size: 14.5px;
  }

  .split-visual {
    border-radius: 18px;
  }

  .download-band {
    padding: 28px 24px;
    border-radius: 24px;
  }

  .download-band h2 {
    font-size: clamp(1.8rem, 7.8vw, 2.2rem);
  }

  .download-band .button-row .btn {
    flex: 1;
  }

  .rank-band {
    padding: 28px 23px;
    border-radius: 24px;
  }

  .rank-band h2 {
    font-size: clamp(2rem, 9.3vw, 2.55rem);
  }

  .rank-band .button-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
  }

  .mini-board-row {
    padding: 12px 13px;
    font-size: 12px;
  }

  .article-card {
    display: flex;
  }

  .article-cover {
    min-height: 190px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .article-card-body {
    padding: 21px;
  }

  .article-card h3 {
    font-size: 20px;
  }

  .faq summary {
    padding: 20px 0;
    font-size: 16px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }

  .footer-nav {
    gap: 8px 18px;
    font-size: 12px;
  }

  .site-footer {
    padding: 36px 0 43px;
  }

  .page-hero,
  .rank-hero,
  .article-hero {
    padding: 113px 0 55px;
  }

  .page-hero h1,
  .rank-hero h1 {
    font-size: clamp(2.35rem, 11vw, 3.2rem);
  }

  .page-hero p,
  .rank-hero p {
    margin-top: 17px;
    font-size: 14.5px;
  }

  .page-actions .btn {
    flex: 1;
  }

  .platform-card {
    padding: 23px;
  }

  .platform-card h2 {
    margin-top: 22px;
    font-size: 27px;
  }

  .requirements,
  .requirements tbody,
  .requirements tr,
  .requirements th,
  .requirements td {
    display: block;
    width: auto;
    font-size: 12px;
    white-space: normal;
  }

  .requirements thead {
    display: none;
  }

  .requirements tr {
    padding: 14px 0;
    border-bottom: 1px solid var(--line-dark);
  }

  .requirements tr:first-child th,
  .requirements tr:first-child td,
  .requirements th,
  .requirements td {
    border: 0;
    padding: 0;
  }

  .requirements th {
    margin-bottom: 5px;
    font-size: 13px;
  }

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

  .section-dark .requirements td {
    color: var(--muted-dark);
  }

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

  .rank-section {
    padding: 43px 0 70px;
  }

  .rank-intro {
    display: block;
    margin-bottom: 18px;
  }

  .rank-intro p {
    margin-top: 12px;
  }

  .featured-airport {
    padding: 24px;
    border-radius: 22px;
  }

  .featured-rank .rank-no {
    font-size: 4.15rem;
  }

  .featured-main h3 {
    font-size: 30px;
  }

  .featured-side .airport-cta {
    max-width: none;
    width: 100%;
  }

  .airport-card {
    min-height: 320px;
    padding: 22px;
  }

  .airport-card h3 {
    margin-top: 26px;
    font-size: 25px;
  }

  .airport-bottom {
    align-items: stretch;
    flex-direction: column;
    gap: 13px;
  }

  .airport-note {
    max-width: none;
  }

  .airport-card .airport-cta {
    flex: 0 0 auto;
    width: 100%;
    min-height: 44px;
  }

  .rank-method {
    padding: 60px 0;
  }

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

  .article-row {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 13px;
    padding: 23px 0;
  }

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

  .article-row .row-meta {
    grid-column: 2;
    margin-top: 5px;
    text-align: left;
  }

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

  .article-hero .article-kicker {
    margin-top: 0;
  }

  .article-hero h1 {
    margin-top: 18px;
    font-size: clamp(2.25rem, 10.2vw, 3rem);
  }

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

  .article-layout {
    padding: 45px 0 72px;
  }

  .article-body .lead {
    font-size: 19px;
    line-height: 1.8;
  }

  .article-body h2 {
    margin-top: 43px;
    font-size: 25px;
  }

  .article-body h3 {
    font-size: 19px;
  }

  .article-body p,
  .article-body ul,
  .article-body ol {
    font-size: 17px;
    line-height: 1.95;
  }

  .article-body blockquote {
    margin: 29px 0;
    padding-left: 18px;
    font-size: 20px;
  }

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

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

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

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

/* Anchor targets clear the fixed header */
section[id],
article[id],
div[id] {
  scroll-margin-top: 96px;
}

@media (max-width: 680px) {
  section[id],
  article[id],
  div[id] {
    scroll-margin-top: 86px;
  }
}
