:root {
  --bg: #ffffff;
  --bg-ice: #eef5ff;
  --bg-ice-soft: #f5f9ff;
  --navy-deep: #030a24;
  --cobalt: #1e62f5;
  --ice-bar: #d4e4ff;
  --cyan-glow: #4ff2ff;
  --ink: #111622;
  --ink-secondary: #4a5368;
  --ink-muted: #7a859e;
  --border: #dce6f7;
  --border-strong: #bfd2f2;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "PingFang SC", "Hiragino Sans GB", sans-serif;
  --font-mono: "SF Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background: #060d24;
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Mobile Portrait Viewport Shell: full-bleed on phones, centered 430px canvas on desktop */
.mobile-shell {
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  margin: 0 auto;
  background: #fff;
  position: relative;
  padding-bottom: calc(84px + env(safe-area-inset-bottom));
  box-shadow: 0 0 80px rgba(0, 0, 0, 0.55);
  overflow-x: hidden;
}

/* Compact Sticky Top Bar */
.m-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.m-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 0.98rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

.m-mark {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--cobalt);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.82rem;
  font-weight: 800;
}

.m-top-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.m-chip-btn {
  height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: #fff;
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.m-chip-btn.primary {
  background: var(--cobalt);
  border-color: var(--cobalt);
  color: #fff;
}

/* Vertical Electric-Blue Reeded Glass Cover */
.m-cover {
  position: relative;
  overflow: hidden;
  padding: 36px 20px 30px;
  color: #fff;
  background: linear-gradient(142deg, #030a24 0%, #071952 38%, #155eef 70%, #4ff2ff 92%, #1450d4 100%);
}

.m-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.055) 0px,
    rgba(255, 255, 255, 0.055) 1px,
    transparent 1px,
    transparent 38px
  );
}

.m-cover-inner {
  position: relative;
  z-index: 2;
}

.m-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a8f8ff;
  margin-bottom: 14px;
}

.m-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan-glow);
}

.m-title {
  font-size: 2.05rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.035em;
  margin-bottom: 14px;
}

.m-title em {
  font-style: normal;
  color: #a8f8ff;
}

.m-title .desktop-br {
  display: none;
}

.m-desc {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 20px;
}

.m-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
}

.tag-pill {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
}

.m-cover-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* Mobile Sections */
.m-section {
  padding: 28px 18px;
  border-bottom: 1px solid var(--border);
  background: #fff;
}

.m-section.ice {
  background: linear-gradient(160deg, #ebf3ff 0%, #ffffff 70%);
}

.m-sec-head {
  margin-bottom: 18px;
}

.m-sec-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--cobalt);
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.m-sec-title {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 6px;
}

.m-sec-sub {
  font-size: 0.84rem;
  color: var(--ink-secondary);
}

/* Giant Cobalt Stat Card */
.m-mega-card {
  padding: 22px 18px;
  border-radius: 18px;
  background: var(--bg-ice-soft);
  border: 1px solid var(--border);
  margin-bottom: 14px;
}

.m-mega-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--cobalt);
  margin-bottom: 4px;
}

.m-mega-num {
  font-size: 3.35rem;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
  color: var(--cobalt);
  font-variant-numeric: tabular-nums;
  margin-bottom: 8px;
}

.m-mega-sub {
  font-size: 0.82rem;
  color: var(--ink-secondary);
}

.m-kpi-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.m-kpi-box {
  padding: 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--border);
}

.m-kpi-lbl {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--ink-muted);
  margin-bottom: 4px;
}

.m-kpi-val {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--cobalt);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.m-kpi-note {
  font-size: 0.72rem;
  color: var(--ink-secondary);
  margin-top: 2px;
}

/* Horizontal Swipeable Platform Tabs */
.tabs-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 16px;
  scrollbar-width: none;
}

.tabs-bar::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  flex: 0 0 auto;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: #fff;
  color: var(--ink-secondary);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tab-btn.active {
  background: var(--cobalt);
  border-color: var(--cobalt);
  color: #fff;
}

.tab-count {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  opacity: 0.82;
}

/* Dashboard stacked for mobile portrait */
.dashboard-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.panel-left {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.platform-hero-card,
.chart-card {
  padding: 18px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--border);
}

.platform-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.platform-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.15rem;
  font-weight: 800;
}

.platform-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.platform-badge {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-ice);
  color: var(--cobalt);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
}

.platform-summary {
  font-size: 0.84rem;
  color: var(--ink-secondary);
  margin-bottom: 14px;
}

.mini-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.mini-metric {
  padding: 11px 12px;
  border-radius: 10px;
  background: var(--bg-ice-soft);
  border: 1px solid var(--border);
}

.mini-metric-label {
  font-size: 0.68rem;
  color: var(--ink-muted);
  font-weight: 600;
}

.mini-metric-val {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--cobalt);
  font-variant-numeric: tabular-nums;
}

.mini-metric-note {
  font-size: 0.68rem;
  color: var(--ink-secondary);
}

.chart-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.fig-badge {
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--navy-deep);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 700;
}

.chart-title {
  font-size: 0.84rem;
  font-weight: 700;
}

.chart-hint {
  display: none;
}

.bar-chart {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bvnk-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 13px;
  border-radius: 10px;
  min-width: 135px;
}

.bvnk-bar.primary {
  background: var(--cobalt);
  color: #fff;
}

.bvnk-bar.secondary {
  background: var(--ice-bar);
  color: var(--cobalt);
}

.bvnk-bar-val {
  font-size: 1.05rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.bvnk-bar-label {
  font-size: 0.76rem;
  font-weight: 600;
}

/* Horizontal Touch-Snap Carousel for Screenshots */
.screenshots-stage {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 2px 10px;
  scrollbar-width: none;
}

.screenshots-stage::-webkit-scrollbar {
  display: none;
}

.phone-card {
  flex: 0 0 220px;
  scroll-snap-align: start;
  cursor: pointer;
}

.phone-frame {
  padding: 8px;
  border-radius: 26px;
  background: var(--navy-deep);
  border: 2px solid #1d2d5c;
  box-shadow: 0 12px 28px rgba(10, 36, 114, 0.16);
}

.phone-notch {
  width: 52px;
  height: 10px;
  border-radius: 999px;
  background: #000;
  margin: 0 auto 6px;
}

.phone-screen {
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  position: relative;
  background: #fff;
}

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

.browser-frame {
  flex: 0 0 100%;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: #fff;
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: var(--bg-ice);
  border-bottom: 1px solid var(--border);
}

.browser-dots { display: flex; gap: 5px; }
.browser-dots span { width: 8px; height: 8px; border-radius: 50%; }
.browser-dots span:nth-child(1) { background: #ff5f56; }
.browser-dots span:nth-child(2) { background: #ffbd2e; }
.browser-dots span:nth-child(3) { background: #27c93f; }
.browser-url { font-family: var(--font-mono); font-size: 0.68rem; color: var(--ink-secondary); margin-left: 6px; }
.browser-screen { position: relative; }
.browser-screen img { width: 100%; height: auto; display: block; }

.shot-caption {
  margin-top: 8px;
  text-align: center;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--ink-secondary);
}

.shot-zoom-hint {
  position: absolute;
  bottom: 8px;
  right: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(3, 10, 36, 0.78);
  color: #fff;
  font-size: 0.66rem;
  font-weight: 600;
}

/* O2O Mobile Spotlight */
.m-spotlight {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
}

.m-spotlight-img {
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  cursor: pointer;
}

.m-spotlight-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  display: block;
}

.m-spotlight-body {
  padding: 18px;
}

.m-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-ice);
  color: var(--cobalt);
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.m-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 14px 0 16px;
}

.m-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--bg-ice-soft);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  font-weight: 600;
}

.m-step-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--cobalt);
}

.m-btn-full {
  width: 100%;
  padding: 12px;
  border-radius: 999px;
  border: none;
  background: var(--cobalt);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
}

/* Mobile 2-Column Client Gallery */
.filter-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 14px;
  scrollbar-width: none;
}

.filter-bar::-webkit-scrollbar { display: none; }

.filter-pill {
  flex: 0 0 auto;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: #fff;
  color: var(--ink-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.filter-pill.active {
  background: var(--cobalt);
  border-color: var(--cobalt);
  color: #fff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.photo-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--bg-ice-soft);
  border: 1px solid var(--border);
  cursor: pointer;
}

.photo-card.landscape {
  grid-column: span 2;
  aspect-ratio: 16 / 10;
}

.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

.photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(3, 10, 36, 0.88) 0%, rgba(3, 10, 36, 0.1) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 10px;
}

.photo-cat {
  display: inline-block;
  align-self: flex-start;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(30, 98, 245, 0.88);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.photo-title {
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.25;
}

.photo-meta {
  display: none;
}

/* Mobile Contact Band */
.m-contact {
  padding: 32px 18px 28px;
  color: #fff;
  background: linear-gradient(145deg, #030a24 0%, #092066 55%, #1e62f5 100%);
}

.m-contact-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #fff;
  margin-top: 10px;
  text-align: left;
  cursor: pointer;
}

.m-contact-lbl {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.72);
  text-transform: uppercase;
}

.m-contact-val {
  font-family: var(--font-mono);
  font-size: 0.94rem;
  font-weight: 700;
}

.m-copy-chip {
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff;
  color: var(--navy-deep);
  font-size: 0.72rem;
  font-weight: 700;
}

.m-footer {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
}

/* Floating Bottom Thumb Navigation Dock */
.bottom-dock {
  position: fixed;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 24px);
  max-width: 406px;
  z-index: 60;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 6px;
  border-radius: 999px;
  background: rgba(3, 10, 36, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 14px 36px rgba(3, 10, 36, 0.42);
}

.bottom-dock a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
  padding: 9px 4px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.bottom-dock a:hover,
.bottom-dock a:active {
  background: var(--cobalt);
  color: #fff;
}

/* Lightbox & Toast */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(3, 10, 36, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox-top { position: absolute; top: 16px; left: 16px; right: 16px; display: flex; justify-content: space-between; align-items: center; color: #fff; }
.lightbox-counter { font-family: var(--font-mono); font-size: 0.82rem; }
.lightbox-actions { display: flex; gap: 8px; }
.lb-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.25); background: rgba(255, 255, 255, 0.1); color: #fff; font-size: 1rem; cursor: pointer; display: grid; place-items: center; }
.lightbox-stage { max-width: 94vw; max-height: 72vh; display: flex; align-items: center; justify-content: center; }
.lightbox-stage img { max-width: 100%; max-height: 72vh; border-radius: 12px; transition: transform 0.25s ease; }
.lightbox-stage img.zoomed { transform: scale(1.5); }
.lb-nav { position: fixed; top: 50%; transform: translateY(-50%); z-index: 102; }
.lb-prev { left: 8px; }
.lb-next { right: 8px; }
.lightbox-caption { margin-top: 14px; text-align: center; color: #fff; }
.lightbox-caption h4 { font-size: 0.92rem; margin-bottom: 3px; }
.lightbox-caption p { font-size: 0.78rem; color: rgba(255, 255, 255, 0.74); }

.toast {
  position: fixed;
  bottom: 84px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--navy-deep);
  color: #fff;
  border: 1px solid rgba(79, 242, 255, 0.45);
  font-size: 0.8rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  z-index: 120;
  transition: all 0.22s ease;
}

.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
