/* ═══════════════════════════════════════════════════════════
   Ula'tek — Ulatek.com
   Theme: void / buried serpent goddess · sister to VenomousAbyss.com
   ═══════════════════════════════════════════════════════════ */

:root {
  --void-950: #050308;
  --void-900: #08060e;
  --void-850: #0c0a16;
  --void-800: #110e1e;
  --void-700: #181428;
  --line: rgba(150, 120, 230, 0.14);
  --line-strong: rgba(150, 120, 230, 0.32);

  --venom-1: #b6ff5c;
  --venom-2: #2fe3a0;
  --venom-3: #9a6bff;   /* violet, slightly brighter for the void theme */
  --violet-glow: rgba(124, 77, 255, 0.55);
  --venom-glow: rgba(47, 227, 160, 0.5);

  --text: #ece8f6;
  --muted: #a99fc4;
  --faint: #8d83a6;

  /* violet-led gradient: distinct from the green-led raid site */
  --grad: linear-gradient(115deg, #9a6bff 0%, #2fe3a0 55%, #b6ff5c 100%);

  --maxw: 1140px;
  --radius: 18px;
  --radius-sm: 12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--void-950);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: "Cinzel", "Inter", serif; line-height: 1.1; margin: 0; }
p { margin: 0 0 1rem; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(18px, 4vw, 40px); }
.container--narrow { max-width: 820px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }

:focus-visible { outline: 2px solid var(--venom-2); outline-offset: 3px; border-radius: 4px; }
.skip-link { position: fixed; top: 10px; left: 50%; transform: translate(-50%, -160%); z-index: 100; padding: 0.7rem 1.2rem; border-radius: 999px; background: var(--grad); color: #0a0612; font-weight: 600; transition: transform .25s var(--ease); }
.skip-link:focus { transform: translate(-50%, 0); }
main:focus { outline: none; }

/* ═══ Background ═══ */
.bg-void { position: fixed; inset: 0; z-index: -2; background:
  radial-gradient(1100px 700px at 50% -10%, rgba(124, 77, 255, 0.22), transparent 60%),
  radial-gradient(900px 700px at 85% 20%, rgba(47, 227, 160, 0.1), transparent 55%),
  linear-gradient(180deg, var(--void-950), var(--void-900) 45%, var(--void-950)); }
#spores { position: absolute; inset: 0; width: 100%; height: 100%; }
.bg-glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.45; }
.bg-glow--1 { width: 520px; height: 520px; top: 8%; right: -140px; background: radial-gradient(circle, rgba(124,77,255,0.55), transparent 70%); animation: float1 20s var(--ease) infinite alternate; }
.bg-glow--2 { width: 440px; height: 440px; bottom: 12%; left: -120px; background: radial-gradient(circle, rgba(47,227,160,0.4), transparent 70%); animation: float2 24s var(--ease) infinite alternate; }
.bg-grain { position: absolute; inset: 0; opacity: 0.04; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
@keyframes float1 { to { transform: translate(-50px, 70px) scale(1.15); } }
@keyframes float2 { to { transform: translate(60px, -50px) scale(1.1); } }

/* ═══ Scroll progress + back-to-top ═══ */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 60; background: var(--grad); box-shadow: 0 0 12px var(--violet-glow); transition: width .1s linear; }
.to-top { position: fixed; right: clamp(16px, 3vw, 28px); bottom: clamp(16px, 3vw, 28px); z-index: 55; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(12,10,22,0.8); backdrop-filter: blur(10px); color: var(--venom-3); cursor: pointer; opacity: 0; transform: translateY(16px) scale(0.9); pointer-events: none; visibility: hidden; transition: opacity .3s var(--ease), transform .3s var(--ease), background .2s, border-color .2s, visibility 0s linear .3s; }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition: opacity .3s var(--ease), transform .3s var(--ease), background .2s, border-color .2s, visibility 0s; }
.to-top:hover { background: rgba(124,77,255,0.18); border-color: var(--venom-3); transform: translateY(-3px); }

/* ═══ Nav ═══ */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; transition: background .35s var(--ease), border-color .35s, backdrop-filter .35s; border-bottom: 1px solid transparent; }
.nav.is-scrolled { background: rgba(8, 6, 14, 0.74); backdrop-filter: blur(14px) saturate(140%); border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; gap: 1.5rem; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-family: "Cinzel", serif; font-weight: 700; font-size: 1.2rem; letter-spacing: 0.04em; }
.brand__mark { filter: drop-shadow(0 0 8px var(--violet-glow)); }
.brand__accent { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.nav__links { display: flex; gap: 1.6rem; margin-left: auto; font-size: 0.93rem; font-weight: 500; }
.nav__links a { color: var(--muted); position: relative; padding: 4px 0; transition: color .2s; }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0; background: var(--grad); transition: width .25s var(--ease); }
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { width: 100%; }
.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; margin-left: auto; }
.nav__toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s, opacity .3s; }

/* ═══ Buttons ═══ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font-weight: 600; font-size: 0.95rem; padding: 0.78rem 1.5rem; border-radius: 999px; cursor: pointer; border: 1px solid transparent; transition: transform .25s var(--ease), box-shadow .25s, background .25s, border-color .25s; white-space: nowrap; }
.btn--primary { background: var(--grad); color: #0a0612; box-shadow: 0 8px 30px -8px var(--violet-glow); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -8px var(--violet-glow); }
.btn--ghost { background: rgba(255,255,255,0.03); color: var(--text); border-color: var(--line-strong); }
.btn--ghost:hover { background: rgba(255,255,255,0.07); border-color: var(--venom-3); transform: translateY(-2px); }

/* ═══ Hero ═══ */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding-top: 90px; padding-bottom: 60px; overflow: hidden; }
.hero__eye { position: absolute; top: 46%; left: 50%; width: min(78vw, 680px); aspect-ratio: 1; transform: translate(-50%, -50%); opacity: 0.5; pointer-events: none; }
.hero__eye svg { width: 100%; height: 100%; animation: eyepulse 6s var(--ease) infinite; transform-origin: center; }
@keyframes eyepulse { 0%,100% { opacity: 0.75; } 50% { opacity: 1; filter: drop-shadow(0 0 30px var(--violet-glow)); } }
.hero__inner { position: relative; text-align: center; max-width: 880px; }
.hero__eyebrow { font-family: "Rajdhani", sans-serif; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; font-size: 0.82rem; color: var(--venom-2); margin-bottom: 1.1rem; }
.hero__title { font-size: clamp(3.4rem, 13vw, 8rem); font-weight: 900; text-transform: uppercase; letter-spacing: 0.04em; text-shadow: 0 0 70px rgba(124, 77, 255, 0.4); }
.hero__epithet { font-family: "Cinzel", serif; font-size: clamp(1.05rem, 2.4vw, 1.5rem); color: var(--text); margin-top: 0.6rem; font-style: italic; opacity: 0.92; }
.hero__lead { max-width: 600px; margin: 1.3rem auto 0; color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.12rem); }
.hero__lead strong { color: var(--text); font-weight: 600; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin-top: 1.8rem; }
.pill { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.4rem 0.95rem; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(255,255,255,0.02); font-size: 0.88rem; color: var(--muted); }
.pill b { color: var(--text); font-family: "Rajdhani", sans-serif; font-size: 1.05rem; }
.pill--accent { border-color: var(--venom-3); color: var(--venom-1); background: rgba(124,77,255,0.12); font-weight: 600; }

.countdown { margin-top: 2.4rem; }
.countdown__label { font-family: "Rajdhani", sans-serif; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.8rem; color: var(--faint); margin-bottom: 0.9rem; }
.countdown__grid { display: inline-flex; gap: 0.7rem; flex-wrap: wrap; justify-content: center; }
.cd { display: flex; flex-direction: column; align-items: center; min-width: 84px; padding: 0.9rem 0.6rem; border-radius: var(--radius-sm); background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01)); border: 1px solid var(--line); position: relative; overflow: hidden; }
.cd::before { content:""; position:absolute; inset:0; background: var(--grad); opacity: 0.08; }
.cd__num { font-family: "Rajdhani", sans-serif; font-weight: 700; font-size: clamp(1.8rem, 5vw, 2.6rem); line-height: 1; color: var(--text); font-variant-numeric: tabular-nums; }
.cd__unit { font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); margin-top: 0.4rem; }

.hero__actions { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; margin-top: 2.4rem; }
.hero__scroll { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid var(--line-strong); border-radius: 14px; display: grid; place-items: start center; }
.hero__scroll span { width: 4px; height: 8px; border-radius: 4px; background: var(--venom-2); margin-top: 7px; animation: scrolldot 1.8s var(--ease) infinite; }
@keyframes scrolldot { 0%,100% { opacity: 0; transform: translateY(0);} 40% { opacity:1;} 70% { opacity:0; transform: translateY(12px);} }

/* ═══ Marquee ═══ */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: rgba(255,255,255,0.015); padding: 0.85rem 0; }
.marquee__track { display: inline-flex; gap: 1.4rem; white-space: nowrap; font-family: "Cinzel", serif; font-size: 0.95rem; letter-spacing: 0.06em; color: var(--muted); animation: marquee 34s linear infinite; }
.marquee__track .dot { color: var(--venom-3); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ═══ Sections ═══ */
.section { padding: clamp(70px, 11vw, 130px) 0; position: relative; }
.section--alt { background: linear-gradient(180deg, transparent, rgba(12,10,22,0.6) 12%, rgba(12,10,22,0.6) 88%, transparent); }
.section__head { max-width: 760px; margin-bottom: 3rem; }
.eyebrow { font-family: "Rajdhani", sans-serif; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; font-size: 0.8rem; color: var(--venom-2); margin-bottom: 0.7rem; }
.section__title { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 700; }
.section__sub { margin-top: 1.1rem; color: var(--muted); font-size: 1.05rem; }

/* ═══ Identity ═══ */
.identity { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: start; }
.identity__lead { font-size: 1.12rem; color: var(--muted); }
.identity__lead strong { color: var(--text); font-weight: 600; }
.statline { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.statline li { background: var(--void-850); padding: 1.1rem 1.2rem; display: flex; flex-direction: column; gap: 0.25rem; }
.statline .sl-label { font-family: "Rajdhani", sans-serif; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.72rem; color: var(--faint); }
.statline .sl-value { font-size: 0.96rem; color: var(--text); font-weight: 500; }

/* ═══ Legend ═══ */
.legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 1.3rem; }
.lbeat { position: relative; padding: 1.6rem 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, var(--void-800), var(--void-850)); transition: transform .3s var(--ease), border-color .3s; overflow: hidden; }
.lbeat:hover { transform: translateY(-5px); border-color: var(--line-strong); }
.lbeat__num { font-family: "Cinzel", serif; font-weight: 900; font-size: 2.6rem; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; opacity: 0.85; }
.lbeat h3 { font-size: 1.2rem; margin-top: 0.6rem; }
.lbeat p { margin: 0.7rem 0 0; color: var(--muted); font-size: 0.96rem; }

/* ═══ Encounter / phases ═══ */
.phases { position: relative; max-width: 860px; margin-inline: auto; padding-left: 2rem; }
.phases::before { content:""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--venom-3), var(--venom-2), var(--venom-1)); opacity: 0.45; }
.phase { position: relative; padding: 0 0 2rem 1.6rem; }
.phase:last-child { padding-bottom: 0; }
.phase::before { content:""; position: absolute; left: -1.55rem; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--void-900); border: 3px solid var(--venom-3); box-shadow: 0 0 14px var(--violet-glow); }
.phase--inter::before { width: 12px; height: 12px; left: -1.45rem; top: 6px; border-color: var(--venom-2); box-shadow: 0 0 12px var(--venom-glow); }
.phase__kind { font-family: "Rajdhani", sans-serif; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.72rem; color: var(--venom-1); }
.phase--inter .phase__kind { color: var(--venom-2); }
.phase__name { font-family: "Cinzel", serif; font-size: 1.2rem; font-weight: 700; margin-top: 0.15rem; }
.phase--inter .phase__name { font-size: 1.05rem; opacity: 0.92; }
.phase__summary { color: var(--muted); margin-top: 0.45rem; font-size: 0.97rem; }

/* ═══ Abilities ═══ */
.abilities { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr)); gap: 1.2rem; }
.ability { padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, var(--void-800), var(--void-850)); transition: transform .3s var(--ease), border-color .3s; }
.ability:hover { transform: translateY(-5px); border-color: var(--line-strong); }
.ability__top { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; }
.ability__name { font-size: 1.08rem; font-weight: 700; font-family: "Inter", sans-serif; }
.ability__tag { font-family: "Rajdhani", sans-serif; font-weight: 700; font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.22rem 0.5rem; border-radius: 6px; white-space: nowrap; }
.ability__tag--datamined { color: var(--venom-2); background: rgba(47,227,160,0.12); border: 1px solid rgba(47,227,160,0.3); }
.ability__tag--speculative { color: #ffb86b; background: rgba(255,160,80,0.1); border: 1px solid rgba(255,160,80,0.3); }
.ability__tag--confirmed { color: var(--venom-1); background: rgba(182,255,92,0.1); border: 1px solid rgba(182,255,92,0.3); }
.ability p { margin: 0.7rem 0 0; color: var(--muted); font-size: 0.94rem; }

/* ═══ Bargain ═══ */
.bargain { display: grid; grid-template-columns: 1.6fr 1fr; gap: 2.2rem; align-items: center; }
.bargain__text { font-size: 1.08rem; color: var(--muted); margin: 0; }
.bargain__text strong, .bargain__text em { color: var(--text); }
.bargain__text em { font-style: italic; }
.bargain__cross { display: block; padding: 1.6rem; border: 1px solid var(--line-strong); border-radius: var(--radius); background: linear-gradient(150deg, rgba(124,77,255,0.14), rgba(47,227,160,0.06)); transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; }
.bargain__cross:hover { transform: translateY(-4px); border-color: var(--venom-3); box-shadow: 0 18px 44px -20px var(--violet-glow); }
.bargain__cross-label { font-family: "Rajdhani", sans-serif; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.74rem; color: var(--venom-2); }
.bargain__cross-title { display: block; margin-top: 0.4rem; font-family: "Cinzel", serif; font-size: 1.15rem; font-weight: 700; color: var(--text); }

/* ═══ Loot ═══ */
.loot { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(330px, 100%), 1fr)); gap: 1rem; }
.loot li { display: flex; gap: 0.9rem; padding: 1.15rem 1.3rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--void-850); transition: border-color .25s, transform .25s var(--ease); }
.loot li:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.loot li.loot--star { border-color: var(--line-strong); background: linear-gradient(150deg, rgba(124,77,255,0.12), var(--void-850)); }
.loot__mark { flex-shrink: 0; width: 24px; height: 24px; }
.loot__mark svg { width: 100%; height: 100%; }
.loot__txt { color: var(--muted); font-size: 0.95rem; }
.loot__txt b { color: var(--text); font-weight: 600; }

/* ═══ FAQ ═══ */
.faq { display: flex; flex-direction: column; gap: 0.8rem; }
.faq__item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--void-850); overflow: hidden; transition: border-color .25s; }
.faq__item.is-open { border-color: var(--line-strong); }
.faq__q { width: 100%; text-align: left; background: none; border: 0; color: var(--text); font-family: "Inter", sans-serif; font-size: 1.05rem; font-weight: 600; padding: 1.15rem 1.3rem; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq__q span { flex-shrink: 0; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-strong); transition: transform .3s var(--ease), background .3s; color: var(--venom-2); }
.faq__item.is-open .faq__q span { transform: rotate(45deg); background: var(--grad); color: #0a0612; border-color: transparent; }
.faq__a { max-height: 0; overflow: hidden; visibility: hidden; transition: max-height .35s var(--ease), visibility 0s linear .35s; }
.faq__item.is-open .faq__a { visibility: visible; transition: max-height .35s var(--ease), visibility 0s; }
.faq__a p { padding: 0 1.3rem 1.2rem; margin: 0; color: var(--muted); }

/* ═══ Footer ═══ */
.footer { border-top: 1px solid var(--line); padding: 3.5rem 0 2rem; background: var(--void-900); }
.footer__inner { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.footer__tag { color: var(--muted); font-size: 0.92rem; max-width: 320px; margin: 0.8rem 0 0.5rem; }
.footer__sister { font-size: 0.9rem; margin: 0; }
.footer__sister a { color: var(--venom-2); }
.footer__sister a:hover { color: var(--venom-1); }
.footer__nav { display: flex; flex-wrap: wrap; gap: 1.2rem; font-size: 0.92rem; height: fit-content; }
.footer__nav a { color: var(--muted); transition: color .2s; }
.footer__nav a:hover { color: var(--venom-3); }
.footer__legal { margin-top: 2.5rem; padding-top: 1.6rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer__legal p { color: var(--faint); font-size: 0.8rem; margin: 0; max-width: 720px; }

/* ═══ Reveal (progressive enhancement) ═══ */
.reveal { opacity: 1; transform: none; }
html.reveal-anim .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
html.reveal-anim .reveal.is-in { opacity: 1; transform: none; }

/* ═══ Responsive ═══ */
@media (max-width: 880px) {
  .nav__links { position: fixed; inset: 72px 0 auto; flex-direction: column; gap: 0; background: rgba(8,6,14,0.97); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); padding: 0.5rem 0; transform: translateY(-120%); transition: transform .35s var(--ease); }
  .nav__links.is-open { transform: none; }
  .nav__links a { padding: 1rem clamp(18px,4vw,40px); border-bottom: 1px solid var(--line); }
  .nav__links a::after { display: none; }
  .nav__toggle { display: flex; }
  .identity, .bargain { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .statline { grid-template-columns: 1fr; }
  .cd { min-width: 70px; }
  .footer__legal { flex-direction: column; }
}
