/*
 * Hamster Counter Collector — landing (dark, Vben Admin–style hero)
 * Near-black zinc base (#09090b), card (#18181b), cyan/blue/violet blooms, neon primary CTA.
 */

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

:root {
  /* Zinc dark + electric accents（对齐 Vben Admin 深色落地页观感） */
  --vb-bg: hsl(240 6% 4%);
  --vb-bg-subtle: hsl(240 6% 6%);
  --vb-card: hsl(240 4% 10%);
  --vb-card-elevated: hsl(240 4% 13%);
  --vb-foreground: hsl(0 0% 98%);
  --vb-muted: hsl(240 5% 65%);
  --vb-muted-bg: hsl(240 5% 14%);
  --vb-border: hsl(240 5% 17%);
  --vb-border-strong: hsl(240 5% 24%);
  --vb-primary: hsl(217 91% 59%);
  --vb-primary-hover: hsl(217 91% 52%);
  --vb-accent-cyan: hsl(187 92% 48%);
  --vb-accent-violet: hsl(262 90% 65%);
  --vb-primary-soft: hsl(217 91% 59% / 0.22);
  --vb-ring: hsl(187 92% 50% / 0.45);
  --vb-shadow-xs: 0 1px 0 hsl(210 40% 98% / 0.04), 0 1px 2px hsl(0 0% 0% / 0.65);
  --vb-shadow-sm:
    0 1px 0 hsl(210 40% 98% / 0.06),
    0 2px 10px hsl(0 0% 0% / 0.55),
    0 0 0 1px hsl(210 40% 98% / 0.04);
  --vb-shadow-md:
    0 4px 24px hsl(0 0% 0% / 0.55),
    0 0 0 1px hsl(210 40% 98% / 0.05),
    0 0 80px hsl(262 83% 55% / 0.06);
  --vb-radius: 10px;
  --vb-radius-lg: 14px;
  --radius-pill: 999px;

  --text: var(--vb-foreground);
  --muted: var(--vb-muted);
  --accent: var(--vb-primary);
  --line: var(--vb-border);
  --pill: var(--vb-muted-bg);
}

html {
  height: auto;
  min-height: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100%;
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  font-family:
    'Inter Variable',
    Inter,
    ui-sans-serif,
    system-ui,
    'Segoe UI',
    'PingFang SC',
    'Microsoft YaHei',
    sans-serif;
  font-feature-settings: 'liga' 1, 'cv02' 1;
  color: var(--vb-foreground);
  letter-spacing: -0.01em;
  line-height: 1.55;
  color-scheme: dark;
  background-color: var(--vb-bg);
  background-image:
    radial-gradient(ellipse 90% 60% at 50% -5%, hsl(217 91% 52% / 0.09), transparent 52%),
    radial-gradient(circle at 92% -8%, hsl(262 90% 60% / 0.09), transparent 38%),
    radial-gradient(circle at 6% -8%, hsl(187 92% 45% / 0.08), transparent 36%),
    radial-gradient(ellipse 85% 50% at 50% 100%, hsl(187 92% 48% / 0.06), transparent 54%),
    linear-gradient(180deg, var(--vb-bg) 0%, var(--vb-bg-subtle) 52%, var(--vb-bg) 100%);
}

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

.mono {
  font-family:
    ui-monospace,
    'SF Mono',
    'Cascadia Code',
    Consolas,
    monospace;
  font-weight: 600;
  letter-spacing: 0;
}

.shell {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  min-height: 100dvh;
  width: 100%;
  max-width: 100vw;
}

.layout-container {
  width: 100%;
  max-width: 1140px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 1.65rem);
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 0;
  padding-top: max(0.35rem, env(safe-area-inset-top));
}

/* --------- sticky top bar (附图2 顶栏结构) --------- */
.site-topbar {
  position: sticky;
  top: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  margin: 0 calc(-1 * clamp(1rem, 4vw, 1.65rem)) 0;
  padding: 0.65rem clamp(1rem, 4vw, 1.65rem);
  padding-top: max(0.58rem, env(safe-area-inset-top));
  background: hsl(240 6% 4% / 0.45);
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
}

.site-brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  flex: 1 1 auto;
}

.site-brand-link {
  color: inherit;
  text-decoration: none;
}

.site-brand-link:focus-visible {
  outline: 2px solid var(--vb-ring);
  outline-offset: 3px;
  border-radius: var(--vb-radius);
}

.site-logo-wrap {
  display: flex;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 12px hsl(199 87% 48% / 0.28));
}

.site-logo-svg {
  display: block;
  width: 40px;
  height: 40px;
  vertical-align: middle;
}

.site-topbar-name {
  flex: 0 1 auto;
  font-weight: 700;
  font-size: clamp(0.8975rem, 2vw, 1.06rem);
  letter-spacing: -0.035em;
  line-height: 1.22;
  color: var(--vb-foreground);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --------- hero panel (附图1 双栏 / 附图2 移动竖排 ) --------- */
.hero-panel {
  flex-shrink: 0;
  margin-bottom: clamp(0.72rem, 2.5vmin, 1.18rem);
  margin-top: 0.35rem;
  padding: clamp(0.72rem, 2.4vmin, 1.35rem) 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.hero-grid {
  display: grid;
  gap: clamp(1rem, 3.8vw, 2.65rem);
  align-items: center;
  grid-template-columns: minmax(0, 1.08fr) minmax(180px, 0.94fr);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(0.55rem, 2vmin, 0.92rem);
  min-width: 0;
}

.hero-kicker {
  margin: 0;
  font-size: clamp(0.78rem, 1.72vmin, 0.91rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: transparent;
  background-image: linear-gradient(
    105deg,
    hsl(187 92% 55%) 0%,
    hsl(217 91% 62%) 32%,
    var(--vb-accent-violet) 72%,
    hsl(285 92% 70%) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-title {
  margin: 0;
  font-size: clamp(1.5rem, 4.35vmin, 2.48rem);
  font-weight: 800;
  letter-spacing: -0.038em;
  line-height: 1.12;
  color: var(--vb-foreground);
  max-width: min(42rem, 100%);
  scroll-margin-top: calc(3.5rem + env(safe-area-inset-top));
}

.hero-meta.bar-meta {
  margin-top: 0.08rem;
  margin-left: 0;
  margin-right: 0;
  align-items: flex-start;
  width: 100%;
  max-width: 42rem;
}

.hero-copy .bar-meta-row {
  justify-content: flex-start;
}

.hero-copy .bar-meta-download.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-self: stretch;
  gap: 1.15rem;
  width: 100%;
}

.hero-copy .bar-meta-download.hero-actions.hero-actions--single {
  gap: 0;
}

.hero-copy .bar-meta-download.hero-actions.hero-actions--dual {
  column-gap: 1.35rem;
  row-gap: 0.85rem;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: min(260px, 34vw);
}

.hero-orbit {
  position: relative;
  width: min(248px, 72vw);
  aspect-ratio: 1;
  max-width: 100%;
}

.hero-glow-bloom {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  pointer-events: none;
  opacity: 0.75;
}

.hero-glow-bloom--cyan {
  inset: 8% 18% auto 14%;
  height: 58%;
  background: radial-gradient(circle, hsl(187 92% 52% / 0.5), hsl(217 91% 50% / 0) 72%);
}

.hero-glow-bloom--violet {
  inset: auto 12% -6% 24%;
  height: 56%;
  background: radial-gradient(circle, hsl(262 88% 60% / 0.52), hsl(262 82% 40% / 0) 70%);
}

.hero-mark-svg {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  max-width: min(280px, 100%);
  margin-inline: auto;
  z-index: 2;
  filter: drop-shadow(0 14px 36px hsl(199 80% 40% / 0.38)) drop-shadow(0 28px 48px hsl(262 62% 45% / 0.22));
}

@media (prefers-reduced-motion: no-preference) {
  .hero-orbit {
    animation: hero-orbit-float 7s ease-in-out infinite alternate;
  }
}

@keyframes hero-orbit-float {
  from {
    transform: translateY(0) translateZ(0);
  }
  to {
    transform: translateY(-7px) translateZ(0);
  }
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.22rem 0.72rem;
  font-size: clamp(0.6875rem, 1.55vmin, 0.8125rem);
  font-weight: 500;
  color: var(--vb-muted);
  background: var(--vb-muted-bg);
  border: 1px solid var(--vb-border);
  border-radius: var(--radius-pill);
  box-shadow: var(--vb-shadow-xs);
}

.pill strong {
  color: var(--vb-primary);
  font-weight: 650;
}

.bar-meta {
  display: flex;
  flex-direction: column;
  gap: clamp(0.72rem, 2.2vmin, 1rem);
  width: 100%;
  max-width: 40rem;
  margin: clamp(0.92rem, 2.6vmin, 1.2rem) auto 0;
}

.bar-meta-row {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
  align-items: center;
}

.bar-meta-download {
  display: flex;
  justify-content: center;
  width: 100%;
}

.btn-download-app {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 2.85rem;
  padding: 0.62rem 1.45rem;
  border-radius: var(--radius-pill);
  font-size: clamp(0.78rem, 1.75vmin, 0.9rem);
  font-weight: 700;
  letter-spacing: 0.015em;
  white-space: nowrap;
  text-decoration: none;
  border: 1px solid transparent;
  transition:
    background 0.22s ease,
    color 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.12s ease,
    filter 0.22s ease;
}

.btn-download-app__icon {
  flex-shrink: 0;
  width: 1.2rem;
  height: 1.2rem;
}

.btn-download-app__label {
  line-height: 1.2;
}

/* Secondary — Windows */
#cfg-download-win:not(.is-highlighted) {
  color: hsl(199 95% 90%);
  background: linear-gradient(145deg, hsl(217 72% 34%), hsl(217 68% 22%) 58%, hsl(220 55% 18%));
  border-color: hsl(217 85% 52% / 0.55);
  box-shadow:
    inset 0 1px 0 hsl(199 95% 72% / 0.18),
    0 0 0 1px hsl(217 91% 59% / 0.12),
    0 4px 18px hsl(217 91% 40% / 0.28);
}

#cfg-download-win:not(.is-highlighted):hover {
  border-color: hsl(187 92% 52% / 0.75);
  box-shadow:
    inset 0 1px 0 hsl(199 95% 72% / 0.24),
    0 0 0 1px hsl(187 92% 52% / 0.2),
    0 6px 22px hsl(217 91% 45% / 0.38);
  filter: brightness(1.06);
}

/* Secondary — macOS */
#cfg-download-mac:not(.is-highlighted) {
  color: hsl(270 40% 94%);
  background: linear-gradient(145deg, hsl(262 48% 36%), hsl(262 42% 24%) 58%, hsl(250 35% 18%));
  border-color: hsl(262 70% 58% / 0.5);
  box-shadow:
    inset 0 1px 0 hsl(270 60% 80% / 0.16),
    0 0 0 1px hsl(262 90% 65% / 0.1),
    0 4px 18px hsl(262 70% 40% / 0.26);
}

#cfg-download-mac:not(.is-highlighted):hover {
  border-color: hsl(262 80% 62% / 0.72);
  box-shadow:
    inset 0 1px 0 hsl(270 60% 80% / 0.22),
    0 0 0 1px hsl(262 90% 65% / 0.18),
    0 6px 22px hsl(262 70% 45% / 0.34);
  filter: brightness(1.06);
}

/* Highlighted — Windows (electric blue/cyan) */
#cfg-download-win.is-highlighted {
  color: #ffffff;
  background: linear-gradient(
    135deg,
    hsl(217 91% 56%) 0%,
    hsl(199 95% 46%) 48%,
    hsl(187 92% 44%) 100%
  );
  border-color: hsl(187 92% 58% / 0.95);
  box-shadow:
    inset 0 1px 0 hsl(210 40% 98% / 0.28),
    0 0 0 1px hsl(187 92% 52% / 0.35),
    0 8px 28px hsl(217 91% 45% / 0.45),
    0 0 36px hsl(187 92% 48% / 0.32);
}

#cfg-download-win.is-highlighted:hover {
  border-color: hsl(199 95% 68% / 0.95);
  box-shadow:
    inset 0 1px 0 hsl(210 40% 98% / 0.32),
    0 0 0 1px hsl(199 95% 60% / 0.4),
    0 12px 34px hsl(217 91% 48% / 0.52),
    0 0 48px hsl(187 92% 52% / 0.42);
  filter: brightness(1.05);
}

/* Highlighted — macOS (violet + blue bloom) */
#cfg-download-mac.is-highlighted {
  color: #ffffff;
  background: linear-gradient(
    135deg,
    hsl(262 88% 60%) 0%,
    hsl(250 92% 58%) 46%,
    hsl(217 91% 54%) 100%
  );
  border-color: hsl(262 88% 68% / 0.95);
  box-shadow:
    inset 0 1px 0 hsl(210 40% 98% / 0.26),
    0 0 0 1px hsl(262 90% 65% / 0.32),
    0 8px 28px hsl(262 83% 48% / 0.42),
    0 0 36px hsl(262 90% 60% / 0.3);
}

#cfg-download-mac.is-highlighted:hover {
  border-color: hsl(270 85% 72% / 0.95);
  box-shadow:
    inset 0 1px 0 hsl(210 40% 98% / 0.3),
    0 0 0 1px hsl(262 90% 70% / 0.38),
    0 12px 34px hsl(262 83% 52% / 0.5),
    0 0 48px hsl(262 90% 62% / 0.4);
  filter: brightness(1.05);
}

.btn-download-app:active {
  transform: translateY(1px);
}

.btn-download-app:focus-visible {
  outline: 2px solid var(--vb-ring);
  outline-offset: 2px;
}

.lang-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border-radius: var(--vb-radius);
  background: var(--vb-muted-bg);
  border: 1px solid var(--vb-border);
  box-shadow: var(--vb-shadow-xs);
}

.lang-switch.lang-switch-top {
  position: static;
  flex-shrink: 0;
}

.lang-btn {
  margin: 0;
  cursor: pointer;
  border: none;
  font: inherit;
  font-size: clamp(0.6875rem, 1.5vmin, 0.78125rem);
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.32rem 0.72rem;
  border-radius: calc(var(--vb-radius) - 4px);
  color: var(--vb-muted);
  background: transparent;
  transition:
    background 0.14s ease,
    color 0.14s ease,
    box-shadow 0.14s ease;
}

.lang-btn:hover {
  color: var(--vb-foreground);
  background: hsl(240 5% 22%);
}

.lang-btn.is-active {
  color: var(--vb-foreground);
  background: var(--vb-card-elevated);
  box-shadow:
    inset 0 1px 0 hsl(210 40% 98% / 0.06),
    var(--vb-shadow-xs);
  border: 1px solid var(--vb-border-strong);
}

.lang-btn:focus-visible {
  outline: 2px solid var(--vb-ring);
  outline-offset: 2px;
}

/* --------- carousel stage --------- */
.stage {
  flex: 1 1 auto;
  display: flex;
  min-height: clamp(240px, 42vmin, 520px);
  padding: 0;
  padding-bottom: clamp(0.5rem, 2vmin, 1rem);
}

.deck {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  max-width: 100%;
  min-height: clamp(260px, 42vmin, min(640px, 72vh));
  border-radius: 0;
  border: none;
  background-color: transparent;
  background-image: none;
  box-shadow: none;
  isolation: isolate;
}

.deck-viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 0;
  perspective: 1400px;
  transform-style: preserve-3d;
}

.deck-chrome {
  display: none;
}

@keyframes deck-sweep-fr {
  0% {
    transform: translateX(-105%) skewX(-4deg);
    opacity: 0;
  }
  18% {
    opacity: 0.5;
  }
  100% {
    transform: translateX(105%) skewX(-4deg);
    opacity: 0;
  }
}

@keyframes deck-sweep-fl {
  0% {
    transform: translateX(105%) skewX(4deg);
    opacity: 0;
  }
  18% {
    opacity: 0.5;
  }
  100% {
    transform: translateX(-105%) skewX(4deg);
    opacity: 0;
  }
}

.deck-viewport::before {
  content: '';
  position: absolute;
  inset: -2px;
  z-index: 5;
  pointer-events: none;
  border-radius: 0;
  opacity: 0;
  background: linear-gradient(
    100deg,
    transparent 0,
    transparent 40%,
    hsl(217 91% 60% / 0.35) 50%,
    hsl(187 92% 50% / 0.18) 52%,
    transparent 62%,
    transparent 100%
  );
}

.deck-viewport-move-right::before {
  animation: deck-sweep-fr 0.78s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.deck-viewport-move-left::before {
  animation: deck-sweep-fl 0.78s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.deck-track {
  display: flex;
  align-items: stretch;
  height: 100%;
  width: calc(var(--slides, 3) * 100%);
  transform: translateX(0);
  transition:
    transform 0.76s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.32s ease;
  will-change: transform;
}

.deck-slide {
  position: relative;
  flex-shrink: 0;
  margin: 0;
  padding: clamp(0.35rem, 1.4vmin, 0.72rem);
  padding-top: clamp(0.28rem, 1.1vmin, 0.52rem);
  padding-bottom: 2.2rem;
  width: calc(100% / var(--slides, 3));
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  transform-style: preserve-3d;
}

.slide-glow {
  position: absolute;
  width: clamp(260px, 58vmin, 640px);
  height: clamp(160px, 34vmin, 420px);
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.08;
  z-index: 0;
  animation: orb-drift 7s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes orb-drift {
  0% {
    transform: translate(-8%, -10%) scale(1);
    opacity: 0.18;
  }
  100% {
    transform: translate(14%, 6%) scale(1.08);
    opacity: 0.28;
  }
}

.slide-glow-blue {
  background: radial-gradient(circle, hsl(217 91% 58% / 0.72), hsl(217 91% 40% / 0) 70%);
}

.slide-glow-violet {
  background: radial-gradient(circle, hsl(262 90% 62% / 0.72), hsl(262 90% 42% / 0) 70%);
}

.slide-glow-teal {
  background: radial-gradient(circle, hsl(187 92% 48% / 0.72), hsl(187 92% 34% / 0) 70%);
}

.slide-pic {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-height: 0;
}

.shadow-pop img {
  display: block;
  flex-shrink: 0;
  width: min(96%, 920px);
  max-width: 100%;
  height: min(72dvh, calc(100dvh - 188px));
  max-height: min(72dvh, calc(100dvh - 188px));
  margin: 0 auto;
  object-fit: contain;
  object-position: top center;
  border-radius: 8px;
  border: none;
  box-shadow: 0 6px 28px hsl(0 0% 0% / 0.28);
}

.deck-slide.is-active .slide-pic img {
  animation: kb 9s ease-in-out infinite alternate;
  animation-play-state: running;
}

.deck-slide:not(.is-active) .slide-pic img {
  animation-play-state: paused;
  opacity: 0.58;
}

@keyframes kb {
  0% {
    transform: translateZ(0) scale(1);
  }
  100% {
    transform: translateZ(10px) scale(1.015);
  }
}

.slide-cap {
  position: absolute;
  left: 50%;
  bottom: clamp(0.35rem, 1.4vmin, 0.82rem);
  transform: translateX(-50%);
  z-index: 3;
  margin: 0;
  padding: 0.35rem 0.95rem;
  font-size: clamp(0.6875rem, 1.7vmin, 0.875rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: hsl(210 40% 98% / 0.98);
  background: hsl(240 6% 6% / 0.78);
  border: 1px solid hsl(240 5% 26%);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(12px) saturate(1.08);
  box-shadow:
    inset 0 1px 0 hsl(210 40% 98% / 0.06),
    0 2px 12px hsl(0 0% 0% / 0.5),
    0 0 28px hsl(217 91% 50% / 0.12);
  white-space: nowrap;
}

/* 轮播箭头：无圆形底板，仅字符 + 投影 */
.deck-fab {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2.65rem;
  min-height: 2.65rem;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0.35rem 0.45rem;
  border: none;
  border-radius: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: clamp(1.65rem, 5.2vmin, 2.65rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.06em;
  color: hsl(210 40% 98% / 0.88);
  background: transparent;
  box-shadow: none;
  filter: drop-shadow(0 1px 2px hsl(0 0% 0% / 0.92)) drop-shadow(0 4px 14px hsl(0 0% 0% / 0.55));
  transition:
    transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
    color 0.18s ease,
    filter 0.18s ease;
}

.deck-fab:hover {
  color: var(--vb-primary);
  filter: drop-shadow(0 1px 2px hsl(0 0% 0% / 0.75)) drop-shadow(0 0 18px hsl(187 92% 48% / 0.45));
}

.deck-fab:active {
  transform: translateY(-50%) scale(0.93);
}

.deck-fab:focus-visible {
  outline: 2px solid var(--vb-ring);
  outline-offset: 4px;
  border-radius: 4px;
}

.deck-prev {
  left: clamp(0.2rem, 1.8vmin, 0.72rem);
}

.deck-next {
  right: clamp(0.2rem, 1.8vmin, 0.72rem);
}

@media (max-width: 520px) {
  .deck-prev {
    left: max(0.05rem, env(safe-area-inset-left));
  }

  .deck-next {
    right: max(0.05rem, env(safe-area-inset-right));
  }
}

/* --------- footer --------- */
.footstrip {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  padding: clamp(0.85rem, 2.2vmin, 1.25rem) 0 clamp(1rem, 2.8vmin, 1.35rem);
  border-top: none;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.foot-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  column-gap: 0.42rem;
  row-gap: 0.38rem;
  max-width: 56rem;
  margin: 0;
  padding: 0;
  font-size: clamp(0.6875rem, 1.45vmin, 0.78125rem);
  line-height: 1.5;
  text-align: center;
  color: var(--vb-muted);
}

.foot-copy {
  color: var(--vb-muted);
}

/* --------- responsive --------- */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: clamp(0.92rem, 4vmin, 1.42rem);
  }

  .hero-visual {
    order: -1;
    min-height: min(176px, 38vmin);
  }

  .hero-orbit {
    width: min(196px, 62vw);
  }

  .hero-copy {
    align-items: center;
    text-align: center;
    width: 100%;
  }

  .hero-title {
    max-width: min(42rem, 100%);
    font-size: clamp(1.42rem, 4.85vw, 2.06rem);
  }

  .hero-kicker {
    text-wrap: balance;
  }

  .hero-meta.bar-meta {
    align-items: center;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-copy .bar-meta-row {
    justify-content: center;
  }

  .hero-copy .bar-meta-download.hero-actions {
    justify-content: center;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .layout-container {
    padding-inline: max(0.75rem, env(safe-area-inset-left));
    padding-right: max(0.75rem, env(safe-area-inset-right));
  }

  .hero-panel {
    margin-bottom: 0.6rem;
    padding: clamp(0.6rem, 2.5vmin, 1rem) 0;
  }

  .site-topbar-name {
    font-size: clamp(0.795rem, 3.95vw, 0.9625rem);
    white-space: normal;
    line-height: 1.15;
    text-wrap: balance;
    overflow: visible;
    text-overflow: clip;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .hero-title {
    font-size: clamp(1.125rem, 5.85vw, 1.5625rem);
    line-height: 1.14;
    max-width: 100%;
  }

  .hero-kicker {
    font-size: clamp(0.69rem, 3.05vw, 0.8375rem);
  }

  .hero-visual {
    min-height: min(148px, 36vmin);
  }

  .hero-orbit {
    width: min(168px, 68vw);
  }

  .pill {
    font-size: clamp(0.65625rem, 3vw, 0.734375rem);
  }

  .hero-copy .bar-meta-download.hero-actions.hero-actions--dual {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .hero-copy .bar-meta-download.hero-actions.hero-actions--dual .btn-download-app {
    width: 100%;
    max-width: min(20rem, 100%);
    margin-inline: auto;
    min-height: 44px;
    padding: 0.52rem 1.25rem;
    box-sizing: border-box;
  }

  .hero-copy .bar-meta-download.hero-actions.hero-actions--single .btn-download-app,
  .hero-copy .bar-meta-download.hero-actions:not(.hero-actions--dual) .btn-download-app {
    width: auto;
    max-width: 100%;
    min-height: 44px;
    padding: 0.52rem 1.25rem;
    box-sizing: border-box;
  }

  .stage {
    min-height: clamp(208px, 49dvh, 440px);
  }

  .deck {
    min-height: min(52dvh, 420px);
  }

  .deck-viewport {
    border-radius: 0;
  }

  .deck-slide {
    padding: clamp(0.28rem, 1.35vmin, 0.55rem);
    padding-top: clamp(0.22rem, 1vmin, 0.42rem);
    padding-bottom: 2.55rem;
  }

  .shadow-pop img {
    width: min(100%, 920px);
    height: min(54dvh, 360px);
    max-height: min(54dvh, 360px);
    object-fit: contain;
    object-position: top center;
  }

  .slide-cap {
    white-space: normal;
    max-width: calc(100% - 1.75rem);
    font-size: clamp(0.625rem, 3.06vw, 0.796875rem);
    padding: 0.28rem 0.68rem;
    line-height: 1.35;
    bottom: clamp(0.42rem, 2.2vmin, 0.75rem);
    color: var(--vb-foreground);
  }

  .deck-fab {
    font-size: clamp(1.45rem, 5.5vw, 2.2rem);
    min-width: 2.4rem;
    min-height: 2.4rem;
  }

  .footstrip {
    padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
  }

  .foot-line {
    flex-direction: column;
    align-items: center;
    row-gap: 0.42rem;
  }
}

@media (max-width: 640px) and (orientation: landscape) {
  .deck {
    min-height: min(62dvh, 380px);
  }

  .shadow-pop img {
    height: min(62dvh, 320px);
    max-height: min(62dvh, 320px);
    object-fit: contain;
    object-position: top center;
  }
}

/* --------- reduced motion --------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .deck-track {
    transition: none;
  }

  .deck-viewport-move-left::before,
  .deck-viewport-move-right::before {
    animation: none !important;
  }

  .deck-slide .slide-pic img {
    animation: none !important;
  }

  .deck-slide:not(.is-active) .slide-pic img {
    opacity: 1 !important;
  }

  .slide-glow {
    animation: none !important;
  }
}
