:root {
  --accent: #0d9488;
  --accent-hover: #0f766e;
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --card: #f5f5f7;
  --card-elev: #ffffff;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.16);
  --nav-bg: rgba(255, 255, 255, 0.84);
  --hero-bg: #ffffff;
  --hero-text: #1d1d1f;
  --hero-sub: #6e6e73;
  --hero-kicker-bg: #f5f5f7;
  --hero-kicker-border: rgba(0, 0, 0, 0.08);
  --hero-btn-bg: #1d1d1f;
  --hero-btn-text: #ffffff;
  --hero-ghost-bg: #ffffff;
  --hero-ghost-text: #1d1d1f;
  --hero-ghost-border: rgba(0, 0, 0, 0.16);
  --stage-bg: #f5f5f7;
  --stage-border: rgba(0, 0, 0, 0.1);
  --stage-shadow: 0 28px 72px rgba(0, 0, 0, 0.11);
  --pill-bg: #1d1d1f;
  --pill-text: #ffffff;
  --page-hero-bg: #f5f5f7;
  --page-hero-text: #1d1d1f;
  --page-hero-sub: #6e6e73;
  --radius-lg: 22px;
  --radius-md: 14px;
  --max-w: 1120px;
}
[data-theme="light"] {
  --bg: #ffffff; --bg-alt: #f5f5f7; --card: #f5f5f7; --card-elev: #ffffff;
  --text: #1d1d1f; --text-2: #6e6e73;
  --border: rgba(0, 0, 0, 0.08); --border-strong: rgba(0, 0, 0, 0.16);
  --nav-bg: rgba(255, 255, 255, 0.85);
  --hero-bg: #ffffff; --hero-text: #1d1d1f; --hero-sub: #6e6e73;
  --hero-kicker-bg: #f5f5f7; --hero-kicker-border: rgba(0, 0, 0, 0.08);
  --hero-btn-bg: #1d1d1f; --hero-btn-text: #ffffff;
  --hero-ghost-bg: #ffffff; --hero-ghost-text: #1d1d1f; --hero-ghost-border: rgba(0, 0, 0, 0.16);
  --stage-bg: #f5f5f7; --stage-border: rgba(0, 0, 0, 0.1); --stage-shadow: 0 28px 72px rgba(0, 0, 0, 0.11);
  --pill-bg: #1d1d1f; --pill-text: #ffffff;
  --page-hero-bg: #f5f5f7; --page-hero-text: #1d1d1f; --page-hero-sub: #6e6e73;
}
[data-theme="dark"] {
  --bg: #050507; --bg-alt: #0c0c10; --card: #111116; --card-elev: #16161d;
  --text: #f5f5f7; --text-2: #8e8e93;
  --border: rgba(255, 255, 255, 0.09); --border-strong: rgba(255, 255, 255, 0.18);
  --nav-bg: rgba(5, 5, 7, 0.8);
  --hero-bg: #050507; --hero-text: #ffffff; --hero-sub: #9a9aa1;
  --hero-kicker-bg: rgba(255, 255, 255, 0.05); --hero-kicker-border: rgba(255, 255, 255, 0.14);
  --hero-btn-bg: #ffffff; --hero-btn-text: #050507;
  --hero-ghost-bg: rgba(255, 255, 255, 0.06); --hero-ghost-text: #f5f5f7; --hero-ghost-border: rgba(255, 255, 255, 0.16);
  --stage-bg: #0e0e13; --stage-border: rgba(255, 255, 255, 0.13);
  --stage-shadow: 0 -12px 70px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  --pill-bg: #ffffff; --pill-text: #050507;
  --page-hero-bg: #0c0c10; --page-hero-text: #ffffff; --page-hero-sub: #8e8e93;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15.5px;
  line-height: 1.65;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; transition: opacity .18s ease, color .18s ease, border-color .18s ease; }
a:hover { opacity: .82; }
img { max-width: 100%; height: auto; display: block; }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: .85em; padding: 2px 6px; border-radius: 6px;
  background: var(--bg-alt); border: 1px solid var(--border);
}
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* Reading Progress Bar */
.read-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%; z-index: 100;
  background: var(--accent); transition: width .08s linear;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 56px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: .96rem; color: var(--text); letter-spacing: -0.02em; }
.brand:hover { opacity: 1; }
.brand-icon { width: 26px; height: 26px; border-radius: 7px; object-fit: cover; flex-shrink: 0; }
.brand-ver {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .72rem; color: var(--text-2); padding: 1px 8px; border-radius: 999px;
  border: 1px solid var(--border);
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--text-2); font-size: .86rem; font-weight: 500; position: relative; padding: 4px 0; }
.nav-links a:hover, .nav-links a.active { color: var(--text); opacity: 1; }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -16px; height: 2px; background: var(--text);
}
.nav-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 34px; height: 34px; border-radius: 999px; border: 1px solid var(--border);
  background: transparent; color: var(--text-2); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.icon-btn:hover { color: var(--text); border-color: var(--border-strong); background: var(--bg-alt); }
.icon-btn svg { width: 16px; height: 16px; }
.menu-btn { display: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 11px 24px; border-radius: 980px; font-weight: 500; font-size: .93rem;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .2s cubic-bezier(.16,1,.3,1), opacity .18s ease, background .18s ease, border-color .18s ease;
}
.btn svg { width: 16px; height: 16px; }
.btn:hover { opacity: 1; transform: translateY(-1px); }
.btn-primary { background: var(--pill-bg); color: var(--pill-text); }
.btn-primary:hover { opacity: .88; color: var(--pill-text); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--bg-alt); }
.btn-group { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* Archetype-Aware Hero Stage */
.hero-stage {
  background: var(--hero-bg);
  color: var(--hero-text);
  padding: 80px 0 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero-stage::before {
  content: ""; position: absolute; top: -180px; left: 50%; transform: translateX(-50%);
  width: 860px; height: 380px; pointer-events: none;
  background: radial-gradient(ellipse at center, color-mix(in srgb, var(--accent) 15%, transparent) 0%, transparent 70%);
}
.hero-inner { position: relative; z-index: 2; max-width: 840px; margin: 0 auto; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .81rem; font-weight: 500; color: var(--hero-sub);
  padding: 5px 14px; border-radius: 999px;
  border: 1px solid var(--hero-kicker-border);
  background: var(--hero-kicker-bg);
  margin-bottom: 22px;
}
.hero-stage h1 {
  margin: 0 0 18px;
  font-size: clamp(2.15rem, 4.6vw, 3.55rem);
  font-weight: 700; line-height: 1.1; letter-spacing: -0.035em;
  color: var(--hero-text); text-wrap: balance;
}
.hero-stage p.lead {
  margin: 0 auto 30px; max-width: 650px;
  font-size: clamp(.98rem, 1.4vw, 1.12rem); line-height: 1.62;
  color: var(--hero-sub);
}
.hero-btn-primary { background: var(--hero-btn-bg); color: var(--hero-btn-text); }
.hero-btn-primary:hover { opacity: .88; color: var(--hero-btn-text); }
.hero-btn-ghost { background: var(--hero-ghost-bg); color: var(--hero-ghost-text); border-color: var(--hero-ghost-border); }
.hero-btn-ghost:hover { border-color: var(--accent); color: var(--hero-ghost-text); }

/* Showcase Stage */
.stage-showcase {
  position: relative; z-index: 2;
  max-width: 980px; margin: 52px auto 0;
  border-radius: 22px 22px 0 0;
  border: 1px solid var(--stage-border);
  border-bottom: none;
  background: var(--stage-bg);
  padding: 12px 12px 0;
  box-shadow: var(--stage-shadow);
}
.stage-showcase img.stage-desktop {
  width: 100%; max-height: 490px; object-fit: cover; object-position: top center;
  border-radius: 12px 12px 0 0; cursor: zoom-in;
}
.stage-mobile-trio {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  padding: 18px 22px 26px;
}
.stage-mobile-trio img {
  width: 100%; max-height: 440px; object-fit: cover; border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18); cursor: zoom-in;
}
.stage-spec-panel {
  padding: 28px 32px 34px; text-align: left;
  display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center;
}
.stage-spec-panel img { width: 72px; height: 72px; border-radius: 18px; }
.stage-spec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stage-spec-item { border-left: 1px solid var(--border); padding-left: 16px; }
.stage-spec-item .v { font-size: 1.12rem; font-weight: 700; color: var(--hero-text); }
.stage-spec-item .k { font-size: .8rem; color: var(--hero-sub); margin-top: 3px; }

/* Metrics Bar */
.metrics-bar { background: var(--bg-alt); border-bottom: 1px solid var(--border); padding: 28px 0; }
.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.metric-val { font-size: 1.48rem; font-weight: 700; letter-spacing: -0.025em; color: var(--text); }
.metric-label { font-size: .82rem; color: var(--text-2); margin-top: 3px; }

/* Sections */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { margin-bottom: 40px; max-width: 720px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head h2 {
  margin: 0 0 12px; font-size: clamp(1.7rem, 3vw, 2.38rem);
  font-weight: 700; letter-spacing: -0.03em; line-height: 1.16; text-wrap: balance;
}
.section-head p { margin: 0; color: var(--text-2); font-size: 1rem; }

/* Asymmetric Bento Grid */
.bento-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.bento-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 30px 32px;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: transform .25s cubic-bezier(.16,1,.3,1), border-color .25s ease;
}
.bento-card:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.bento-card.span-7 { grid-column: span 7; }
.bento-card.span-5 { grid-column: span 5; }
.bento-card.span-6 { grid-column: span 6; }
.bento-num { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .76rem; color: var(--text-2); margin-bottom: 16px; }
.bento-card h3 { margin: 0 0 10px; font-size: 1.2rem; font-weight: 600; letter-spacing: -0.02em; }
.bento-card p { margin: 0; color: var(--text-2); font-size: .94rem; line-height: 1.65; }

/* Standard Grids & Cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-single { max-width: 680px; margin: 0 auto; }
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column;
}
.section-alt .card { background: var(--card-elev); }
.card h3 { margin: 0 0 10px; font-size: 1.1rem; font-weight: 600; letter-spacing: -0.015em; }
.card p { margin: 0; color: var(--text-2); font-size: .93rem; }

/* Tags with Checkmarks */
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tag {
  display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px; border-radius: 999px;
  font-size: .8rem; font-weight: 500;
  background: var(--bg); color: var(--text); border: 1px solid var(--border);
}
.tag-check { color: #10b981; font-weight: 700; }

/* Comparison Table Highlight */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--card-elev); }
table { width: 100%; border-collapse: collapse; font-size: .91rem; }
th, td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border); }
th { background: var(--card); font-weight: 600; color: var(--text); white-space: nowrap; }
tr:last-child td { border-bottom: none; }
tr.row-highlight td { background: color-mix(in srgb, var(--accent) 6%, var(--card-elev)); font-weight: 500; }
tr.row-highlight td:first-child { color: var(--accent); font-weight: 700; }

/* Official Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.gallery-item { margin: 0; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--card); }
.gallery-item img { width: 100%; height: 260px; object-fit: cover; object-position: top center; cursor: zoom-in; }
.gallery-item.portrait img { height: 360px; object-fit: contain; padding: 16px; }
.gallery-caption { padding: 14px 20px; font-size: .85rem; color: var(--text-2); border-top: 1px solid var(--border); }

/* Editorial Steps */
.step-list { display: grid; gap: 22px; }
.step-card {
  display: grid; grid-template-columns: 44px 1fr; gap: 20px;
  padding: 28px 30px; border-radius: var(--radius-lg);
  background: var(--card); border: 1px solid var(--border);
}
.step-num {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--pill-bg); color: var(--pill-text);
  font-weight: 600; font-size: .88rem; display: flex; align-items: center; justify-content: center;
}
.step-body h3 { margin: 0 0 10px; font-size: 1.15rem; font-weight: 600; letter-spacing: -0.015em; }
.step-body p { margin: 0 0 10px; color: var(--text-2); font-size: .95rem; line-height: 1.72; }
.step-body ul { margin: 8px 0 12px; padding-left: 19px; color: var(--text-2); font-size: .93rem; line-height: 1.7; }
.step-body li { margin-bottom: 7px; }
.step-tip {
  margin: 12px 0; padding: 12px 16px; border-radius: 10px; font-size: .88rem;
  background: var(--card-elev); border: 1px solid var(--border);
  border-left: 3px solid var(--accent); color: var(--text-2);
}
.step-tip strong { color: var(--text); }
.step-figure {
  margin: 18px 0 0; border: 1px solid var(--border); border-radius: 14px;
  overflow: hidden; background: var(--card-elev);
}
.step-figure img { width: 100%; max-height: 440px; object-fit: contain; background: var(--bg-alt); cursor: zoom-in; margin: 0 auto; }
.step-figure.portrait img { max-height: 460px; padding: 14px; }
.step-figure figcaption { padding: 10px 16px; font-size: .83rem; color: var(--text-2); border-top: 1px solid var(--border); }

/* Next-Step Funnel Card */
.next-funnel {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  padding: 24px 28px; margin-top: 38px; border-radius: var(--radius-lg);
  background: var(--card); border: 1px solid var(--border);
}
.next-funnel h3 { margin: 0 0 4px; font-size: 1.06rem; }
.next-funnel p { margin: 0; color: var(--text-2); font-size: .9rem; }

/* Code Block */
.code-wrap { position: relative; margin-top: 12px; }
pre {
  margin: 0; padding: 16px 18px; border-radius: 12px;
  background: #0d0d10; color: #f5f5f7; border: 1px solid rgba(255,255,255,0.12);
  overflow-x: auto; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .84rem; line-height: 1.65;
}
pre code { background: transparent; border: none; padding: 0; color: inherit; }
.copy-btn {
  position: absolute; top: 10px; right: 10px;
  background: rgba(255,255,255,0.1); color: #f5f5f7; border: 1px solid rgba(255,255,255,0.16);
  border-radius: 999px; padding: 4px 12px; font-size: .75rem; cursor: pointer;
}
.copy-btn:hover { background: rgba(255,255,255,0.2); }

/* Affiliate Spot 1: Sleek Obsidian Strip */
.promo-strip {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding: 24px 30px; margin: 28px 0; border-radius: var(--radius-lg);
  background: #0d0d10; color: #f5f5f7;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.promo-strip h3 { margin: 0 0 4px; font-size: 1.05rem; font-weight: 600; color: #fff; }
.promo-strip p { margin: 0; color: #a1a1a6; font-size: .89rem; max-width: 660px; }
.promo-strip .btn-primary { background: #ffffff; color: #000000; }

/* Affiliate Spot 2: 3-Card Section */
.airport-card { transition: transform .24s cubic-bezier(.16,1,.3,1), border-color .24s ease; }
.airport-card:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.airport-card.featured {
  background: #0d0d10 !important; color: #f5f5f7;
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}
.airport-card.featured p, .airport-card.featured .airport-list { color: #a1a1a6; }
.airport-card.featured .airport-price { color: #ffffff; }
.airport-card.featured .tag { background: rgba(255,255,255,0.08); color: #f5f5f7; border-color: rgba(255,255,255,0.14); }
.airport-card.featured .btn-primary { background: #ffffff; color: #000000; }
.airport-label { font-size: .76rem; font-weight: 600; color: var(--accent); margin-bottom: 8px; }
.airport-price { font-size: 1.2rem; font-weight: 700; color: var(--text); margin: 12px 0; letter-spacing: -0.02em; }
.airport-list { margin: 0 0 18px; padding-left: 17px; color: var(--text-2); font-size: .88rem; flex-grow: 1; }
.airport-list li { margin-bottom: 6px; }

/* Affiliate Spot 3: Dynamic-Island Floating Dock */
.floating-promo {
  position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 95;
  width: min(860px, calc(100% - 28px));
  background: rgba(15, 15, 19, 0.9);
  color: #f5f5f7;
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  padding: 9px 12px 9px 18px;
}
.floating-promo.hidden { display: none; }
.floating-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.floating-info { display: flex; align-items: center; gap: 12px; min-width: 0; }
.floating-badge {
  font-size: .72rem; font-weight: 600; padding: 3px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.14); color: #ffffff; white-space: nowrap;
}
.floating-text { min-width: 0; }
.floating-title { font-weight: 600; font-size: .88rem; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.floating-sub { font-size: .76rem; color: #a1a1a6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.floating-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.floating-cta {
  padding: 7px 16px; font-size: .82rem; border-radius: 999px;
  background: #ffffff; color: #000000; font-weight: 600; white-space: nowrap;
}
.floating-cta:hover { opacity: .9; color: #000000; }
.floating-close {
  width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.06); color: #a1a1a6; cursor: pointer; font-size: .95rem;
  display: inline-flex; align-items: center; justify-content: center;
}
.floating-close:hover { color: #fff; background: rgba(255,255,255,0.16); }

/* In-Site GitHub Release Downloader */
.dl-panel { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px; margin-bottom: 42px; }
.dl-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.dl-ver-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.dl-date { font-size: .82rem; color: var(--text-2); }
.dl-sync-badge { font-size: .75rem; color: #10b981; background: rgba(16,185,129,0.12); padding: 3px 10px; border-radius: 999px; font-weight: 600; }
.dl-channels { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.dl-ch-label { font-size: .82rem; color: var(--text-2); }
.dl-ch-btn {
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg);
  color: var(--text-2); font-size: .79rem; font-weight: 500; cursor: pointer;
}
.dl-ch-btn.active { background: var(--pill-bg); color: var(--pill-text); border-color: var(--pill-bg); }
.dl-rec-box {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 20px 24px; border-radius: 16px; margin-bottom: 18px;
  background: var(--card-elev); border: 1px solid var(--border-strong);
}
.dl-rec-name { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 600; font-size: .92rem; margin-top: 8px; word-break: break-all; }
.dl-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.dl-tab {
  padding: 6px 14px; border-radius: 999px; border: 1px solid transparent;
  background: transparent; color: var(--text-2); font-weight: 500; font-size: .85rem; cursor: pointer;
}
.dl-tab:hover { color: var(--text); }
.dl-tab.active { background: var(--card-elev); color: var(--text); border-color: var(--border); }
.dl-file-list { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; max-height: 400px; overflow-y: auto; }
.dl-file-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--card-elev);
}
.dl-file-row:last-child { border-bottom: none; }
.dl-file-row:hover { background: var(--bg-alt); }
.dl-file-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
.dl-file-name { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .84rem; font-weight: 500; word-break: break-all; }
.dl-size { font-size: .79rem; color: var(--text-2); white-space: nowrap; }
.dl-file-btn { padding: 6px 14px; font-size: .8rem; border-radius: 999px; white-space: nowrap; flex-shrink: 0; }

/* FAQ */
.faq-list { border-top: 1px solid var(--border); }
details.faq-item { border-bottom: 1px solid var(--border); padding: 20px 4px; }
details.faq-item summary {
  cursor: pointer; font-weight: 600; font-size: 1.01rem; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after { content: "+"; font-size: 1.25rem; color: var(--text-2); font-weight: 300; }
details.faq-item[open] summary::after { content: "−"; }
details.faq-item .faq-answer { margin-top: 12px; color: var(--text-2); font-size: .94rem; line-height: 1.7; }

/* Subpage Header & Scroll-Spy TOC */
.page-hero {
  padding: 50px 0 40px; background: var(--page-hero-bg); color: var(--page-hero-text);
  border-bottom: 1px solid var(--border);
}
.breadcrumb { font-size: .82rem; color: var(--page-hero-sub); margin-bottom: 10px; }
.breadcrumb a { color: var(--page-hero-sub); }
.page-hero h1 { margin: 0 0 10px; font-size: clamp(1.75rem, 3.2vw, 2.4rem); font-weight: 700; letter-spacing: -0.03em; color: var(--page-hero-text); }
.page-hero p { margin: 0; color: var(--page-hero-sub); max-width: 720px; font-size: .97rem; }

.guide-layout { display: grid; grid-template-columns: 230px 1fr; gap: 32px; align-items: start; }
.toc-box { position: sticky; top: 76px; padding-right: 14px; border-right: 1px solid var(--border); }
.toc-box h3 { margin: 0 0 12px; font-size: .8rem; color: var(--text-2); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.toc-box ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.toc-box a { font-size: .85rem; color: var(--text-2); display: block; padding: 6px 10px; border-radius: 8px; border-left: 2px solid transparent; }
.toc-box a:hover, .toc-box a.toc-active { color: var(--text); background: var(--card); border-left-color: var(--accent); opacity: 1; font-weight: 600; }

/* Lightbox with Caption */
.lightbox {
  position: fixed; inset: 0; z-index: 120; background: rgba(0,0,0,0.88);
  backdrop-filter: blur(10px);
  display: none; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  padding: 24px; cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 82vh; border-radius: 12px; box-shadow: 0 24px 70px rgba(0,0,0,0.6); }
.lightbox-cap { color: #d1d1d6; font-size: .88rem; max-width: 720px; text-align: center; }

/* Download Triggered Promo Modal */
.dl-modal-backdrop {
  position: fixed; inset: 0; z-index: 140;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.dl-modal-backdrop.open { display: flex; }
.dl-modal {
  width: 100%; max-width: 540px; border-radius: 22px; overflow: hidden;
  background: var(--card-elev); color: var(--text);
  border: 1px solid var(--border-strong);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  animation: modalPop .24s cubic-bezier(.16,1,.3,1);
}
@keyframes modalPop {
  from { opacity: 0; transform: translateY(14px) scale(0.97); }
  to { opacity: 1; transform: none; }
}
.dl-modal-status {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 20px; background: rgba(16, 185, 129, 0.12);
  border-bottom: 1px solid var(--border); font-size: .84rem;
}
.dl-modal-status-text { color: #10b981; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl-modal-close {
  width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--bg); color: var(--text-2); cursor: pointer; font-size: 1rem;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.dl-modal-close:hover { color: var(--text); border-color: var(--border-strong); }
.dl-modal-body { padding: 24px 26px 26px; }
.dl-modal-kicker { font-size: .78rem; font-weight: 600; color: var(--accent); margin-bottom: 6px; }
.dl-modal-body h3 { margin: 0 0 8px; font-size: 1.28rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.3; }
.dl-modal-body p.dl-modal-sub { margin: 0 0 18px; color: var(--text-2); font-size: .9rem; }
.dl-modal-card {
  padding: 16px 18px; border-radius: 14px; margin-bottom: 18px;
  background: #0d0d10; color: #f5f5f7; border: 1px solid rgba(255,255,255,0.14);
}
.dl-modal-card-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.dl-modal-card-name { font-weight: 700; font-size: 1rem; color: #fff; }
.dl-modal-card-price { font-size: .88rem; font-weight: 600; color: #10b981; }
.dl-modal-card-list { margin: 8px 0 0; padding-left: 17px; color: #a1a1a6; font-size: .84rem; }
.dl-modal-card-list li { margin-bottom: 4px; }
.dl-modal-code-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 14px; border-radius: 10px; margin-bottom: 18px;
  background: var(--card); border: 1px dashed var(--border-strong); font-size: .85rem;
}
.dl-modal-code-val { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 700; color: var(--accent); }
.dl-modal-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.dl-modal-actions .btn { flex: 1 1 auto; }
.dl-modal-hint { margin-top: 14px; font-size: .78rem; color: var(--text-2); text-align: center; }

/* Reveal Motion */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s cubic-bezier(.16,1,.3,1), transform .6s cubic-bezier(.16,1,.3,1); }
.reveal.in { opacity: 1; transform: none; }

/* Footer */
.site-footer { background: var(--bg-alt); color: var(--text-2); padding: 54px 0 112px; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 32px; padding-bottom: 28px; border-bottom: 1px solid var(--border); }
.footer-brand { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.site-footer h4 { margin: 0 0 12px; color: var(--text); font-size: .86rem; font-weight: 600; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .86rem; }
.site-footer a { color: var(--text-2); }
.site-footer a:hover { color: var(--text); opacity: 1; }
.footer-bottom { padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .8rem; color: var(--text-2); }

@media (max-width: 920px) {
  .bento-card.span-7, .bento-card.span-5, .bento-card.span-6 { grid-column: span 12; }
  .grid-3, .guide-layout, .footer-grid, .stage-spec-grid { grid-template-columns: 1fr; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .stage-spec-panel { grid-template-columns: 1fr; }
  .toc-box { position: static; border-right: none; border-bottom: 1px solid var(--border); padding-bottom: 16px; }
}
@media (max-width: 680px) {
  .grid-2 { grid-template-columns: 1fr; }
  .menu-btn { display: inline-flex; }
  .nav-links { display: none; position: absolute; top: 56px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--border); flex-direction: column; padding: 14px 24px; align-items: flex-start; gap: 12px; }
  .nav-links.open { display: flex; }
  .nav-links a.active::after { display: none; }
  .step-card { grid-template-columns: 1fr; }
  .floating-promo { border-radius: 18px; bottom: 10px; padding: 10px 14px; }
  .floating-sub, .floating-badge { display: none; }
}
