/* =========================================================
   Ragnarok: The New World — Landing page
   Art direction: "Runic Dawn"
   ========================================================= */

@font-face {
  font-family: "Lora";
  src: url("assets/fonts/lora-var-latin.woff") format("woff");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0B1220;
  --abyss: #111B2E;
  --abyss-2: #16233A;
  --forest: #123A2F;
  --sky: #2A5C8A;
  --gold: #E7C46A;
  --gold-hi: #F6E2A4;
  --gold-deep: #B88A2E;
  --parchment: #F5EEDC;
  --text: #E9E4D6;
  --muted: #B9C1CF;
  --poring: #FF8FB1;
  --line: rgba(231, 196, 106, .28);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, .7);
  --font-display: "Lora", Georgia, "Times New Roman", serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --header-h: 64px;
  --container: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: fixed; left: 12px; top: 12px; z-index: 200; transform: translateY(-200%);
  background: var(--gold); color: var(--ink);
  padding: 10px 16px; border-radius: 10px; font-weight: 700; text-decoration: none;
  transition: transform .2s;
}
.skip-link:focus { transform: none; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.container-narrow { width: min(100% - 2.5rem, 820px); }

/* ---------- Type ---------- */
.h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.85rem, 1.2rem + 3vw, 3.25rem);
  letter-spacing: -.01em;
  color: var(--parchment);
  text-wrap: balance;
}
.kicker {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .9rem;
}
.kicker::before, .kicker::after {
  content: ""; width: 26px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.kicker::after { transform: scaleX(-1); }
.lead {
  font-size: clamp(1.02rem, .95rem + .35vw, 1.2rem);
  color: var(--muted);
  max-width: 62ch;
  margin-top: 1rem;
}
.gold-text {
  background: linear-gradient(100deg, var(--gold-hi) 0%, var(--gold) 45%, var(--gold-deep) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  --pad-y: .85rem; --pad-x: 1.4rem;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 48px;
  padding: var(--pad-y) var(--pad-x);
  border-radius: 999px;
  font-weight: 800; font-size: .95rem; letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap;
  border: 0; overflow: hidden; isolation: isolate;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s;
}
.btn .ico { width: 1.35em; height: 1.35em; flex: none; }
.btn-gold {
  color: #1B1406;
  background: linear-gradient(180deg, var(--gold-hi) 0%, var(--gold) 45%, var(--gold-deep) 100%);
  box-shadow: 0 0 0 1px rgba(255, 240, 200, .5) inset, 0 10px 30px -8px rgba(231, 196, 106, .55);
}
.btn-gold::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .65) 50%, transparent 70%);
  transform: translateX(-120%);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255, 240, 200, .7) inset, 0 16px 40px -8px rgba(231, 196, 106, .75); }
.btn-gold:hover::after { transform: translateX(120%); transition: transform .8s var(--ease); }
.btn-gold:active { transform: translateY(1px) scale(.99); }
.btn-ghost {
  color: var(--parchment);
  background: rgba(11, 18, 32, .35);
  box-shadow: 0 0 0 1.5px rgba(245, 238, 220, .55) inset;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(245, 238, 220, .12); transform: translateY(-2px); }
.btn-sm { --pad-y: .55rem; --pad-x: 1rem; min-height: 44px; font-size: .8rem; }
.btn-lg { --pad-y: 1rem; --pad-x: 1.8rem; font-size: 1rem; }
.btn-xl { --pad-y: 1.05rem; --pad-x: 1.9rem; font-size: 1rem; }
.btn-xxl { --pad-y: 1.25rem; --pad-x: 2.4rem; font-size: clamp(1rem, .9rem + .5vw, 1.2rem); }
.btn-xxl.btn-gold { animation: pulse 2.8s var(--ease) infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(255, 240, 200, .5) inset, 0 0 0 0 rgba(231, 196, 106, .45), 0 14px 40px -10px rgba(231, 196, 106, .6); }
  50% { box-shadow: 0 0 0 1px rgba(255, 240, 200, .5) inset, 0 0 0 14px rgba(231, 196, 106, 0), 0 14px 40px -10px rgba(231, 196, 106, .6); }
}

.cta-row { display: flex; flex-direction: column; align-items: center; gap: .8rem; margin-top: clamp(2.2rem, 4vw, 3.2rem); text-align: center; }
.cta-note { font-size: .85rem; color: var(--muted); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  transition: background-color .3s, box-shadow .3s, backdrop-filter .3s;
}
.site-header.is-solid {
  background: rgba(11, 18, 32, .82);
  backdrop-filter: blur(12px) saturate(140%); -webkit-backdrop-filter: blur(12px) saturate(140%);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner {
  height: 100%;
  width: min(100% - 1.5rem, 1320px); margin-inline: auto;
  display: flex; align-items: center; gap: .75rem;
}
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--gold); margin-right: auto; min-height: 44px; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-mark svg { width: 100%; height: 100%; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-top { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: .18em; text-transform: uppercase; color: var(--parchment); }
.brand-sub { font-family: var(--font-display); font-style: italic; font-size: .78rem; letter-spacing: .08em; color: var(--gold); margin-top: 3px; }

.main-nav {
  position: fixed; inset: var(--header-h) 0 auto 0;
  background: rgba(11, 18, 32, .97);
  border-bottom: 1px solid var(--line);
  padding: 1rem 1.25rem 1.5rem;
  display: flex; flex-direction: column; gap: 1rem;
  transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: opacity .25s, transform .25s var(--ease), visibility .25s;
}
.main-nav.is-open { transform: none; opacity: 1; visibility: visible; }
.main-nav ul { display: flex; flex-direction: column; }
.main-nav a:not(.btn) {
  display: flex; align-items: center; min-height: 48px; padding: 0 .25rem;
  text-decoration: none; font-weight: 600; letter-spacing: .04em; color: var(--parchment);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.main-nav a.is-active { color: var(--gold); }
.nav-cta-mobile { width: 100%; }

.burger {
  width: 44px; height: 44px; flex: none;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  background: rgba(11, 18, 32, .4); border: 1px solid var(--line); border-radius: 12px;
}
.burger span { width: 20px; height: 2px; background: var(--parchment); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.show-xs { display: inline; }
.hide-xs { display: none; }
@media (max-width: 359px) {
  .brand-text { display: none; }
}
@media (min-width: 480px) {
  .show-xs { display: none; }
  .hide-xs { display: inline; }
}

@media (min-width: 1024px) {
  :root { --header-h: 76px; }
  .burger, .nav-cta-mobile { display: none; }
  .main-nav {
    position: static; inset: auto; padding: 0; background: none; border: 0;
    transform: none; opacity: 1; visibility: visible;
    flex-direction: row; margin-right: 1.25rem;
  }
  .main-nav ul { flex-direction: row; gap: .25rem; }
  .main-nav a:not(.btn) {
    position: relative; min-height: 44px; padding: 0 .9rem; border: 0;
    font-size: .88rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text);
  }
  .main-nav a:not(.btn)::after {
    content: ""; position: absolute; left: .9rem; right: .9rem; bottom: 6px; height: 1.5px;
    background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
  }
  .main-nav a:not(.btn):hover::after, .main-nav a.is-active::after { transform: scaleX(1); }
  .main-nav a:not(.btn):hover { color: var(--parchment); }
  .brand { margin-right: auto; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  padding: calc(var(--header-h) + 2rem) 0 clamp(4.5rem, 9vh, 6.5rem);
  overflow: hidden; isolation: isolate;
}
.hero-bg, .hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -3; }
.hero-bg img { object-fit: cover; object-position: 60% 40%; transform: scale(1.06); animation: heroZoom 18s var(--ease) forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero-veil {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(180deg, rgba(11, 18, 32, .55) 0%, rgba(11, 18, 32, .05) 30%, rgba(11, 18, 32, .35) 55%, rgba(11, 18, 32, .96) 100%),
    radial-gradient(120% 70% at 15% 85%, rgba(11, 18, 32, .85) 0%, transparent 60%),
    radial-gradient(60% 50% at 25% 55%, rgba(11, 18, 32, .35) 0%, transparent 70%);
}
.hero-rays {
  position: absolute; inset: -20% -10% auto auto; width: 90%; height: 120%; z-index: -1;
  background: conic-gradient(from 200deg at 70% 25%, transparent 0deg, rgba(255, 220, 150, .12) 12deg, transparent 24deg, rgba(255, 220, 150, .08) 40deg, transparent 52deg, rgba(255, 220, 150, .1) 70deg, transparent 84deg);
  mix-blend-mode: screen; pointer-events: none;
  animation: rays 14s ease-in-out infinite alternate;
}
@keyframes rays { from { transform: rotate(-3deg); opacity: .7; } to { transform: rotate(3deg); opacity: 1; } }

.particles { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.particles i {
  position: absolute; bottom: -10px;
  width: 4px; height: 4px; border-radius: 50%;
  background: radial-gradient(circle, #fff6d5 0%, var(--gold) 50%, transparent 70%);
  box-shadow: 0 0 10px 2px rgba(231, 196, 106, .55);
  opacity: 0; animation: float 12s linear infinite;
}
.particles i:nth-child(1)  { left: 6%;  animation-delay: 0s;   animation-duration: 13s; }
.particles i:nth-child(2)  { left: 14%; animation-delay: 3s;   animation-duration: 10s; transform: scale(.7); }
.particles i:nth-child(3)  { left: 23%; animation-delay: 6s;   animation-duration: 15s; }
.particles i:nth-child(4)  { left: 31%; animation-delay: 1.5s; animation-duration: 11s; }
.particles i:nth-child(5)  { left: 42%; animation-delay: 8s;   animation-duration: 14s; }
.particles i:nth-child(6)  { left: 51%; animation-delay: 4s;   animation-duration: 12s; }
.particles i:nth-child(7)  { left: 60%; animation-delay: 9.5s; animation-duration: 16s; }
.particles i:nth-child(8)  { left: 68%; animation-delay: 2s;   animation-duration: 10s; }
.particles i:nth-child(9)  { left: 76%; animation-delay: 7s;   animation-duration: 13s; }
.particles i:nth-child(10) { left: 84%; animation-delay: 5s;   animation-duration: 11s; }
.particles i:nth-child(11) { left: 91%; animation-delay: 10s;  animation-duration: 15s; }
.particles i:nth-child(12) { left: 97%; animation-delay: 6.5s; animation-duration: 12s; }
@keyframes float {
  0% { transform: translate3d(0, 0, 0); opacity: 0; }
  10% { opacity: .9; }
  80% { opacity: .6; }
  100% { transform: translate3d(30px, -85vh, 0); opacity: 0; }
}

.hero-content { position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .45rem .9rem; border-radius: 999px;
  background: rgba(11, 18, 32, .55); border: 1px solid var(--line);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-hi);
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: #6EE7A8; box-shadow: 0 0 0 4px rgba(110, 231, 168, .18); }
.hero-title {
  margin-top: 1.1rem;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.35rem, 1.3rem + 5.6vw, 5.4rem);
  line-height: 1.02; letter-spacing: -.015em;
  color: var(--parchment);
  text-shadow: 0 4px 30px rgba(0, 0, 0, .45);
}
.hero-title .line { display: block; }
.hero-title .gold-text { text-shadow: none; filter: drop-shadow(0 4px 24px rgba(231, 196, 106, .25)); }
.hero-sub {
  margin-top: 1.2rem; max-width: 46ch;
  font-size: clamp(1rem, .95rem + .4vw, 1.25rem);
  color: #E6E1D3;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .55);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.hero-actions .btn { flex: 1 1 100%; }
@media (min-width: 480px) { .hero-actions .btn { flex: 0 0 auto; } }

.trust-strip { display: flex; flex-wrap: wrap; gap: .4rem .5rem; margin-top: 1.6rem; }
.trust-strip li {
  font-size: .78rem; font-weight: 600; letter-spacing: .04em; color: var(--parchment);
  padding: .35rem .75rem; border-radius: 999px;
  background: rgba(11, 18, 32, .5); border: 1px solid rgba(245, 238, 220, .18);
}

.scroll-cue { position: absolute; left: 50%; bottom: 1.2rem; transform: translateX(-50%); width: 44px; height: 44px; display: none; place-items: center; }
.scroll-cue span { width: 22px; height: 36px; border: 2px solid rgba(245, 238, 220, .6); border-radius: 12px; position: relative; }
.scroll-cue span::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--gold); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(12px); opacity: 0; } }
@media (min-width: 768px) and (min-height: 700px) { .scroll-cue { display: grid; } }

/* short mobile screens: keep CTA above the fold */
@media (max-width: 699px) {
  .hero { align-items: center; padding-bottom: 2.5rem; }
  .hero-bg img { object-position: 50% 30%; }
  .hero-veil {
    background:
      linear-gradient(180deg, rgba(11, 18, 32, .7) 0%, rgba(11, 18, 32, .55) 35%, rgba(11, 18, 32, .72) 65%, rgba(11, 18, 32, .97) 100%);
  }
  .hero-title .gold-text { filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .55)); }
  .eyebrow { font-size: .64rem; letter-spacing: .12em; }
  .trust-strip li:nth-child(n+4) { display: none; }
}
@media (max-width: 699px) and (max-height: 640px) {
  .hero-title { font-size: 2.05rem; margin-top: .8rem; }
  .hero-sub { margin-top: .8rem; font-size: .95rem; }
  .hero-actions { margin-top: 1.1rem; gap: .6rem; }
  .hero-actions .btn { min-height: 48px; --pad-y: .8rem; }
  .trust-strip { display: none; }
  .eyebrow { font-size: .64rem; }
}

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(4.5rem, 9vw, 7.5rem) 0; }
.section-head { text-align: center; display: flex; flex-direction: column; align-items: center; margin-bottom: clamp(2.2rem, 5vw, 3.5rem); }
.section-head .lead { margin-inline: auto; }

/* Pillars */
.pillars { background: radial-gradient(80% 60% at 50% 0%, rgba(42, 92, 138, .25), transparent 70%), var(--ink); }
.pillar-grid { display: grid; gap: 1.1rem; }
@media (min-width: 768px) { .pillar-grid { grid-template-columns: repeat(3, 1fr); gap: 1.4rem; } }
.pillar {
  position: relative;
  padding: 2rem 1.6rem 1.8rem;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(22, 35, 58, .9), rgba(17, 27, 46, .9));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform .35s var(--ease), border-color .35s;
}
.pillar::before, .pillar::after {
  content: ""; position: absolute; width: 18px; height: 18px; border: 1.5px solid var(--gold);
}
.pillar::before { top: 10px; left: 10px; border-right: 0; border-bottom: 0; border-top-left-radius: 6px; }
.pillar::after { bottom: 10px; right: 10px; border-left: 0; border-top: 0; border-bottom-right-radius: 6px; }
.pillar:hover { transform: translateY(-6px); border-color: rgba(231, 196, 106, .6); }
.pillar-ico {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  background: radial-gradient(circle at 30% 30%, rgba(231, 196, 106, .35), rgba(231, 196, 106, .06));
  border: 1px solid var(--line); color: var(--gold-hi); margin-bottom: 1.2rem;
}
.pillar-ico svg { width: 28px; height: 28px; }
.pillar h3 { font-family: var(--font-display); font-size: 1.35rem; color: var(--parchment); margin-bottom: .5rem; }
.pillar p { color: var(--muted); }

/* World */
.world { background: linear-gradient(180deg, var(--ink) 0%, #0E1A2C 40%, #0F2230 100%); overflow: hidden; }
.ridge {
  position: absolute; inset: 0 0 auto 0; height: 60px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0 0h1440v20l-120 25-160-30-140 35-180-28-150 30-170-35-160 30-140-22-120 25V0Z' fill='%230B1220'/%3E%3Cpath d='M0 20l120 25 140-22 160 30 170-35 150 30 180-28 140 35 160-30 120 25' fill='none' stroke='%23E7C46A' stroke-opacity='.35'/%3E%3C/svg%3E") center top / 100% 100% no-repeat;
}
.gallery { position: relative; }
.gallery-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: 86%;
  gap: 1rem;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding: .5rem max(1.25rem, calc((100vw - var(--container)) / 2)) 1.2rem;
  scroll-padding-inline: max(1.25rem, calc((100vw - var(--container)) / 2));
  scrollbar-width: none;
}
.gallery-track::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .gallery-track { grid-auto-columns: calc((min(100vw, var(--container)) - 1.5rem) / 2); gap: 1.5rem; } }
.shot {
  margin: 0; scroll-snap-align: start;
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  background: var(--abyss);
}
.shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .8s var(--ease); }
.shot:hover img { transform: scale(1.04); }
.shot figcaption {
  position: absolute; inset: auto 0 0 0;
  padding: 2.5rem 1.1rem 1rem;
  background: linear-gradient(180deg, transparent, rgba(11, 18, 32, .92));
  font-size: .9rem; color: var(--muted);
}
.shot figcaption strong { display: block; font-family: var(--font-display); font-size: 1.15rem; color: var(--parchment); }
.gallery-ctrl { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: .6rem; }
.round-btn {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(22, 35, 58, .8); border: 1px solid var(--line); color: var(--gold-hi);
  transition: background-color .2s, transform .2s;
}
.round-btn:hover { background: rgba(231, 196, 106, .15); transform: translateY(-2px); }
.round-btn svg { width: 22px; height: 22px; }
.gallery-dots { display: flex; gap: .5rem; }
.gallery-dots span { width: 8px; height: 8px; border-radius: 99px; background: rgba(245, 238, 220, .25); transition: width .3s var(--ease), background-color .3s; }
.gallery-dots span.on { width: 26px; background: var(--gold); }

/* Classes */
.classes { background: radial-gradient(70% 60% at 50% 40%, rgba(18, 58, 47, .55), transparent 75%), #0F2230; }
.class-picker {
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(22, 35, 58, .92), rgba(13, 30, 33, .92));
  box-shadow: var(--shadow);
  overflow: hidden;
}
.class-tabs {
  display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: none;
  padding: .7rem; border-bottom: 1px solid var(--line);
  background: rgba(11, 18, 32, .45);
}
.class-tabs::-webkit-scrollbar { display: none; }
@media (max-width: 599px) { .class-tabs { display: grid; grid-template-columns: 1fr 1fr; } .class-tab { padding: .55rem .5rem; } }
.class-tab {
  flex: 1 0 auto;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .6rem 1rem;
  border-radius: 12px; border: 1px solid transparent; background: transparent;
  font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: .82rem; color: var(--muted);
  transition: background-color .25s, color .25s, border-color .25s;
}
.class-tab svg { width: 20px; height: 20px; }
.class-tab em { font-style: normal; font-size: .62rem; padding: .1rem .4rem; border-radius: 99px; background: var(--poring); color: #3A0B1A; letter-spacing: .08em; }
.class-tab:hover { color: var(--parchment); background: rgba(245, 238, 220, .06); }
.class-tab[aria-selected="true"] { color: var(--ink); background: linear-gradient(180deg, var(--gold-hi), var(--gold)); border-color: rgba(255, 240, 200, .6); }
.class-tab[aria-selected="true"] em { background: var(--ink); color: var(--gold-hi); }

.class-panel {
  display: grid; gap: 1.5rem; align-items: center;
  padding: clamp(1.6rem, 4vw, 3rem);
  animation: panelIn .45s var(--ease);
}
.class-panel[hidden] { display: none; }
@keyframes panelIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (min-width: 768px) { .class-panel { grid-template-columns: 240px 1fr; gap: 2.5rem; } }
.class-emblem {
  width: min(200px, 56vw); aspect-ratio: 1; margin-inline: auto;
  border-radius: 50%; display: grid; place-items: center; position: relative;
  background: radial-gradient(circle at 50% 40%, rgba(231, 196, 106, .3), rgba(11, 18, 32, .2) 70%);
  border: 1.5px solid var(--line);
  color: var(--gold-hi);
}
.class-emblem::before {
  content: ""; position: absolute; inset: -10px; border-radius: 50%;
  border: 1px dashed rgba(231, 196, 106, .45);
  animation: spin 40s linear infinite;
}
.class-emblem::after {
  content: ""; position: absolute; inset: 14px; border-radius: 50%;
  border: 1px solid rgba(231, 196, 106, .2);
}
.class-emblem svg { width: 44%; height: 44%; filter: drop-shadow(0 0 18px rgba(231, 196, 106, .5)); }
.emblem-druid { background: radial-gradient(circle at 50% 40%, rgba(110, 231, 168, .3), rgba(18, 58, 47, .35) 70%); color: #B8F5D3; }
.emblem-mage { background: radial-gradient(circle at 50% 40%, rgba(120, 170, 255, .3), rgba(42, 92, 138, .3) 70%); color: #CFE0FF; }
.emblem-thief { background: radial-gradient(circle at 50% 40%, rgba(255, 143, 177, .28), rgba(60, 20, 40, .3) 70%); color: #FFD3E0; }
@keyframes spin { to { transform: rotate(360deg); } }
.class-role { font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.class-body h3 { font-family: var(--font-display); font-size: clamp(2rem, 1.5rem + 2vw, 2.8rem); color: var(--parchment); margin: .3rem 0 .7rem; }
.class-body > p:not(.class-role):not(.form-desc) { color: var(--muted); max-width: 56ch; }
.forms { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.3rem; }
.form-btn {
  display: inline-flex; align-items: center; gap: .45rem;
  min-height: 44px; padding: .5rem 1rem; border-radius: 999px;
  background: rgba(11, 18, 32, .45); border: 1px solid rgba(184, 245, 211, .3);
  font-weight: 700; font-size: .85rem; color: var(--parchment);
  transition: background-color .25s, border-color .25s, color .25s, transform .2s;
}
.form-btn svg { width: 18px; height: 18px; }
.form-btn:hover { transform: translateY(-2px); border-color: rgba(184, 245, 211, .7); }
.form-btn[aria-pressed="true"] { background: #B8F5D3; color: #0C2A20; border-color: #B8F5D3; }
.form-desc { margin-top: 1rem; color: #D7EFE3; min-height: 3.2em; }
.classes-foot { text-align: center; margin-top: 1.6rem; color: var(--muted); }
.classes-foot strong { color: var(--parchment); }

/* MVP */
.mvp {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(520px, 80vh, 820px);
  display: flex; align-items: flex-end;
  padding: clamp(4rem, 8vw, 6rem) 0;
}
.mvp-bg, .mvp-bg img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.mvp-bg img { object-fit: cover; object-position: 60% 30%; }
.mvp-veil {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, #0F2230 0%, rgba(15, 34, 48, 0) 22%, rgba(11, 18, 32, 0) 45%, rgba(11, 18, 32, .92) 88%),
    linear-gradient(90deg, rgba(11, 18, 32, .85) 0%, rgba(11, 18, 32, .2) 60%, transparent 100%);
}
.mvp-content { max-width: var(--container); }
.mvp-content .lead { color: #D9D4C6; }

/* Style */
.style { background: var(--ink); }
.split { display: grid; gap: 1.4rem; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 1.8rem; } }
.split-card {
  border-radius: var(--radius); overflow: hidden;
  background: var(--abyss); border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform .35s var(--ease);
}
.split-card:hover { transform: translateY(-6px); }
.split-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.split-text { padding: 1.4rem 1.5rem 1.7rem; }
.split-text h3 { font-family: var(--font-display); font-size: 1.45rem; color: var(--parchment); margin-bottom: .45rem; }
.split-text p { color: var(--muted); }

/* Together */
.together { background: radial-gradient(70% 50% at 50% 0%, rgba(255, 143, 177, .08), transparent 70%), linear-gradient(180deg, var(--ink), var(--abyss)); }
.tiles { display: grid; gap: 1.1rem; }
@media (min-width: 700px) { .tiles { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .tiles { grid-template-columns: 1fr 1.4fr; grid-auto-rows: minmax(250px, auto); } .tile:nth-child(3) { grid-column: 2; grid-row: 2; } .tile:nth-child(4) { grid-column: 1; grid-row: 2; } }
.tile {
  position: relative; overflow: hidden;
  padding: 1.8rem 1.6rem;
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(22, 35, 58, .95), rgba(17, 27, 46, .95));
  border: 1px solid var(--line);
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 220px;
  transition: transform .35s var(--ease), border-color .35s;
}
.tile:hover { transform: translateY(-5px); border-color: rgba(231, 196, 106, .6); }
.tile:not(.tile-img)::before {
  content: ""; position: absolute; top: -40%; right: -20%; width: 70%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(231, 196, 106, .16), transparent 65%);
  pointer-events: none;
}
.tile:not(.tile-img)::after {
  content: ""; position: absolute; top: 18px; right: 18px; width: 90px; height: 90px;
  border: 1px dashed rgba(231, 196, 106, .28); border-radius: 50%;
  box-shadow: 0 0 0 14px rgba(231, 196, 106, .04), 0 0 0 28px rgba(231, 196, 106, .03);
  pointer-events: none;
}
.tile h3 { font-family: var(--font-display); font-size: 1.35rem; color: var(--parchment); margin: .8rem 0 .4rem; }
.tile p { color: var(--muted); max-width: 44ch; }
.tile-ico { width: 34px; height: 34px; color: var(--gold-hi); }
.tile-img { padding: 0; min-height: 280px; }
.tile-img picture, .tile-img img { position: absolute; inset: 0; width: 100%; height: 100%; }
.tile-img img { object-fit: cover; transition: transform .8s var(--ease); }
.tile-img:hover img { transform: scale(1.05); }
.tile-over { position: relative; padding: 4rem 1.6rem 1.6rem; background: linear-gradient(180deg, transparent, rgba(11, 18, 32, .88) 45%, rgba(11, 18, 32, .97)); }
.tile-over p { color: #CFD5DF; }

/* Devices */
.devices { background: radial-gradient(70% 60% at 50% 100%, rgba(42, 92, 138, .25), transparent 70%), var(--abyss); }
.day { position: relative; display: grid; gap: 1.1rem; counter-reset: none; }
@media (min-width: 900px) {
  .day { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
  .day::before {
    content: ""; position: absolute; top: 44px; left: 16%; right: 16%; height: 2px; z-index: 0;
    background: linear-gradient(90deg, transparent, var(--gold), var(--gold), transparent);
    opacity: .5;
  }
}
.day-step {
  position: relative; z-index: 1; text-align: center;
  padding: 1.8rem 1.4rem;
  border-radius: var(--radius);
  background: rgba(11, 18, 32, .55); border: 1px solid var(--line);
}
.day-ico {
  width: 64px; height: 64px; margin: -.2rem auto 1rem; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 30% 30%, var(--gold-hi), var(--gold-deep));
  color: var(--ink); box-shadow: 0 0 0 6px rgba(231, 196, 106, .14), 0 10px 25px -8px rgba(231, 196, 106, .6);
}
.day-ico svg { width: 30px; height: 30px; }
.day-time { font-size: .75rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.day-step h3 { font-family: var(--font-display); font-size: 1.5rem; color: var(--parchment); margin: .2rem 0 .45rem; }
.day-step p:last-child { color: var(--muted); }
.specs { margin-top: 1.8rem; text-align: center; font-size: .88rem; color: var(--muted); }
.specs span:not(.sep) { color: var(--parchment); font-weight: 600; }
.specs .sep { margin: 0 .5rem; opacity: .4; }

/* Steps */
.start { background: linear-gradient(180deg, var(--abyss), var(--ink)); }
.steps { display: grid; gap: 1.1rem; counter-reset: step; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
.step {
  position: relative; padding: 2.2rem 1.6rem 1.8rem;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(22, 35, 58, .9), rgba(17, 27, 46, .9));
  border: 1px solid var(--line);
}
.step-num {
  position: absolute; top: -18px; left: 1.6rem;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.3rem;
  color: var(--ink); background: linear-gradient(180deg, var(--gold-hi), var(--gold-deep));
  box-shadow: 0 0 0 5px var(--ink), 0 0 0 6px var(--line);
}
.step h3 { font-family: var(--font-display); font-size: 1.3rem; color: var(--parchment); margin: .6rem 0 .5rem; }
.step p { color: var(--muted); }
.step strong { color: var(--gold-hi); font-weight: 700; }
.steps .step { margin-top: 18px; }

/* FAQ */
.faq { background: var(--ink); }
.faq-list { display: grid; gap: .7rem; }
.faq-list details {
  border-radius: var(--radius-sm);
  background: rgba(22, 35, 58, .7); border: 1px solid rgba(231, 196, 106, .18);
  transition: border-color .25s, background-color .25s;
}
.faq-list details[open] { border-color: rgba(231, 196, 106, .5); background: rgba(22, 35, 58, .95); }
.faq-list summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 56px; padding: 1rem 1.2rem;
  font-weight: 700; color: var(--parchment); font-size: 1.02rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; flex: none; width: 12px; height: 12px;
  border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold);
  transform: rotate(45deg) translate(-3px, -3px); transition: transform .3s var(--ease);
}
.faq-list details[open] summary::after { transform: rotate(225deg) translate(-3px, -3px); }
.faq-list summary:focus-visible { outline-offset: -3px; border-radius: var(--radius-sm); }
.faq-a { padding: 0 1.2rem 1.2rem; color: var(--muted); }

/* Final */
.final {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(5rem, 10vw, 8rem) 0;
}
.final-bg, .final-bg img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.final-bg img { object-fit: cover; object-position: 60% 50%; }
.final-veil { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--ink) 0%, rgba(11, 18, 32, .72) 35%, rgba(11, 18, 32, .85) 100%); }
.final-inner { display: grid; gap: 2.4rem; align-items: center; justify-items: center; text-align: center; }
@media (min-width: 960px) { .final-inner { grid-template-columns: 1fr 1fr; text-align: left; justify-items: start; } }
.keyart {
  margin: 0; position: relative; width: min(100%, 560px);
  border-radius: var(--radius); padding: 8px;
  background: linear-gradient(140deg, var(--gold-hi), var(--gold-deep) 40%, var(--gold) 70%, var(--gold-hi));
  box-shadow: 0 30px 70px -25px rgba(0, 0, 0, .9), 0 0 60px -10px rgba(231, 196, 106, .35);
  transform: rotate(-2deg);
}
.keyart img { width: 100%; border-radius: calc(var(--radius) - 6px); aspect-ratio: 616 / 353; object-fit: cover; }
@media (prefers-reduced-motion: no-preference) { .keyart { animation: bob 7s ease-in-out infinite; } }
@keyframes bob { 0%, 100% { transform: rotate(-2deg) translateY(0); } 50% { transform: rotate(-1deg) translateY(-10px); } }
.final-text .lead { margin-bottom: 2rem; }
.final-text .cta-note { margin-top: 1rem; }
@media (max-width: 959px) { .final-text .lead { margin-inline: auto; } }

/* Footer */
.site-footer { background: #080E19; border-top: 1px solid var(--line); padding: 2.6rem 0 calc(2.6rem + env(safe-area-inset-bottom)); }
.footer-inner { display: grid; gap: 1.4rem; justify-items: center; text-align: center; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.4rem; }
.footer-links a { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; text-decoration: none; color: var(--muted); font-weight: 600; }
.footer-links a:hover { color: var(--gold-hi); }
.footer-links .ico { width: 1.2em; height: 1.2em; }
.legal { font-size: .78rem; color: #8F98A8; max-width: 80ch; }
.site-footer .brand { margin: 0; }

/* Sticky mobile CTA */
.sticky-cta {
  position: fixed; inset: auto 0 0 0; z-index: 90;
  padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(11, 18, 32, 0), rgba(11, 18, 32, .92) 35%);
  transform: translateY(110%); transition: transform .35s var(--ease);
}
.sticky-cta .btn { width: 100%; }
.sticky-cta.is-visible { transform: none; }
@media (min-width: 768px) { .sticky-cta { display: none; } }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero-bg img { transform: none; }
  .particles, .hero-rays { display: none; }
}
