:root {
  color-scheme: dark;

  /* Accents */
  --accent-blue: #00A3FE;           /* RareSRV blue */
  --accent-green: #35F49B;          /* light chemical / electric blue-green */
  --accent-blueA: rgba(0,56,121,.45);
  --accent-greenA: rgba(53,244,155,.45);

  /* Ink & base */
  --bg-base: #0b0b0b;
  --ink: #e6e6e6;

  /* Glass */
  --glass-fill-1: rgba(255,255,255,0.06);
  --glass-fill-2: rgba(255,255,255,0.03);
  --glass-stroke: rgba(255,255,255,0.10);

  /* Glow */
  --glow-soft: 0 0 24px rgba(0,56,121,.25), 0 0 34px rgba(53,244,155,.15);
  --glow-strong: 0 0 28px rgba(0,56,121,.40), 0 0 44px rgba(53,244,155,.28);
}

html, body { height: 100%; }
body {
  font-family: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, 'Helvetica Neue', Arial, 'Noto Sans', 'Apple Color Emoji', 'Segoe UI Emoji';
  background: var(--bg-base); /* solid background */
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { text-decoration: none; }

/* ---------------- Glass (Liquid style) ---------------- */
.glass {
  position: relative;
  isolation: isolate; /* contain blend/filters */
  background:
    linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.03)) padding-box,
    radial-gradient(120% 80% at 10% -10%, rgba(53,244,155,0.10), rgba(53,244,155,0) 60%) padding-box,
    radial-gradient(120% 80% at 110% 110%, rgba(0,56,121,0.12), rgba(0,56,121,0) 60%) padding-box;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.06);
  backdrop-filter: blur(4px) saturate(140%) contrast(110%);
}

/* flowing specular highlights */
.glass::before,
.glass::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}
/* moving diagonal sheen */
.glass::before {
  background:
    conic-gradient(from 180deg at 50% 50%, rgba(255,255,255,.18), rgba(255,255,255,0) 25% 75%, rgba(255,255,255,.18))
    ;
  mix-blend-mode: overlay;
  opacity: .55;
  filter: blur(12px);
  transform: translate3d(-4%, -2%, 0) scale(1.02);
  animation: glassFlow 14s ease-in-out infinite alternate;
}
/* soft caustics tint */
.glass::after {
  background:
    radial-gradient(120% 90% at -10% 0%, rgba(255,255,255,.08), rgba(255,255,255,0) 60%),
    radial-gradient(120% 80% at 110% 100%, rgba(0,56,121,.18), rgba(0,56,121,0) 60%),
    radial-gradient(110% 70% at 0% 100%, rgba(53,244,155,.12), rgba(53,244,155,0) 60%);
  opacity: .50;
  filter: blur(16px) saturate(1.05);
  transform: translate3d(2%, 1%, 0) scale(1.01);
  animation: glassDrift 26s ease-in-out infinite alternate;
}

@keyframes glassFlow {
  0%   { transform: translate3d(-4%, -2%, 0) scale(1.02); }
  100% { transform: translate3d(4%, 2%, 0) scale(1.03); }
}
@keyframes glassDrift {
  0%   { transform: translate3d(2%, 1%, 0) scale(1.01); }
  100% { transform: translate3d(-2%, -1%, 0) scale(1.02); }
}

.glass-strong {
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.04)) padding-box,
    radial-gradient(120% 80% at 100% 0%, rgba(0,56,121,0.16), rgba(0,56,121,0) 60%) padding-box,
    radial-gradient(120% 80% at 0% 100%, rgba(53,244,155,0.14), rgba(53,244,155,0) 60%) padding-box;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 1rem;
  backdrop-filter: blur(5px) saturate(150%) contrast(112%);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.08);
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .7rem 1rem;
  border-radius: .8rem;
  border: 0;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 14px rgba(0,56,121,.35);
}

.btn-primary {
  /* subtle blue -> chemical green gradient */
  background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-green) 100%);
  color: #0b0b0b;
  font-weight: 700;
  box-shadow: var(--glow-soft);
}
.btn-primary:hover { box-shadow: var(--glow-strong); }

.btn-ghost {
  background: var(--glass-fill-1);
  color: var(--ink);
  border: 0;
}
.btn-ghost:hover {
  box-shadow: 0 0 18px var(--accent-blueA);
}
.btn-ghost:hover { border-color: var(--accent-blueA); box-shadow: 0 0 18px var(--accent-blueA); }

/* ---------------- Hero gradient (allowed) ---------------- */
.hero-grad {
  /* original blue lights + a faint green light */
  background-image:
    radial-gradient(1200px 480px at 10% -10%, rgba(0,56,121,.30), rgba(0,56,121,0) 60%),
    radial-gradient(900px 360px at 120% 20%, rgba(0,56,121,.15), rgba(0,56,121,0) 70%),
    radial-gradient(800px 360px at 50% 120%, rgba(53,244,155,.16), rgba(53,244,155,0) 70%);
}

/* ---------------- Animated accent borders ---------------- */
@keyframes shimmer {
  0%   { background-position: 0% 0%, 0% 0%; }
  100% { background-position: 0% 0%, 220% 0%; }
}

/* Shimmer border for featured cards (e.g., RareSRV promo) */
.border-shimmer {
  position: relative;
  border-radius: 1rem;
  border: 1px solid rgba(255,255,255,0.10);
  background:
    linear-gradient(90deg, rgba(255,255,255,0.06), rgba(255,255,255,0.06)) padding-box,
    linear-gradient(90deg, rgba(0,56,121,0.0), rgba(0,56,121,.45), rgba(53,244,155,.45), rgba(0,56,121,.45), rgba(0,56,121,0.0)) border-box;
  background-size: 100% 100%, 220% 100%;
  animation: shimmer 8s linear infinite alternate;
}

/* ---------------- Soft glow utilities (apply to non-cards) ---------------- */
/* Add to headings, logos, or key links for a subtle neon aura */
.glow-soft { text-shadow: 0 0 14px rgba(2,149,233,.35), 0 0 22px rgba(53,244,155,.22); }
.glow-strong { text-shadow: 0 0 18px rgba(2,149,233,.50), 0 0 30px rgba(53,244,155,.35); }
.halo {
  filter: drop-shadow(0 0 14px rgba(2,149,233,.35)) drop-shadow(0 0 24px rgba(53,244,155,.22));
}

/* Accent underline for links */
.link-accent {
  background-image: linear-gradient(90deg, var(--accent-blue), var(--accent-green));
  background-size: 0% 2px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size .25s ease;
}
.link-accent:hover { background-size: 100% 2px; }

/* ---------------- Reveal on view ---------------- */
.reveal { opacity: 0; transform: translateY(14px); transition: all .7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------------- Sliders (seek/volume) ---------------- */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  background: linear-gradient(90deg, rgba(255,255,255,0.10), rgba(255,255,255,0.10));
  border-radius: 8px;
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px; height: 14px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-green));
  box-shadow: 0 0 10px rgba(2,149,233,.45), 0 0 16px rgba(53,244,155,.25);
  border: 0;
}
input[type="range"]::-moz-range-thumb {
  width: 14px; height: 14px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-green));
  box-shadow: 0 0 10px rgba(2,149,233,.45), 0 0 16px rgba(53,244,155,.25);
  border: 0;
}

/* Non-interactive range look (for in-card progress) */
.range-static {
  pointer-events: none;
  cursor: default;
  opacity: .85;
}

/* ---------------- Fixed player bar helper ---------------- */
.playerbar-glass {
  background: rgba(0,56,121,0.08);           /* blue glass with a hint of green via shadow */
  border: 1px solid rgba(0,56,121,.35);
  backdrop-filter: blur(12px);
  box-shadow: var(--glow-soft);
}
.playerbar-glass:hover { box-shadow: var(--glow-strong); }

/* ================= Hero background motion + staggered header elements ================ */
/* Keep container static; animate subtle lights behind content */
.hero-grad { position: relative; overflow: hidden; }
.hero-grad > * { position: relative; z-index: 1; }
.hero-grad::before,
.hero-grad::after {
  content: "";
  position: absolute;
  inset: -25% -25% -10% -25%;
  pointer-events: none;
  background:
    radial-gradient(40% 35% at 20% 20%, rgba(0,56,121,.32), rgba(0,56,121,0) 60%),
    radial-gradient(35% 30% at 80% 30%, rgba(53,244,155,.20), rgba(53,244,155,0) 60%);
  filter: blur(20px);
  opacity: .75;
  will-change: transform, opacity, background-position, filter;
  z-index: 0;
  animation: heroDriftA 26s ease-in-out infinite alternate;
}
.hero-grad::after {
  inset: -15% -15% -15% -15%;
  background:
    radial-gradient(30% 28% at 15% 75%, rgba(53,244,155,.16), rgba(53,244,155,0) 60%),
    radial-gradient(38% 32% at 85% 10%, rgba(0,56,121,.24), rgba(0,56,121,0) 60%);
  filter: blur(24px) saturate(1.05);
  opacity: .6;
  animation: heroDriftB 40s ease-in-out infinite alternate;
}
@keyframes heroDriftA { 0% { transform: translate3d(0,0,0) scale(1); } 100% { transform: translate3d(-2%, 1.5%, 0) scale(1.03); } }
@keyframes heroDriftB { 0% { transform: translate3d(0,0,0) scale(1); } 100% { transform: translate3d(3%, -2%, 0) scale(1.04); } }

/* Staggered element reveals inside the hero (container stays static) */
@keyframes riseBlur { from { opacity: 0; transform: translateY(14px); filter: blur(4px); } to { opacity: 1; transform: translateY(0); filter: blur(0); } }
.hero-grad .reveal.in h1 { animation: riseBlur .9s cubic-bezier(.2,.8,.2,1) .00s both; }
.hero-grad .reveal.in p  { animation: riseBlur 1.0s cubic-bezier(.2,.8,.2,1) .12s both; }
.hero-grad .reveal.in .mt-6 .btn:nth-child(1) { animation: riseBlur .9s cubic-bezier(.2,.8,.2,1) .22s both; }
.hero-grad .reveal.in .mt-6 .btn:nth-child(2) { animation: riseBlur .9s cubic-bezier(.2,.8,.2,1) .32s both; }
.hero-grad .reveal.in .mt-6 .btn:nth-child(3) { animation: riseBlur .9s cubic-bezier(.2,.8,.2,1) .42s both; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-grad::before, .hero-grad::after { animation: none; }
  .hero-grad .reveal.in h1,
  .hero-grad .reveal.in p,
  .hero-grad .reveal.in .mt-6 .btn { animation: none; }
}


/* ===== Animated gradient text for hero "Raresix" word ===== */
.hero-grad h1 .text-accent {
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-green), var(--accent-blue));
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: rareText 10s ease-in-out infinite alternate;
  text-shadow: 0 0 18px rgba(0,56,121,.25), 0 0 24px rgba(53,244,155,.18);
}
@keyframes rareText { 0% { background-position: 0% 50%; } 100% { background-position: 100% 50%; } }

/* ===== Social CTA card glow by platform (YouTube/Twitch/Discord) ===== */
a.glass[href*="youtube.com"]:hover { outline: none !important; border-color: rgba(255,0,51,.25); box-shadow: 0 0 24px rgba(255,0,51,.45), 0 0 56px rgba(255,0,51,.22), 0 8px 24px rgba(0,0,0,.35); }
a.glass[href*="twitch.tv"]:hover  { outline: none !important; border-color: rgba(119,44,232,.25); box-shadow: 0 0 24px rgba(119,44,232,.45), 0 0 56px rgba(119,44,232,.22), 0 8px 24px rgba(0,0,0,.35); }
a.glass[href*="discord.gg"]:hover { outline: none !important; border-color: rgba(85,98,234,.25);  box-shadow: 0 0 24px rgba(85,98,234,.45),  0 0 56px rgba(85,98,234,.22),  0 8px 24px rgba(0,0,0,.35); }

