/* =============================================================
   PREMIUM PASS — typography, depth, motion, polish (shared)
   Loaded AFTER each page's inline <style> so it overrides safely.
   ============================================================= */

:root {
  --shadow-xs: 0 1px 2px rgba(15,23,42,0.04);
  --shadow-sm: 0 1px 2px rgba(15,23,42,0.04), 0 4px 10px rgba(15,23,42,0.04);
  --shadow-md: 0 1px 2px rgba(15,23,42,0.05), 0 12px 30px rgba(15,23,42,0.06);
  --shadow-lg: 0 1px 3px rgba(15,23,42,0.06), 0 20px 50px rgba(15,23,42,0.10);
  --shadow-xl: 0 2px 4px rgba(15,23,42,0.06), 0 30px 70px rgba(15,23,42,0.14);
  --ink: #18181b;
  --muted: #52525b;
}

/* --- Typography refinement --- */
body { color: var(--ink); }
.s1-hero h1 {
  font-family: 'Instrument Serif', 'Inter', serif;
  font-weight: 400;
  letter-spacing: -0.025em;
  font-size: 78px;
  line-height: 1.02;
}
.s1-hero h1 .accent {
  font-style: italic;
  font-family: 'Instrument Serif', serif;
}
.s1-section-h,
.s1-section h2,
.s1-cta-final h2,
.s1-platform h2 {
  font-family: 'Instrument Serif', 'Inter', serif;
  font-weight: 400;
  letter-spacing: -0.022em;
  font-size: 56px;
  line-height: 1.05;
}
.s1-section-sub { color: var(--muted); line-height: 1.7; font-size: 18px; }
.s1-hero p.lede,
.s1-hero p { line-height: 1.7; }
.s1-section { padding: 130px 0; }
.s1 .container { max-width: 1180px; }

/* Soften body weights so the display serif carries the heaviness */
.s1-uc h3, .s1-why-card h3, .s1-problem-card h3, .s1-step-h, .s1-feat,
.s1-tier-name, .s1-tier h3 { font-weight: 600; }

/* --- Layered shadow upgrade --- */
.s1-uc, .s1-why-card, .s1-problem-card, .s1-tier {
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.s1-uc:hover, .s1-why-card:hover, .s1-problem-card:hover, .s1-tier:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
/* Ensure hover lift wins over .reveal.in (same specificity, source order). */
.reveal.in.s1-uc:hover,
.reveal.in.s1-why-card:hover,
.reveal.in.s1-problem-card:hover,
.reveal.in.s1-tier:hover { transform: translateY(-4px); }
.opt-track-figure, .rc-figure, .reg-figure, .s1-platform-img {
  box-shadow: var(--shadow-xl) !important;
}

/* Premium screenshot card framing */
.s1-platform-img {
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.10);
}

/* --- Reveal-on-scroll utility --- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* --- Hero animated mesh + drifting blobs --- */
.s1-hero::before {
  animation: heroDrift 24s ease-in-out infinite alternate;
}
@keyframes heroDrift {
  0%   { transform: translate3d(0,0,0) scale(1); }
  50%  { transform: translate3d(-2%, 1%, 0) scale(1.04); }
  100% { transform: translate3d(2%, -1%, 0) scale(1); }
}

/* --- Cursor-tracking glow on dark Platform block (no-op if absent) --- */
.s1-platform { position: relative; overflow: hidden; }
.s1-platform::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(450px circle at var(--mx, 50%) var(--my, 50%), rgba(167,139,250,0.18), transparent 60%);
  opacity: 0; transition: opacity 0.4s ease;
}
.s1-platform.is-hovering::before { opacity: 1; }

/* --- Trust row under hero CTAs (no-op if absent) --- */
.s1-trust {
  display: flex; flex-wrap: wrap; gap: 22px 28px; align-items: center;
  padding: 18px 0 8px;
  font-size: 13px; color: #94a3b8;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 28px;
}
.s1-trust-item { display: inline-flex; align-items: center; gap: 8px; letter-spacing: 0.01em; }
.s1-trust-item::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: linear-gradient(135deg, #a78bfa, #7c3aed);
  box-shadow: 0 0 10px rgba(167,139,250,0.6);
}

/* --- Subtle nav border + dark glass on scroll --- */
.s1-nav { transition: border-color 0.25s ease, background 0.25s ease, backdrop-filter 0.25s ease; border-bottom: 1px solid transparent; }
.s1-nav.scrolled {
  border-bottom-color: rgba(255,255,255,0.12);
  background: rgba(10,10,26,0.96);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}

/* --- Top scroll progress indicator --- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0; z-index: 9999;
  background: linear-gradient(90deg, #7c3aed, #a855f7);
  transition: width 0.05s linear;
}

/* Mobile tweaks for the larger display type */
@media (max-width: 900px) {
  .s1-hero h1 { font-size: 54px !important; }
  .s1-section-h,
  .s1-section h2,
  .s1-cta-final h2,
  .s1-platform h2 { font-size: 38px; }
  .s1-section { padding: 90px 0; }
}

/* --- Click-to-zoom lightbox (shared) --- */
.zoomable { cursor: zoom-in; transition: transform 0.25s ease; }
.zoomable:hover { transform: scale(1.01); }
.zoom-overlay {
  position: fixed; inset: 0; background: rgba(10,10,26,0.85);
  display: none; align-items: center; justify-content: center;
  z-index: 10000; padding: 24px; cursor: zoom-out;
  backdrop-filter: blur(8px);
}
.zoom-overlay.open { display: flex; }
.zoom-overlay img {
  max-width: min(96vw, 1600px); max-height: 92vh;
  border-radius: 14px; box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
body.zoom-open { overflow: hidden; }
