/* Raresix: custom styles that sit on top of Tailwind.
   Palette comes from the logo: steel blue, electric cyan, lime. */
:root { --brand: #2aa9f5; --brand-deep: #1b74d6; --cyan: #22e6ff; --lime: #a6ef3c; --steel: #9fc4ea; --live: #ff3b4e; }

html { background: #05080d; }
body {
  background:
    radial-gradient(900px 500px at 12% -5%, rgba(42, 169, 245, .20), transparent 60%),
    radial-gradient(800px 500px at 95% 5%, rgba(166, 239, 60, .08), transparent 60%),
    #05080d;
  background-attachment: fixed;
  min-height: 100vh;
  animation: pagein .6s ease both;
}
@keyframes pagein { from { opacity: 0; } to { opacity: 1; } }

::selection { background: rgba(42, 169, 245, .5); color: #fff; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.gradient-text {
  /* Seamless loop: the gradient ends on its starting colour and tiles, and the animation moves exactly one tile (200% of a 200% layer), so no hard colour edge sweeps across the text. */
  background: linear-gradient(100deg, #9fc4ea 0%, #2aa9f5 25%, #22e6ff 50%, #a6ef3c 75%, #9fc4ea 100%);
  background-size: 200% auto; background-repeat: repeat-x; animation: shine 9s linear infinite;
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
@keyframes shine { to { background-position: 200% center; } }

.eyebrow { font-size: .75rem; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--brand); }

.glass {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.glass-hover { transition: transform .3s cubic-bezier(.2,.8,.2,1), border-color .25s ease, box-shadow .25s ease; }
.glass-hover:hover { transform: translateY(-4px); border-color: rgba(34,230,255,.45); box-shadow: 0 20px 50px -20px rgba(34,230,255,.4); }
.glass::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(34,230,255,.14), transparent 60%); }
.glass:hover::before { opacity: 1; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .75rem 1.35rem; border-radius: .6rem; font-weight: 600; font-size: .925rem;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  cursor: pointer; white-space: nowrap;
}
.btn:active { transform: scale(.98); }
.btn-primary { position: relative; overflow: hidden; background: linear-gradient(100deg, #1b74d6, #2aa9f5 55%, #22d3ee); color: #fff; box-shadow: 0 10px 30px -10px rgba(42,169,245,.8); }
.btn-primary:hover { box-shadow: 0 14px 40px -8px rgba(34,230,255,.8); transform: translateY(-1px); }
.btn-primary::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent); transition: left .6s ease; }
.btn-primary:hover::after { left: 130%; }
.btn-ghost { border: 1px solid rgba(255,255,255,.14); color: #e2e8f0; background: rgba(255,255,255,.03); }
.btn-ghost:hover { border-color: rgba(34,230,255,.5); background: rgba(34,230,255,.07); }

/* tabs / filters (square-ish, not pills) */
.chip {
  display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .85rem; border-radius: .5rem;
  font-size: .8rem; font-weight: 600; border: 1px solid rgba(255,255,255,.1); color: #cbd5e1; background: rgba(255,255,255,.03);
  cursor: pointer; transition: all .2s ease;
}
.chip:hover { border-color: rgba(255,255,255,.3); }
.chip[aria-pressed="true"], .chip.active { background: rgba(42,169,245,.2); border-color: rgba(34,230,255,.7); color: #fff; }

/* live */
.live-dot { position: relative; display: inline-block; width: .55rem; height: .55rem; border-radius: 50%; background: var(--live); }
.live-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--live); animation: ping 1.6s cubic-bezier(0,0,.2,1) infinite; }
@keyframes ping { 75%, 100% { transform: scale(2.8); opacity: 0; } }

#live-banner { display: none; position: relative; z-index: 49; background: linear-gradient(90deg, #8f1022, #ff3b4e 50%, #8f1022); background-size: 200% 100%; animation: bannerflow 6s linear infinite; }
.is-live #live-banner { display: block; }
@keyframes bannerflow { to { background-position: 200% 0; } }
.is-live body::after, body.is-live::after { background: #b3162a; }
body.is-live #progress { background: linear-gradient(90deg, var(--live), #ff8a5c); box-shadow: 0 0 12px rgba(255,59,78,.8); }
body.is-live #site-header > div { border-bottom-color: rgba(255,59,78,.35); }
[data-live-only] { display: none; }
body.is-live [data-live-only] { display: revert; }
body.is-live [data-offline-only] { display: none; }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal-left { opacity: 0; transform: translateX(-28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal-left.in { opacity: 1; transform: none; }
.stagger > .reveal:nth-child(2) { transition-delay: .08s; } .stagger > .reveal:nth-child(3) { transition-delay: .16s; }
.stagger > .reveal:nth-child(4) { transition-delay: .24s; } .stagger > .reveal:nth-child(5) { transition-delay: .32s; }
.stagger > .reveal:nth-child(6) { transition-delay: .4s; }

/* hero grid backdrop */
.grid-bg {
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 70%);
}

.float { animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-12px); } }

/* inputs */
.field {
  width: 100%; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12); color: #f1f5f9;
  border-radius: .6rem; padding: .75rem 1rem; font-size: .95rem; transition: border-color .2s, box-shadow .2s;
}
.field::placeholder { color: #64748b; }
.field:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34,230,255,.2); }
select.field option { background: #101a27; }

/* legal / long-form pages */
.prose-legal h2 { font-family: "Space Grotesk", sans-serif; font-size: 1.35rem; font-weight: 600; color: #fff; margin: 2.2rem 0 .75rem; }
.prose-legal h3 { font-weight: 600; color: #e2e8f0; margin: 1.4rem 0 .5rem; }
.prose-legal p, .prose-legal li { color: #aab4c5; line-height: 1.75; }
.prose-legal p { margin: .75rem 0; }
.prose-legal ul { list-style: disc; padding-left: 1.4rem; margin: .75rem 0; }
.prose-legal li { margin: .3rem 0; }
.prose-legal a { color: #6ecbff; text-decoration: underline; text-underline-offset: 3px; }
.prose-legal a:hover { color: #22e6ff; }

details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
details[open] .chev { transform: rotate(180deg); }

/* ===================== MOTION & BRAND LAYER ===================== */
#progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 100; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--brand), var(--cyan), var(--lime)); box-shadow: 0 0 12px rgba(34,230,255,.7); }

body::before, body::after { content: ""; position: fixed; z-index: -1; pointer-events: none; border-radius: 50%; filter: blur(90px); opacity: .3; }
body::before { width: 46vw; height: 46vw; left: -12vw; top: 18vh; background: #1b74d6; animation: drift1 22s ease-in-out infinite alternate; }
body::after  { width: 36vw; height: 36vw; right: -10vw; top: 55vh; background: #4f9d12; opacity: .18; animation: drift2 26s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(18vw, 22vh) scale(1.2); } }
@keyframes drift2 { to { transform: translate(-16vw, -26vh) scale(1.15); } }

.particles { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .7; }

.rotator { display: inline-block; position: relative; }
.rotator .word { display: inline-block; transition: transform .55s cubic-bezier(.2,.8,.2,1), opacity .55s ease, filter .55s ease; }
.rotator .word.out { transform: translateY(-.45em); opacity: 0; filter: blur(8px); }
.rotator .word.pre { transform: translateY(.45em); opacity: 0; filter: blur(8px); transition: none; }
.caret { display: inline-block; width: .08em; height: .9em; margin-left: .08em; vertical-align: -.08em; background: var(--lime); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.glow-border { position: relative; }
.glow-border::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--ang, 0deg), transparent 0 60%, #2aa9f5, #a6ef3c, transparent 90%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spin 5s linear infinite; }
@property --ang { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes spin { to { --ang: 360deg; } }

/* marquee ticker */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; width: max-content; gap: 3rem; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

.scan { position: absolute; left: 0; right: 0; height: 30%; background: linear-gradient(transparent, rgba(34,230,255,.12), transparent); animation: scan 4.5s ease-in-out infinite; pointer-events: none; }
@keyframes scan { 0% { top: -30%; } 100% { top: 100%; } }

/* header + logo */
#site-header { position: sticky; top: 0; z-index: 50; }
#site-header > div { transition: background .3s, box-shadow .3s; }
#site-header.scrolled > div { background: rgba(5,8,13,.9); box-shadow: 0 10px 40px -20px rgba(0,0,0,.9); }
.logo-img { display: block; height: 4.75rem; width: auto; transition: transform .3s cubic-bezier(.2,.8,.2,1), filter .3s; filter: drop-shadow(0 0 14px rgba(34,230,255,.25)); }
a:hover > .logo-img { transform: scale(1.04); filter: drop-shadow(0 0 22px rgba(34,230,255,.55)); }
.logo-img.lg { height: 5.5rem; }

/* pillars on home */
.pillar { overflow: hidden; }
.pillar .wash { position: absolute; inset: 0; opacity: 0; transition: opacity .4s; pointer-events: none; }
.pillar:hover .wash { opacity: 1; }
.pillar .big { position: absolute; right: -.5rem; bottom: -1.75rem; font-family: "Space Grotesk", sans-serif; font-size: 7rem; font-weight: 700; line-height: 1; color: rgba(255,255,255,.04); transition: transform .5s cubic-bezier(.2,.8,.2,1), color .3s; pointer-events: none; }
.pillar:hover .big { transform: translateY(-.5rem) scale(1.08); color: rgba(255,255,255,.08); }

/* equalizer bars (music / live feel) */
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 1rem; }
.eq i { display: block; width: 3px; height: 100%; background: var(--lime); border-radius: 1px; transform-origin: bottom; animation: eq 1s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.3s; } .eq i:nth-child(3) { animation-delay: -.6s; } .eq i:nth-child(4) { animation-delay: -.15s; }
.eq.paused i { animation-play-state: paused; transform: scaleY(.25); }
@keyframes eq { 0%, 100% { transform: scaleY(.2); } 50% { transform: scaleY(1); } }

/* music: track rows, pager, player */
.track { display: grid; grid-template-columns: 2.25rem 3rem 1fr auto; align-items: center; gap: .9rem; padding: .6rem .8rem; border-radius: .75rem; border: 1px solid transparent; transition: background .2s, border-color .2s; }
.track:hover { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.08); }
.track.now { background: rgba(34,230,255,.07); border-color: rgba(34,230,255,.35); }
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.pager button { min-width: 2.25rem; height: 2.25rem; padding: 0 .65rem; border-radius: .5rem; border: 1px solid rgba(255,255,255,.12); color: #cbd5e1; font-size: .85rem; font-weight: 600; transition: all .2s; }
.pager button:hover:not(:disabled) { border-color: rgba(34,230,255,.6); color: #fff; }
.pager button.on { background: rgba(42,169,245,.25); border-color: var(--cyan); color: #fff; }
.pager button:disabled { opacity: .35; cursor: default; }
#player-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; transform: translateY(110%); transition: transform .45s cubic-bezier(.2,.8,.2,1); background: rgba(5,8,13,.94); backdrop-filter: blur(18px); border-top: 1px solid rgba(34,230,255,.3); }
#player-bar.on { transform: none; }
input[type=range].seek { -webkit-appearance: none; appearance: none; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--cyan) var(--p, 0%), rgba(255,255,255,.15) var(--p, 0%)); cursor: pointer; }
input[type=range].seek::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: #fff; }
input[type=range].seek::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 0; }
.cover-spin { animation: coverspin 14s linear infinite; }
@keyframes coverspin { to { transform: rotate(360deg); } }

/* live numbers while loading */
[data-stat].loading { opacity: .45; animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .15; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .reveal-left { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
  .particles { display: none; }
}

/* ===================== HERO: THE RARE IMPACT ===================== */
.rise { animation: rise .9s cubic-bezier(.2,.8,.2,1) both; animation-delay: var(--d, 0s); }
@keyframes rise { from { opacity: 0; transform: translateY(36px); } }
.hero-beam { position: absolute; right: -10%; top: -20%; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px; pointer-events: none; opacity: .35; filter: blur(60px);
  background: conic-gradient(from 0deg, transparent 0 55%, rgba(42,169,245,.55), rgba(166,239,60,.35), transparent 85%); animation: rot 24s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }

.orbit { position: relative; aspect-ratio: 1; }
.orbit-glow { position: absolute; inset: 22%; border-radius: 50%; background: radial-gradient(circle, rgba(34,230,255,.22), rgba(42,169,245,.08) 50%, transparent 70%); animation: breathe 5s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.18); opacity: .7; } }
.orbit .ring { position: absolute; inset: var(--i); border-radius: 50%; border: 1px solid rgba(159,196,234,.18); }
.orbit .ring.dash { border: 1px dashed rgba(34,230,255,.28); animation: rot 70s linear infinite reverse; }
.orbit-core { position: absolute; inset: 29%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; border-radius: 50%; z-index: 2; }
body.is-live .orbit-glow { background: radial-gradient(circle, rgba(255,59,78,.26), transparent 70%); }
body.is-live .orbit .ring { border-color: rgba(255,59,78,.3); }

.sat-wrap { position: absolute; inset: 6%; z-index: 3; animation: satspin 56s linear infinite; }
.sat { position: absolute; top: 0; left: 50%; translate: -50% -50%; animation: satcounter 56s linear infinite; }
@keyframes satspin { from { transform: rotate(var(--r)); } to { transform: rotate(calc(var(--r) + 360deg)); } }
@keyframes satcounter { from { transform: rotate(calc(var(--r) * -1)); } to { transform: rotate(calc(var(--r) * -1 - 360deg)); } }
.orbit:hover .sat-wrap, .orbit:hover .sat { animation-play-state: paused; }
.sat a { display: flex; align-items: center; gap: .5rem; padding: .45rem .7rem; border-radius: .75rem; background: rgba(10,16,24,.88); backdrop-filter: blur(10px);
  border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); box-shadow: 0 8px 30px -10px var(--c); font-size: .8rem; font-weight: 600; color: #fff; transition: transform .25s; }
.sat a:hover { transform: scale(1.12); }
.sat a b { font-family: "Space Grotesk", sans-serif; }
.sat a em { font-style: normal; color: #94a3b8; font-weight: 500; font-size: .7rem; }
.sat.live a { border-color: var(--live); box-shadow: 0 0 24px -4px var(--live); }
@media (max-width: 480px) { .sat a { padding: .35rem .5rem; font-size: .7rem; } .sat a em { display: none; } }
@media (prefers-reduced-motion: reduce) { .rise { animation: none; } .sat-wrap { transform: rotate(var(--r)); } .sat { transform: rotate(calc(var(--r) * -1)); } }
