/* ==========================================================================
   LOREXA PREMIUM LAYER  v2
   Replaces noise/grain with clean cinematic styling.
   Loads after main.css. No grain. No mud.
   ========================================================================== */

/* ── Three.js canvas (ambient dust, z below everything) ─────────────────── */
#scene-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* ── Vignette (edges only, very subtle) ─────────────────────────────────── */
.fx-vignette {
  position: fixed;
  inset: 0;
  z-index: 8999;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 40%, transparent 48%, rgba(0,0,0,0.42) 100%);
}

/* ── Warm spotlight cursor (fine-pointer devices only) ───────────────────── */
.fx-spotlight {
  --spot-x: 50vw;
  --spot-y: 40vh;
  position: fixed;
  inset: 0;
  z-index: 8998;
  pointer-events: none;
  mix-blend-mode: screen;
  background: radial-gradient(
    380px circle at var(--spot-x) var(--spot-y),
    rgba(204,172,73,0.055),
    rgba(204,172,73,0.015) 45%,
    transparent 70%
  );
}

/* ── Scroll progress bar ─────────────────────────────────────────────────── */
.fx-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 10002;
  background: linear-gradient(90deg, var(--gold) 0%, #e8d28a 60%, var(--gold) 100%);
  transform-origin: 0 50%;
  transform: scaleX(0);
  box-shadow: 0 0 10px rgba(204,172,73,0.5);
}

/* ── Tilt shine overlay on hovered cards ────────────────────────────────── */
.fx-tilting { transition: transform 0.08s linear !important; will-change: transform; }
.pack-card, .bento-tile, .pillar, .purchase-card { position: relative; }
.fx-tilting::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(
    280px circle at var(--shine-x, 50%) var(--shine-y, 50%),
    rgba(238,232,220,0.06),
    transparent 60%
  );
}

/* ═══════════════════════════════════════════════════════════════════════════
   HERO — full-screen detective-desk image with cinematic overlays
   ═══════════════════════════════════════════════════════════════════════════ */
#hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: #0a0806;
  isolation: isolate;
}

/* The actual image — Ken Burns slow breathe */
.hero-bg-image {
  position: absolute;
  inset: -6%;
  background: url('/assets/hero-case-poster.jpg') center 55% / cover no-repeat;
  animation: hero-breathe 28s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes hero-breathe {
  from { transform: scale(1.06); }
  to   { transform: scale(1.0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-bg-image { animation: none; transform: scale(1.02); }
}

/* Multi-layer cinematic grade — tuned so the headline + CTAs stay crisp
   over the brightly-lit desk papers in the centre of the photo */
.hero-bg-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    /* soft spotlight scrim behind the content column */
    radial-gradient(ellipse 72% 58% at 50% 50%, rgba(8,6,4,0.62) 0%, rgba(8,6,4,0.28) 45%, transparent 72%),
    /* strong bottom anchor for sub-text, buttons + marquee */
    linear-gradient(to top, rgba(8,6,4,0.94) 0%, rgba(8,6,4,0.55) 22%, rgba(8,6,4,0.14) 50%, transparent 78%),
    /* top fade so the nav reads cleanly */
    linear-gradient(to bottom, rgba(8,6,4,0.7) 0%, transparent 20%),
    /* warm amber pool kept from the lamp (upper right) */
    radial-gradient(ellipse 45% 40% at 72% 26%, rgba(190,140,55,0.10) 0%, transparent 65%),
    /* cinematic edge vignette */
    linear-gradient(to right, rgba(8,6,4,0.42) 0%, transparent 24%),
    linear-gradient(to left, rgba(8,6,4,0.42) 0%, transparent 24%);
}

/* Hero content — centred, above the image */
.hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
  padding-top: 60px;
}

/* Titles */
.hero-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(56px, 9vw, 120px);
  line-height: 0.92;
  letter-spacing: 0.04em;
  color: var(--white);
  text-shadow: 0 4px 60px rgba(0,0,0,0.9), 0 2px 8px rgba(0,0,0,0.7);
  margin-bottom: 6px;
}
.hero-title-line { display: block; }
.hero-title-accent {
  color: var(--gold);
  text-shadow: 0 0 80px rgba(204,172,73,0.35), 0 4px 60px rgba(0,0,0,0.9);
}

.hero-sub {
  font-size: clamp(16px, 1.7vw, 20px);
  color: rgba(244,239,230,0.92);
  text-shadow: 0 2px 24px rgba(0,0,0,0.95), 0 1px 4px rgba(0,0,0,0.8);
  margin: 20px 0 40px;
  max-width: 480px;
  font-weight: 300;
  letter-spacing: 0.01em;
  line-height: 1.65;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-buttons .btn-primary,
.hero-buttons .btn-ghost {
  padding: 15px 34px;
  letter-spacing: 0.14em;
}

/* Primary hero CTA — solid gold, dark text: unmissable on any backdrop */
.hero-buttons .btn-shop-packs {
  background: linear-gradient(180deg, #e0c25c 0%, var(--gold) 55%, #b08f38 100%);
  border: 1px solid rgba(224,194,92,0.9);
  color: #14110a;
  box-shadow: 0 10px 30px rgba(0,0,0,0.45), 0 0 0 1px rgba(204,172,73,0.35);
  transition: background 0.35s ease, box-shadow 0.35s ease, transform 0.25s ease;
}
.hero-buttons .btn-shop-packs:hover {
  background: linear-gradient(180deg, #f0d572 0%, #e0c25c 55%, var(--gold) 100%);
  box-shadow: 0 16px 44px rgba(0,0,0,0.5), 0 0 48px rgba(204,172,73,0.4);
  transform: translateY(-3px);
  color: #14110a;
}

/* Ghost button — frosted glass so it reads over the bright desk */
.hero-buttons .btn-ghost {
  border: 1px solid rgba(238,232,220,0.4);
  background: rgba(12,10,8,0.4);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  color: var(--white);
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.25s ease, color 0.3s ease;
}
.hero-buttons .btn-ghost:hover {
  background: rgba(244,239,230,0.95);
  border-color: var(--white);
  color: #14110a;
  transform: translateY(-3px);
}

/* Chip above title */
.hero-case-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--gold);
  border: 1px solid rgba(204,172,73,0.4);
  background: rgba(204,172,73,0.07);
  padding: 7px 18px;
  margin-bottom: 28px;
  text-transform: uppercase;
}
.hero-case-chip::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
  animation: glowPulse 2.4s ease-in-out infinite;
  flex-shrink: 0;
}

/* Scroll cue */
.hero-scroll-cue {
  position: absolute;
  bottom: 88px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  color: rgba(238,232,220,0.5);
  text-transform: uppercase;
  pointer-events: none;
  z-index: 2;
  white-space: nowrap;
}
.hero-scroll-cue::after {
  content: '';
  width: 1px;
  height: 38px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scroll-drip 2s ease-in-out infinite;
}
@keyframes scroll-drip {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 1; }
  60%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  100% { transform: scaleY(1); transform-origin: top; opacity: 0; }
}

/* Marquee at bottom of hero */
.hero-marquee {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 3;
  background: rgba(10,8,6,0.65);
  border-top: 1px solid rgba(204,172,73,0.12);
  backdrop-filter: blur(4px);
}

/* ═══════════════════════════════════════════════════════════════════════════
   SECTION BACKGROUNDS — solid, rich, no mud
   ═══════════════════════════════════════════════════════════════════════════ */

/* Override translucent values from previous build */
.section-world {
  background: #0f0d0a;
  border-top: 1px solid rgba(204,172,73,0.08);
}
.section-packs  { background: #0a0907; }
.section-universe {
  background: #0d0c09;
  border-top: 1px solid rgba(204,172,73,0.06);
}
.section-coming { background: #0a0907; }
.section-series { background: #0f0d0a; }
.section-agency { background: #0d0c09; }
.page-shell     { background: #0a0907; }
#footer         { background: #080705 !important; border-top: 1px solid rgba(204,172,73,0.1) !important; }

/* Section dividers — subtle gold hairline top */
.section-world::before, .section-packs::before, .section-universe::before {
  content: '';
  display: block;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(204,172,73,0.18) 30%, rgba(204,172,73,0.18) 70%, transparent);
  margin-bottom: -1px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   PACK CARDS — premium hover
   ═══════════════════════════════════════════════════════════════════════════ */
.pack-card {
  background: #13120f;
  border: 1px solid rgba(238,232,220,0.08);
  border-radius: 4px;
  transition: transform 0.38s cubic-bezier(0.25,0.46,0.45,0.94),
              box-shadow 0.38s ease,
              border-color 0.38s ease !important;
}
.pack-card:hover {
  transform: translateY(-10px) scale(1.015) !important;
  border-color: rgba(204,172,73,0.45) !important;
  box-shadow:
    0 40px 80px rgba(0,0,0,0.65),
    0 0 0 1px rgba(204,172,73,0.2),
    0 0 60px rgba(204,172,73,0.06) !important;
}

/* Image overlay warms up on hover */
.pack-image { position: relative; overflow: hidden; }
.pack-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(10,8,6,0.6) 100%);
  pointer-events: none;
}
.pack-image img {
  transition: transform 0.6s cubic-bezier(0.25,0.46,0.45,0.94);
}
.pack-card:hover .pack-image img {
  transform: scale(1.06);
}

/* Price gold */
.pack-price {
  color: var(--gold) !important;
  font-family: var(--font-display) !important;
  font-size: 22px !important;
}

/* Acquire button — bolder on hover */
.btn-acquire {
  border: 1px solid rgba(204,172,73,0.55) !important;
  background: rgba(204,172,73,0.07) !important;
  transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.25s ease !important;
}
.btn-acquire:hover {
  background: rgba(204,172,73,0.22) !important;
  box-shadow: 0 0 28px rgba(204,172,73,0.2) !important;
  transform: translateY(-2px) !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   BENTO / FEATURE TILES — premium
   ═══════════════════════════════════════════════════════════════════════════ */
.bento-tile {
  background: #131210 !important;
  border: 1px solid rgba(238,232,220,0.07) !important;
  transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease !important;
}
.bento-tile:hover {
  border-color: rgba(204,172,73,0.3) !important;
  box-shadow: 0 20px 50px rgba(0,0,0,0.4), 0 0 40px rgba(204,172,73,0.05) !important;
  transform: translateY(-4px) !important;
}
.gold-tile {
  border-color: rgba(204,172,73,0.2) !important;
  background: linear-gradient(145deg, #131210, rgba(204,172,73,0.04)) !important;
}
.glow-tile {
  border-color: rgba(204,172,73,0.25) !important;
  background: linear-gradient(145deg, #131210, rgba(204,172,73,0.06)) !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   HOW IT WORKS — case steps
   ═══════════════════════════════════════════════════════════════════════════ */
.case-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 2px;
  margin-top: 56px;
  counter-reset: case-step;
}
.case-step {
  position: relative;
  border: 1px solid rgba(238,232,220,0.07);
  background: #131210;
  padding: 32px 26px 28px;
  transition: border-color 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
  overflow: hidden;
  counter-increment: case-step;
}
.case-step:hover {
  border-color: rgba(204,172,73,0.35);
  transform: translateY(-6px);
  box-shadow: 0 28px 60px rgba(0,0,0,0.5), 0 0 40px rgba(204,172,73,0.05);
}
.case-step::before {
  content: '0' counter(case-step);
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 0.22em;
  margin-bottom: 16px;
  opacity: 0.9;
}
.case-step::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 40px; height: 2px;
  background: linear-gradient(to right, var(--gold), transparent);
}
.case-step h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  color: var(--white);
  letter-spacing: 0.06em;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.case-step p {
  font-size: 14px;
  color: var(--silver);
  line-height: 1.7;
}
.vault-link {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px dotted rgba(204,172,73,0.4);
}

/* ═══════════════════════════════════════════════════════════════════════════
   EVIDENCE TAPE label
   ═══════════════════════════════════════════════════════════════════════════ */
.tape-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #0f0d08;
  background: repeating-linear-gradient(-45deg, #c9a93c 0 14px, #b8982e 14px 28px);
  padding: 5px 20px;
  transform: rotate(-1.2deg);
  box-shadow: 0 4px 16px rgba(0,0,0,0.55);
  margin-bottom: 20px;
}


/* ═══════════════════════════════════════════════════════════════════════════
   WORLD / HOW-IT-WORKS section extras
   ═══════════════════════════════════════════════════════════════════════════ */
.world-heading {
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 300;
  line-height: 1.08;
  color: var(--white);
  margin: 12px 0 20px;
  letter-spacing: 0.03em;
}

/* ═══════════════════════════════════════════════════════════════════════════
   FOOTER enhancements
   ═══════════════════════════════════════════════════════════════════════════ */
.footer-logo {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 300;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-shadow: 0 0 20px rgba(204,172,73,0.2);
}

/* ═══════════════════════════════════════════════════════════════════════════
   GLASSPANEL (used on profile, checkout, contact)
   ═══════════════════════════════════════════════════════════════════════════ */
.glass-panel {
  background: rgba(19,18,16,0.96) !important;
  border: 1px solid rgba(238,232,220,0.09) !important;
  box-shadow: 0 24px 60px rgba(0,0,0,0.45) !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   MOBILE
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  .hero-case-chip { margin-bottom: 16px; }
  .hero-title { font-size: clamp(38px, 11vw, 56px); }
  .hero-sub { margin: 12px 0 24px; font-size: 14px; }
  .hero-buttons { gap: 10px; }
  .hero-scroll-cue { bottom: 60px; }
  .hero-buttons .btn-primary,
  .hero-buttons .btn-ghost { padding: 13px 24px; font-size: 12px; }
  .case-steps { grid-template-columns: 1fr 1fr; gap: 2px; }
}
@media (max-width: 480px) {
  .case-steps { grid-template-columns: 1fr; }
}
