/* ============================================================
   RAY DIGITAL – Main CSS
   Extracted from Design Component <helmet><style> block.
   Inline element styles live in the template-parts PHP files.
   ============================================================ */

/* ── RESET & BASE ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  background: #0A0A0A;
  color: #fff;
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Hide native cursor on pointer-fine devices (custom cursor active) */
@media (pointer: fine) {
  * { cursor: none !important; }
}

::selection {
  background: #E50914;
  color: #fff;
}

/* ── KEYFRAME ANIMATIONS ──────────────────────────────────── */
@keyframes auroraFloat {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(60px, -50px) scale(1.25); }
  100% { transform: translate(0, 0) scale(1); }
}

@keyframes shimmer {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

@keyframes floatY {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-14px); }
  100% { transform: translateY(0); }
}

@keyframes glowPulse {
  0%, 100% {
    box-shadow: 0 0 18px rgba(229,9,20,0.45), inset 0 0 12px rgba(229,9,20,0.15);
  }
  50% {
    box-shadow: 0 0 42px rgba(229,9,20,0.8), inset 0 0 18px rgba(229,9,20,0.3);
  }
}

@keyframes orbitSpin {
  to { transform: rotate(360deg); }
}

@keyframes introZoom {
  0%  { transform: scale(0.82); opacity: 0; }
  40% { opacity: 1; }
  100%{ transform: scale(1); opacity: 1; }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.25; }
}

@keyframes gridMove {
  to { background-position: 0 60px, 60px 0; }
}

@keyframes popIn {
  0%   { opacity: 0; transform: translateY(12px) scale(0.96); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes offerGlow {
  0%, 100% { box-shadow: 0 0 22px rgba(229,9,20,0.5); }
  50%       { box-shadow: 0 0 46px rgba(229,9,20,0.95); }
}

/* ── CUSTOM CURSOR ────────────────────────────────────────── */
#cursorRing {
  position: fixed;
  top: 0; left: 0;
  z-index: 300;
  width: 34px; height: 34px;
  border: 1.5px solid rgba(229,9,20,0.9);
  border-radius: 50%;
  pointer-events: none;
  margin: -17px 0 0 -17px;
  box-shadow: 0 0 18px rgba(229,9,20,0.7);
  transition: width .2s, height .2s, margin .2s, background .2s;
  will-change: transform;
}

#cursorDot {
  position: fixed;
  top: 0; left: 0;
  z-index: 301;
  width: 6px; height: 6px;
  background: #FF0033;
  border-radius: 50%;
  pointer-events: none;
  margin: -3px 0 0 -3px;
  box-shadow: 0 0 10px #FF0033;
  will-change: transform;
}

/* ── INTRO OVERLAY ────────────────────────────────────────── */
#introOverlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 50%, #1a0306, #000 70%);
  transition: opacity .8s ease;
}

/* ── UTILITY: REVEAL TRANSITION ───────────────────────────── */
[data-reveal] {
  transition: opacity .8s ease, transform .8s ease;
}

/* ── PRINT STYLES (mirrors dc-runtime) ───────────────────── */
@media print {
  @page { margin: 0.5cm; }
  html, body { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  section, article, figure, table { break-inside: avoid; }
  *, *::before, *::after {
    animation-delay: -99s !important;
    animation-duration: .001s !important;
    animation-iteration-count: 1 !important;
    animation-fill-mode: both !important;
    animation-play-state: running !important;
    transition-duration: 0s !important;
  }
}
