/* Ganyu Rebrand. DA = thecultofganyu.com "merge" (the mix): Ethereal orbiting
   mesh background, abyss key-light, subtle grain, Playfair tricolour wordmark,
   textured frosted-glass pill buttons with ice glint. Palette blue/white/red. */
:root {
  --bg:        #04070f;
  --accent:    #86cdee;
  --accent-alt:#9ab4ff;
  --warm:      #f6fbff;
  --gold:      #bfe9ff;
  --text:      #eaf2ff;
  --text-muted:#8aa6c4;
  --scarlet:   #62b8e0;
  --berry:     #ff3056;
  --filigree:  #aec2ec;             /* periwinkle frost (no yellow) */
  --cta1: #a6e0ff; --cta2: #7aa8e0;
  --glow:         rgba(120, 195, 235, 0.40);
  --glow-filigree:rgba(130, 200, 235, 0.30);
  --border:       rgba(120, 195, 235, 0.32);
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --c1: oklch(0.66 0.18 233); --c2: oklch(0.62 0.20 22); --c3: oklch(0.74 0.10 268);
  --serif: 'Playfair Display', Georgia, serif;
  --sans:  'Inter', system-ui, -apple-system, sans-serif;
  --ease:  cubic-bezier(0.22, 1, 0.36, 1);
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--bg); color: var(--text);
  font-family: var(--sans); font-weight: 400; line-height: 1.6;
  min-height: 100vh; overflow-x: hidden; overflow-x: clip; position: relative;
  -webkit-font-smoothing: antialiased;
}

/* abyssal key-light behind everything */
.abyss { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; background: #04070f; }
.abyss::after {
  content: ''; position: absolute; inset: -5%;
  background: radial-gradient(ellipse 55% 42% at 50% 2%, rgba(150,205,240,0.12), transparent 62%);
  mix-blend-mode: screen; animation: abyssLight 17s ease-in-out infinite;
}
@keyframes abyssLight { 0%,100% { opacity: 0.45; transform: translateX(-3%); } 50% { opacity: 1; transform: translateX(3%); } }

/* Ethereal orbiting OKLCH mesh */
.fluid-mesh { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; filter: blur(85px); opacity: .66; }
.mesh-veil  { position: fixed; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(circle at 50% 34%, rgba(5,6,9,0) 0%, rgba(5,6,9,.18) 55%, rgba(5,6,9,.46) 100%); }
.fluid-mesh .orb { position: absolute; top: 50%; left: 50%; width: 52vmin; height: 52vmin; border-radius: 50%; translate: -50% -50%; mix-blend-mode: screen; }
.fluid-mesh .orb-1 { background: var(--c1); animation: orbit 13s ease-in-out infinite alternate; }
.fluid-mesh .orb-2 { background: var(--c2); animation: orbit 17s ease-in-out infinite alternate-reverse; }
.fluid-mesh .orb-3 { background: var(--c3); animation: orbit 20s linear infinite; }
@keyframes orbit {
  0%   { transform: translate(calc(sin(0deg) * 20vw),   calc(cos(0deg) * 20vh))   scale(1); }
  33%  { transform: translate(calc(sin(120deg) * 25vw), calc(cos(120deg) * 15vh)) scale(1.5); }
  66%  { transform: translate(calc(sin(240deg) * 15vw), calc(cos(240deg) * 25vh)) scale(.8); }
  100% { transform: translate(calc(sin(360deg) * 20vw), calc(cos(360deg) * 20vh)) scale(1); }
}
body.lite .fluid-mesh { display: none; }

/* subtle winter grain */
.grain { position: fixed; inset: 0; z-index: 1; pointer-events: none; background-image: var(--noise); background-size: 180px 180px; opacity: 0.07; mix-blend-mode: overlay; }

/* light snow (spawned by ambient.js) */
.snow { position: fixed; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.flake-fall { position: absolute; top: -10vh; color: var(--accent); user-select: none; text-shadow: 0 0 8px var(--glow); will-change: transform; animation-name: snowFall; animation-timing-function: linear; animation-iteration-count: infinite; }
@keyframes snowFall { 0% { transform: translateY(-10vh) translateX(0) rotate(0deg); opacity: 0; } 10% { opacity: .6; } 100% { transform: translateY(110vh) translateX(40px) rotate(360deg); opacity: 0; } }

/* ===== centred hero (text directly on the mesh, like the site) ===== */
.rb-stage {
  position: relative; z-index: 2; min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 56px 22px; max-width: 720px; margin: 0 auto;
}
.rb-stage > * { opacity: 0; animation: rbRise 0.95s var(--ease) forwards; }
.rb-stage > *:nth-child(1){animation-delay:.05s}
.rb-stage > *:nth-child(2){animation-delay:.16s}
.rb-stage > *:nth-child(3){animation-delay:.28s}
.rb-stage > *:nth-child(4){animation-delay:.40s}
.rb-stage > *:nth-child(5){animation-delay:.52s}
@keyframes rbRise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.rb-icon { font-size: 44px; color: var(--filigree); margin-bottom: 12px; filter: drop-shadow(0 0 18px var(--glow)); }

.eyebrow {
  display: inline-block; font-family: var(--sans); font-size: 12.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.34em; color: var(--filigree);
  margin-bottom: 14px; animation: shimmer 8s ease-in-out infinite;
}
@keyframes shimmer { 0%,100% { opacity: 0.8; text-shadow: none; } 50% { opacity: 1; text-shadow: 0 0 16px var(--glow-filigree); } }

/* title styled like GanyuWeb's section headings (e.g. "Clickslut"):
   frost-white Playfair with the accented word in an italic ice->periwinkle gradient */
.hero-title {
  font-family: var(--serif); font-weight: 700; font-size: clamp(32px, 5vw, 54px);
  line-height: 1.05; letter-spacing: -0.015em; margin-bottom: 18px;
  color: var(--warm); text-shadow: 0 0 16px rgba(255,255,255,0.22), 0 0 40px var(--glow);
}
.hero-title em {
  font-style: italic; font-weight: 400;
  background: linear-gradient(100deg, #8fd2ee 0%, #aec2ec 45%, #8fd2ee 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent; text-shadow: none;
  filter: drop-shadow(0 0 14px rgba(130,150,255,0.5));
}

.hero-tagline {
  display: inline-block; font-family: var(--serif); font-style: italic;
  font-size: clamp(15px, 1.9vw, 19px); color: var(--text); line-height: 1.55;
  max-width: 560px; margin: 0 auto 30px; padding: 15px 28px; border-radius: 4px;
  background: rgba(10,18,32,0.34); border: 1px solid var(--border);
  box-shadow: 0 6px 22px rgba(0,0,0,0.30), inset 0 0 0 1px rgba(130,200,235,0.10);
}

/* ===== textured frosted-glass pill buttons (with ice glint) ===== */
.btn {
  display: inline-block; font-family: var(--sans); font-size: 12px; font-weight: 600;
  letter-spacing: 0.28em; text-transform: uppercase; text-decoration: none; cursor: pointer;
  padding: 16px 44px; border-radius: 999px; position: relative; overflow: hidden;
  background: var(--noise), linear-gradient(160deg, rgba(20,32,52,0.95) 0%, rgba(9,15,28,0.97) 100%);
  background-size: 160px 160px, cover; background-blend-mode: soft-light, normal;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  color: var(--warm); border: 1px solid var(--border);
  transition: transform 0.18s var(--ease), box-shadow 0.25s, border-color 0.25s, color 0.25s;
}
.btn::before { content: ''; position: absolute; inset: 4px; border: 1px solid rgba(130,200,235,0.28); border-radius: 999px; pointer-events: none; transition: border-color 0.25s; z-index: 2; }
.btn::after { content: ''; position: absolute; top: 0; left: -60%; width: 38%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,0.30), transparent); transform: skewX(-18deg); pointer-events: none; z-index: 1; opacity: 0; }
.btn:hover::after { animation: btnGlint 0.7s var(--ease); }
@keyframes btnGlint { 0% { left: -60%; opacity: 0; } 22% { opacity: 1; } 100% { left: 120%; opacity: 0; } }
.btn span { position: relative; z-index: 3; }
.btn-primary {
  color: #ffffff; font-weight: 600;
  border: 1px solid rgba(180,225,255,0.55);
  box-shadow: 0 10px 30px rgba(120,180,230,0.32), 0 2px 8px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.4);
  text-shadow: 0 1px 8px rgba(0,28,48,0.5);
}
.btn-primary::before { border-color: rgba(255,255,255,0.45); }
.btn-primary:hover { transform: translateY(-2px); border-color: rgba(255,255,255,0.7); box-shadow: 0 14px 42px rgba(120,180,230,0.52), 0 4px 12px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.65); }
.btn-primary:hover::before { border-color: rgba(255,255,255,0.65); }

.rb-note { font-size: 12px; color: var(--text-muted); line-height: 1.7; margin-top: 22px; max-width: 480px; }
.rb-note .x { color: var(--accent); }

@media (max-width: 560px) { .fluid-mesh { opacity: .5; } }
