:root {
  --ink: #17151d;
  --muted: rgba(23, 21, 29, 0.64);
  --lav: #b8a9d4;
  --lav-dark: #6f5e96;
  --lime: #c5e84d;
  --panel: rgba(255, 255, 255, 0.86);
  --shadow: rgba(15, 13, 24, 0.24);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  height: 100%;
  min-height: 100%;
}

body {
  overflow: hidden;
  color: var(--ink);
  background: #f6f3fb;
  font-family: "Inter", "Aptos", "Segoe UI Variable Text", "Segoe UI", sans-serif;
}

.zoom-hero-page,
.zoom-hero-shell {
  width: 100%;
  height: 100%;
  min-height: 100vh;
  overflow: hidden;
}

.zoom-hero-shell {
  --origin-x: 50%;
  --origin-y: 50%;
  --map-x: 3%;
  --map-y: 3%;
  --map-w: 94%;
  --map-h: 94%;
  --pan-x: 0%;
  --pan-y: 0%;
  --image-scale: 1;
  --cursor-x: 68%;
  --cursor-y: 45%;
  position: relative;
  background:
    radial-gradient(circle at 18% 14%, rgba(184, 169, 212, 0.5), transparent 27%),
    radial-gradient(circle at 84% 14%, rgba(197, 232, 77, 0.2), transparent 23%),
    linear-gradient(135deg, #fbf9ff 0%, #efe9fa 50%, #ddd2f1 100%);
}

.zoom-hero-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(23, 21, 29, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 21, 29, 0.03) 1px, transparent 1px);
  background-size: clamp(24px, 3vw, 44px) clamp(24px, 3vw, 44px);
  mask-image: radial-gradient(circle at 45% 45%, rgba(0, 0, 0, 0.34), transparent 72%);
  pointer-events: none;
}

.viewer-stage {
  position: absolute;
  left: clamp(12px, 2vw, 28px);
  top: clamp(12px, 2vw, 28px);
  bottom: clamp(12px, 2vw, 28px);
  width: 63%;
  overflow: hidden;
  border: 1px solid rgba(23, 21, 29, 0.12);
  border-radius: clamp(18px, 2.4vw, 34px);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 28px 76px var(--shadow);
}

.page-surface,
.viewer-overlay {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.page-surface {
  display: grid;
  grid-template-rows: auto 1fr;
  background:
    radial-gradient(circle at 18% 24%, rgba(184, 169, 212, 0.26), transparent 24%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(248, 245, 255, 0.76));
  opacity: 1;
  transform: scale(1);
  transition: opacity 560ms ease, transform 720ms cubic-bezier(0.2, 0.82, 0.18, 1), filter 560ms ease;
}

.zoom-hero-shell.is-viewer-open .page-surface {
  opacity: 0;
  transform: scale(0.97);
  filter: blur(2px);
}

.page-browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: clamp(42px, 4.4vw, 58px);
  padding: 0 clamp(14px, 1.7vw, 22px);
  border-bottom: 1px solid rgba(23, 21, 29, 0.1);
}

.page-browser-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.page-browser-bar span:nth-child(1) { background: #5a7bc9; }
.page-browser-bar span:nth-child(2) { background: #ee8735; }
.page-browser-bar span:nth-child(3) { background: #6eae4b; }

.page-content {
  position: relative;
  display: grid;
  grid-template-columns: minmax(190px, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(18px, 2.5vw, 34px);
  align-items: center;
  padding: clamp(24px, 4vw, 56px);
}

.page-copy {
  display: grid;
  gap: 12px;
  color: var(--ink);
}

.page-copy p {
  color: var(--lav-dark);
  font-size: clamp(0.72rem, 0.9vw, 0.9rem);
  font-weight: 850;
  letter-spacing: 0.04em;
}

.page-copy strong {
  max-width: 320px;
  font-size: clamp(1.1rem, 2.1vw, 2rem);
  line-height: 1.08;
}

.page-copy span {
  display: block;
  height: 9px;
  border-radius: 999px;
  background: rgba(23, 21, 29, 0.1);
}

.page-copy span:nth-of-type(1) { width: 74%; }
.page-copy span:nth-of-type(2) { width: 92%; }
.page-copy span:nth-of-type(3) { width: 58%; }

.thumbnail-cluster {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 1.4vw, 16px);
}

.thumbnail-card {
  position: relative;
  overflow: hidden;
  min-height: clamp(132px, 16vw, 210px);
  border: 1.5px solid rgba(23, 21, 29, 0.12);
  border-radius: clamp(16px, 2vw, 26px);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 16px 34px rgba(23, 21, 29, 0.08);
  transform: translateY(0) scale(1);
  transition: transform 420ms ease, border-color 420ms ease, box-shadow 420ms ease;
}

.thumbnail-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.thumbnail-card span {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  display: inline-flex;
  justify-content: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(13, 12, 18, 0.66);
  color: #fff;
  font-size: clamp(0.56rem, 0.7vw, 0.74rem);
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.thumbnail-card.is-active,
.zoom-hero-shell.is-clicking .thumbnail-card.is-active {
  border-color: rgba(197, 232, 77, 0.92);
  box-shadow: 0 22px 48px rgba(111, 94, 150, 0.22), 0 0 0 8px rgba(197, 232, 77, 0.14);
  transform: translateY(-4px) scale(1.02);
}

.hero-cursor {
  position: absolute;
  z-index: 8;
  left: var(--cursor-x);
  top: var(--cursor-y);
  width: clamp(44px, 5.5vw, 72px);
  height: clamp(44px, 5.5vw, 72px);
  border: 2px solid rgba(197, 232, 77, 0.96);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  box-shadow: 0 0 0 12px rgba(197, 232, 77, 0.12), 0 0 36px rgba(197, 232, 77, 0.3);
  transition: left 820ms cubic-bezier(0.2, 0.82, 0.18, 1), top 820ms cubic-bezier(0.2, 0.82, 0.18, 1), opacity 420ms ease, transform 420ms ease;
}

.zoom-hero-shell.is-clicking .hero-cursor,
.zoom-hero-shell.is-interacting .hero-cursor,
.zoom-hero-shell.is-closing .hero-cursor {
  transform: translate(-50%, -50%) scale(1.08);
}

.zoom-hero-shell.is-viewer-open .hero-cursor {
  opacity: 0;
}

.viewer-overlay {
  display: block;
  background: #0d0c12;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.62);
  transform-origin: var(--cursor-x) var(--cursor-y);
  border-radius: clamp(18px, 2.4vw, 34px);
  transition: opacity 560ms ease, transform 820ms cubic-bezier(0.2, 0.82, 0.18, 1), border-radius 720ms ease;
}

.zoom-hero-shell.is-viewer-open .viewer-overlay {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
  border-radius: 0;
}

.zoom-hero-shell.is-closing .viewer-overlay {
  opacity: 0;
  transform: scale(0.42);
  border-radius: clamp(18px, 2.4vw, 34px);
}

.viewer-close {
  position: absolute;
  z-index: 8;
  right: clamp(14px, 1.6vw, 22px);
  top: clamp(14px, 1.6vw, 22px);
  width: clamp(30px, 3vw, 40px);
  height: clamp(30px, 3vw, 40px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: clamp(1rem, 1.4vw, 1.4rem);
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px) scale(0.94);
  transition: opacity 420ms ease, transform 420ms ease, background 420ms ease;
  backdrop-filter: blur(12px);
}

.viewer-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.zoom-canvas {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.zoom-image {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(var(--image-scale)) translate3d(var(--pan-x), var(--pan-y), 0);
  transform-origin: var(--origin-x) var(--origin-y);
  transition: transform 980ms cubic-bezier(0.2, 0.82, 0.18, 1), transform-origin 980ms ease;
}

.viewer-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at var(--origin-x) var(--origin-y), transparent 0 34%, rgba(0, 0, 0, 0.08) 62%, rgba(0, 0, 0, 0.32) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.16), transparent 34%, rgba(0, 0, 0, 0.16));
  opacity: 0;
  transition: opacity 520ms ease;
}

.click-target,
.zoom-readout,
.mini-map {
  opacity: 0;
  pointer-events: none;
  transition: opacity 520ms ease, transform 520ms ease;
}

.click-target {
  position: absolute;
  left: var(--origin-x);
  top: var(--origin-y);
  width: clamp(48px, 6vw, 86px);
  height: clamp(48px, 6vw, 86px);
  border: 2px solid rgba(197, 232, 77, 0.96);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.92);
  box-shadow: 0 0 0 12px rgba(197, 232, 77, 0.12), 0 0 36px rgba(197, 232, 77, 0.32);
}

.zoom-readout {
  position: absolute;
  z-index: 5;
  left: clamp(14px, 1.6vw, 22px);
  top: clamp(14px, 1.6vw, 22px);
  min-width: clamp(58px, 6vw, 76px);
  min-height: clamp(30px, 3vw, 38px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(13, 12, 18, 0.62);
  color: var(--lime);
  font-size: clamp(0.72rem, 0.92vw, 1rem);
  font-weight: 850;
  backdrop-filter: blur(14px);
  transform: translateY(-8px);
}

.mini-map {
  position: absolute;
  z-index: 5;
  right: clamp(14px, 1.6vw, 22px);
  bottom: clamp(14px, 1.6vw, 22px);
  width: clamp(98px, 12vw, 156px);
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.24);
  transform: translateY(8px);
}

.mini-map img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.86;
}

.mini-map span {
  position: absolute;
  left: var(--map-x);
  top: var(--map-y);
  width: var(--map-w);
  height: var(--map-h);
  border: 2px solid var(--lime);
  border-radius: 7px;
  box-shadow: 0 0 18px rgba(197, 232, 77, 0.3);
  transition: left 760ms ease, top 760ms ease, width 760ms ease, height 760ms ease;
}

.zoom-hero-shell.is-interacting .zoom-readout,
.zoom-hero-shell.is-interacting .mini-map,
.zoom-hero-shell.is-control-active .zoom-readout,
.zoom-hero-shell.is-control-active .mini-map,
.zoom-hero-shell.is-control-active .viewer-close,
.zoom-hero-shell.is-interacting .viewer-close,
.zoom-hero-shell.is-interacting .click-target {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

.zoom-hero-shell.is-control-active .viewer-close,
.zoom-hero-shell.is-interacting .viewer-close {
  pointer-events: auto;
}

.zoom-hero-shell.is-interacting .viewer-vignette {
  opacity: 1;
}

.zoom-hero-shell.is-interacting .click-target {
  transform: translate(-50%, -50%) scale(1);
}

.zoom-hero-shell.is-control-active .hero-cursor {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.08);
}

.analytics-panel {
  position: absolute;
  z-index: 7;
  right: clamp(12px, 2vw, 28px);
  top: clamp(12px, 2vw, 28px);
  bottom: clamp(12px, 2vw, 28px);
  width: 31%;
  display: grid;
  grid-template-rows: auto auto minmax(94px, 1fr) auto;
  gap: clamp(9px, 1.1vw, 14px);
  padding: clamp(14px, 1.5vw, 22px);
  border: 1px solid rgba(23, 21, 29, 0.11);
  border-radius: clamp(18px, 2.1vw, 30px);
  background: var(--panel);
  box-shadow: 0 28px 70px rgba(23, 21, 29, 0.16);
  backdrop-filter: blur(18px);
}

.analytics-head,
.chart-title,
.tracked-table-head,
.tracked-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.analytics-head p {
  color: var(--lav-dark);
  font-size: clamp(0.82rem, 1vw, 1rem);
  font-weight: 850;
}

.analytics-head span {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  background: rgba(197, 232, 77, 0.28);
  color: #57700f;
  font-size: clamp(0.62rem, 0.76vw, 0.8rem);
  font-weight: 850;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(8px, 0.9vw, 11px);
}

.metric-grid article,
.chart-card,
.tracked-table {
  border: 1px solid rgba(23, 21, 29, 0.09);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.64);
}

.metric-grid article {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 4px;
  min-height: clamp(54px, 7vw, 78px);
  padding: clamp(9px, 0.95vw, 13px);
}

.metric-grid span,
.chart-title span,
.tracked-table-head {
  color: var(--muted);
  font-size: clamp(0.58rem, 0.72vw, 0.78rem);
  font-weight: 760;
}

.metric-grid strong {
  font-size: clamp(1rem, 1.55vw, 1.46rem);
  line-height: 1.04;
}

.chart-card {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: clamp(7px, 0.8vw, 10px);
  overflow: hidden;
  padding: clamp(10px, 1.1vw, 14px);
}

.chart-title strong {
  color: var(--ink);
  font-size: clamp(0.68rem, 0.84vw, 0.92rem);
}

.chart-grid {
  min-height: 84px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: end;
  gap: clamp(5px, 0.7vw, 8px);
}

.chart-bar {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(24px, 1fr) auto;
  align-items: end;
  gap: 5px;
}

.chart-bar span {
  display: block;
  width: 100%;
  min-height: 16px;
  height: var(--bar);
  border-radius: 999px 999px 6px 6px;
  background: linear-gradient(180deg, var(--lav), var(--lav-dark));
  box-shadow: 0 10px 18px rgba(111, 94, 150, 0.16);
  transition: height 620ms cubic-bezier(0.2, 0.82, 0.18, 1);
}

.chart-bar small {
  color: rgba(23, 21, 29, 0.48);
  font-size: clamp(0.54rem, 0.64vw, 0.7rem);
  text-align: center;
}

.tracked-table {
  overflow: hidden;
}

.tracked-table-head,
.tracked-row {
  padding: clamp(7px, 0.85vw, 10px) clamp(9px, 1vw, 12px);
}

.tracked-table-head {
  border-bottom: 1px solid rgba(23, 21, 29, 0.08);
}

.tracked-row {
  color: var(--muted);
  font-size: clamp(0.62rem, 0.78vw, 0.86rem);
}

.tracked-row + .tracked-row {
  border-top: 1px solid rgba(23, 21, 29, 0.06);
}

.tracked-row.is-active {
  background: rgba(197, 232, 77, 0.2);
  color: var(--ink);
}

.tracked-image {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tracked-image img {
  width: clamp(28px, 3.2vw, 38px);
  height: clamp(28px, 3.2vw, 38px);
  flex: 0 0 auto;
  border-radius: 9px;
  object-fit: cover;
}

.tracked-image span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tracked-row strong {
  color: inherit;
}

@media (max-width: 760px) {
  .viewer-stage {
    width: calc(100% - clamp(24px, 4vw, 56px));
    bottom: 33%;
  }

  .analytics-panel {
    left: clamp(12px, 2vw, 28px);
    right: clamp(12px, 2vw, 28px);
    top: auto;
    width: auto;
    height: 30%;
    grid-template-rows: auto auto;
  }

  .metric-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .chart-card,
  .tracked-table,
  .mini-map {
    display: none;
  }
}

@media (max-height: 660px) {
  .viewer-stage {
    left: clamp(10px, 1.5vw, 18px);
    top: clamp(10px, 1.5vw, 18px);
    bottom: clamp(10px, 1.5vw, 18px);
  }

  .analytics-panel {
    right: clamp(10px, 1.5vw, 18px);
    top: clamp(10px, 1.5vw, 18px);
    bottom: clamp(10px, 1.5vw, 18px);
    grid-template-rows: auto auto minmax(78px, 1fr) auto;
    gap: clamp(7px, 0.85vw, 10px);
    padding: clamp(10px, 1.1vw, 14px);
  }

  .metric-grid article {
    min-height: 50px;
    gap: 2px;
    padding: clamp(7px, 0.82vw, 10px);
    border-radius: 13px;
  }

  .chart-card {
    padding: clamp(7px, 0.9vw, 10px);
  }

  .chart-grid {
    min-height: 64px;
  }

  .tracked-table-head,
  .tracked-row {
    padding: 6px 8px;
  }

  .tracked-image img {
    width: 28px;
    height: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}