/* ── Google Fonts ────────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap');

/* ── Variables & Reset ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #030a0f;
  --bg-card:     #06111a;
  --bg-card-h:   #0b1a26;
  --accent:      #4599C8;
  --accent-l:    #6ab8d8;
  --accent-2:    #00DFA8;
  --accent-2-l:  #33e8b8;
  --accent-glow: rgba(69, 153, 200, 0.15);
  --accent-2-glow: rgba(0, 223, 168, 0.12);
  --text:        #c8dce8;
  --text-muted:  #48627a;
  --border:      rgba(69, 153, 200, 0.09);
  --border-2:    rgba(255, 255, 255, 0.05);
  --success:     #22c55e;
  --danger:      #ef4444;
  --warning:     #f59e0b;
  --nav-h:       60px;
  --radius:      8px;
  --font-head:   'Rajdhani', system-ui, sans-serif;
  --font-body:   'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.65;
}

h1, h2, h3 { font-family: var(--font-head); letter-spacing: .02em; }
a { color: var(--accent-l); text-decoration: none; }
a:hover { color: var(--accent-l); text-decoration: underline; }
img { max-width: 100%; }

/* ── Navigation ─────────────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(5,8,14,0.9);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  padding: 0 2rem;
  z-index: 100;
  gap: 2rem;
}

.nav-brand {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-right: auto;
}
.nav-brand span { color: var(--accent); }

.nav-links { display: flex; gap: .2rem; }

.nav-links a {
  color: var(--text-muted);
  padding: .4rem .9rem;
  border-radius: 5px;
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: color .15s, background .15s;
  text-decoration: none;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  background: rgba(69,153,200,.06);
}

/* ── Music button ─────────────────────────────────────────────────────────────── */
.music-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 36px; height: 36px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  display: none;
  align-items: center; justify-content: center;
  transition: all .15s;
  flex-shrink: 0;
}
.music-btn:hover   { border-color: var(--accent); color: var(--accent); }
.music-btn.visible { display: flex; }
.music-btn.playing { color: var(--accent); border-color: var(--accent); background: rgba(69,153,200,.06); }

/* ── Buttons ─────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .65rem 1.5rem;
  border-radius: 5px;
  font-family: var(--font-head);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: all .15s;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #020a0a;
  box-shadow: 0 0 28px var(--accent-glow);
}
.btn-primary:hover { background: var(--accent-l); color: #020a0a; text-decoration: none; box-shadow: 0 0 40px var(--accent-glow); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255,255,255,.12);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

.btn-danger  { background: var(--danger); color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-sm { padding: .35rem .9rem; font-size: .78rem; }

/* ── Page layout ─────────────────────────────────────────────────────────────── */
.page { padding-top: var(--nav-h); }
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.section    { padding: 6rem 0; }
.section-sm { padding: 3.5rem 0; }

.section-title {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.section-title span { color: var(--accent); }

/* ── Separateur section ──────────────────────────────────────────────────────── */
.section-sep {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 3rem;
}
.section-sep-label {
  font-family: var(--font-head);
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}
.section-sep-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--border), transparent);
}

/* ── Hero ───────────────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

/* Grille animée Techna */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(69,153,200,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(69,153,200,.04) 1px, transparent 1px);
  background-size: 55px 55px;
  animation: gridDrift 12s linear infinite;
  z-index: 0;
}

/* Lueur centrale */
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 40%, rgba(69,153,200,.08), transparent 65%),
    radial-gradient(ellipse 40% 30% at 50% 60%, rgba(0,223,168,.04), transparent 60%);
  z-index: 0;
  pointer-events: none;
}

@keyframes gridDrift {
  from { background-position: 0 0; }
  to   { background-position: 55px 55px; }
}

.hero-cover {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 2s ease;
  z-index: 0;
}
.hero-cover.loaded { opacity: 0.18; }

.hero-cover-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(5,8,14,.4) 0%, rgba(5,8,14,.88) 100%);
  z-index: 0;
}

/* Décorations coin */
.hero-corner {
  position: absolute;
  width: 60px; height: 60px;
  z-index: 1;
  opacity: .35;
}
.hero-corner::before,
.hero-corner::after {
  content: '';
  position: absolute;
  background: var(--accent);
}
.hero-corner::before { width: 100%; height: 1px; top: 0; left: 0; }
.hero-corner::after  { width: 1px; height: 100%; top: 0; left: 0; }
.hero-corner.tl { top: 2rem; left: 2rem; }
.hero-corner.tr { top: 2rem; right: 2rem; transform: scaleX(-1); }
.hero-corner.bl { bottom: 2rem; left: 2rem; transform: scaleY(-1); }
.hero-corner.br { bottom: 2rem; right: 2rem; transform: scale(-1); }

.hero > div:not(.hero-cover):not(.hero-cover-overlay):not(.hero-corner) {
  position: relative; z-index: 1;
}

/* Contenu hero */
.hero-eyebrow {
  font-family: var(--font-head);
  font-size: .7rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  display: flex; align-items: center; justify-content: center; gap: .75rem;
}
.hero-eyebrow::before,
.hero-eyebrow::after {
  content: '';
  width: 30px; height: 1px;
  background: var(--accent);
  opacity: .5;
}

.hero-logo {
  max-width: clamp(200px, 45vw, 520px);
  height: auto;
  display: block;
  margin: 0 auto 2.5rem;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 40px rgba(69,153,200,.3));
}

@keyframes glitch {
  0%, 91%, 100% { text-shadow: none; }
  92% { text-shadow: 3px 0 var(--accent-2), -3px 0 var(--accent); }
  94% { text-shadow: -2px 0 var(--accent-2), 2px 0 var(--accent); }
  96% { text-shadow: 1px 0 var(--accent); }
}

.hero-sub {
  font-family: var(--font-head);
  font-size: .8rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.hero-tagline {
  font-size: clamp(.95rem, 2vw, 1.1rem);
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}

.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 3.5rem; }

/* Stats hero */
.hero-stats {
  display: flex; gap: 0; justify-content: center;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  max-width: 480px;
  margin: 0 auto;
}
.hero-stat {
  flex: 1;
  padding: .75rem .5rem;
  text-align: center;
  border-right: 1px solid var(--border);
}
.hero-stat:last-child { border-right: none; }
.hero-stat .num {
  display: block;
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.hero-stat .lbl {
  display: block;
  font-size: .65rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: .2rem;
}

/* ── Section Lore ────────────────────────────────────────────────────────────── */
.lore-section {
  padding: 6rem 0;
  position: relative;
}

.lore-section::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--accent), transparent);
  opacity: .3;
}

.lore-label {
  font-family: var(--font-head);
  font-size: .65rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: .75rem;
  display: flex; align-items: center; gap: .6rem;
}
.lore-label::before {
  content: '';
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--accent-2);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-2);
}

.lore-title {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 3rem;
  max-width: 700px;
}

.lore-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(69,153,200,.06);
  border: 1px solid rgba(69,153,200,.12);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.lore-entry {
  background: var(--bg-card);
  padding: 1.75rem 2rem;
  transition: background .2s, box-shadow .2s;
  position: relative;
  overflow: hidden;
}
.lore-entry::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(69,153,200,.012) 3px, rgba(69,153,200,.012) 4px);
  pointer-events: none;
}
.lore-entry::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 2px; height: 0;
  background: var(--accent);
  transition: height .3s ease;
}
.lore-entry:hover { background: var(--bg-card-h); box-shadow: inset 0 0 30px rgba(69,153,200,.04); }
.lore-entry:hover::after { height: 100%; }

.lore-year {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-2);
  letter-spacing: .04em;
  line-height: 1;
}
.lore-event {
  font-family: var(--font-head);
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: .4rem 0 .6rem;
}
.lore-desc {
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── Features ─────────────────────────────────────────────────────────────────── */
.features-section { padding: 6rem 0; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(69,153,200,.06);
  border: 1px solid rgba(69,153,200,.12);
  border-radius: 8px;
  overflow: hidden;
}

.feature-card {
  background: var(--bg-card);
  padding: 2rem;
  transition: background .2s, box-shadow .2s;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(69,153,200,.014) 3px, rgba(69,153,200,.014) 4px);
  pointer-events: none;
}
.feature-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 2px; height: 0;
  background: var(--accent);
  transition: height .3s ease;
}
.feature-card:hover { background: var(--bg-card-h); box-shadow: inset 0 0 30px rgba(69,153,200,.04); }
.feature-card:hover::after { height: 100%; }
.feature-card:hover .feature-icon { transform: scale(1.1); }

.feature-num {
  font-family: var(--font-head);
  font-size: .65rem;
  letter-spacing: .2em;
  color: var(--accent-2);
  text-transform: uppercase;
  margin-bottom: .75rem;
}

.feature-icon {
  font-size: 1.8rem;
  width: 40px;
  height: 40px;
  margin-bottom: .75rem;
  display: block;
  transition: transform .2s;
  line-height: 1;
}

.feature-name {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: .5rem;
}

.feature-desc {
  font-size: .82rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── Cards ───────────────────────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid rgba(69,153,200,.1);
  border-left: 2px solid rgba(69,153,200,.25);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color .2s, background .2s, box-shadow .2s;
  position: relative;
  overflow: hidden;
}
.card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(69,153,200,.018) 3px, rgba(69,153,200,.018) 4px);
  pointer-events: none;
}
.card:hover {
  border-color: rgba(69,153,200,.3);
  border-left-color: var(--accent);
  background: var(--bg-card-h);
  box-shadow: 0 0 24px rgba(69,153,200,.06), inset 0 0 24px rgba(69,153,200,.02);
}

.card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: .75rem; }
.card-title  { font-family: var(--font-head); font-size: 1.1rem; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.card-meta   { font-size: .75rem; color: var(--text-muted); margin-bottom: .75rem; letter-spacing: .04em; }
.card-body   { font-size: .88rem; color: var(--text-muted); }

/* ── Badge / Tag ─────────────────────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: .2rem .65rem;
  border-radius: 3px;
  font-size: .65rem;
  font-weight: 600;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.badge-purple { background: rgba(69,153,200,.12); color: var(--accent-l); border: 1px solid rgba(69,153,200,.2); }
.badge-green  { background: rgba(34,197,94,.1);  color: #4ade80; border: 1px solid rgba(34,197,94,.2); }
.badge-yellow { background: rgba(0,223,168,.1); color: var(--accent-2-l); border: 1px solid rgba(0,223,168,.2); }
.badge-blue   { background: rgba(59,130,246,.1); color: #93c5fd; border: 1px solid rgba(59,130,246,.2); }
.badge-red    { background: rgba(239,68,68,.1);  color: #fca5a5; border: 1px solid rgba(239,68,68,.2); }
.badge-pinned { background: rgba(0,223,168,.1); color: var(--accent-2-l); border: 1px solid rgba(0,223,168,.2); }

/* ── Grid ─────────────────────────────────────────────────────────────────────── */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 1.25rem; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px,1fr)); gap: 1.25rem; }

/* ── Digitalisation panel ────────────────────────────────────────────────────── */
.digi-panel {
  border: 1px solid rgba(69,153,200,.2);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 2rem 2.5rem;
  background: linear-gradient(135deg, rgba(69,153,200,.05) 0%, rgba(3,10,15,.0) 60%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}
.digi-panel::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(69,153,200,.012) 3px, rgba(69,153,200,.012) 4px);
  pointer-events: none;
}
.digi-panel::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, var(--accent), transparent 60%);
}
.digi-icon {
  font-size: 2.8rem;
  line-height: 1;
  flex-shrink: 0;
}
.digi-label {
  font-family: var(--font-head);
  font-size: .65rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .4rem;
}
.digi-title {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: .6rem;
}
.digi-desc {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 680px;
}

/* ── Download card ───────────────────────────────────────────────────────────── */
.dl-card { border-radius: var(--radius); overflow: hidden; }

.dl-card-header {
  background: linear-gradient(135deg, rgba(69,153,200,.08), rgba(69,153,200,.02));
  border: 1px solid var(--border);
  border-bottom: none;
  padding: 1.5rem;
  border-radius: var(--radius) var(--radius) 0 0;
}
.dl-card-body {
  background: var(--bg-card);
  border: 1px solid var(--border-2);
  border-top: none;
  padding: 1.25rem;
  border-radius: 0 0 var(--radius) var(--radius);
}

.dl-version   { font-family: var(--font-head); font-size: 1.4rem; font-weight: 700; letter-spacing: .06em; color: var(--accent); }
.dl-name      { color: var(--text-muted); font-size: .85rem; margin-top: .2rem; }
.dl-changelog { font-size: .82rem; color: var(--text-muted); white-space: pre-wrap; margin: .75rem 0; }

.platforms { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }

.platform-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(69,153,200,.06);
  border: 1px solid var(--border);
  color: var(--accent-l);
  padding: .45rem 1rem;
  border-radius: 4px;
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .15s;
  text-decoration: none;
}
.platform-btn:hover {
  background: rgba(69,153,200,.12);
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

/* ── News card ────────────────────────────────────────────────────────────────── */
.news-card .news-title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
  margin-bottom: .4rem;
}
.news-card .news-body {
  font-size: .85rem;
  color: var(--text-muted);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.news-card.pinned { border-color: rgba(0,223,168,.2); }

/* ── Page header (sous-pages) ─────────────────────────────────────────────────── */
.page-header {
  padding: 4rem 0 3rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(69,153,200,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(69,153,200,.03) 1px, transparent 1px);
  background-size: 40px 40px;
}
.page-header h1 {
  font-family: var(--font-head);
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  position: relative;
}
.page-header p { color: var(--text-muted); margin-top: .4rem; font-size: .88rem; letter-spacing: .06em; position: relative; }

/* ── Featured banner ─────────────────────────────────────────────────────────── */
.featured-banner {
  background: linear-gradient(135deg, rgba(69,153,200,.07), rgba(69,153,200,.02));
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
}
.featured-banner::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--accent), transparent);
}
.featured-label {
  font-family: var(--font-head);
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: .5rem;
}
.featured-title {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.featured-desc { color: var(--text-muted); font-size: .85rem; margin-top: .3rem; }

/* ── Empty state ─────────────────────────────────────────────────────────────── */
.empty {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
}
.empty-icon { font-size: 2.5rem; margin-bottom: 1rem; opacity: .4; }

/* ── Loading ─────────────────────────────────────────────────────────────────── */
.loader {
  display: flex; align-items: center; justify-content: center;
  padding: 4rem;
}
.spinner {
  width: 28px; height: 28px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Footer ──────────────────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: .78rem;
  margin-top: 4rem;
  letter-spacing: .04em;
}
footer a { color: var(--text-muted); }
footer a:hover { color: var(--accent); text-decoration: none; }

.social-links { display: flex; gap: .75rem; justify-content: center; margin-bottom: 1.25rem; flex-wrap: wrap; }
.social-link {
  background: transparent;
  border: 1px solid var(--border-2);
  color: var(--text-muted);
  padding: .4rem .9rem;
  border-radius: 4px;
  font-family: var(--font-head);
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: all .15s;
  text-decoration: none;
}
.social-link:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

/* ── Responsive ──────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .features-grid { grid-template-columns: 1fr; }
  .lore-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-links a { padding: .4rem .5rem; font-size: .75rem; }
  .hero-title  { font-size: 3.5rem; }
  .grid-2      { grid-template-columns: 1fr; }
  .featured-banner { flex-direction: column; }
  .hero-corner { display: none; }
  .techna-crystal-wrap { display: none; }
}

/* ── Techna Crystal animations ───────────────────────────────────────────────── */
@keyframes techna-spin   { to { transform: rotate(360deg);  } }
@keyframes techna-spin-r { to { transform: rotate(-360deg); } }
@keyframes techna-pulse  {
  0%, 100% { opacity: .9; transform: scale(1);    }
  50%       { opacity: 1;  transform: scale(1.12); }
}
