/* Toolbox for SCUM — Campfire Haven Design System */
:root {
  --bg-dusk: #0d131c;
  --bg-hearth: #120f0c;
  --bg-deep: #0b0907;
  --surface: #1b1612;
  --surface-elevated: #221c16;
  --surface-glass: rgba(16, 13, 11, 0.82);
  --border: rgba(255, 232, 198, 0.09);
  --border-warm: rgba(242, 169, 68, 0.28);
  --text: #f6efe2;
  --text-sub: #a89b87;
  --text-muted: #776d5f;
  --amber: #e89b34;
  --amber-bright: #f6bd60;
  --amber-soft-bg: rgba(232, 155, 52, 0.12);
  --rim: linear-gradient(90deg, transparent 6%, rgba(242, 169, 68, 0.42) 50%, transparent 94%);
  --max-width: 1160px;
  --radius-card: 14px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-hearth);
  color-scheme: dark;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-hearth);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

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

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-width: 0;
}

.nav-brand img {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
  flex-shrink: 0;
}

.nav-brand-name {
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.unofficial-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--amber-bright);
  background: rgba(232, 155, 52, 0.1);
  border: 1px solid rgba(232, 155, 52, 0.25);
  white-space: nowrap;
}

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

.nav-links a {
  text-decoration: none;
  font-size: 0.9rem;
  color: var(--text-sub);
  padding: 4px 0;
  position: relative;
  transition: color 180ms ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
}

.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: var(--amber);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-group {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 240, 215, 0.04);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}

.lang-link {
  text-decoration: none;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  color: var(--text-sub);
  transition: background-color 180ms ease, color 180ms ease;
  white-space: nowrap;
}

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

.lang-link.is-active {
  background: rgba(232, 155, 52, 0.18);
  color: var(--amber-bright);
}

.nav-menu-btn {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255, 240, 215, 0.04);
  align-items: center;
  justify-content: center;
}

.mobile-drawer {
  display: none;
  border-top: 1px solid var(--border);
  background: rgba(16, 13, 11, 0.96);
  padding: 14px 24px 18px;
}

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

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

.mobile-drawer-links a {
  text-decoration: none;
  font-size: 0.96rem;
  color: var(--text-sub);
  padding: 4px 0;
}

.mobile-drawer-links a[aria-current="page"] {
  color: var(--amber-bright);
  font-weight: 600;
}

/* ---------- Hero (Campfire Haven) ---------- */
.hero {
  position: relative;
  min-height: min(92vh, 800px);
  display: flex;
  align-items: center;
  padding: 48px 0 72px;
  overflow-x: clip;
  overflow-y: visible;
  background: var(--bg-dusk);
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-bg-picture,
.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(16, 13, 11, 0.94) 0%, rgba(16, 13, 11, 0.78) 38%, rgba(16, 13, 11, 0.24) 72%, rgba(16, 13, 11, 0.42) 100%),
    linear-gradient(180deg, rgba(13, 19, 28, 0.36) 0%, rgba(13, 19, 28, 0.05) 32%, rgba(18, 15, 12, 0.48) 76%, var(--bg-hearth) 100%);
}

/* Tri-frequency organic campfire glow */
.campfire-fx {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.campfire-glow {
  position: absolute;
  left: 72%;
  top: 78%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  will-change: transform, opacity;
}

.campfire-glow--outer {
  width: 560px;
  height: 420px;
  background: radial-gradient(ellipse at center, rgba(232, 132, 42, 0.22) 0%, rgba(198, 92, 24, 0.08) 45%, transparent 72%);
  animation: fireBreathA 4.7s ease-in-out infinite;
}

.campfire-glow--mid {
  width: 320px;
  height: 260px;
  background: radial-gradient(ellipse at center, rgba(246, 178, 72, 0.24) 0%, rgba(232, 132, 42, 0.09) 50%, transparent 74%);
  animation: fireBreathB 3.1s ease-in-out infinite;
}

.campfire-glow--core {
  width: 170px;
  height: 150px;
  background: radial-gradient(circle at center, rgba(255, 224, 150, 0.22) 0%, rgba(246, 178, 72, 0.06) 55%, transparent 78%);
  animation: fireBreathC 1.9s ease-in-out infinite;
}

@keyframes fireBreathA {
  0%, 100% { opacity: 0.72; transform: translate(-50%, -50%) scale(0.97); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.04); }
}

@keyframes fireBreathB {
  0%, 100% { opacity: 0.65; transform: translate(-50%, -50%) scale(0.95); }
  45% { opacity: 0.98; transform: translate(-50%, -50%) scale(1.05); }
}

@keyframes fireBreathC {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(0.96); }
  55% { opacity: 1; transform: translate(-50%, -50%) scale(1.06); }
}

/* Subtle tower spire double-blink beacon (desktop only) */
.tower-beacon {
  position: absolute;
  left: 66.3%;
  top: 10.8%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff5242;
  box-shadow: 0 0 10px 3px rgba(255, 82, 66, 0.65);
  opacity: 0.1;
  animation: towerBlink 3.8s linear infinite;
}

@keyframes towerBlink {
  0%, 42%, 52%, 62%, 100% { opacity: 0.08; transform: scale(0.8); }
  45%, 48% { opacity: 0.95; transform: scale(1.25); }
  55%, 58% { opacity: 0.9; transform: scale(1.18); }
}

/* Gentle floating embers on right campfire half only */
.embers-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.ember {
  position: absolute;
  bottom: 10%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #ffd37a;
  box-shadow: 0 0 8px 2px rgba(246, 178, 72, 0.55);
  opacity: 0;
  will-change: transform, opacity;
  animation: emberFloat var(--dur, 7s) linear infinite;
  animation-delay: var(--delay, 0s);
}

@keyframes emberFloat {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(0.7);
  }
  16% {
    opacity: 0.78;
  }
  72% {
    opacity: 0.42;
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--drift, 28px), -340px, 0) scale(0.35);
  }
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 44px;
}

.hero-copy {
  position: relative;
  z-index: 6;
  min-width: 0;
  max-width: 560px;
}

.hero-emblem-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.hero-logo {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.6),
    0 0 28px rgba(232, 155, 52, 0.22);
}

.hero-title {
  font-size: clamp(2.15rem, 4vw, 3.25rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.35vw, 1.14rem);
  color: #d4cab8;
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: 48ch;
}

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

.cta-qr-wrap {
  position: relative;
  display: inline-flex;
  z-index: 4;
}

.cta-qr-wrap:hover,
.cta-qr-wrap:focus-within {
  z-index: 50;
}

.btn-play,
.btn-wechat {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 52px;
  padding: 8px 15px;
  border-radius: 12px;
  text-decoration: none;
  text-align: left;
  transition: transform 200ms var(--ease-out), border-color 180ms ease, box-shadow 200ms var(--ease-out), background-color 180ms ease;
}

.btn-play {
  background: linear-gradient(180deg, #251e17 0%, #15110d 100%);
  border: 1px solid rgba(242, 169, 68, 0.56);
  color: var(--text);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.5),
    0 4px 18px rgba(232, 155, 52, 0.16),
    inset 0 1px 0 rgba(255, 240, 206, 0.16);
}

.btn-play:hover {
  transform: translateY(-1px);
  border-color: var(--amber-bright);
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.56),
    0 6px 24px rgba(232, 155, 52, 0.28),
    inset 0 1px 0 rgba(255, 240, 206, 0.24);
}

.btn-play--compact {
  min-height: 46px;
  padding: 7px 14px;
}

.btn-wechat {
  background: linear-gradient(180deg, #1a211d 0%, #131814 100%);
  border: 1px solid rgba(57, 201, 123, 0.44);
  color: var(--text);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.48),
    0 4px 16px rgba(57, 201, 123, 0.1),
    inset 0 1px 0 rgba(190, 255, 220, 0.1);
}

.btn-wechat:hover {
  transform: translateY(-1px);
  border-color: rgba(74, 224, 143, 0.78);
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.54),
    0 6px 22px rgba(57, 201, 123, 0.2),
    inset 0 1px 0 rgba(190, 255, 220, 0.18);
}

.brand-glyph {
  flex-shrink: 0;
}

.btn-badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.btn-badge-text small {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-sub);
  margin-bottom: 2px;
}

.btn-badge-text strong {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

.btn-qr-hint {
  color: var(--text-muted);
  margin-left: 2px;
  flex-shrink: 0;
  transition: color 180ms ease;
}

.btn-play:hover .btn-qr-hint {
  color: var(--amber-bright);
}

.btn-wechat:hover .btn-qr-hint {
  color: #5ee299;
}

/* Warm ivory QR tray (zero harsh cold glare) */
.qr-plate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f7f1e4;
  padding: 10px;
  border-radius: 12px;
  box-shadow:
    inset 0 0 0 1px rgba(130, 88, 36, 0.16),
    0 10px 26px rgba(0, 0, 0, 0.48);
}

.qr-plate img {
  display: block;
  border-radius: 4px;
}

/* Hover QR Popover */
.qr-popover {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  z-index: 60;
  width: 184px;
  padding: 13px 14px 12px;
  border-radius: 16px;
  background: rgba(24, 19, 15, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-warm);
  box-shadow:
    0 22px 46px rgba(0, 0, 0, 0.8),
    0 6px 24px rgba(232, 155, 52, 0.14);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 200ms ease, transform 200ms var(--ease-out), visibility 200ms ease;
}

.qr-popover--wechat {
  border-color: rgba(57, 201, 123, 0.45);
  box-shadow:
    0 22px 46px rgba(0, 0, 0, 0.8),
    0 6px 22px rgba(57, 201, 123, 0.12);
}

.qr-popover::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}

.qr-popover::after {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  width: 10px;
  height: 10px;
  transform: translateX(-50%) rotate(45deg);
  background: rgba(24, 19, 15, 0.98);
  border-top: 1px solid var(--border-warm);
  border-left: 1px solid var(--border-warm);
}

.qr-popover--wechat::after {
  border-color: rgba(57, 201, 123, 0.45);
}

.cta-qr-wrap:hover .qr-popover,
.cta-qr-wrap:focus-within .qr-popover {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.qr-popover .qr-plate img {
  width: 126px;
  height: 126px;
}

.qr-popover-caption {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.qr-popover-sub {
  font-size: 0.72rem;
  color: #7ee3ab;
  line-height: 1.3;
  margin-top: -3px;
  white-space: nowrap;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 12px 18px;
  border-radius: 12px;
  background: rgba(27, 22, 18, 0.72);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 180ms ease, background-color 180ms ease;
}

.btn-secondary:hover {
  border-color: var(--border-warm);
  background: rgba(34, 28, 22, 0.9);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  font-size: 0.82rem;
  color: var(--text-sub);
}

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

.hero-meta span + span::before {
  content: "·";
  color: var(--amber);
  font-weight: 700;
}

/* Hero Entrance: zero opacity-0 LCP block, crisp subtle vertical settle */
.reveal {
  animation: fadeSettle 420ms var(--ease-out) both;
}
.reveal-1 { animation-delay: 0ms; }
.reveal-2 { animation-delay: 40ms; }
.reveal-3 { animation-delay: 80ms; }
.reveal-4 { animation-delay: 120ms; }

@keyframes fadeSettle {
  from {
    transform: translate3d(0, 8px, 0);
  }
  to {
    transform: translate3d(0, 0, 0);
  }
}

.hero-eyebrow-meta {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber-bright);
  opacity: 0.92;
}

/* ---------- Hardware Phone Frame (1:2 exact aspect ratio for 720x1440) ---------- */
.phone-frame {
  position: relative;
  border-radius: 30px;
  padding: 9px;
  background: linear-gradient(160deg, #2b251f 0%, #161310 55%, #110e0c 100%);
  border: 1px solid rgba(255, 232, 198, 0.14);
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.72),
    0 10px 26px rgba(232, 140, 42, 0.14),
    inset 0 1px 0 rgba(255, 240, 210, 0.18);
  transition: transform 240ms var(--ease-out), box-shadow 240ms var(--ease-out);
}

.phone-frame::before {
  content: "";
  position: absolute;
  top: 0;
  left: 16%;
  right: 16%;
  height: 1px;
  background: var(--rim);
  pointer-events: none;
}

.phone-screen {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 2;
  border-radius: 22px;
  overflow: hidden;
  background: #0d0b08;
  border: 1px solid rgba(0, 0, 0, 0.8);
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-phones {
  position: relative;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 510px;
}

.hero-phone {
  cursor: zoom-in;
}

.hero-phone--center {
  position: relative;
  z-index: 3;
  width: 244px;
}

.hero-phone--left,
.hero-phone--right {
  position: absolute;
  z-index: 2;
  width: 206px;
  opacity: 0.78;
  filter: brightness(0.78);
  will-change: transform;
}

.hero-phone--left {
  transform: translate3d(calc(-136px + var(--px, 0px)), calc(18px + var(--py, 0px)), 0);
}

.hero-phone--right {
  transform: translate3d(calc(136px + var(--px, 0px)), calc(18px - var(--py, 0px)), 0);
}

.hero-phone--center:hover {
  transform: translateY(-4px);
}

.hero-phone--left:hover,
.hero-phone--right:hover {
  opacity: 0.95;
  filter: brightness(0.95);
}

/* ---------- Core Interface Showcase ---------- */
.section {
  padding: 76px 0;
  border-top: 1px solid var(--border);
  position: relative;
}

.section-header {
  margin-bottom: 34px;
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--amber);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.section-title {
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--text);
}

.section-desc {
  margin-top: 8px;
  font-size: 0.95rem;
  color: var(--text-sub);
  max-width: 56ch;
}

.screens-layout {
  display: grid;
  grid-template-columns: minmax(290px, 0.92fr) minmax(0, 1.08fr);
  gap: 36px;
  align-items: center;
}

.screen-list {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.screen-tab {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  text-align: left;
  width: 100%;
  padding: 11px 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  position: relative;
  transition: background-color 200ms ease, border-color 200ms ease;
}

.screen-tab::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 2.5px;
  border-radius: 2px;
  background: var(--amber);
  opacity: 0;
  transform: scaleY(0.5);
  transition: opacity 200ms ease, transform 200ms var(--ease-out);
}

.screen-tab:hover {
  background: rgba(255, 240, 215, 0.03);
}

.screen-tab.is-active {
  background: var(--surface);
  border-color: var(--border-warm);
}

.screen-tab.is-active::before {
  opacity: 1;
  transform: scaleY(1);
}

.screen-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  padding-top: 3px;
  flex-shrink: 0;
  transition: color 180ms ease;
}

.screen-tab.is-active .screen-num {
  color: var(--amber-bright);
}

.screen-tab-title {
  font-size: 1.04rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
}

.screen-tab-desc {
  font-size: 0.88rem;
  color: var(--text-sub);
  line-height: 1.48;
}

/* Spotlight Stage */
.screen-stage-wrap {
  position: relative;
  min-width: 0;
  background: radial-gradient(circle at 50% 48%, rgba(232, 155, 52, 0.1) 0%, rgba(27, 22, 18, 0.72) 52%, rgba(18, 15, 12, 0.9) 100%);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 34px 24px 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

.screen-stage-wrap::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: var(--rim);
}

.stage-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.stage-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(27, 22, 18, 0.9);
  border: 1px solid var(--border);
  color: var(--text-sub);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.stage-arrow:hover {
  border-color: var(--border-warm);
  color: var(--amber-bright);
  transform: scale(1.05);
}

.phone-stage {
  width: 264px;
  flex-shrink: 0;
  cursor: zoom-in;
}

.stage-screen {
  position: relative;
}

.stage-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transform: scale(0.985);
  pointer-events: none;
  transition: opacity 280ms ease, transform 280ms var(--ease-out);
}

.stage-slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.stage-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stage-footer {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.stage-mobile-caption {
  display: none;
}

.stage-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stage-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 232, 198, 0.22);
  transition: width 220ms var(--ease-out), background-color 200ms ease;
}

.stage-dot.is-active {
  width: 22px;
  background: var(--amber);
}

.stage-hint {
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* ---------- More Tools Horizontal Gallery ---------- */
.more-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

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

.more-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 14px;
  scrollbar-width: thin;
  scrollbar-color: rgba(232, 155, 52, 0.35) transparent;
}

.more-track::-webkit-scrollbar {
  height: 6px;
}

.more-track::-webkit-scrollbar-thumb {
  background: rgba(232, 155, 52, 0.35);
  border-radius: 999px;
}

.tool-card {
  flex: 0 0 228px;
  scroll-snap-align: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 14px 14px 16px;
  position: relative;
  display: flex;
  flex-direction: column;
  text-align: left;
  transition: transform 220ms var(--ease-out), border-color 200ms ease, background-color 200ms ease;
}

.tool-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  background: var(--rim);
  opacity: 0.7;
}

.tool-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-warm);
  background: var(--surface-elevated);
}

.phone-mini {
  border-radius: 20px;
  padding: 6px;
  margin-bottom: 14px;
}

.phone-mini .phone-screen {
  border-radius: 15px;
}

.tool-card-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.tool-card-desc {
  font-size: 0.82rem;
  color: var(--text-sub);
  line-height: 1.45;
}

/* ---------- Download & QR Section ---------- */
.download-section {
  background:
    radial-gradient(ellipse 740px 280px at 50% 100%, rgba(232, 155, 52, 0.08) 0%, transparent 72%);
}

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

.download-card {
  min-width: 0;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  overflow: hidden;
  transition: border-color 200ms ease, background-color 200ms ease;
}

.download-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: var(--rim);
}

.download-card:hover {
  border-color: var(--border-warm);
  background: var(--surface-elevated);
}

.download-card--wechat::before {
  background: linear-gradient(90deg, transparent 6%, rgba(57, 201, 123, 0.42) 50%, transparent 94%);
}

.download-card--wechat:hover {
  border-color: rgba(57, 201, 123, 0.34);
}

.download-card--single {
  max-width: 780px;
  margin: 0 auto;
  padding: 30px 32px;
}

.download-card-copy {
  flex: 1;
  min-width: 0;
}

.download-card-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--amber-bright);
  margin-bottom: 10px;
}

.download-card-tag--wechat {
  color: #6ce0a0;
}

.download-card h3 {
  font-size: 1.18rem;
  font-weight: 750;
  color: var(--text);
  margin-bottom: 8px;
}

.download-card p {
  font-size: 0.9rem;
  color: var(--text-sub);
  line-height: 1.58;
  margin-bottom: 16px;
}

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

.download-note-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(57, 201, 123, 0.1);
  border: 1px solid rgba(57, 201, 123, 0.28);
  color: #8ce7b5;
  font-size: 0.8rem;
  font-weight: 600;
}

.qr-box {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 4px;
  border-radius: 14px;
  cursor: zoom-in;
  transition: transform 200ms var(--ease-out);
}

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

.qr-box .qr-plate img {
  width: 124px;
  height: 124px;
}

.download-card--single .qr-box .qr-plate img {
  width: 136px;
  height: 136px;
}

.qr-box-caption {
  font-size: 0.76rem;
  color: var(--text-muted);
  text-align: center;
}

/* ---------- About Page ---------- */
.about-shell {
  position: relative;
  padding: 56px 0 84px;
  background:
    radial-gradient(ellipse 680px 360px at 50% 0%, rgba(232, 155, 52, 0.1) 0%, transparent 72%),
    linear-gradient(180deg, #0e131b 0%, var(--bg-hearth) 320px);
}

.about-container {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px;
}

.about-hero {
  text-align: center;
  margin-bottom: 36px;
}

.about-logo {
  width: 68px;
  height: 68px;
  border-radius: 16px;
  margin: 0 auto 16px;
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.6),
    0 0 30px rgba(232, 155, 52, 0.22);
}

.about-title {
  font-size: clamp(1.75rem, 3vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.about-meta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--amber-bright);
  margin-bottom: 14px;
}

.about-intro {
  color: var(--text-sub);
  font-size: 0.98rem;
  max-width: 56ch;
  margin: 0 auto;
}

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

.info-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 22px;
}

.info-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: var(--rim);
}

.info-card h2 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.info-card p {
  font-size: 0.9rem;
  color: var(--text-sub);
  line-height: 1.62;
}

.notice-card {
  background: rgba(27, 22, 18, 0.92);
  border: 1px solid var(--border);
  border-left: 3px solid var(--amber);
  border-radius: var(--radius-card);
  padding: 22px 24px;
  margin-bottom: 24px;
}

.notice-card h2 {
  font-size: 1.04rem;
  font-weight: 700;
  color: var(--amber-bright);
  margin-bottom: 8px;
}

.notice-card p {
  font-size: 0.9rem;
  color: var(--text-sub);
  line-height: 1.65;
}

.about-links-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  margin-bottom: 34px;
}

.contact-pair {
  font-size: 0.9rem;
  color: var(--text-sub);
}

.contact-pair a {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(232, 155, 52, 0.45);
}

.contact-pair a:hover {
  color: var(--amber-bright);
}

.pill-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--text);
  text-decoration: none;
  background: rgba(255, 240, 215, 0.04);
  border: 1px solid var(--border);
  transition: border-color 180ms ease, color 180ms ease;
}

.pill-link:hover {
  border-color: var(--border-warm);
  color: var(--amber-bright);
}

.faq-section h2 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0 16px;
}

.faq-item summary {
  list-style: none;
  padding: 13px 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

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

.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  color: var(--amber);
  font-size: 1rem;
  flex-shrink: 0;
}

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

.faq-item p {
  padding-bottom: 14px;
  font-size: 0.88rem;
  color: var(--text-sub);
  line-height: 1.6;
}

/* ---------- Policy & Legal Pages (/privacy, /data-deletion, /ad-privacy) ---------- */
.policy-shell {
  position: relative;
  padding: 48px 0 84px;
  background:
    radial-gradient(ellipse 680px 340px at 50% 0%, rgba(232, 155, 52, 0.09) 0%, transparent 72%),
    linear-gradient(180deg, #0e131b 0%, var(--bg-hearth) 300px);
}

.policy-container {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
}

.policy-hero,
.policy-section {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 26px 28px;
  margin-bottom: 18px;
}

.policy-hero::before,
.policy-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: var(--rim);
}

.policy-hero h1 {
  font-size: clamp(1.55rem, 2.8vw, 2.05rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 10px;
}

.policy-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-sub);
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.policy-badge {
  background: rgba(232, 155, 52, 0.12);
  color: var(--amber-bright);
  padding: 2px 9px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  border: 1px solid rgba(232, 155, 52, 0.28);
}

.policy-summary {
  background: rgba(232, 155, 52, 0.08);
  border: 1px solid var(--border);
  border-left: 3px solid var(--amber);
  padding: 15px 18px;
  border-radius: 0 10px 10px 0;
  margin-top: 18px;
  font-size: 0.92rem;
  color: #ebd9bd;
  line-height: 1.65;
}

.policy-section h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.policy-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(232, 155, 52, 0.14);
  border: 1px solid rgba(232, 155, 52, 0.3);
  color: var(--amber-bright);
  font-size: 0.76rem;
  font-family: var(--font-mono);
  font-weight: 600;
  flex-shrink: 0;
}

.policy-section p,
.policy-section li {
  color: var(--text-sub);
  font-size: 0.93rem;
  line-height: 1.68;
}

.policy-section p + p {
  margin-top: 10px;
}

.policy-section ul,
.policy-section ol {
  margin: 10px 0 12px 22px;
}

.policy-section li {
  margin-bottom: 7px;
}

.policy-section strong {
  color: var(--text);
}

.policy-section a {
  color: var(--amber-bright);
  text-decoration: none;
  border-bottom: 1px solid rgba(232, 155, 52, 0.35);
  transition: color 180ms ease, border-color 180ms ease;
}

.policy-section a:hover {
  color: var(--text);
  border-bottom-color: var(--amber-bright);
}

.policy-section code {
  background: rgba(255, 240, 215, 0.06);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 0.84em;
  color: var(--amber-bright);
}

.policy-table-wrap {
  overflow-x: auto;
  margin: 14px 0;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.policy-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  text-align: left;
}

.policy-table-wrap th,
.policy-table-wrap td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

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

.policy-table-wrap th {
  background: rgba(255, 240, 215, 0.04);
  color: var(--text);
  font-weight: 600;
}

.policy-table-wrap td {
  color: var(--text-sub);
}

.policy-nav-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  margin-top: 8px;
}

.policy-section .pill-links {
  margin-top: 8px;
}

.policy-section .pill-link {
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.policy-section .pill-link:hover {
  border-color: var(--border-warm);
  color: var(--amber-bright);
}

.lang-btn {
  text-decoration: none;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  color: var(--text-sub);
  transition: background-color 180ms ease, color 180ms ease;
  white-space: nowrap;
}

.lang-btn:hover {
  color: var(--text);
}

.lang-btn.is-active {
  background: rgba(232, 155, 52, 0.18);
  color: var(--amber-bright);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-deep);
  padding: 34px 0 42px;
}

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

.footer-dedication {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.footer-unofficial {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  font-size: 0.84rem;
  color: var(--text-sub);
}

.footer-links a {
  text-decoration: none;
  transition: color 180ms ease;
}

.footer-links a:hover {
  color: var(--amber-bright);
}

/* ---------- Lightbox Modal ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(8, 7, 6, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 92vw;
  max-height: 92vh;
  transform: scale(0.96);
  transition: transform 240ms var(--ease-out);
}

.lightbox.is-open .lightbox-dialog {
  transform: scale(1);
}

.lightbox-stage {
  display: flex;
  align-items: center;
  gap: 18px;
}

.lightbox-img {
  height: min(74vh, 720px);
  width: auto;
  aspect-ratio: 1 / 2;
  border-radius: 24px;
  border: 1px solid rgba(255, 232, 198, 0.16);
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.85);
}

.lightbox.is-qr .stage-arrow {
  display: none;
}

.lightbox.is-qr .lightbox-img {
  width: min(72vw, 290px);
  height: auto;
  aspect-ratio: 1 / 1;
  background: #f7f1e4;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid rgba(242, 169, 68, 0.35);
}

.lightbox-caption {
  margin-top: 14px;
  text-align: center;
  max-width: 440px;
}

.lightbox-caption strong {
  display: block;
  font-size: 1rem;
  color: var(--text);
}

.lightbox-caption span {
  display: block;
  font-size: 0.86rem;
  color: var(--text-sub);
  margin-top: 2px;
}

.lightbox-close {
  position: fixed;
  top: 18px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(27, 22, 18, 0.9);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  .hero-phone--left {
    transform: translate3d(-98px, 18px, 0) scale(0.92);
  }
  .hero-phone--right {
    transform: translate3d(98px, 18px, 0) scale(0.92);
  }
}

@media (max-width: 899px) {
  .hero {
    min-height: auto;
    padding: 36px 0 54px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    text-align: center;
  }

  .hero-copy {
    margin: 0 auto;
    width: 100%;
  }

  .hero-emblem-row,
  .hero-actions,
  .hero-meta {
    justify-content: center;
  }

  .hero-phones {
    min-height: auto;
  }

  .hero-phone--left,
  .hero-phone--right {
    display: none;
  }

  .hero-phone--center {
    width: 224px;
  }

  .campfire-glow {
    left: 55%;
    top: 74%;
  }

  .tower-beacon {
    display: none;
  }

  .screens-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .screen-list {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 6px;
    gap: 8px;
    scrollbar-width: none;
  }

  .screen-list::-webkit-scrollbar {
    display: none;
  }

  .screen-tab {
    width: auto;
    flex: 0 0 auto;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    align-items: center;
    gap: 8px;
  }

  .screen-tab::before,
  .screen-tab-desc {
    display: none;
  }

  .screen-num {
    padding-top: 0;
    font-size: 0.72rem;
  }

  .screen-tab-title {
    font-size: 0.88rem;
    margin-bottom: 0;
  }

  .screen-tab.is-active {
    background: rgba(232, 155, 52, 0.16);
    border-color: var(--amber);
  }

  .phone-stage {
    width: 230px;
  }

  .stage-mobile-caption {
    display: block;
    max-width: 40ch;
  }

  .stage-mobile-caption strong {
    display: block;
    font-size: 1rem;
    color: var(--text);
    margin-bottom: 2px;
  }

  .stage-mobile-caption span {
    display: block;
    font-size: 0.86rem;
    color: var(--text-sub);
  }

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

@media (hover: none), (max-width: 767px) {
  .qr-popover,
  .btn-qr-hint {
    display: none;
  }
}

@media (max-width: 767px) {
  .qr-box--desktop-only {
    display: none;
  }

  .download-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 20px;
  }

  .download-card--wechat .qr-box {
    align-self: center;
    margin-top: 4px;
  }

  .download-card--single {
    padding: 22px 20px;
  }

  .container,
  .nav-inner,
  .about-container,
  .policy-container {
    padding-left: 18px;
    padding-right: 18px;
  }

  .policy-hero,
  .policy-section {
    padding: 20px 18px;
  }

  .nav-links,
  .nav-right .lang-group,
  .nav-brand .unofficial-pill {
    display: none;
  }

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

  .hero-bg-img {
    object-position: center 72%;
  }

  .hero-veil {
    background:
      linear-gradient(180deg, rgba(13, 19, 28, 0.62) 0%, rgba(16, 13, 11, 0.56) 45%, rgba(18, 15, 12, 0.78) 80%, var(--bg-hearth) 100%);
  }

  .section {
    padding: 52px 0;
  }

  .stage-arrow {
    display: none;
  }

  .strip-controls {
    display: none;
  }

  .tool-card {
    flex: 0 0 198px;
  }

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

  .lightbox-stage .stage-arrow {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal,
  .campfire-glow,
  .tower-beacon,
  .ember {
    animation: none !important;
  }
  .ember {
    display: none;
  }
  .stage-slide,
  .phone-frame,
  .lightbox,
  .lightbox-dialog {
    transition: none !important;
  }
}
