/* ============================================
   LOPUO Studio — Pure Interactive Showcase
   ============================================ */

:root {
  --font: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.4, 0, 0.2, 1);
  --holesnap: #EA7A18;
  --zider: #087A46;
  --zirwork: #89C941;
}

#globe {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none; width: 100%; height: 100%;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { height: 100%; overflow: hidden; }

body {
  font-family: var(--font);
  height: 100vh;
  height: 100dvh; /* Mobile dynamic viewport */
  overflow: hidden;
  background: #f8f8f6;
  color: #111;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

a { text-decoration: none; color: inherit; }
button { font: inherit; cursor: pointer; border: none; background: none; padding: 0; }
img { display: block; max-width: 100%; }

[data-lang="en"] [data-i18n="zh"] { display: none !important; }
[data-lang="zh"] [data-i18n="en"] { display: none !important; }

/* ============================================
   FLOATING DOT NAVIGATION
   ============================================ */
.float-dots {
  position: fixed;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.16);
  cursor: pointer;
  transition: height 0.35s var(--ease-spring), width 0.35s var(--ease-spring), background 0.3s ease;
}

.dot.active {
  height: 22px;
  width: 6px;
  border-radius: 3px;
  background: #111;
}

body.dark-slide .dot { background: rgba(255, 255, 255, 0.22); }
body.dark-slide .dot.active { background: #89C941; }
body.dark-slide .slide-counter { color: rgba(255, 255, 255, 0.25); }
body.dark-slide .footer-strip { color: rgba(255, 255, 255, 0.25); border-top-color: rgba(255, 255, 255, 0.05); }
body.dark-slide .footer-strip a:hover { color: rgba(255, 255, 255, 0.7); }

/* ============================================
   BACKGROUND WATERMARK
   ============================================ */
.bg-name {
  position: fixed; bottom: -0.06em; left: -0.02em;
  font-size: clamp(80px, 15vw, 200px);
  font-weight: 900; letter-spacing: -0.05em;
  color: rgba(0, 0, 0, 0.028);
  pointer-events: none; z-index: 1;
  white-space: nowrap; line-height: 1;
  transition: color 0.6s ease, opacity 0.4s ease;
}
body.dark-slide .bg-name { color: rgba(255, 255, 255, 0.025); }

/* ============================================
   SLIDES CONTAINER
   ============================================ */
.slides { width: 100%; height: 100vh; height: 100dvh; position: relative; overflow: hidden; }

.slide {
  position: absolute; inset: 0;
  opacity: 0; pointer-events: none;
  display: flex; align-items: center; justify-content: center;
}
.slide.is-active { opacity: 1; pointer-events: auto; }

/* ============================================
   HERO SLIDE
   ============================================ */
.slide--hero { background: transparent; }

.hero-inner {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  position: relative; z-index: 2;
  padding: 0 1.5rem;
  max-width: 600px;
}

.hero-logo { margin-bottom: 1.75rem; }
.hero-logo__img {
  display: inline-block;
  height: clamp(52px, 7.5vw, 95px);
  width: auto;
  color: #111;
  transition: transform 0.4s var(--ease-spring);
}
.hero-logo__img:hover {
  transform: scale(1.03);
}

.hero-tagline {
  font-size: clamp(10px, 1.1vw, 12px);
  font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; color: rgba(0,0,0,0.36);
  margin-bottom: 0.85rem;
}

.hero-sub {
  font-size: clamp(13px, 1.4vw, 16px);
  color: rgba(0,0,0,0.48); line-height: 1.65;
  max-width: 440px; margin-bottom: 2.25rem;
}

.hero-products {
  display: flex; gap: 10px; flex-wrap: wrap;
  justify-content: center; margin-bottom: 1rem;
}

.hero-chip {
  padding: 8px 20px; border-radius: 100px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  font-size: 12px; font-weight: 600; letter-spacing: 0.02em;
  color: rgba(0, 0, 0, 0.65);
  background: rgba(255, 255, 255, 0.65);
  cursor: pointer; transition: all 0.22s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.hero-chip:hover {
  background: #111; color: #fff;
  border-color: #111; transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

/* ============================================
   BOTTOM SCROLL BUTTON (Fixed Centered Capsule)
   ============================================ */
.bottom-scroll-btn {
  position: fixed;
  bottom: max(0.85rem, env(safe-area-inset-bottom, 0.85rem));
  left: 50%;
  transform: translateX(-50%);
  z-index: 210;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 6px 16px 6px 10px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #111;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
  user-select: none;
}

.bottom-scroll-btn:focus,
.bottom-scroll-btn:active {
  outline: none;
}

.bottom-scroll-btn:hover {
  background: #111;
  color: #fff;
  border-color: #111;
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.16);
}

.scroll-badge {
  position: relative;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: currentColor;
}

.scroll-badge__ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: rotateRing 14s linear infinite;
  transform-origin: center;
}

@keyframes rotateRing {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.scroll-badge__arrow {
  position: relative;
  z-index: 1;
  transition: transform 0.4s var(--ease-spring);
  animation: arrowBob 1.8s ease-in-out infinite;
}

@keyframes arrowBob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(2.5px); }
}

.scroll-btn__text {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.72);
  transition: color 0.2s ease;
  white-space: nowrap;
}

.bottom-scroll-btn:hover .scroll-btn__text {
  color: #fff;
}

/* Dark mode overrides for scroll button */
body.dark-slide .bottom-scroll-btn {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  color: #f5f5f5;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

body.dark-slide .bottom-scroll-btn .scroll-btn__text {
  color: rgba(255, 255, 255, 0.75);
}

body.dark-slide .bottom-scroll-btn:hover {
  background: #89C941;
  color: #0c1814;
  border-color: #89C941;
  box-shadow: 0 8px 25px rgba(137, 201, 65, 0.32);
}

body.dark-slide .bottom-scroll-btn:hover .scroll-btn__text {
  color: #0c1814;
}

/* ============================================
   PRODUCT SLIDES
   ============================================ */
.slide__inner {
  width: 100%; max-width: 1140px; padding: 0 3.5rem;
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  align-items: center; gap: 4.5rem; height: 100%;
  position: relative; z-index: 2;
}

.slide__left { position: relative; }
.slide--1 .slide__left::before { content: ''; position: absolute; left: -3.5rem; top: 50%; transform: translateY(-50%); width: 3px; height: 75px; border-radius: 2px; background: var(--holesnap); opacity: 0.8; }
.slide--2 .slide__left::before { content: ''; position: absolute; left: -3.5rem; top: 50%; transform: translateY(-50%); width: 3px; height: 75px; border-radius: 2px; background: var(--zider); opacity: 0.8; }
.slide--3 .slide__left::before { content: ''; position: absolute; left: -3.5rem; top: 50%; transform: translateY(-50%); width: 3px; height: 75px; border-radius: 2px; background: var(--zirwork); opacity: 0.8; }

.slide__num {
  font-size: 11px; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: rgba(0,0,0,0.3); margin-bottom: 1.75rem;
}
.slide--3 .slide__num { color: rgba(255,255,255,0.25); }

.slide__logo-wrap { margin-bottom: 1.5rem; will-change: transform; display: flex; align-items: center; }
.slide__logo--holesnap { height: 30px; width: auto; display: block; }
.slide__logo--zider { height: 24px; width: auto; display: block; }
.slide__logo--zirwork { height: 24px; width: auto; filter: brightness(0) invert(1); opacity: 0.95; display: block; }

.slide__title {
  font-size: clamp(1.85rem, 3.5vw, 3rem);
  font-weight: 800; line-height: 1.1; letter-spacing: -0.04em;
  color: #0d0d0d; margin-bottom: 1.25rem;
}
.slide--3 .slide__title { color: #f2f5f2; }

.slide__desc {
  font-size: 14.5px; line-height: 1.75;
  color: rgba(0,0,0,0.52); max-width: 400px; margin-bottom: 2.25rem;
}
.slide--3 .slide__desc { color: rgba(255,255,255,0.45); }

.slide__cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 600; color: #0d0d0d;
  padding: 11px 22px; border: 1.5px solid rgba(0,0,0,0.72); border-radius: 100px;
  transition: all 0.22s ease;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(8px);
}
.slide__cta:hover { background: #0d0d0d; color: #fff; transform: translateY(-1px); }
.slide__cta:hover .cta-arrow { transform: translateX(3px); }
.cta-arrow { transition: transform 0.2s; flex-shrink: 0; }

.slide__cta--light { color: rgba(255,255,255,0.9); border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.06); }
.slide__cta--light:hover { background: rgba(255,255,255,0.15); color: #fff; border-color: rgba(255,255,255,0.6); }

.slide__right {
  display: flex; align-items: center; justify-content: center;
  height: 100%; position: relative; z-index: 2;
}

/* ============================================
   VISUAL CARDS
   ============================================ */
.visual-card {
  width: 100%; max-width: 400px; aspect-ratio: 3/4; border-radius: 22px;
  overflow: hidden; will-change: transform; position: relative;
  transition: transform 0.4s var(--ease-spring), box-shadow 0.4s ease;
}
.visual-card:hover {
  transform: translateY(-4px);
}

/* ============================================
   CARD 1: HOLESNAP (PARAMETRIC CAD STUDIO)
   ============================================ */
.visual--holesnap {
  background: linear-gradient(155deg, #F38C1E 0%, #CD5E06 100%);
  display: flex; flex-direction: column;
  box-shadow: 0 32px 90px rgba(226, 110, 18, 0.32), 0 12px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.24);
  padding: 1.25rem 1.35rem 1.15rem;
}

.cad-header {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 0.85rem; border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  margin-bottom: 0.85rem;
}
.cad-header__left { display: flex; align-items: center; gap: 7px; }
.cad-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #FFFFFF; box-shadow: 0 0 8px rgba(255, 255, 255, 0.9);
}
.cad-title {
  font-size: 10px; font-weight: 700; letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.92); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, monospace;
}
.cad-export-badges { display: flex; gap: 5px; }
.cad-badge {
  font-size: 9px; font-weight: 700; letter-spacing: 0.06em;
  padding: 2px 7px; border-radius: 4px;
  background: rgba(0, 0, 0, 0.18); color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.cad-badge--active {
  background: #FFFFFF; color: #CD5E06; border-color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.cad-canvas {
  flex: 1; display: flex; align-items: center; justify-content: center;
  position: relative; border-radius: 14px;
  background: rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
.cad-axis-y {
  position: absolute; left: 8px; top: 12px; bottom: 12px;
  display: flex; flex-direction: column; justify-content: space-between;
  font-size: 8px; font-family: monospace; color: rgba(255, 255, 255, 0.45);
  pointer-events: none;
}
.cad-crosshair {
  position: absolute; width: 100%; height: 1px;
  background: rgba(255, 255, 255, 0.12);
  top: 50%; left: 0; pointer-events: none;
}
.cad-crosshair::after {
  content: ''; position: absolute; left: 50%; top: -140px;
  width: 1px; height: 300px; background: rgba(255, 255, 255, 0.12);
}

.hole-grid {
  display: grid; grid-template-columns: repeat(8, 1fr);
  gap: 10px; padding: 1.25rem 1rem 1.25rem 2rem; z-index: 2;
}
.hole-dot {
  width: 15px; height: 15px; border-radius: 50%;
  background: rgba(120, 38, 0, 0.32);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
  transition: all 0.28s ease; cursor: pointer;
}
.hole-dot.is-on {
  background: #FFFFFF;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.8), 0 2px 6px rgba(0, 0, 0, 0.18);
}
.hole-dot:hover {
  transform: scale(1.3); background: #FFFFFF;
  box-shadow: 0 0 16px rgba(255, 255, 255, 1);
}

.cad-hud {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 8px; padding-top: 0.85rem; border-top: 1px solid rgba(255, 255, 255, 0.18);
  margin-top: 0.85rem; text-align: center;
}
.cad-hud__label {
  display: block; font-size: 8px; font-weight: 700;
  letter-spacing: 0.1em; color: rgba(255, 255, 255, 0.65);
}
.cad-hud__val {
  display: block; font-size: 11px; font-weight: 700;
  color: #FFFFFF; font-family: monospace; margin-top: 1px;
}

/* ============================================
   CARD 2: ZIDER (CREATOR COMPONENT SUITE)
   ============================================ */
.visual--zider {
  background: #FFFFFF;
  border: 1px solid rgba(8, 122, 70, 0.16);
  padding: 1.35rem; display: flex; flex-direction: column; gap: 11px;
  box-shadow: 0 32px 90px rgba(8, 122, 70, 0.13), 0 10px 30px rgba(0, 0, 0, 0.04);
}

.zider-header {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 0.65rem; border-bottom: 1px solid #edf4f0;
}
.zider-header__title {
  display: flex; align-items: center; gap: 7px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.12em; color: #087A46;
}
.zider-header__dot {
  width: 7px; height: 7px; border-radius: 50%; background: #087A46;
  box-shadow: 0 0 8px rgba(8, 122, 70, 0.6);
}
.zider-version {
  font-size: 9px; font-weight: 700; color: #087A46;
  background: #eaf6ef; padding: 2px 6px; border-radius: 4px;
}

.zider-widget {
  background: #f8fbf9; border-radius: 12px; padding: 10px 12px;
  border: 1px solid rgba(8, 122, 70, 0.1);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.zider-widget:hover {
  border-color: rgba(8, 122, 70, 0.28);
  transform: translateY(-1px);
}

/* Player Widget */
.zider-widget--player {
  display: flex; align-items: center; gap: 10px;
}
.zider-player__play {
  width: 28px; height: 28px; border-radius: 50%;
  background: #087A46; color: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; box-shadow: 0 3px 8px rgba(8, 122, 70, 0.28);
}
.zider-player__info { flex: 1; min-width: 0; }
.zider-player__title {
  font-size: 10.5px; font-weight: 600; color: #163827;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 4px;
}
.zider-eq { display: flex; align-items: flex-end; gap: 2.5px; height: 10px; }
.eq-bar {
  width: 2.5px; background: #087A46; border-radius: 2px;
  animation: eqBounce 1.2s ease-in-out infinite alternate;
}
.eq-bar:nth-child(1) { height: 40%; animation-delay: 0.1s; }
.eq-bar:nth-child(2) { height: 80%; animation-delay: 0.3s; }
.eq-bar:nth-child(3) { height: 50%; animation-delay: 0.5s; }
.eq-bar:nth-child(4) { height: 100%; animation-delay: 0.2s; }
.eq-bar:nth-child(5) { height: 65%; animation-delay: 0.4s; }
.eq-bar:nth-child(6) { height: 35%; animation-delay: 0.6s; }
.eq-bar:nth-child(7) { height: 90%; animation-delay: 0.15s; }
.eq-bar:nth-child(8) { height: 55%; animation-delay: 0.35s; }
.eq-bar:nth-child(9) { height: 75%; animation-delay: 0.55s; }
@keyframes eqBounce {
  0% { transform: scaleY(0.3); opacity: 0.6; }
  100% { transform: scaleY(1); opacity: 1; }
}
.zider-player__time { font-size: 9.5px; font-weight: 600; color: #6e8c7c; font-family: monospace; }

/* Switch Widget */
.zider-widget--switch {
  display: flex; align-items: center; justify-content: space-between;
}
.zider-switch__left { display: flex; align-items: center; gap: 7px; }
.zider-switch__badge {
  font-size: 8px; font-weight: 700; color: #087A46;
  background: #d8f0e2; padding: 2px 5px; border-radius: 4px;
}
.zider-switch__label { font-size: 10.5px; font-weight: 600; color: #163827; }
.zider-toggle {
  width: 32px; height: 18px; border-radius: 100px;
  background: #087A46; position: relative; cursor: pointer;
  box-shadow: 0 2px 6px rgba(8, 122, 70, 0.25);
}
.zider-toggle__handle {
  width: 14px; height: 14px; border-radius: 50%; background: #fff;
  position: absolute; right: 2px; top: 2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Metric Widget */
.zider-widget--metric {
  display: flex; align-items: center; justify-content: space-between;
}
.zider-metric__content { display: flex; flex-direction: column; }
.zider-metric__num {
  font-size: 14px; font-weight: 800; color: #087A46; line-height: 1.1;
}
.zider-metric__desc {
  font-size: 9px; font-weight: 600; color: #628172; margin-top: 2px;
}
.zider-sparkline { flex-shrink: 0; filter: drop-shadow(0 2px 4px rgba(8, 122, 70, 0.2)); }

/* Platforms */
.zider-platforms {
  margin-top: auto; padding-top: 0.75rem; border-top: 1px solid #edf4f0;
}
.platform-label {
  display: block; font-size: 8.5px; font-weight: 700;
  letter-spacing: 0.1em; color: #829f90; margin-bottom: 5px;
}
.platform-tags { display: flex; gap: 5px; flex-wrap: wrap; }
.platform-tag {
  font-size: 9px; font-weight: 600; background: #f0f7f3; color: #087A46;
  padding: 3px 8px; border-radius: 100px; border: 1px solid rgba(8, 122, 70, 0.1);
  transition: all 0.2s ease;
}
.platform-tag:hover {
  background: #087A46; color: #fff;
}

/* ============================================
   CARD 3: ZIRWORK (DIGITAL OPS COCKPIT)
   ============================================ */
.visual--zirwork {
  background: rgba(14, 22, 19, 0.94);
  border: 1px solid rgba(137, 201, 65, 0.28);
  padding: 1.35rem; display: flex; flex-direction: column; gap: 10px;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.6), 0 0 50px rgba(137, 201, 65, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.zirwork-header {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 0.65rem; border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.zirwork-header__status { display: flex; align-items: center; gap: 7px; }
.zirwork-pulse {
  width: 7px; height: 7px; border-radius: 50%; background: #89C941;
  box-shadow: 0 0 10px #89C941;
  animation: pulseGlow 1.8s ease-in-out infinite;
}
@keyframes pulseGlow {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
}
.zirwork-title {
  font-size: 10px; font-weight: 700; letter-spacing: 0.14em;
  color: #89C941;
}
.zirwork-latency {
  font-size: 8.5px; font-weight: 700; font-family: monospace;
  color: rgba(255, 255, 255, 0.5); background: rgba(255, 255, 255, 0.06);
  padding: 2px 6px; border-radius: 4px;
}

/* KPIs */
.zirwork-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.zirwork-kpi {
  background: rgba(255, 255, 255, 0.03); border-radius: 10px; padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.zirwork-kpi__label {
  display: block; font-size: 8px; font-weight: 700; letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.45); margin-bottom: 3px;
}
.zirwork-kpi__row { display: flex; align-items: baseline; justify-content: space-between; }
.zirwork-kpi__val { font-size: 15px; font-weight: 800; color: #f2f5f2; }
.zirwork-kpi__badge {
  font-size: 8.5px; font-weight: 700; padding: 1px 5px; border-radius: 4px;
  background: rgba(137, 201, 65, 0.15); color: #89C941;
}
.zirwork-kpi__badge--lime {
  background: rgba(137, 201, 65, 0.22); color: #89C941;
}

/* Stream */
.zirwork-stream { display: flex; flex-direction: column; gap: 6px; }
.zirwork-row {
  display: flex; align-items: center; gap: 9px; padding: 8px 10px;
  border-radius: 9px; background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.2s ease;
}
.zirwork-row:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(137, 201, 65, 0.2);
}
.zirwork-row__icon {
  width: 20px; height: 20px; border-radius: 6px;
  background: rgba(137, 201, 65, 0.12); display: flex;
  align-items: center; justify-content: center; flex-shrink: 0;
}
.zirwork-row__body { flex: 1; min-width: 0; }
.zirwork-row__top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 6px; margin-bottom: 4px;
}
.zirwork-row__title {
  font-size: 10px; font-weight: 500; color: rgba(255, 255, 255, 0.82);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.zirwork-badge {
  font-size: 7.5px; font-weight: 700; letter-spacing: 0.04em;
  padding: 1px 6px; border-radius: 4px; flex-shrink: 0;
}
.zirwork-badge--lime { background: rgba(137, 201, 65, 0.2); color: #89C941; }
.zirwork-badge--amber { background: rgba(243, 140, 30, 0.2); color: #F38C1E; }
.zirwork-badge--gray { background: rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.5); }

.zirwork-bar {
  width: 100%; height: 3px; border-radius: 3px;
  background: rgba(255, 255, 255, 0.08); overflow: hidden;
}
.zirwork-bar__fill {
  height: 100%; border-radius: 3px; background: #89C941;
}

/* Footer */
.zirwork-footer {
  margin-top: auto; padding-top: 0.65rem; border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex; align-items: center; gap: 7px;
}
.zirwork-status-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: #89C941; box-shadow: 0 0 8px #89C941; flex-shrink: 0;
}
.zirwork-status-text { font-size: 9px; color: rgba(255, 255, 255, 0.45); }

/* ============================================
   COUNTER + FOOTER
   ============================================ */
.slide-counter {
  position: fixed; bottom: 1.25rem; right: 2rem; z-index: 100;
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  color: rgba(0, 0, 0, 0.22); pointer-events: none; transition: color 0.5s, opacity 0.4s;
}

.footer-strip {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  height: 38px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem; font-size: 10px; font-weight: 500;
  color: rgba(0, 0, 0, 0.24); border-top: 1px solid rgba(0, 0, 0, 0.04);
  pointer-events: none; transition: all 0.5s;
}
.footer-strip a {
  pointer-events: auto;
  transition: all 0.2s ease;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.footer-strip a:hover {
  color: #111;
  border-bottom-color: currentColor;
}
body.dark-slide .footer-strip a {
  color: rgba(255, 255, 255, 0.45);
}
body.dark-slide .footer-strip a:hover {
  color: #89C941;
  border-bottom-color: currentColor;
}

/* ============================================
   SLIDE TRANSITIONS
   ============================================ */
.slide.enter-up   { animation: enterUp   0.7s var(--ease-spring) forwards; }
.slide.enter-down { animation: enterDown 0.7s var(--ease-spring) forwards; }
.slide.leave-up   { animation: leaveUp   0.5s var(--ease-out) forwards; }
.slide.leave-down { animation: leaveDown 0.5s var(--ease-out) forwards; }

@keyframes enterUp   { from { opacity:0; transform:translateY(70px);  } to { opacity:1; transform:translateY(0); } }
@keyframes enterDown { from { opacity:0; transform:translateY(-70px); } to { opacity:1; transform:translateY(0); } }
@keyframes leaveUp   { from { opacity:1; transform:translateY(0); }  to { opacity:0; transform:translateY(-55px); } }
@keyframes leaveDown { from { opacity:1; transform:translateY(0); }  to { opacity:0; transform:translateY(55px); } }

.slide.is-active .slide__num       { animation: staggerIn 0.7s var(--ease-spring) 0.05s both; }
.slide.is-active .slide__logo-wrap { animation: staggerIn 0.7s var(--ease-spring) 0.12s both; }
.slide.is-active .slide__title     { animation: staggerIn 0.8s var(--ease-spring) 0.18s both; }
.slide.is-active .slide__desc      { animation: staggerIn 0.8s var(--ease-spring) 0.25s both; }
.slide.is-active .slide__cta       { animation: staggerIn 0.7s var(--ease-spring) 0.32s both; }
@keyframes staggerIn {
  from { opacity:0; transform:translateY(24px); }
  to   { opacity:1; transform:translateY(0); }
}

.animate-in {
  opacity: 0; transform: translateY(18px);
  animation: fadeUp 0.75s var(--ease-spring) var(--delay, 0s) both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================
   RESPONSIVE (MOBILE & TABLET ADAPTATION)
   ============================================ */
@media (max-width: 768px) {
  .slide__inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    padding: 2.5rem 1.5rem 4.5rem;
    gap: 1.5rem;
    align-content: center;
    justify-items: center;
    text-align: center;
  }

  .slide__left {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .slide__left::before { display: none; }

  .slide__num {
    margin-bottom: 0.85rem;
    font-size: 10px;
  }

  .slide__logo-wrap {
    margin-bottom: 0.85rem;
  }

  .slide__logo--holesnap { height: 25px; }
  .slide__logo--zider { height: 20px; }
  .slide__logo--zirwork { height: 20px; }

  .slide__title {
    font-size: 1.75rem;
    line-height: 1.15;
    margin-bottom: 0.75rem;
  }

  .slide__desc {
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    max-width: 320px;
  }

  .slide__cta {
    padding: 9px 18px;
    font-size: 12px;
  }

  .slide__right {
    height: auto;
    width: 100%;
    max-width: 320px;
  }

  .visual-card {
    max-width: 320px;
    height: auto;
    aspect-ratio: auto;
    border-radius: 16px;
  }

  .visual--holesnap {
    padding: 0.85rem;
  }
  .cad-header { margin-bottom: 0.5rem; padding-bottom: 0.5rem; }
  .cad-hud { margin-top: 0.5rem; padding-top: 0.5rem; }
  .hole-grid {
    padding: 0.6rem 0.5rem 0.6rem 1.25rem;
    gap: 6px;
  }
  .hole-dot {
    width: 11px;
    height: 11px;
  }

  .visual--zider {
    padding: 0.85rem;
    gap: 7px;
  }
  .zider-widget { padding: 6px 9px; }
  .zider-platforms { padding-top: 0.5rem; }

  .visual--zirwork {
    padding: 0.85rem;
    gap: 6px;
  }
  .zirwork-kpis { gap: 6px; }
  .zirwork-kpi { padding: 5px 7px; }
  .zirwork-stream { gap: 5px; }
  .zirwork-row { padding: 5px 7px; gap: 7px; }
  .zirwork-footer { padding-top: 0.4rem; }

  .bg-name { font-size: 20vw; }

  .hero-logo__img { height: 45px; }
  .hero-tagline { font-size: 10px; letter-spacing: 0.16em; }
  .hero-sub { font-size: 13px; margin-bottom: 1.75rem; padding: 0 0.5rem; }

  .float-dots {
    right: 0.75rem;
    gap: 7px;
  }
  .dot { width: 5px; height: 5px; }
  .dot.active { height: 16px; width: 5px; }

  /* Mobile footer layout: balanced, clean, non-overlapping */
  .footer-strip {
    padding: 0 1rem;
    font-size: 8.5px;
    line-height: 1.4;
    height: auto;
    min-height: 28px;
    bottom: max(0.45rem, env(safe-area-inset-bottom, 0.45rem));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 2px;
    border-top: none;
    background: transparent;
    z-index: 100;
  }

  .footer-strip .footer-copy {
    display: inline-block;
    color: rgba(0, 0, 0, 0.4);
    font-size: 8.5px;
    white-space: normal;
  }

  body.dark-slide .footer-strip .footer-copy {
    color: rgba(255, 255, 255, 0.4);
  }

  .footer-strip .footer-domain {
    display: inline-block;
    font-size: 9px;
  }

  /* Float scroll button comfortably above the footer text */
  .bottom-scroll-btn {
    bottom: max(2.9rem, calc(2.5rem + env(safe-area-inset-bottom, 0.65rem)));
    padding: 5px 13px 5px 8px;
  }
  .scroll-badge { width: 22px; height: 22px; }
  .scroll-btn__text { font-size: 9px; letter-spacing: 0.1em; }
  .slide-counter { right: 1rem; font-size: 10px; }
}
