/* ─── Variables ─────────────────────────────────────────── */
:root {
  --void:         #030408;
  --abyss:        #060c16;
  --deep:         #0a1428;
  --sea:          #0d2040;

  --gold:         #d4af37;
  --gold-soft:    #e8cc6a;
  --gold-bright:  #f5e28a;
  --gold-dark:    #7a5e10;
  --gold-dim:     rgba(212,175,55,.14);

  --text:         #f0e6d3;
  --text-2:       #c4b8a0;
  --text-3:       #7a6e5e;
  --text-4:       #4a4035;

  --border:       rgba(212,175,55,.18);
  --border-s:     rgba(212,175,55,.38);

  --surface:      rgba(8,14,28,.82);
  --card:         rgba(10,18,34,.88);

  --font-display: 'Cinzel', 'Georgia', serif;
  --font-lore:    'Crimson Pro', 'Georgia', serif;
  --font-ui:      'Raleway', system-ui, sans-serif;

  --max:          1240px;
  --r:            6px;
  --r-lg:         16px;
  --r-xl:         24px;
  --r-2xl:        36px;
}

/* ─── Reset ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--void); scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 60% 0%, rgba(13,32,64,.7), transparent),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(8,20,42,.5), transparent),
    linear-gradient(180deg, #060c16 0%, #030408 50%, #020306 100%);
}
/* Subtle grid overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(rgba(212,175,55,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212,175,55,.018) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.6), transparent 70%);
  pointer-events: none;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; border: none; background: none; padding: 0; cursor: pointer; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); letter-spacing: -.02em; }
p { margin: 0; }
img, svg { display: block; }

/* ─── Canvas ───────────────────────────────────────────── */
#ambientCanvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  opacity: .9;
}

/* ─── Loader ───────────────────────────────────────────── */
.loader {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--void);
  transition: opacity .7s ease, visibility .7s ease;
}
.loader.hiding { opacity: 0; visibility: hidden; }

.loader-inner { text-align: center; }

.loader-sigil {
  width: 72px;
  height: auto;
  color: var(--gold);
  margin: 0 auto 24px;
  opacity: 0;
  animation: fadeUp .8s ease .3s forwards;
}

.loader-text {
  font-family: var(--font-display);
  letter-spacing: .3em;
  margin-bottom: 28px;
}
.loader-sub {
  display: block;
  font-size: .78rem;
  color: var(--text-3);
  opacity: 0;
  animation: fadeUp .6s ease .8s forwards;
}
.loader-name {
  display: block;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--gold);
  opacity: 0;
  animation: fadeUp .6s ease 1s forwards;
}

.loader-bar {
  width: 120px;
  height: 1px;
  background: var(--gold-dim);
  margin: 0 auto;
  overflow: hidden;
  opacity: 0;
  animation: fadeUp .4s ease 1.2s forwards;
}
.loader-bar-fill {
  height: 100%;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  animation: loadFill 1.2s ease 1.2s forwards;
}

/* ─── Music Player ─────────────────────────────────────── */
.music-player {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 500;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.music-fab {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--border-s);
  border-radius: 50%;
  background: rgba(6,12,24,.9);
  backdrop-filter: blur(16px);
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
  position: relative;
  overflow: hidden;
}
.music-fab:hover {
  border-color: var(--gold);
  box-shadow: 0 0 24px rgba(212,175,55,.22);
}
.music-hint {
  animation: musicPulse 1.4s ease-in-out infinite;
}
@keyframes musicPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212,175,55,.55); border-color: var(--gold); }
  50%       { box-shadow: 0 0 0 10px rgba(212,175,55,0); border-color: var(--gold-soft); }
}
.music-fab-icon {
  width: 20px;
  height: 20px;
  color: var(--gold);
  transition: opacity .15s;
}
.music-player.is-playing .music-fab-icon { display: none; }

/* EQ bars */
.eq-bars {
  display: none;
  position: absolute;
  inset: 0;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  padding-bottom: 13px;
}
.music-player.is-playing .eq-bars { display: flex; }
.eq-bars i {
  display: block;
  width: 3px;
  border-radius: 2px;
  background: var(--gold);
  animation: eqBar .8s ease infinite;
}
.eq-bars i:nth-child(1) { height: 7px;  animation-delay: 0s; }
.eq-bars i:nth-child(2) { height: 16px; animation-delay: .12s; }
.eq-bars i:nth-child(3) { height: 9px;  animation-delay: .22s; }
.eq-bars i:nth-child(4) { height: 14px; animation-delay: .06s; }

/* Panel */
.music-panel {
  display: none;
  width: 268px;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: rgba(4,8,18,.94);
  backdrop-filter: blur(28px);
  padding: 18px;
  box-shadow: 0 24px 64px rgba(0,0,0,.55), 0 0 40px rgba(212,175,55,.05);
}
.music-player.panel-open .music-panel {
  display: block;
  animation: panelIn .22s ease;
}

.music-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.music-panel-title {
  color: var(--gold-soft);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-family: var(--font-ui);
}
.music-panel-close {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: none;
  cursor: pointer;
  color: var(--text-3);
  transition: color .18s, border-color .18s;
}
.music-panel-close:hover { color: var(--text); border-color: var(--border-s); }
.music-panel-close svg { width: 12px; height: 12px; }

.music-now-playing {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.music-vinyl {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
}
.music-vinyl svg { width: 100%; height: 100%; }
.music-player.is-playing .music-vinyl { animation: vinylSpin 4s linear infinite; }

.music-meta { min-width: 0; }
.music-track-name {
  display: block;
  color: var(--text);
  font-size: .88rem;
  font-weight: 600;
  font-family: var(--font-ui);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.music-track-artist {
  display: block;
  color: var(--text-3);
  font-size: .74rem;
  margin-top: 2px;
}

.music-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.music-ctrl {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: rgba(255,255,255,.03);
  cursor: pointer;
  color: var(--text-2);
  transition: .18s;
}
.music-ctrl:hover { border-color: var(--gold); color: var(--gold); }
.music-ctrl svg { width: 16px; height: 16px; }
.music-play-btn {
  width: 44px;
  height: 44px;
  border-color: var(--border-s);
  background: rgba(212,175,55,.1);
  color: var(--gold);
}
.music-play-btn:hover { background: rgba(212,175,55,.18); box-shadow: 0 0 18px rgba(212,175,55,.18); }
.icon-pause { display: none; }

.music-volume {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-3);
}
.music-volume input[type="range"] {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  appearance: none;
  -webkit-appearance: none;
  background: rgba(212,175,55,.2);
  outline: none;
  cursor: pointer;
}
.music-volume input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  cursor: pointer;
}

/* ─── Layout ───────────────────────────────────────────── */
.page-shell {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

/* ─── Header ───────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 16px;
  z-index: 100;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  margin-top: 0;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: rgba(3,4,8,.75);
  backdrop-filter: blur(20px);
  box-shadow: 0 16px 60px rgba(0,0,0,.5);
  transition: background .3s, box-shadow .3s;
}
.site-header.scrolled {
  background: rgba(3,4,8,.92);
  box-shadow: 0 16px 60px rgba(0,0,0,.7), 0 0 0 1px rgba(212,175,55,.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand-kraken {
  width: 32px;
  height: auto;
  color: var(--gold);
  flex-shrink: 0;
}
.brand-copy strong {
  display: block;
  font-family: var(--font-display);
  font-size: .88rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: .06em;
}
.brand-copy small {
  display: block;
  font-size: .7rem;
  color: var(--text-3);
  margin-top: 1px;
  letter-spacing: .04em;
}

.site-nav {
  justify-self: center;
  display: inline-flex;
  gap: 2px;
}
.site-nav a {
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--text-3);
  font-size: .86rem;
  font-weight: 600;
  letter-spacing: .03em;
  transition: color .18s, background .18s;
}
.site-nav a:hover {
  color: var(--text);
  background: rgba(255,255,255,.05);
}

.btn-header {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  color: #1a1000;
  font-size: .84rem;
  font-weight: 700;
  font-family: var(--font-ui);
  letter-spacing: .04em;
  transition: filter .18s, transform .18s;
  white-space: nowrap;
}
.btn-header:hover { filter: brightness(1.1); transform: translateY(-1px); }

.menu-toggle { display: none; }

/* ─── Hero ─────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: clamp(100px,14vw,160px) 0 clamp(80px,10vw,120px);
  overflow: hidden;
}

.hero-watermark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 2vw;
  font-family: var(--font-display);
  font-size: clamp(8rem, 24vw, 22rem);
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1px rgba(212,175,55,.06);
  letter-spacing: -.04em;
  pointer-events: none;
  user-select: none;
  line-height: 1;
}

.hero-content { max-width: none; position: relative; z-index: 1; }

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  color: var(--gold-soft);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.eyebrow-dash {
  display: block;
  width: 32px;
  height: 1px;
  background: var(--gold);
  opacity: .5;
}

.hero-title {
  font-family: var(--font-display);
  line-height: .92;
  margin-bottom: 24px;
}
.ht-pre {
  display: block;
  font-size: clamp(2rem, 6vw, 5.2rem);
  font-weight: 400;
  color: var(--text-2);
  letter-spacing: .28em;
  margin-bottom: 4px;
}
.ht-main {
  display: block;
  font-size: clamp(4.5rem, 14vw, 13rem);
  font-weight: 900;
  background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold) 45%, var(--gold-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -.02em;
  line-height: .9;
  filter: drop-shadow(0 0 40px rgba(212,175,55,.25));
}

.hero-motto {
  font-family: var(--font-lore);
  font-style: italic;
  font-size: clamp(1.1rem, 2.2vw, 1.55rem);
  color: var(--gold-soft);
  opacity: .8;
  margin-bottom: 24px;
  letter-spacing: .04em;
}

.hero-lead {
  font-family: var(--font-lore);
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--text-2);
  line-height: 1.75;
  max-width: 600px;
  margin-bottom: 44px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.scroll-bar {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, var(--gold));
  animation: scrollPulse 2s ease infinite;
}
.scroll-label {
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-3);
  writing-mode: vertical-lr;
}

/* ─── Buttons ──────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold) 55%, var(--gold-dark));
  color: #130e00;
  font-family: var(--font-ui);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .04em;
  transition: filter .2s, transform .2s, box-shadow .2s;
}
.btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(212,175,55,.3);
}
.btn-primary svg { width: 16px; height: 16px; flex-shrink: 0; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  border: 1px solid var(--border-s);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .04em;
  background: rgba(255,255,255,.03);
  transition: border-color .2s, background .2s, transform .2s;
}
.btn-ghost:hover {
  border-color: var(--gold);
  background: rgba(212,175,55,.07);
  transform: translateY(-2px);
}
.btn-ghost svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ─── Section shared ───────────────────────────────────── */
.section { padding: clamp(80px, 12vw, 140px) 0 0; }

.section-label {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 16px;
  font-family: var(--font-ui);
}

.section-desc {
  color: var(--text-2);
  font-family: var(--font-lore);
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 540px;
  margin-top: 14px;
}

/* Ornament divider */
.orn {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: clamp(48px, 8vw, 80px);
  color: var(--gold);
  opacity: .55;
}
.orn-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  opacity: .4;
}
.orn-icon { width: 28px; height: auto; flex-shrink: 0; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .75s ease var(--delay, 0ms), transform .75s ease var(--delay, 0ms);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ─── Section Lore ─────────────────────────────────────── */
.lore-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.lore-sigil-col { position: relative; }
.lore-sigil-wrap { position: relative; display: inline-block; }
.lore-kraken {
  width: 160px;
  height: auto;
  display: block;
  animation: krakenFloat 5s ease-in-out infinite;
  filter: drop-shadow(0 0 12px rgba(212,175,55,.12));
}
.lore-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(212,175,55,.12), transparent 70%);
  pointer-events: none;
  animation: glowPulse 4s ease-in-out infinite;
}

.lore-text-col { padding-top: 8px; }

.lore-text-col h2 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  color: var(--text);
  line-height: 1.05;
  margin-bottom: 28px;
}

.lore-body {
  font-family: var(--font-lore);
  font-size: 1.15rem;
  color: var(--text-2);
  line-height: 1.8;
  margin-bottom: 18px;
}

.lore-values {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.lore-value {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.value-icon {
  font-size: 1.3rem;
  line-height: 1;
  margin-top: 2px;
  flex-shrink: 0;
}
.lore-value strong {
  display: block;
  color: var(--text);
  font-family: var(--font-ui);
  font-size: .92rem;
  font-weight: 700;
  margin-bottom: 2px;
  letter-spacing: .03em;
}
.lore-value span {
  color: var(--text-3);
  font-size: .9rem;
}

/* ─── Section Commandement ─────────────────────────────── */
.section-intro { margin-bottom: clamp(40px, 7vw, 64px); }
.section-intro h2 {
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  color: var(--text);
  line-height: 1.08;
}

.rank-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.rank-card {
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: var(--card);
  padding: 24px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color .25s, box-shadow .25s, transform .25s;
  backdrop-filter: blur(12px);
}
.rank-card:hover {
  border-color: var(--border-s);
  box-shadow: 0 0 40px rgba(212,175,55,.08), 0 20px 50px rgba(0,0,0,.4);
  transform: translateY(-3px);
}
.rank-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.rank-emblem {
  width: 44px;
  height: 44px;
  color: var(--gold);
  opacity: .7;
}
.rank-tier {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: .7;
  font-family: var(--font-ui);
}
.rank-card h3 {
  font-size: 1.08rem;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: .04em;
}
.rank-card p {
  font-family: var(--font-lore);
  font-size: 1rem;
  color: var(--text-3);
  line-height: 1.6;
  flex: 1;
}
.rank-discord {
  display: block;
  font-family: var(--font-ui);
  font-size: .72rem;
  font-weight: 400;
  color: var(--text-3);
  letter-spacing: .02em;
  margin-top: 2px;
}

.rank-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-soft);
  background: var(--gold-dim);
  font-family: var(--font-ui);
}

/* ─── Section Outils ───────────────────────────────────── */
.outils-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: clamp(32px, 7vw, 80px);
  align-items: start;
}
.outils-intro h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  color: var(--text);
  line-height: 1.08;
  margin-bottom: 0;
}

.outils-list { display: flex; flex-direction: column; gap: 0; }

.outil-item {
  display: grid;
  grid-template-columns: 40px 48px 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 22px 20px;
  border-bottom: 1px solid var(--border);
  transition: background .2s;
}
.outil-item:first-child { border-top: 1px solid var(--border); }
.outil-item:hover { background: rgba(212,175,55,.025); }

.outil-num {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--gold);
  opacity: .45;
  font-weight: 400;
}
.outil-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--gold-dim);
  color: var(--gold);
  flex-shrink: 0;
}
.outil-icon svg { width: 18px; height: 18px; }

.outil-body h3 {
  font-family: var(--font-ui);
  font-size: .96rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: .02em;
  margin-bottom: 4px;
}
.outil-body p {
  font-family: var(--font-lore);
  font-size: .98rem;
  color: var(--text-3);
  line-height: 1.55;
}

.outil-arrow {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-3);
  flex-shrink: 0;
  transition: border-color .18s, color .18s, transform .18s;
}
.outil-arrow svg { width: 14px; height: 14px; }
.outil-item:hover .outil-arrow {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateX(3px);
}
.outil-badge-soon {
  display: inline-block;
  padding: 5px 12px;
  border: 1px solid rgba(212,175,55,.2);
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-3);
  white-space: nowrap;
  font-family: var(--font-ui);
}

/* ─── Section CTA ──────────────────────────────────────── */
.section-cta {
  position: relative;
  margin-top: clamp(80px, 12vw, 140px);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  background: linear-gradient(140deg, rgba(8,14,28,.95), rgba(4,8,16,.98));
  overflow: hidden;
}

.cta-sigil-bg {
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  width: 340px;
  height: auto;
  opacity: .04;
  pointer-events: none;
}
.cta-sigil-bg svg { width: 100%; height: auto; color: var(--gold); }

.cta-inner {
  position: relative;
  z-index: 1;
  padding: clamp(48px, 8vw, 88px) clamp(32px, 6vw, 72px);
  max-width: 680px;
}
.cta-inner .section-label { margin-bottom: 16px; }
.cta-inner h2 {
  font-size: clamp(2.8rem, 7vw, 6.5rem);
  color: var(--text);
  line-height: .95;
  margin-bottom: 24px;
}
.cta-desc {
  font-family: var(--font-lore);
  font-size: 1.15rem;
  color: var(--text-2);
  line-height: 1.75;
  max-width: 520px;
  margin-bottom: 36px;
}
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ─── Footer ───────────────────────────────────────────── */
.site-footer {
  margin-top: clamp(60px, 10vw, 100px);
  padding-bottom: 32px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 32px 0;
  border-top: 1px solid var(--border);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-kraken {
  width: 28px;
  height: auto;
  color: var(--gold);
  opacity: .6;
}
.footer-brand-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: .88rem;
  font-weight: 700;
  color: var(--text-2);
  letter-spacing: .06em;
}
.footer-brand-text span {
  display: block;
  font-size: .72rem;
  color: var(--text-4);
  margin-top: 2px;
}

.footer-nav {
  display: flex;
  gap: 24px;
}
.footer-nav a {
  font-size: .82rem;
  color: var(--text-3);
  font-weight: 600;
  letter-spacing: .04em;
  transition: color .18s;
}
.footer-nav a:hover { color: var(--gold-soft); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: .76rem;
  color: var(--text-4);
}
.footer-motto { font-family: var(--font-lore); font-style: italic; color: var(--text-3); }

/* ─── Dashboard page ───────────────────────────────────── */
.auth-layout {
  min-height: calc(100vh - 100px);
  display: grid;
  place-items: center;
  padding: 60px 0;
}
.auth-card {
  width: min(680px, 100%);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  background: var(--card);
  backdrop-filter: blur(20px);
  padding: clamp(28px, 5vw, 52px);
  box-shadow: 0 32px 80px rgba(0,0,0,.5);
}
.auth-card h1 {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  color: var(--gold);
  line-height: .95;
  margin-bottom: 16px;
}
.auth-card p {
  font-family: var(--font-lore);
  font-size: 1.08rem;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 28px;
}
.auth-card .btn-primary {
  width: 100%;
  justify-content: center;
  height: 56px;
  font-size: .96rem;
}
.auth-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
}
.auth-details article {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: rgba(255,255,255,.025);
}
.auth-details strong {
  display: block;
  color: var(--text);
  font-family: var(--font-ui);
  font-size: .88rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.auth-details span {
  font-size: .84rem;
  color: var(--text-3);
}
code {
  padding: 2px 6px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: rgba(255,255,255,.04);
  color: var(--gold-soft);
  font-size: .88em;
}

/* ─── Keyframes ────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes loadFill {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
@keyframes eqBar {
  0%, 100% { transform: scaleY(1); }
  50%       { transform: scaleY(.25); }
}
@keyframes vinylSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes panelIn {
  from { opacity: 0; transform: translateY(10px) scale(.97); }
  to   { opacity: 1; transform: none; }
}
@keyframes krakenFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}
@keyframes glowPulse {
  0%, 100% { opacity: .6; transform: translate(-50%, -50%) scale(1); }
  50%       { opacity: 1;  transform: translate(-50%, -50%) scale(1.15); }
}
@keyframes scrollPulse {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 0; }
  40%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  60%  { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* ─── Responsive ───────────────────────────────────────── */
@media (max-width: 1024px) {
  .rank-grid { grid-template-columns: repeat(4, 1fr); }
  .outils-layout { grid-template-columns: 1fr; }
  .outils-intro { max-width: 600px; }
}

@media (max-width: 860px) {
  .lore-grid { grid-template-columns: 1fr; }
  .lore-sigil-col { display: flex; justify-content: center; }
  .lore-kraken { width: 120px; }
}

@media (max-width: 900px) {
  .rank-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .page-shell { width: calc(100% - 28px); }
  .site-header {
    grid-template-columns: auto auto;
    top: 10px;
    margin-top: 0;
  }
  .site-nav {
    display: none;
    grid-column: 1 / -1;
    justify-self: stretch;
    flex-wrap: wrap;
    justify-content: center;
    border-top: 1px solid var(--border);
    padding-top: 10px;
    margin-top: 4px;
  }
  .site-header.nav-open .site-nav { display: flex; }
  .btn-header { grid-column: 1 / -1; text-align: center; justify-content: center; }
  .menu-toggle {
    display: grid;
    gap: 5px;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(255,255,255,.03);
    justify-self: end;
  }
  .menu-toggle span {
    display: block;
    width: 16px;
    height: 1.5px;
    background: var(--gold-soft);
    transition: .2s;
  }
  .rank-grid { grid-template-columns: 1fr; }
  .outil-item { grid-template-columns: 32px 40px 1fr; }
  .outil-arrow, .outil-badge-soon { display: none; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-nav { flex-wrap: wrap; justify-content: center; gap: 16px; }
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; gap: 6px; }
  .auth-details { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .hero-actions { flex-direction: column; }
  .btn-primary, .btn-ghost { width: 100%; justify-content: center; }
  .cta-actions { flex-direction: column; }
  .music-player { bottom: 16px; right: 16px; }
  .music-panel { width: 240px; }
}
