:root {
  --paper: #f5f1e9;
  --paper-deep: #ece4d7;
  --surface: #fffdf8;
  --ink: #18141d;
  --ink-soft: #403a47;
  --muted: #706977;
  --line: rgba(24, 20, 29, 0.13);
  --line-strong: rgba(24, 20, 29, 0.24);
  --violet: #5b42d6;
  --violet-deep: #4229b7;
  --violet-soft: #e8e1ff;
  --peach: #f0b56f;
  --peach-soft: #f8dfc0;
  --mint: #cfe5d7;
  --rose: #f1c8cf;
  --white: #fffdf8;
  --shadow-sm: 0 8px 24px rgba(37, 25, 55, 0.06);
  --shadow-md: 0 24px 70px rgba(37, 25, 55, 0.12);
  --radius-sm: 12px;
  --radius-md: 22px;
  --radius-lg: 34px;
  --max: 1220px;
  --font-body: "Hiragino Sans GB", "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  --font-display: "Songti SC", "STSong", "Noto Serif CJK SC", "Noto Serif SC", serif;
  --font-mono: "SFMono-Regular", "Cascadia Code", "Roboto Mono", "Menlo", monospace;
}

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

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

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 4%, rgba(240, 181, 111, 0.14), transparent 27rem),
    radial-gradient(circle at 94% 22%, rgba(91, 66, 214, 0.09), transparent 30rem),
    var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

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

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

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

button {
  color: inherit;
  font: inherit;
}

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

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(245, 241, 233, 0.88);
  border-color: var(--line);
  box-shadow: 0 12px 35px rgba(35, 24, 50, 0.05);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  font-weight: 750;
  letter-spacing: -0.025em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  overflow: hidden;
  border: 1px solid rgba(24, 20, 29, 0.12);
  border-radius: 50%;
  box-shadow: 0 5px 14px rgba(46, 31, 70, 0.1);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-word {
  font-size: 18px;
  line-height: 1;
}

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

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 13px;
  color: var(--ink-soft);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 560;
  transition: color 160ms ease, background-color 160ms ease;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--ink);
  background: rgba(255, 253, 248, 0.66);
}

.nav-link[aria-current="page"]::after {
  position: absolute;
  right: 13px;
  bottom: 5px;
  left: 13px;
  height: 2px;
  content: "";
  background: var(--violet);
  border-radius: 2px;
}

.nav-rank {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  margin-left: 8px;
  padding: 0 17px;
  color: var(--ink);
  background: var(--peach);
  border: 1px solid rgba(24, 20, 29, 0.18);
  border-radius: 999px;
  box-shadow: 0 4px 0 rgba(24, 20, 29, 0.1);
  font-size: 14px;
  font-weight: 750;
  white-space: nowrap;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.nav-rank::before {
  width: 7px;
  height: 7px;
  content: "";
  background: var(--ink);
  border-radius: 50%;
}

.nav-rank:hover {
  background: #f6c88f;
  box-shadow: 0 2px 0 rgba(24, 20, 29, 0.12);
  transform: translateY(2px);
}

.header-side {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: rgba(255, 253, 248, 0.72);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}

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

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

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

.mobile-rank-short {
  display: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 52px;
  padding: 0 23px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease, color 160ms ease;
}

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

.btn-primary {
  color: var(--white);
  background: var(--ink);
  box-shadow: 0 8px 0 rgba(24, 20, 29, 0.11);
}

.btn-primary:hover {
  background: #2a2231;
  box-shadow: 0 5px 0 rgba(24, 20, 29, 0.13);
}

.btn-accent {
  color: var(--ink);
  background: var(--peach);
  border-color: rgba(24, 20, 29, 0.15);
  box-shadow: 0 8px 0 rgba(24, 20, 29, 0.1);
}

.btn-accent:hover {
  background: #f6c88f;
  box-shadow: 0 5px 0 rgba(24, 20, 29, 0.13);
}

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

.btn-ghost:hover {
  background: var(--surface);
}

.btn-small {
  min-height: 44px;
  padding: 0 17px;
  font-size: 14px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 750;
  border-bottom: 1px solid currentColor;
}

.text-link:hover {
  color: var(--violet-deep);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 7vw, 88px) 0 clamp(62px, 8vw, 104px);
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background-image: radial-gradient(rgba(24, 20, 29, 0.16) 0.7px, transparent 0.7px);
  background-size: 24px 24px;
  mask-image: linear-gradient(90deg, transparent 18%, #000 48%, transparent 90%);
  -webkit-mask-image: linear-gradient(90deg, transparent 18%, #000 48%, transparent 90%);
  opacity: 0.42;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(420px, 0.96fr);
  align-items: center;
  gap: clamp(32px, 5vw, 78px);
  min-height: 610px;
}

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

.hero h1 {
  max-width: 690px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(48px, 5.6vw, 76px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.055em;
}

.hero h1 .line {
  display: block;
}

.hero h1 .accent {
  position: relative;
  display: inline-block;
  color: var(--violet-deep);
  font-style: normal;
}

.hero h1 .accent::after {
  position: absolute;
  right: 1%;
  bottom: 1px;
  left: 1%;
  height: 8px;
  content: "";
  background: var(--peach);
  border-radius: 999px;
  opacity: 0.72;
  transform: rotate(-1.2deg);
  z-index: -1;
}

.hero-lead {
  max-width: 580px;
  margin: 27px 0 0;
  color: var(--ink-soft);
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.85;
}

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

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 0;
  margin: 30px 0 0;
  padding: 0;
  color: var(--muted);
  list-style: none;
  font-size: 13px;
  font-weight: 560;
}

.hero-facts li {
  display: inline-flex;
  align-items: center;
}

.hero-facts li + li::before {
  width: 3px;
  height: 3px;
  margin: 0 12px;
  content: "";
  background: var(--muted);
  border-radius: 50%;
  opacity: 0.6;
}

.hero-visual {
  position: relative;
  min-height: 610px;
}

.hero-brand-star {
  position: absolute;
  top: -42px;
  right: -76px;
  width: min(420px, 60%);
  opacity: 0.08;
  transform: rotate(14deg);
  pointer-events: none;
}

.hero-orbit {
  position: absolute;
  top: 44%;
  left: 48%;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(91, 66, 214, 0.18);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero-orbit::before,
.hero-orbit::after {
  position: absolute;
  content: "";
  border: 1px solid rgba(91, 66, 214, 0.1);
  border-radius: inherit;
}

.hero-orbit::before {
  inset: 52px;
}

.hero-orbit::after {
  inset: 112px;
}

.phone-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 326px;
  transform: translate(-50%, -50%) rotate(1.8deg);
}

.phone {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 610px;
  padding: 13px 10px 10px;
  background: #16121b;
  border: 1px solid #3b3045;
  border-radius: 46px;
  box-shadow:
    0 42px 80px rgba(43, 25, 78, 0.23),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.phone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  z-index: 5;
  width: 80px;
  height: 21px;
  background: #16121b;
  border-radius: 999px;
  transform: translateX(-50%);
}

.phone-screen {
  overflow: hidden;
  min-height: 584px;
  padding: 24px 17px 14px;
  background:
    radial-gradient(circle at 16% 4%, rgba(240, 181, 111, 0.3), transparent 8rem),
    linear-gradient(180deg, #f7f0fa 0%, #f3edf3 54%, #eee6e5 100%);
  border-radius: 35px;
}

.phone-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}

.phone-title {
  margin: 0;
  font-size: 23px;
  font-weight: 780;
  letter-spacing: -0.04em;
}

.phone-app {
  overflow: hidden;
  width: 31px;
  height: 31px;
  border: 1px solid rgba(24, 20, 29, 0.1);
  border-radius: 9px;
}

.phone-app img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-connection {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 6px 9px;
  color: #245c3d;
  background: rgba(207, 229, 215, 0.8);
  border: 1px solid rgba(36, 92, 61, 0.12);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
}

.phone-connection::before {
  width: 6px;
  height: 6px;
  content: "";
  background: #3f8e61;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(63, 142, 97, 0.13);
}

.phone-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 19px 1px 9px;
  color: #746b78;
  font-size: 10px;
  font-weight: 650;
}

.phone-group span:last-child {
  color: #968b9d;
  font-weight: 500;
}

.node-list {
  display: grid;
  gap: 8px;
}

.node {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  align-items: center;
  gap: 9px;
  min-height: 56px;
  padding: 8px 11px 8px 9px;
  background: rgba(255, 253, 248, 0.78);
  border: 1px solid rgba(24, 20, 29, 0.09);
  border-radius: 13px;
  box-shadow: 0 4px 13px rgba(43, 25, 78, 0.03);
}

.node.is-active {
  background: #fffdf8;
  border-color: rgba(91, 66, 214, 0.45);
  box-shadow: 0 7px 20px rgba(91, 66, 214, 0.1);
}

.node-flag {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  background: #ede7f9;
  border-radius: 8px;
  font-size: 15px;
}

.node-name {
  display: block;
  overflow: hidden;
  color: #2e2634;
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.node-sub {
  display: block;
  margin-top: 2px;
  color: #918697;
  font-size: 8.5px;
}

.node-ping {
  color: #3b7c58;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
}

.node-ping.slow {
  color: #9b7048;
}

.phone-rule {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 13px;
  padding: 10px 11px;
  background: rgba(232, 225, 255, 0.58);
  border: 1px solid rgba(91, 66, 214, 0.1);
  border-radius: 12px;
  font-size: 9.5px;
}

.phone-rule span:first-child {
  color: #6f657a;
}

.phone-rule strong {
  color: #4d38aa;
  font-size: 9.5px;
}

.phone-bottom {
  display: flex;
  justify-content: space-around;
  margin-top: 13px;
  padding: 9px 5px 2px;
  border-top: 1px solid rgba(24, 20, 29, 0.08);
}

.phone-tab {
  display: grid;
  gap: 3px;
  place-items: center;
  color: #9b8fa1;
  font-size: 8px;
}

.phone-tab::before {
  width: 13px;
  height: 13px;
  content: "";
  border: 1.5px solid currentColor;
  border-radius: 4px;
  opacity: 0.8;
}

.phone-tab.is-active {
  color: var(--violet-deep);
  font-weight: 700;
}

.phone-tab.is-active::before {
  background: rgba(91, 66, 214, 0.11);
  border-color: var(--violet);
}

.float-card {
  position: absolute;
  z-index: 4;
  padding: 13px 15px;
  background: rgba(255, 253, 248, 0.94);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.float-card strong {
  display: block;
  font-size: 12px;
  line-height: 1.3;
}

.float-card span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.float-card-a {
  top: 91px;
  left: -7px;
  transform: rotate(-3deg);
}

.float-card-b {
  right: -19px;
  bottom: 109px;
  transform: rotate(2deg);
}

.float-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #2d6e4b;
  font-size: 10px;
  font-weight: 750;
}

.float-check::before {
  display: grid;
  width: 16px;
  height: 16px;
  place-items: center;
  content: "✓";
  color: #fff;
  background: #4d8d68;
  border-radius: 50%;
  font-size: 9px;
}

/* Sections */
.section {
  padding: clamp(70px, 8vw, 104px) 0;
}

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

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

.section-head-main {
  max-width: 710px;
}

.section-head h2,
.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(36px, 4.4vw, 58px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.045em;
}

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

.section-head-side {
  flex: 0 0 auto;
  padding-bottom: 5px;
}

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

.feature {
  position: relative;
  overflow: hidden;
  padding: 28px;
  background: rgba(255, 253, 248, 0.6);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}

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

.feature h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(25px, 2.6vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.feature p {
  max-width: 480px;
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.8;
}

.feature-node {
  grid-column: span 7;
  min-height: 330px;
  color: var(--white);
  background: var(--ink);
  border-color: var(--ink);
}

.feature-node:hover {
  border-color: var(--ink);
}

.feature-node p {
  color: rgba(255, 253, 248, 0.66);
}

.feature-sub {
  grid-column: span 5;
  min-height: 330px;
  background: var(--peach-soft);
}

.feature-route {
  grid-column: span 5;
  min-height: 300px;
}

.feature-perapp {
  grid-column: span 7;
  min-height: 300px;
  background: rgba(232, 225, 255, 0.62);
}

.feature-art {
  position: absolute;
  right: 24px;
  bottom: 21px;
  left: 24px;
}

.mini-nodes {
  display: grid;
  gap: 7px;
}

.mini-node {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9px;
}

.mini-node-main {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 11px;
}

.mini-dot {
  width: 6px;
  height: 6px;
  background: #a992ff;
  border-radius: 50%;
}

.mini-node small {
  color: rgba(255, 253, 248, 0.46);
  font-family: var(--font-mono);
  font-size: 9px;
}

.mini-node em {
  color: #a8d4b7;
  font-family: var(--font-mono);
  font-size: 9px;
  font-style: normal;
}

.group-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
}

.group-chip {
  padding: 6px 9px;
  background: rgba(255, 253, 248, 0.6);
  border: 1px solid rgba(24, 20, 29, 0.12);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 650;
}

.route-code {
  overflow: hidden;
  margin-top: 17px;
  padding: 13px 14px;
  color: #d9d1e8;
  background: #211b29;
  border-radius: 11px;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.9;
}

.route-code span {
  color: #a992ff;
}

.route-code b {
  color: #f0c58e;
  font-weight: 500;
}

.app-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 20px;
}

.app-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  background: rgba(255, 253, 248, 0.76);
  border: 1px solid rgba(24, 20, 29, 0.1);
  border-radius: 8px;
  font-size: 10px;
  font-weight: 650;
}

.app-chip::before {
  width: 8px;
  height: 8px;
  content: "";
  background: var(--violet);
  border-radius: 3px;
  opacity: 0.7;
}

/* Modes */
.modes-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(32px, 5vw, 60px);
  color: var(--white);
  background:
    radial-gradient(circle at 100% 0, rgba(91, 66, 214, 0.55), transparent 34rem),
    #17131c;
  border-radius: var(--radius-lg);
}

.modes-panel::after {
  position: absolute;
  top: -88px;
  right: -88px;
  width: 310px;
  height: 310px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 50%;
  box-shadow: 0 0 0 48px rgba(255, 255, 255, 0.025), 0 0 0 96px rgba(255, 255, 255, 0.015);
  pointer-events: none;
}

.modes-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 35px;
}

.modes-top h2 {
  max-width: 680px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.12;
  letter-spacing: -0.045em;
}

.modes-top p {
  max-width: 360px;
  margin: 0 0 4px;
  color: rgba(255, 253, 248, 0.62);
  font-size: 14px;
  line-height: 1.8;
}

.mode-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.mode {
  min-height: 202px;
  padding: 24px 22px 22px 0;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.mode::before {
  display: block;
  width: 26px;
  height: 3px;
  margin-bottom: 30px;
  content: "";
  background: #a992ff;
  border-radius: 3px;
}

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

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

.mode h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 720;
  letter-spacing: -0.02em;
}

.mode p {
  margin: 8px 0 0;
  color: rgba(255, 253, 248, 0.56);
  font-size: 12.5px;
  line-height: 1.7;
}

.mode-tag {
  display: inline-block;
  margin-top: 15px;
  padding: 3px 7px;
  color: var(--ink);
  background: var(--peach);
  border-radius: 4px;
  font-size: 9px;
  font-weight: 750;
}

.mode-tag.root {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
}

.modes-foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 26px;
  color: rgba(255, 253, 248, 0.46);
  font-size: 12px;
}

.modes-foot a {
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

/* Ranking promo */
.rank-promo {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  align-items: center;
  gap: 34px;
  overflow: hidden;
  padding: clamp(34px, 5vw, 58px);
  color: var(--white);
  background: var(--violet);
  border-radius: var(--radius-lg);
}

.rank-promo::before {
  position: absolute;
  top: -45%;
  right: 10%;
  width: 460px;
  height: 460px;
  content: "";
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 68%);
  border-radius: 50%;
  pointer-events: none;
}

.rank-promo-copy {
  position: relative;
  z-index: 1;
}

.rank-promo h2 {
  max-width: 650px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(35px, 4vw, 54px);
  line-height: 1.1;
  letter-spacing: -0.045em;
}

.rank-promo p {
  max-width: 600px;
  margin: 15px 0 0;
  color: rgba(255, 253, 248, 0.7);
  font-size: 14.5px;
  line-height: 1.8;
}

.rank-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 20px;
}

.rank-tag {
  padding: 5px 9px;
  color: rgba(255, 253, 248, 0.85);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  font-size: 11px;
}

.rank-promo-side {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 21px;
  padding-left: 30px;
  border-left: 1px solid rgba(255, 255, 255, 0.19);
}

.rank-promo-num {
  display: flex;
  align-items: baseline;
  gap: 9px;
  line-height: 0.8;
}

.rank-promo-num strong {
  font-family: var(--font-display);
  font-size: clamp(58px, 6vw, 76px);
  font-weight: 700;
  letter-spacing: -0.07em;
}

.rank-promo-num span {
  color: rgba(255, 253, 248, 0.5);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.rank-promo .btn {
  width: 100%;
  max-width: 250px;
}

/* Articles list */
.post-list {
  border-top: 1px solid var(--line-strong);
}

.post-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto 28px;
  align-items: center;
  gap: 24px;
  padding: 25px 4px;
  border-bottom: 1px solid var(--line);
  transition: padding 180ms ease, background-color 180ms ease;
}

.post-row:hover {
  padding-right: 13px;
  padding-left: 13px;
  background: rgba(255, 253, 248, 0.45);
}

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

.post-copy h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(21px, 2.3vw, 28px);
  line-height: 1.3;
  letter-spacing: -0.03em;
}

.post-copy p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.post-meta {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.post-arrow {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-size: 13px;
  transition: color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.post-row:hover .post-arrow {
  color: var(--white);
  background: var(--ink);
  transform: rotate(-45deg);
}

/* Download band */
.download-band {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 34px;
  padding: clamp(29px, 4vw, 45px);
  background:
    linear-gradient(115deg, rgba(255, 253, 248, 0.7), rgba(248, 223, 192, 0.6)),
    var(--paper-deep);
  border: 1px solid rgba(24, 20, 29, 0.11);
  border-radius: var(--radius-md);
}

.download-band h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(29px, 3.4vw, 42px);
  line-height: 1.16;
  letter-spacing: -0.04em;
}

.download-band p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 14px;
}

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

/* Footer */
.site-footer {
  margin-top: clamp(72px, 9vw, 112px);
  padding: 34px 0 38px;
  border-top: 1px solid var(--line);
}

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

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

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

.footer-brand strong {
  font-size: 14px;
  letter-spacing: -0.02em;
}

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

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

.footer-copy {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

/* Inner page hero */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(42px, 6vw, 76px) 0 clamp(38px, 5vw, 62px);
}

.page-hero::after {
  position: absolute;
  top: 22px;
  right: 3%;
  z-index: -1;
  width: 250px;
  height: 250px;
  content: "";
  background: radial-gradient(circle, rgba(240, 181, 111, 0.24), transparent 68%);
  border-radius: 50%;
}

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

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

.breadcrumbs span[aria-hidden="true"] {
  color: rgba(24, 20, 29, 0.33);
}

.page-hero h1 {
  max-width: 900px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(45px, 6.2vw, 76px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.055em;
}

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

.page-hero .page-lead {
  max-width: 670px;
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.88;
}

.page-hero .page-note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 12px;
}

/* Download page */
.release-panel {
  display: grid;
  grid-template-columns: 1fr 290px;
  gap: 30px;
  padding: clamp(26px, 4vw, 40px);
  color: var(--white);
  background:
    radial-gradient(circle at 92% 8%, rgba(240, 181, 111, 0.22), transparent 17rem),
    var(--ink);
  border-radius: var(--radius-md);
}

.release-panel h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(30px, 3.3vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.release-panel p {
  max-width: 570px;
  margin: 11px 0 0;
  color: rgba(255, 253, 248, 0.63);
  font-size: 13.5px;
  line-height: 1.8;
}

.release-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.release-meta span {
  padding: 5px 9px;
  color: rgba(255, 253, 248, 0.68);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 10px;
}

.release-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding-left: 30px;
  border-left: 1px solid rgba(255, 255, 255, 0.13);
}

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

.release-side small {
  color: rgba(255, 253, 248, 0.38);
  font-size: 10px;
  line-height: 1.6;
  text-align: center;
}

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

.apk-card {
  display: flex;
  flex-direction: column;
  min-height: 220px;
  padding: 23px;
  background: rgba(255, 253, 248, 0.68);
  border: 1px solid var(--line);
  border-radius: 18px;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

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

.apk-card.recommended {
  background: var(--peach-soft);
  border-color: rgba(24, 20, 29, 0.2);
}

.apk-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.apk-card h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 750;
  letter-spacing: -0.03em;
}

.apk-badge {
  padding: 3px 7px;
  color: var(--white);
  background: var(--violet);
  border-radius: 4px;
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
}

.apk-card p {
  margin: 9px 0 20px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.65;
}

.apk-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(24, 20, 29, 0.1);
}

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

.apk-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 750;
}

.apk-link:hover {
  color: var(--violet-deep);
}

.download-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 15px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.7;
}

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

.split-content {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(36px, 6vw, 90px);
  align-items: start;
}

.prose-block h2 {
  margin: 0 0 17px;
  font-family: var(--font-display);
  font-size: clamp(30px, 3.3vw, 42px);
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.prose-block > p {
  margin: 0 0 16px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.9;
}

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

.steps li {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 15px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  counter-increment: step;
}

.steps li::before {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  content: counter(step, decimal-leading-zero);
  color: var(--violet-deep);
  background: var(--violet-soft);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
}

.steps h3 {
  margin: 2px 0 0;
  font-size: 15px;
  font-weight: 750;
}

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

.spec-panel {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.spec-panel h2 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.spec-list {
  margin: 0;
}

.spec-list div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 18px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}

.spec-list dt {
  color: var(--muted);
  font-size: 12px;
}

.spec-list dd {
  margin: 0;
  font-size: 12.5px;
  font-weight: 600;
}

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

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

.faq-item summary {
  position: relative;
  padding: 20px 44px 20px 0;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  list-style: none;
}

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

.faq-item summary::after {
  position: absolute;
  top: 50%;
  right: 4px;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  content: "+";
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 15px;
  font-weight: 400;
  transform: translateY(-50%);
  transition: transform 160ms ease, color 160ms ease;
}

.faq-item[open] summary::after {
  content: "−";
  color: var(--ink);
  transform: translateY(-50%) rotate(180deg);
}

.faq-body {
  max-width: 780px;
  padding: 0 42px 21px 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.85;
}

.faq-body p {
  margin: 0;
}

/* Ranking page */
.ranking-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 11.5px;
}

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

.ranking-hero-meta span::before {
  width: 5px;
  height: 5px;
  content: "";
  background: var(--peach);
  border: 1px solid rgba(24, 20, 29, 0.25);
  border-radius: 50%;
}

.ranking-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

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

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

.filter-chip {
  min-height: 36px;
  padding: 0 13px;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

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

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

.filter-result {
  color: var(--muted);
  font-size: 11px;
}

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

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

.airport-card {
  display: flex;
  flex-direction: column;
  min-height: 360px;
  padding: 23px;
  background: rgba(255, 253, 248, 0.76);
  border: 1px solid var(--line);
  border-radius: 19px;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

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

.airport-card.featured {
  min-height: 405px;
  background: var(--surface);
  border-color: rgba(24, 20, 29, 0.18);
  box-shadow: var(--shadow-sm);
}

.airport-card.featured.is-first {
  color: var(--white);
  background:
    radial-gradient(circle at 100% 0, rgba(240, 181, 111, 0.16), transparent 16rem),
    var(--ink);
  border-color: var(--ink);
}

.airport-card.is-hidden {
  display: none;
}

.airport-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
}

.airport-id {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.airport-rank {
  display: grid;
  flex: 0 0 auto;
  width: 35px;
  height: 35px;
  place-items: center;
  color: var(--violet-deep);
  background: var(--violet-soft);
  border-radius: 9px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
}

.airport-card.featured.is-first .airport-rank {
  color: var(--ink);
  background: var(--peach);
}

.airport-name {
  margin: 0;
  font-size: 23px;
  font-weight: 760;
  line-height: 1.25;
  letter-spacing: -0.035em;
}

.airport-tagline {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.airport-card.featured.is-first .airport-tagline {
  color: rgba(255, 253, 248, 0.55);
}

.airport-score {
  flex: 0 0 auto;
  text-align: right;
}

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

.airport-score span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 8.5px;
}

.airport-card.featured.is-first .airport-score span {
  color: rgba(255, 253, 248, 0.42);
}

.airport-desc {
  min-height: 68px;
  margin: 19px 0 16px;
  color: var(--ink-soft);
  font-size: 12.5px;
  line-height: 1.8;
}

.airport-card.featured.is-first .airport-desc {
  color: rgba(255, 253, 248, 0.66);
}

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

.airport-card.featured.is-first .airport-specs {
  border-color: rgba(255, 255, 255, 0.12);
}

.airport-specs div {
  padding: 9px 10px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.airport-card.featured.is-first .airport-specs div {
  border-color: rgba(255, 255, 255, 0.12);
}

.airport-specs dt {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.4;
}

.airport-card.featured.is-first .airport-specs dt {
  color: rgba(255, 253, 248, 0.62);
}

.airport-specs dd {
  margin: 2px 0 0;
  font-size: 11.5px;
  font-weight: 650;
  line-height: 1.45;
}

.airport-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 14px 0 0;
}

.airport-tag {
  padding: 3px 7px;
  color: var(--ink-soft);
  background: var(--paper);
  border: 1px solid rgba(24, 20, 29, 0.08);
  border-radius: 4px;
  font-size: 9px;
}

.airport-card.featured.is-first .airport-tag {
  color: rgba(255, 253, 248, 0.7);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.1);
}

.airport-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 19px;
}

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

.airport-price strong {
  display: block;
  font-size: 21px;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.airport-price small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
}

.airport-card.featured.is-first .airport-price small {
  color: rgba(255, 253, 248, 0.66);
}

.airport-cta {
  display: flex;
  flex: 0 0 112px;
  align-items: center;
  justify-content: center;
  min-height: 43px;
  padding: 0 12px;
  color: var(--white);
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 750;
  line-height: 1;
  text-align: center;
  cursor: pointer;
  user-select: none;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

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

.airport-card.featured.is-first .airport-cta {
  color: var(--ink);
  background: var(--peach);
  border-color: var(--peach);
}

.airport-card.featured.is-first .airport-cta:hover {
  background: #f6c88f;
}

.empty-state {
  display: none;
  padding: 46px 24px;
  color: var(--muted);
  text-align: center;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
}

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

.rank-note {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 30px;
  margin-top: 30px;
  padding: 23px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.rank-note strong {
  font-size: 13px;
}

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

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

.dimension {
  padding: 23px;
  background: rgba(255, 253, 248, 0.55);
  border: 1px solid var(--line);
  border-radius: 15px;
}

.dimension-head {
  display: flex;
  align-items: center;
  gap: 9px;
}

.dimension-num {
  display: inline-grid;
  flex: 0 0 auto;
  order: -1;
  width: 25px;
  height: 25px;
  place-items: center;
  color: var(--violet-deep);
  background: var(--violet-soft);
  border-radius: 7px;
  font-family: var(--font-mono);
  font-size: 9px;
}

.dimension h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 750;
  letter-spacing: -0.02em;
}

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

/* Article index */
.article-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}

.article-card {
  display: flex;
  flex-direction: column;
  min-height: 284px;
  padding: 27px;
  background: rgba(255, 253, 248, 0.65);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

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

.article-card:first-child {
  grid-column: span 2;
  min-height: 300px;
  color: var(--white);
  background:
    radial-gradient(circle at 94% 0, rgba(240, 181, 111, 0.2), transparent 20rem),
    var(--ink);
  border-color: var(--ink);
}

.article-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
  padding-top: 23px;
  color: var(--muted);
  font-size: 10px;
}

.article-card:first-child .article-card-meta {
  color: rgba(255, 253, 248, 0.45);
}

.article-card h2 {
  max-width: 680px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(25px, 3vw, 36px);
  line-height: 1.28;
  letter-spacing: -0.035em;
}

.article-card p {
  max-width: 610px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.75;
}

.article-card:first-child p {
  color: rgba(255, 253, 248, 0.58);
}

.article-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding-top: 0;
  font-size: 12px;
  font-weight: 750;
}

.article-card-link span {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 10px;
  transition: transform 160ms ease;
}

.article-card:hover .article-card-link span {
  transform: rotate(-45deg);
}

/* Article page */
.article-hero {
  padding: clamp(38px, 5vw, 66px) 0 36px;
}

.article-hero-inner {
  max-width: 920px;
}

.article-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(41px, 5.4vw, 68px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.05em;
}

.article-deck {
  max-width: 760px;
  margin: 21px 0 0;
  color: var(--ink-soft);
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.85;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 16px;
  margin-top: 25px;
  color: var(--muted);
  font-size: 11px;
}

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

.article-meta span + span::before {
  width: 3px;
  height: 3px;
  margin-right: 8px;
  content: "";
  background: var(--muted);
  border-radius: 50%;
}

.article-shell {
  display: grid;
  grid-template-columns: 190px minmax(0, 760px);
  gap: clamp(36px, 6vw, 85px);
  justify-content: center;
  padding-top: 27px;
  border-top: 1px solid var(--line-strong);
}

.article-aside {
  align-self: start;
  position: sticky;
  top: 108px;
}

.toc-title {
  margin: 0 0 13px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
}

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

.toc li + li {
  margin-top: 8px;
}

.toc a {
  display: block;
  padding-left: 11px;
  color: var(--muted);
  border-left: 1px solid var(--line);
  font-size: 11px;
  line-height: 1.6;
  transition: color 160ms ease, border-color 160ms ease;
}

.toc a:hover,
.toc a.is-active {
  color: var(--ink);
  border-color: var(--violet);
}

.article-body {
  min-width: 0;
  font-size: 17px;
  line-height: 2;
}

.article-body > p:first-child {
  margin-top: 0;
  color: var(--ink);
  font-size: 19px;
  line-height: 1.95;
}

.article-body p {
  margin: 0 0 23px;
  color: var(--ink-soft);
}

.article-body h2 {
  margin: 55px 0 18px;
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.3;
  letter-spacing: -0.035em;
}

.article-body h3 {
  margin: 35px 0 12px;
  font-size: 20px;
  line-height: 1.45;
  letter-spacing: -0.025em;
}

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

.article-body a:not(.btn) {
  color: var(--violet-deep);
  border-bottom: 1px solid rgba(66, 41, 183, 0.3);
}

.article-body a:not(.btn):hover {
  border-color: var(--violet-deep);
}

.article-body ul,
.article-body ol {
  margin: 0 0 24px;
  padding-left: 23px;
}

.article-body li {
  margin: 8px 0;
  padding-left: 3px;
  color: var(--ink-soft);
}

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

.article-body blockquote {
  margin: 31px 0;
  padding: 21px 24px;
  background: rgba(232, 225, 255, 0.5);
  border-left: 3px solid var(--violet);
  border-radius: 0 10px 10px 0;
}

.article-body blockquote p {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.85;
}

.article-body code {
  padding: 2px 5px;
  color: var(--violet-deep);
  background: rgba(91, 66, 214, 0.08);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.83em;
}

.article-body pre {
  overflow-x: auto;
  margin: 25px 0;
  padding: 17px 19px;
  color: #ddd4e8;
  background: #211b29;
  border-radius: 11px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.8;
}

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

.article-table-wrap {
  overflow-x: auto;
  margin: 27px 0;
  border: 1px solid var(--line);
  border-radius: 11px;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.65;
}

.article-body th,
.article-body td {
  padding: 11px 13px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.article-body th {
  color: var(--muted);
  background: rgba(255, 253, 248, 0.55);
  font-size: 10.5px;
  font-weight: 650;
  white-space: nowrap;
}

.article-body tr:last-child td {
  border-bottom: 0;
}

.article-body td {
  color: var(--ink-soft);
}

.inline-rank {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 23px;
  margin: 37px 0;
  padding: 21px 23px;
  color: var(--white);
  background: var(--ink);
  border-radius: 13px;
}

.inline-rank strong {
  display: block;
  color: var(--white);
  font-size: 15px;
  line-height: 1.4;
}

.inline-rank span {
  display: block;
  margin-top: 3px;
  color: rgba(255, 253, 248, 0.5);
  font-size: 10.5px;
}

.inline-rank .btn {
  flex: 0 0 auto;
  color: var(--ink);
  background: var(--peach);
  box-shadow: none;
}

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

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

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

.article-nav a {
  padding: 17px 19px;
  background: rgba(255, 253, 248, 0.48);
  border: 1px solid var(--line);
  border-radius: 11px;
  transition: background-color 160ms ease, border-color 160ms ease;
}

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

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

.article-nav strong {
  display: block;
  margin-top: 4px;
  font-size: 12.5px;
  line-height: 1.5;
}

.article-nav .next {
  text-align: right;
}

/* Mobile dock */
.mobile-dock {
  display: none;
}

/* Reveal: content stays visible without JavaScript, then animates once observed. */
.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal.is-visible {
  animation: reveal-rise 620ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

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

/* Responsive */
@media (max-width: 1120px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.85fr);
    gap: 28px;
  }

  .hero-visual {
    min-height: 575px;
  }

  .phone-wrap {
    width: 288px;
  }

  .phone {
    min-height: 550px;
  }

  .phone-screen {
    min-height: 524px;
  }

  .float-card-a {
    left: -4px;
  }

  .float-card-b {
    right: -7px;
  }

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

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

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

  .mode:nth-child(3) {
    padding-left: 0;
  }
}

@media (max-width: 980px) {
  .main-nav {
    gap: 1px;
  }

  .nav-link {
    padding: 0 9px;
    font-size: 13px;
  }

  .nav-link[aria-current="page"]::after {
    right: 9px;
    left: 9px;
  }

  .nav-rank {
    padding: 0 12px;
    font-size: 12px;
  }

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

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

  .hero-visual {
    min-height: 560px;
    margin-top: 13px;
  }

  .hero-brand-star {
    right: -30px;
    width: 340px;
  }

  .hero-orbit {
    width: 465px;
    height: 465px;
  }

  .phone-wrap {
    width: 286px;
  }

  .phone {
    min-height: 535px;
  }

  .phone-screen {
    min-height: 509px;
  }

  .float-card-a {
    top: 68px;
    left: calc(50% - 250px);
  }

  .float-card-b {
    right: calc(50% - 258px);
    bottom: 83px;
  }

  .feature-node,
  .feature-sub,
  .feature-route,
  .feature-perapp {
    grid-column: span 6;
  }

  .feature-node,
  .feature-sub {
    min-height: 340px;
  }

  .section-head {
    display: block;
  }

  .section-head-side {
    margin-top: 18px;
  }

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

  .rank-promo-side {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding-top: 22px;
    padding-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.19);
    border-left: 0;
  }

  .rank-promo .btn {
    width: auto;
  }

  .release-panel {
    grid-template-columns: 1fr;
  }

  .release-side {
    padding-top: 22px;
    padding-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.13);
    border-left: 0;
  }

  .release-side .btn {
    width: auto;
  }

  .release-side small {
    text-align: left;
  }

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

  .airport-card.featured {
    min-height: 380px;
  }

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

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

  .article-aside {
    display: none;
  }

  .article-body {
    max-width: 760px;
  }
}

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

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

  .brand-mark {
    width: 37px;
    height: 37px;
  }

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

  .main-nav {
    position: fixed;
    top: 68px;
    right: 18px;
    left: 18px;
    z-index: 99;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
    padding: 13px;
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: 16px;
    box-shadow: 0 25px 60px rgba(36, 23, 55, 0.16);
  }

  .main-nav.is-open {
    display: flex;
  }

  .nav-link {
    min-height: 47px;
    padding: 0 12px;
    font-size: 14px;
  }

  .nav-link[aria-current="page"]::after {
    top: 50%;
    right: 12px;
    bottom: auto;
    left: auto;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    transform: translateY(-50%);
  }

  .nav-rank {
    justify-content: center;
    min-height: 47px;
    margin: 5px 0 0;
    border-radius: 9px;
    box-shadow: none;
    font-size: 14px;
  }

  .nav-rank:hover {
    box-shadow: none;
    transform: none;
  }

  .menu-toggle {
    display: block;
  }

  .mobile-rank-short {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 12px;
    color: var(--ink);
    background: var(--peach);
    border: 1px solid rgba(24, 20, 29, 0.16);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 750;
    white-space: nowrap;
  }

  .hero {
    padding-top: 35px;
  }

  .hero h1 {
    font-size: clamp(45px, 10.5vw, 66px);
  }

  .hero-lead {
    margin-top: 20px;
  }

  .hero-actions .btn {
    flex: 1 1 200px;
  }

  .hero-facts {
    gap: 8px 0;
    font-size: 11.5px;
  }

  .hero-facts li + li::before {
    margin: 0 8px;
  }

  .hero-visual {
    min-height: 535px;
  }

  .float-card-a {
    left: 0;
  }

  .float-card-b {
    right: 0;
  }

  .feature-node,
  .feature-sub,
  .feature-route,
  .feature-perapp {
    grid-column: span 12;
    min-height: 290px;
  }

  .feature-sub {
    min-height: 245px;
  }

  .feature-route {
    min-height: 260px;
  }

  .feature-perapp {
    min-height: 250px;
  }

  .modes-top {
    display: block;
  }

  .modes-top p {
    margin-top: 13px;
  }

  .modes-foot {
    display: block;
  }

  .modes-foot a {
    display: inline-block;
    margin-top: 5px;
  }

  .post-row {
    grid-template-columns: 38px minmax(0, 1fr) 25px;
    gap: 14px;
  }

  .post-meta {
    display: none;
  }

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

  .download-band-actions .btn {
    flex: 1 1 180px;
  }

  .footer-inner {
    flex-wrap: wrap;
    gap: 19px;
  }

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

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

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

  .split-content {
    grid-template-columns: 1fr;
  }

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

  .article-card,
  .article-card:first-child {
    grid-column: auto;
    min-height: 250px;
  }

  .article-card:first-child {
    min-height: 280px;
  }

  .inline-rank {
    display: block;
  }

  .inline-rank .btn {
    width: 100%;
    margin-top: 15px;
  }

  .rank-note {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .mobile-dock {
    position: fixed;
    right: 12px;
    bottom: 12px;
    left: 12px;
    z-index: 90;
    display: grid;
    grid-template-columns: 0.82fr 1.18fr;
    gap: 7px;
    padding: 7px;
    background: rgba(255, 253, 248, 0.9);
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    box-shadow: 0 14px 45px rgba(31, 21, 45, 0.18);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: transform 220ms ease, opacity 220ms ease;
  }

  .mobile-dock.is-tucked {
    opacity: 0;
    pointer-events: none;
    transform: translateY(calc(100% + 22px));
  }

  .mobile-dock a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 43px;
    padding: 0 9px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 750;
    text-align: center;
  }

  .mobile-dock .dock-download {
    color: var(--ink);
    border: 1px solid var(--line);
  }

  .mobile-dock .dock-rank {
    color: var(--ink);
    background: var(--peach);
    border: 1px solid rgba(24, 20, 29, 0.16);
  }

  body {
    padding-bottom: 75px;
  }

  .site-footer {
    margin-top: 55px;
  }
}

@media (max-width: 620px) {
  .hero-visual {
    min-height: 485px;
  }

  .phone-wrap {
    width: 263px;
  }

  .phone {
    min-height: 494px;
    border-radius: 40px;
  }

  .phone-screen {
    min-height: 468px;
    padding-right: 13px;
    padding-left: 13px;
    border-radius: 30px;
  }

  .phone-title {
    font-size: 20px;
  }

  .float-card {
    padding: 10px 12px;
  }

  .float-card-a {
    top: 36px;
    left: -2px;
  }

  .float-card-b {
    right: -2px;
    bottom: 56px;
  }

  .float-card strong {
    font-size: 10px;
  }

  .float-card span {
    font-size: 8px;
  }

  .hero-orbit {
    width: 390px;
    height: 390px;
  }

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

  .article-hero h1 {
    font-size: clamp(32px, 8.7vw, 44px);
  }

  .modes-panel {
    padding: 27px 22px;
    border-radius: 24px;
  }

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

  .mode,
  .mode + .mode {
    min-height: auto;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-right: 0;
    border-left: 0;
  }

  .mode:first-child {
    border-top: 0;
  }

  .mode-index {
    margin-bottom: 13px;
  }

  .rank-promo {
    padding: 27px 23px;
    border-radius: 24px;
  }

  .rank-promo-side {
    display: block;
  }

  .rank-promo .btn {
    width: 100%;
    margin-top: 18px;
  }

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

  .airport-card,
  .airport-card.featured {
    min-height: 0;
  }

  .airport-desc {
    min-height: 0;
  }

  .airport-footer {
    margin-top: 16px;
  }

  .airport-cta {
    flex-basis: 125px;
    min-height: 45px;
  }

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

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

  .apk-card {
    min-height: 195px;
  }

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

  .article-body > p:first-child {
    font-size: 18px;
  }

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

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

  .article-nav .next {
    text-align: left;
  }

  .article-hero {
    padding-top: 28px;
  }

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

  .release-panel {
    padding: 24px 21px;
  }

  .filter-bar {
    display: block;
  }

  .filter-result {
    margin-top: 10px;
  }

  .post-copy p {
    display: none;
  }

  .post-row {
    padding: 19px 0;
  }

  .post-copy h3 {
    font-size: 20px;
  }

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

  .download-band-actions .btn {
    width: 100%;
  }

  .spec-panel {
    padding: 22px;
  }

  .spec-list div {
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 12px;
  }
}

@media (max-width: 400px) {
  .container {
    width: calc(100% - 28px);
  }

  .header-side {
    gap: 6px;
  }

  .mobile-rank-short {
    padding: 0 9px;
    font-size: 11px;
  }

  .brand {
    gap: 9px;
  }

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

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

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

  .hero-visual {
    min-height: 455px;
  }

  .phone-wrap {
    width: 243px;
  }

  .phone {
    min-height: 456px;
  }

  .phone-screen {
    min-height: 430px;
  }

  .float-card-a {
    top: 16px;
  }

  .float-card-b {
    bottom: 29px;
  }

  .airport-footer {
    display: block;
  }

  .airport-cta {
    width: 100%;
    margin-top: 14px;
  }

  .airport-price strong {
    font-size: 19px;
  }

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

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

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

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