/* ==========================================================================
   子虚亭 · Fable Pavilion — Editorial Official Homepage
   Grounded in src/web/theme/pavilion-palette.ts & desktop management aesthetics
   ========================================================================== */

:root,
[data-theme='pavilion-light'] {
  --canvas: #f6f2ea;
  --surface: #fffcf5;
  --surface-subtle: #efeae0;
  --surface-hover: #e8e2d6;
  --ink: #24343a;
  --muted: #53625f;
  --line: #d9d2c3;
  --border: #c5beb0;
  --accent: #2b665d;
  --on-accent: #fffcf5;
  --accent-hover: #20564f;
  --soft: #ddece6;
  --on-soft: #244e47;
  --gold: #957039;
  --gold-line: rgba(149, 112, 57, 0.36);
  --shadow: rgba(36, 52, 58, 0.08);
  --shadow-lg: rgba(24, 38, 42, 0.16);
  --nav-bg: rgba(246, 242, 234, 0.84);
  --hero-veil-start: rgba(246, 242, 234, 0.96);
  --hero-veil-mid: rgba(246, 242, 234, 0.8);
  --hero-veil-end: rgba(246, 242, 234, 0.08);
  --hero-mobile-top: rgba(246, 242, 234, 0.96);
  --hero-mobile-mid: rgba(246, 242, 234, 0.78);
  --hero-mobile-end: rgba(246, 242, 234, 0.18);
  --monolith-bg: #1b2f33;
  --monolith-ink: #f6f2ea;
  --monolith-muted: #b7c8c3;
  --monolith-line: rgba(216, 179, 106, 0.3);
  --monolith-accent: #8cc9bb;
  --ornament-opacity: 0.24;
  color-scheme: light;
}

[data-theme='pavilion-dark'] {
  --canvas: #152126;
  --surface: #1b2b30;
  --surface-subtle: #1e3136;
  --surface-hover: #273e42;
  --ink: #f6f2ea;
  --muted: #b2c3be;
  --line: #31474b;
  --border: #466064;
  --accent: #8cc9bb;
  --on-accent: #102e29;
  --accent-hover: #a8dacd;
  --soft: #243f41;
  --on-soft: #e2ede7;
  --gold: #d8b36a;
  --gold-line: rgba(216, 179, 106, 0.34);
  --shadow: rgba(0, 0, 0, 0.36);
  --shadow-lg: rgba(0, 0, 0, 0.56);
  --nav-bg: rgba(21, 33, 38, 0.84);
  --hero-veil-start: rgba(21, 33, 38, 0.96);
  --hero-veil-mid: rgba(21, 33, 38, 0.78);
  --hero-veil-end: rgba(21, 33, 38, 0.1);
  --hero-mobile-top: rgba(21, 33, 38, 0.95);
  --hero-mobile-mid: rgba(21, 33, 38, 0.76);
  --hero-mobile-end: rgba(21, 33, 38, 0.2);
  --monolith-bg: #1e3338;
  --monolith-ink: #f6f2ea;
  --monolith-muted: #b8c9c4;
  --monolith-line: rgba(216, 179, 106, 0.34);
  --monolith-accent: #8cc9bb;
  --ornament-opacity: 0.3;
  color-scheme: dark;
}

:root {
  --font-serif: 'Noto Serif CJK SC', 'Source Han Serif SC', 'Songti SC', 'STSong', 'Noto Serif', Georgia, serif;
  --font-sans:
    -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei',
    'Inter', 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', ui-monospace, Menlo, Monaco, Consolas, monospace;

  --container: 1160px;
  --nav-height: 68px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--canvas);
  transition:
    background-color 0.45s var(--ease),
    color 0.35s var(--ease);
  overflow-x: clip;
}

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

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

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

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

/* Theme-switched real screenshots (zero layout shift crossfade) */
.shot-pair {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
}

.shot-pair img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.45s var(--ease);
}

.shot-pair .shot-dark {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
}

[data-theme='pavilion-dark'] .shot-pair .shot-light {
  opacity: 0;
}

[data-theme='pavilion-dark'] .shot-pair .shot-dark {
  opacity: 1;
}

/* Signature Pavilion Double-Diamond Hairline Rule */
.pavilion-rule {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  margin: 0;
}

.pavilion-rule::before,
.pavilion-rule::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-line), var(--gold-line));
}

.pavilion-rule::after {
  background: linear-gradient(90deg, var(--gold-line), var(--gold-line), transparent);
}

.pavilion-rule-diamonds {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--gold);
  opacity: 0.78;
}

.pavilion-rule-diamonds i {
  display: block;
  width: 6px;
  height: 6px;
  border: 1px solid currentColor;
  transform: rotate(45deg);
}

/* ==========================================================================
   Header / Navigation
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition:
    background-color 0.35s var(--ease),
    border-color 0.35s var(--ease),
    backdrop-filter 0.35s var(--ease);
}

.site-header.is-scrolled {
  background: var(--nav-bg);
  border-bottom-color: color-mix(in srgb, var(--line) 80%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

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

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

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  box-shadow: 0 2px 8px var(--shadow);
  object-fit: cover;
}

.brand-wordmark {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.brand-zh {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1;
}

.brand-en {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s var(--ease);
}

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

.nav-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.control-pill {
  height: 34px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--line) 90%, transparent);
  background: color-mix(in srgb, var(--surface) 76%, transparent);
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(8px);
  transition:
    background-color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.control-pill:hover {
  background: var(--surface-hover);
  border-color: var(--border);
}

.control-pill svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 500;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
  transition:
    background-color 0.22s var(--ease),
    border-color 0.22s var(--ease),
    color 0.22s var(--ease),
    transform 0.22s var(--ease),
    box-shadow 0.22s var(--ease);
}

.btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.btn-sm {
  height: 34px;
  padding: 0 15px;
  font-size: 13.5px;
}

.btn-lg {
  height: 46px;
  padding: 0 26px;
  font-size: 15px;
}

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 4px 16px color-mix(in srgb, var(--accent) 24%, transparent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 30%, transparent);
}

.btn-secondary {
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  color: var(--ink);
  border-color: var(--border);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: var(--surface-hover);
  border-color: var(--ink);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  padding-inline: 10px;
}

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

.mobile-menu-btn {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  align-items: center;
  justify-content: center;
}

.mobile-drawer {
  display: none;
  position: fixed;
  inset: var(--nav-height) 0 auto 0;
  z-index: 49;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 16px 24px 22px;
  box-shadow: 0 16px 40px var(--shadow-lg);
}

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

.mobile-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 16px;
}

.mobile-drawer-links a {
  padding: 11px 8px;
  font-size: 15px;
  font-weight: 500;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}

/* ==========================================================================
   Act 1: Full-Bleed Cloud-Sea Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: clamp(620px, 84vh, 800px);
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-height) + 48px);
  padding-bottom: 84px;
  overflow: hidden;
}

.hero-scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-art {
  position: absolute;
  inset: 0;
  background-position: right center;
  background-size: cover;
  background-repeat: no-repeat;
  transition: opacity 0.75s var(--ease);
}

.hero-art-day {
  background-image: url('./assets/moon-white.webp');
  opacity: 1;
}

.hero-art-night {
  background-image: url('./assets/night-pavilion.webp');
  opacity: 0;
}

[data-theme='pavilion-dark'] .hero-art-day {
  opacity: 0;
}

[data-theme='pavilion-dark'] .hero-art-night {
  opacity: 1;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    var(--hero-veil-start) 0%,
    var(--hero-veil-start) 28%,
    var(--hero-veil-mid) 50%,
    var(--hero-veil-end) 82%,
    transparent 100%
  );
}

.hero-bottom-fade {
  position: absolute;
  inset: auto 0 0 0;
  height: 150px;
  background: linear-gradient(to bottom, transparent, var(--canvas));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 22px;
}

.hero-kicker::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--gold);
}

.hero-title {
  margin: 0 0 22px;
  font-family: var(--font-serif);
  font-size: clamp(36px, 4.8vw, 58px);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.01em;
}

.hero-lead {
  margin: 0 0 34px;
  font-size: clamp(16px, 1.35vw, 17.5px);
  line-height: 1.82;
  color: var(--muted);
  max-width: 530px;
}

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

.hero-pillars {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  padding-top: 22px;
  border-top: 1px solid color-mix(in srgb, var(--gold-line) 90%, var(--line));
  font-size: 13.5px;
  color: var(--muted);
}

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

.hero-pillars i {
  display: inline-block;
  width: 5px;
  height: 5px;
  transform: rotate(45deg);
  background: var(--gold);
  opacity: 0.85;
}

.hero-scene-switcher {
  position: absolute;
  right: max(24px, calc((100vw - var(--container)) / 2));
  bottom: 32px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--line) 85%, transparent);
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 6px 20px var(--shadow);
}

.scene-chip {
  border: 0;
  background: transparent;
  padding: 5px 13px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition:
    background-color 0.25s var(--ease),
    color 0.25s var(--ease);
}

.scene-chip.is-active {
  background: var(--accent);
  color: var(--on-accent);
}

.scene-chip svg {
  width: 13px;
  height: 13px;
}

/* ==========================================================================
   Act 1B: Hero Multi-Device Real Screenshot Composition
   ========================================================================== */
.hero-stage-band {
  padding: 16px 0 88px;
  position: relative;
  z-index: 4;
}

.hero-stage-composition {
  position: relative;
  padding-bottom: 32px;
}

.hero-desktop-frame {
  width: min(100%, 910px);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow:
    0 24px 70px var(--shadow-lg),
    0 2px 10px var(--shadow);
}

.hero-mobile-frame {
  position: absolute;
  right: 0;
  bottom: 0;
  width: clamp(185px, 22vw, 256px);
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow:
    0 28px 64px var(--shadow-lg),
    0 0 0 6px color-mix(in srgb, var(--canvas) 76%, transparent);
}

.stage-caption-bar {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13.5px;
  color: var(--muted);
  max-width: 840px;
}

.stage-device-tags {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 14px;
}

.stage-device-tags span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.stage-device-tags span::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* ==========================================================================
   Shared Editorial Section Headers
   ========================================================================== */
.section {
  padding: 96px 0;
  position: relative;
}

.section-header {
  max-width: 660px;
  margin-bottom: 48px;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-kicker::before {
  content: '';
  width: 18px;
  height: 1px;
  background: var(--gold);
}

.section-title {
  margin: 0 0 14px;
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 700;
  line-height: 1.24;
  color: var(--ink);
}

.section-desc {
  margin: 0;
  font-size: 16px;
  color: var(--muted);
  line-height: 1.8;
}

/* ==========================================================================
   Act 2: Real Screenshot Gallery (界面一瞥)
   ========================================================================== */
.gallery-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 30px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
}

.gallery-tab {
  position: relative;
  border: 0;
  background: transparent;
  padding: 12px 2px 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  transition: color 0.2s var(--ease);
}

.gallery-tab::after {
  content: '';
  position: absolute;
  inset: auto 0 -1px 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

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

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

.gallery-tab.is-active::after {
  transform: scaleX(1);
}

.tab-num {
  font-family: var(--font-serif);
  font-size: 12.5px;
  color: var(--gold);
}

.gallery-panel {
  display: none;
  grid-template-columns: minmax(0, 1.48fr) minmax(0, 0.72fr);
  gap: 48px;
  align-items: center;
}

.gallery-panel.is-active {
  display: grid;
  animation: fadeSlide 0.38s var(--ease);
}

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

.gallery-shot-frame {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 22px 60px var(--shadow-lg);
}

/* Portrait dual-theme display for mobile tab */
.gallery-mobile-duo {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  padding: 28px 24px;
  border-radius: 20px;
  background: var(--surface-subtle);
  border: 1px solid var(--line);
}

.mobile-duo-item {
  width: min(46%, 268px);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 20px 48px var(--shadow-lg);
}

.mobile-duo-item img {
  width: 100%;
  height: auto;
}

.gallery-caption h3 {
  margin: 0 0 14px;
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 700;
  line-height: 1.32;
}

.gallery-caption p {
  margin: 0 0 24px;
  font-size: 15.5px;
  line-height: 1.82;
  color: var(--muted);
}

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

.gallery-points li {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink);
  padding-left: 16px;
  position: relative;
}

.gallery-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  transform: rotate(45deg);
  background: var(--gold);
}

/* ==========================================================================
   Act 3: Open Editorial Capabilities Index (NO boxy card grid!)
   ========================================================================== */
.editorial-index {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 64px;
  align-items: start;
}

.editorial-sticky {
  position: sticky;
  top: calc(var(--nav-height) + 32px);
}

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

.capability-item {
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.capability-num {
  display: block;
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 10px;
}

.capability-item h3 {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: 19.5px;
  font-weight: 700;
  line-height: 1.35;
}

.capability-item p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.76;
  color: var(--muted);
}

/* ==========================================================================
   Act 4: Convenient Connection & Local-Only Private Key Manifesto
   ========================================================================== */
.security-spread {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: 56px;
  align-items: stretch;
  margin-bottom: 44px;
}

.connect-steps {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.connect-row {
  padding: 24px 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

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

.connect-index {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1.25;
}

.connect-row h3 {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 700;
}

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

/* The Zero-Knowledge Local-Key Monolith */
.zk-monolith {
  position: relative;
  padding: 44px 40px;
  border-radius: 22px;
  background: var(--monolith-bg);
  color: var(--monolith-ink);
  border: 1px solid var(--monolith-line);
  box-shadow: 0 24px 60px var(--shadow-lg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  overflow: hidden;
}

.zk-monolith::after {
  content: '';
  position: absolute;
  inset: -4px -2px auto auto;
  width: 190px;
  height: 112px;
  background-color: #d8b36a;
  opacity: 0.28;
  -webkit-mask: url('./assets/cloud-lattice.webp') top right / 100% auto no-repeat;
  mask: url('./assets/cloud-lattice.webp') top right / 100% auto no-repeat;
  pointer-events: none;
}

.zk-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--monolith-accent);
  margin-bottom: 18px;
}

.zk-monolith h3 {
  margin: 0 0 18px;
  font-family: var(--font-serif);
  font-size: clamp(24px, 2.4vw, 31px);
  font-weight: 700;
  line-height: 1.32;
  color: var(--monolith-ink);
}

.zk-monolith p {
  margin: 0;
  font-size: 15px;
  line-height: 1.82;
  color: var(--monolith-muted);
}

.zk-guarantees {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding-top: 24px;
  border-top: 1px solid var(--monolith-line);
}

.zk-guarantee strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 14.5px;
  color: var(--monolith-ink);
  margin-bottom: 4px;
}

.zk-guarantee span {
  display: block;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--monolith-muted);
}

/* Minimal Architectural Data-Flow Strip */
.flow-ribbon {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 26px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.flow-node strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 16px;
  margin-bottom: 4px;
}

.flow-node span {
  display: block;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.55;
}

.flow-arrow {
  color: var(--gold);
  font-size: 18px;
  user-select: none;
}

/* ==========================================================================
   Act 5: Cloud-Sea Pavilion Visual Interlude
   ========================================================================== */
.pavilion-spread {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 56px;
  align-items: center;
}

.pavilion-painting {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 22px 54px var(--shadow-lg);
}

.pavilion-painting img {
  width: 100%;
  aspect-ratio: 16 / 9.4;
  object-fit: cover;
}

.pavilion-painting figcaption {
  position: absolute;
  inset: auto 16px 16px 16px;
  padding: 10px 15px;
  border-radius: 12px;
  background: rgba(21, 33, 38, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #f6f2ea;
  font-size: 12.5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.companions-strip {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 18px;
}

.companion-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.companion-row img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--surface);
  flex-shrink: 0;
}

.companion-row.is-spirit img {
  object-fit: contain;
  padding: 4px;
}

.companion-row strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 15.5px;
}

.companion-row span {
  display: block;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.55;
}

.app-icons-row {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.app-icons-row > span {
  font-size: 13px;
  color: var(--muted);
}

.app-icons-group {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.app-icon-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--muted);
}

.app-icon-chip img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid var(--line);
}

/* ==========================================================================
   Act 6: Closing Start Band & Minimalist Footer
   ========================================================================== */
.start-band {
  padding: 88px 0 96px;
}

.start-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  padding-top: 44px;
  border-top: 1px solid var(--line);
}

.start-col,
.editorial-index > *,
.security-spread > *,
.gallery-panel > *,
.pavilion-spread > * {
  min-width: 0;
}

.start-col h3 {
  margin: 0 0 12px;
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
}

.start-col > p {
  margin: 0 0 22px;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.78;
}

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

.start-list li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 14.5px;
  color: var(--ink);
}

.start-list b {
  font-family: var(--font-serif);
  font-size: 13px;
  color: var(--gold);
  flex-shrink: 0;
}

.code-block {
  margin: 0 0 28px;
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--ink);
  overflow-x: auto;
}

.code-block .cmd-muted {
  color: var(--muted);
}

.start-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

/* Footer */
.site-footer {
  padding: 48px 0 56px;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 36px;
}

.footer-brand p {
  margin: 12px 0 0;
  font-size: 13.5px;
  color: var(--muted);
  max-width: 360px;
  line-height: 1.68;
}

.footer-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
}

.footer-col h4 {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

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

.footer-col a {
  font-size: 13.5px;
  color: var(--muted);
  transition: color 0.2s var(--ease);
}

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

.footer-bottom {
  margin-top: 38px;
  padding-top: 20px;
  border-top: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12.5px;
  color: var(--muted);
}

/* Subtle reveal */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.65s var(--ease),
    transform 0.65s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .editorial-index,
  .security-spread,
  .pavilion-spread,
  .gallery-panel {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .editorial-sticky {
    position: static;
  }

  .flow-ribbon {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .flow-arrow {
    transform: rotate(90deg);
    justify-self: start;
  }
}

@media (max-width: 860px) {
  .nav-links,
  .nav-cta-desktop {
    display: none;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }

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

  .hero-mobile-frame {
    width: 200px;
    border-radius: 20px;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 32px, var(--container));
  }

  .brand-en {
    display: none;
  }

  .hero {
    min-height: 620px;
    align-items: flex-start;
    padding-top: calc(var(--nav-height) + 34px);
    padding-bottom: 185px;
  }

  .hero-art {
    background-position: right bottom;
    background-size: 165% auto;
  }

  .hero-veil {
    background: linear-gradient(
      to bottom,
      var(--hero-mobile-top) 0%,
      var(--hero-mobile-top) 48%,
      var(--hero-mobile-mid) 70%,
      var(--hero-mobile-end) 100%
    );
  }

  .hero-scene-switcher {
    right: 16px;
    bottom: 20px;
  }

  .hero-stage-composition {
    padding-bottom: 0;
  }

  .hero-mobile-frame {
    position: static;
    width: min(76%, 270px);
    margin: 20px auto 0;
    box-shadow: 0 18px 44px var(--shadow-lg);
  }

  .section,
  .start-band {
    padding: 68px 0;
  }

  .capability-list,
  .zk-guarantees {
    grid-template-columns: 1fr;
  }

  .zk-monolith {
    padding: 30px 24px;
  }

  .gallery-mobile-duo {
    padding: 18px 14px;
    gap: 12px;
  }

  .mobile-duo-item {
    border-radius: 16px;
  }

  .control-pill .pill-label-hide-sm {
    display: none;
  }
}

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

  .reveal,
  .hero-art,
  .shot-pair img {
    transition: none;
    animation: none;
    opacity: 1;
    transform: none;
  }
}
