/* ══════════════════════════════════════════════════════
   AETHELBOUND — Feuille de style
   Fantasy Bleue · Acier & Ardoise · Serif Élégant
   ══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400&family=Josefin+Sans:wght@300;400;600&display=swap');

/* ─── Variables ──────────────────────────────────────── */
:root {
  /* Bleus acier / ardoise */
  --bg:         #0e1117;
  --bg-2:       #131720;
  --bg-3:       #192030;
  --bg-4:       #1f2840;

/* Accent or/ambre - PLUS VISIBLE */
--gold: #e5b84c;
--gold-light: #f5d78a;
--gold-dim: #c9a84c;
--gold-bright: #ffeebb;
--gold-glow: rgba(229, 184, 76, 0.4);

  /* Bleu accent */
  --blue:       #4a8ab8;
  --blue-light: #7ab4d8;
  --blue-dim:   #2a5070;

  /* Textes */
  --text:       #b8c8d8;
  --text-muted: #6a7a8a;
  --text-bright:#dce8f0;
  --white:      #eef4f8;

  /* Bordures */
  --border:     rgba(74,138,184,0.15);
  --border-gold:rgba(201,168,76,0.25);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Josefin Sans', sans-serif;

  --nav-h:    72px;
  --max-w:    1200px;
  --radius:   4px;
  --radius-lg:12px;
  --ease:     cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
}

/* ─── Reset ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* Texture subtile avec OR plus visible */
body::before {
content: '';
position: fixed;
inset: 0;
background-image:
radial-gradient(ellipse 140% 60% at 50% -10%, rgba(229, 184, 76, 0.12) 0%, transparent 65%),
radial-gradient(ellipse 60% 40% at 90% 80%, rgba(229, 184, 76, 0.08) 0%, transparent 60%),
radial-gradient(ellipse 80% 50% at 10% 50%, rgba(229, 184, 76, 0.05) 0%, transparent 50%);
pointer-events: none;
z-index: 0;
}

/* ─── Navigation ─────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  transition: background 0.4s var(--ease), border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: rgba(14,17,23,0.95);
  border-color: var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}
.logo-icon { width: 28px; height: 28px; flex-shrink: 0; }
.logo-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--white);
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin-left: auto;
}
.nav-links a {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--text-bright); background: rgba(74,138,184,0.08); }
.nav-links a.active { color: var(--gold); }

/* Lang selector */
.lang-selector { position: relative; margin-left: 0.75rem; }
.lang-toggle {
  display: flex; align-items: center; gap: 0.3rem;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em;
  color: var(--text-muted);
  padding: 0.38rem 0.65rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: color 0.2s, border-color 0.2s;
}
.lang-toggle:hover { color: var(--blue-light); border-color: rgba(74,138,184,0.4); }
.lang-arrow { font-size: 0.55rem; transition: transform 0.2s; }
.lang-selector.open .lang-arrow { transform: rotate(180deg); }
.lang-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0.4rem;
  min-width: 130px;
  display: none; flex-direction: column; gap: 0.1rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}
.lang-selector.open .lang-dropdown { display: flex; }
.lang-opt {
  font-size: 0.7rem; letter-spacing: 0.06em;
  color: var(--text-muted);
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius);
  text-align: left;
  transition: color 0.15s, background 0.15s;
}
.lang-opt:hover { color: var(--text-bright); background: rgba(74,138,184,0.1); }
.lang-opt.active { color: var(--gold); }

/* CTA nav */
.btn-nav {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--gold);
  padding: 0.48rem 1.1rem;
  border-radius: var(--radius);
  margin-left: 0.5rem;
  transition: background 0.2s, transform 0.15s;
  flex-shrink: 0;
}
.btn-nav:hover { background: var(--gold-light); transform: translateY(-1px); }

/* Mobile hamburger - Optimisé pour Edge */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  padding: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
  will-change: transform, opacity;
}
.nav-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ─── Ornements ──────────────────────────────────────── */
.ornament {
  display: flex; align-items: center; gap: 1rem;
  justify-content: center; margin-bottom: 1rem;
}
.ornament::before, .ornament::after {
  content: ''; flex: 1; max-width: 80px; height: 1px;
  background: linear-gradient(to var(--side, right), transparent, var(--border-gold));
}
.ornament::before { --side: right; }
.ornament::after  { --side: left; }
.ornament-glyph { color: var(--gold); font-size: 0.85rem; letter-spacing: 0.3em; }

/* ─── Tag / badge ────────────────────────────────────── */
.tag {
  display: inline-block;
  font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 0.75rem;
}

/* ─── Titres ─────────────────────────────────────────── */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400; line-height: 1.15;
  color: var(--white);
}
h1 { font-size: clamp(2.6rem, 6vw, 5rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }

/* ─── Boutons ────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  transition: all 0.25s var(--ease);
  position: relative; overflow: hidden;
}
.btn-primary { background: var(--gold); color: #0e1117; }
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,168,76,0.3);
}
.btn-outline {
  border: 1px solid rgba(74,138,184,0.4);
  color: var(--blue-light);
}
.btn-outline:hover {
  border-color: var(--blue);
  background: rgba(74,138,184,0.08);
  transform: translateY(-2px);
}

/* ─── HERO ───────────────────────────────────────────── */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 4rem) 2rem 6rem;
  position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 30%, rgba(74,138,184,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 50% 30% at 20% 70%, rgba(201,168,76,0.04) 0%, transparent 60%);
}
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(74,138,184,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74,138,184,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
}
.hero-content { position: relative; z-index: 1; max-width: 820px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.62rem; font-weight: 600; letter-spacing: 0.28em;
  color: var(--blue-light);
  border: 1px solid rgba(74,138,184,0.3);
  padding: 0.4rem 1.2rem;
  border-radius: 100px; margin-bottom: 2rem;
  animation: fadeUp 0.8s var(--ease-out) both;
}
.hero-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); display: block; }
.hero-title { margin-bottom: 1.5rem; animation: fadeUp 0.8s 0.15s var(--ease-out) both; }
.hero-title em { font-style: italic; color: var(--gold); display: block; }
.hero-desc {
  font-size: 1rem; font-weight: 300; color: var(--text);
  max-width: 520px; margin: 0 auto 2.5rem; line-height: 1.8;
  animation: fadeUp 0.8s 0.3s var(--ease-out) both;
}
.hero-ctas {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
  animation: fadeUp 0.8s 0.45s var(--ease-out) both;
}
.hero-particles { position: absolute; inset: 0; pointer-events: none; }
.particle {
  position: absolute; width: 2px; height: 2px;
  background: var(--blue-light); border-radius: 50%;
  opacity: 0; animation: drift linear infinite;
}
.hero-scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  font-size: 0.58rem; letter-spacing: 0.2em; color: var(--text-muted);
  animation: fadeUp 1s 1s var(--ease-out) both;
}
.scroll-line {
  width: 1px; height: 36px;
  background: linear-gradient(to bottom, var(--blue-dim), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

/* ─── Sections ───────────────────────────────────────── */
.section { padding: 5rem 2rem; max-width: var(--max-w); margin: 0 auto; }
.section-full { padding: 5rem 2rem; }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header p {
  font-size: 0.95rem; color: var(--text-muted);
  max-width: 560px; margin: 0.75rem auto 0; line-height: 1.8;
}
.divider {
  width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

/* ─── Cards grille ───────────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.card {
  background: var(--bg-2);
  padding: 2.2rem 1.8rem;
  transition: background 0.3s;
  display: flex; flex-direction: column; gap: 0.65rem;
}
.card:hover { background: var(--bg-3); }
.card-icon {
  width: 44px; height: 44px; margin-bottom: 0.3rem;
  flex-shrink: 0;
}
.card-icon svg { width: 100%; height: 100%; }
.card h3 { font-size: 1.15rem; }
.card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.7; flex: 1; }
.card-link {
  font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.1em; color: var(--blue-dim);
  text-transform: uppercase; transition: color 0.2s;
}
.card:hover .card-link { color: var(--blue-light); }

/* ─── Stats ──────────────────────────────────────────── */
.stats-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0; border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  margin: 4rem auto; max-width: 900px;
}
.stat {
  padding: 2.2rem 1.5rem; text-align: center;
  border-right: 1px solid var(--border);
  background: var(--bg-2);
}
.stat:last-child { border-right: none; }
.stat-value {
  font-family: var(--font-display);
  font-size: 2.8rem; font-weight: 300;
  color: var(--gold); line-height: 1;
  display: block; margin-bottom: 0.4rem;
}
.stat-label {
  font-size: 0.68rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-muted);
}

/* ─── Tech grid ──────────────────────────────────────── */
.tech-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--border);
}
.tech-item {
  background: var(--bg-2); padding: 1.75rem;
  display: flex; align-items: center; gap: 1rem;
  transition: background 0.2s;
}
.tech-item:hover { background: var(--bg-3); }
.tech-item-icon { width: 36px; height: 36px; flex-shrink: 0; }
.tech-item-icon svg { width: 100%; height: 100%; }
.tech-info { display: flex; flex-direction: column; gap: 0.2rem; }
.tech-name { font-family: var(--font-display); font-size: 1.1rem; color: var(--white); }
.tech-role { font-size: 0.72rem; letter-spacing: 0.06em; color: var(--text-muted); text-transform: uppercase; }

/* ─── Plateformes ────────────────────────────────────── */
.platforms { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; margin-top: 2.5rem; }
.platform {
  display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
  padding: 2rem 2.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg); min-width: 140px;
  background: var(--bg-2);
  transition: border-color 0.3s, transform 0.3s;
}
.platform:hover { border-color: rgba(74,138,184,0.35); transform: translateY(-3px); }
.platform-icon { width: 52px; height: 52px; }
.platform-icon svg { width: 100%; height: 100%; }
.platform-name {
  font-family: var(--font-display); font-size: 1.1rem; color: var(--white);
}
.platform-status {
  font-size: 0.62rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--gold-dim);
}

/* ─── Features ───────────────────────────────────────── */
.features-list { display: flex; flex-direction: column; gap: 5rem; }
.feature-item {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center;
}
.feature-item:nth-child(even) .feature-visual { order: -1; }
.feature-text h3 { margin-bottom: 0.75rem; }
.feature-text p { color: var(--text-muted); line-height: 1.8; margin-bottom: 1.25rem; }
.feature-points { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem; }
.feature-points li {
  font-size: 0.8rem; color: var(--text);
  display: flex; align-items: center; gap: 0.5rem;
}
.feature-points li::before {
  content: ''; width: 5px; height: 5px;
  border-radius: 50%; background: var(--blue); flex-shrink: 0;
}
.feature-visual {
  aspect-ratio: 4/3; background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.feature-visual img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.85; transition: opacity 0.3s, transform 0.5s;
}
.feature-item:hover .feature-visual img { opacity: 1; transform: scale(1.02); }

/* ─── Stats secondaires ──────────────────────────────── */
.mini-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1rem; margin-top: 1.5rem;
}
.mini-stat {
  background: var(--bg-3); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1rem; text-align: center;
}
.mini-stat-val {
  font-family: var(--font-display); font-size: 1.6rem; color: var(--gold); display: block;
}
.mini-stat-lbl { font-size: 0.65rem; color: var(--text-muted); letter-spacing: 0.1em; text-transform: uppercase; }

/* ─── Biomes ─────────────────────────────────────────── */
.biomes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.biome-card {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}
.biome-card:hover { border-color: rgba(74,138,184,0.35); transform: translateY(-4px); }
.biome-img { aspect-ratio: 16/9; overflow: hidden; }
.biome-img img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.75; transition: opacity 0.3s, transform 0.5s;
}
.biome-card:hover .biome-img img { opacity: 1; transform: scale(1.05); }
.biome-info { padding: 1.1rem 1.4rem; }
.biome-info h4 { font-family: var(--font-display); font-size: 1rem; color: var(--white); margin-bottom: 0.2rem; }
.biome-info p { font-size: 0.78rem; color: var(--text-muted); }

/* ─── Systems ────────────────────────────────────────── */
.systems-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.system-card {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2.2rem;
  transition: border-color 0.3s;
}
.system-card:hover { border-color: rgba(74,138,184,0.35); }
.system-icon { width: 40px; height: 40px; margin-bottom: 1.1rem; }
.system-icon svg { width: 100%; height: 100%; }
.system-card h3 { font-size: 1.2rem; margin-bottom: 0.65rem; }
.system-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.75; }

/* Systems 4-col -->3-col variant */
.systems-4 { grid-template-columns: repeat(2, 1fr); }

/* ─── About ──────────────────────────────────────────── */
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 4rem; align-items: start; }
.about-text h2 { font-size: 1.9rem; margin-bottom: 1.25rem; }
.about-text p { color: var(--text-muted); line-height: 1.9; margin-bottom: 1rem; }
.pillars-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 3.5rem; }
.values-grid  { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.pillar-card, .value-card {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.75rem;
  transition: border-color 0.3s;
}
.pillar-card:hover, .value-card:hover { border-color: rgba(74,138,184,0.35); }
.pillar-icon, .value-icon { width: 32px; height: 32px; margin-bottom: 0.9rem; }
.pillar-icon svg, .value-icon svg { width: 100%; height: 100%; }
.pillar-card h4, .value-card h4 {
  font-family: var(--font-display); font-size: 1.05rem; color: var(--white); margin-bottom: 0.4rem;
}
.pillar-card p, .value-card p { font-size: 0.82rem; color: var(--text-muted); line-height: 1.7; }
.team-grid { display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: center; }
.team-card {
  text-align: center; padding: 2.5rem 3rem;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.team-avatar { width: 64px; height: 64px; margin: 0 auto 1rem; }
.team-avatar svg { width: 100%; height: 100%; }
.team-name { font-family: var(--font-display); font-size: 1.3rem; color: var(--white); margin-bottom: 0.3rem; }
.team-role { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue-dim); }
.team-desc { font-size: 0.82rem; color: var(--text-muted); margin-top: 0.6rem; max-width: 300px; line-height: 1.6; }

/* ─── Roadmap ────────────────────────────────────────── */
.phases-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.85rem; }
.phase-card {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.35rem;
  position: relative; transition: border-color 0.3s, transform 0.3s;
}
.phase-card:hover { border-color: rgba(74,138,184,0.3); transform: translateY(-2px); }
.phase-card.is-active { border-color: rgba(201,168,76,0.4); background: var(--bg-3); }
.phase-card.is-done  { border-color: rgba(74,138,184,0.2); opacity: 0.75; }
.phase-num {
  font-family: var(--font-display); font-size: 1.8rem;
  font-weight: 300; color: var(--text-muted); line-height: 1; margin-bottom: 0.6rem;
}
.phase-card.is-active .phase-num { color: var(--gold); }
.phase-card.is-done   .phase-num { color: var(--blue-dim); }
.phase-title { font-family: var(--font-display); font-size: 0.92rem; color: var(--white); margin-bottom: 0.4rem; }
.phase-desc  { font-size: 0.75rem; color: var(--text-muted); line-height: 1.6; }
.phase-status {
  margin-top: 0.85rem; font-size: 0.6rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  padding: 0.22rem 0.55rem; border-radius: 100px; display: inline-block;
}
.is-done    .phase-status { color: var(--blue-light);  background: rgba(74,138,184,0.12); }
.is-active  .phase-status { color: var(--gold);        background: rgba(201,168,76,0.15); }
.is-planned .phase-status { color: var(--text-muted);  background: rgba(255,255,255,0.04); }

/* ─── Page hero ──────────────────────────────────────── */
.page-hero {
  padding: calc(var(--nav-h) + 4.5rem) 2rem 3.5rem;
  text-align: center; max-width: 800px; margin: 0 auto;
}
.page-hero p { font-size: 1rem; color: var(--text-muted); line-height: 1.8; max-width: 560px; margin: 0.75rem auto 0; }

/* ─── Code block ─────────────────────────────────────── */
.code-block {
  background: var(--bg-3); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.5rem;
  font-family: 'Courier New', monospace; font-size: 0.78rem;
  color: var(--text); line-height: 1.8; overflow-x: auto;
}
.code-block .kw { color: var(--blue-light); }
.code-block .type { color: var(--gold); }
.code-block .cmt { color: var(--text-muted); font-style: italic; }

/* ─── Footer ─────────────────────────────────────────── */
.footer { border-top: 1px solid var(--border); padding: 4rem 2rem 2rem; margin-top: 4rem; }
.footer-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 3rem; margin-bottom: 3rem;
}
.footer-brand p { font-size: 0.82rem; color: var(--text-muted); margin-top: 0.75rem; line-height: 1.7; max-width: 240px; }
.footer-logo {
  font-family: var(--font-display); font-size: 1.05rem; color: var(--gold);
  letter-spacing: 0.1em; display: flex; align-items: center; gap: 0.5rem;
}
.footer-col h4 {
  font-family: var(--font-body); font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--blue-dim); margin-bottom: 1rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-col a { font-size: 0.82rem; color: var(--text-muted); transition: color 0.2s; }
.footer-col a:hover { color: var(--text-bright); }
.footer-bottom {
  max-width: var(--max-w); margin: 0 auto; padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.75rem; color: var(--text-muted);
}
.footer-social { display: flex; gap: 1.25rem; }
.footer-social a { color: var(--text-muted); font-size: 1rem; transition: color 0.2s; }
.footer-social a:hover { color: var(--gold); }

/* ─── Scroll top ─────────────────────────────────────── */
.scroll-top {
  position: fixed; bottom: 2rem; right: 2rem;
  width: 40px; height: 40px;
  background: var(--bg-3); border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue-light); font-size: 1rem;
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none; z-index: 500;
}
.scroll-top.visible { opacity: 1; transform: none; pointer-events: all; }
.scroll-top:hover { border-color: var(--blue); }

/* ─── Reveal / animations ────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: none; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes drift {
  0%   { opacity: 0; transform: translateY(0) scale(1); }
  20%  { opacity: 0.5; }
  80%  { opacity: 0.2; }
  100% { opacity: 0; transform: translateY(-80vh) scale(0.5); }
}
@keyframes scrollLine {
  0%, 100% { opacity: 0.3; }
  50%       { opacity: 0.8; }
}

/* ─── Legal ──────────────────────────────────────────── */
.legal-content { max-width: 760px; margin: 0 auto; padding: calc(var(--nav-h) + 4rem) 2rem 6rem; }
.legal-content h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 0.5rem; }
.legal-content h2 { font-size: 1.4rem; color: var(--blue-light); margin: 2.5rem 0 0.8rem; }
.legal-content p, .legal-content li { font-size: 0.9rem; color: var(--text-muted); line-height: 1.85; }
.legal-content ul { list-style: disc; padding-left: 1.5rem; display: flex; flex-direction: column; gap: 0.4rem; }
.legal-date { font-size: 0.75rem; color: var(--blue-dim); letter-spacing: 0.1em; margin-bottom: 2.5rem; }

/* ─── Responsive ─────────────────────────────────────── */
@media (max-width: 1024px) {
  .cards-grid   { grid-template-columns: repeat(2, 1fr); }
  .phases-grid  { grid-template-columns: repeat(3, 1fr); }
  .about-grid   { grid-template-columns: 1fr; gap: 2.5rem; }
  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .feature-item { grid-template-columns: 1fr; gap: 2.5rem; }
  .feature-item:nth-child(even) .feature-visual { order: 0; }
}
@media (max-width: 768px) {
  :root { --nav-h: 60px; }
  .nav-links, .lang-selector, .btn-nav { display: none; }
  .nav-hamburger { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: fixed; inset: var(--nav-h) 0 0;
    background: rgba(14,17,23,0.98);
    align-items: center; justify-content: center;
    gap: 1.5rem; backdrop-filter: blur(20px);
  }
  .nav-links.open a { font-size: 1.1rem; letter-spacing: 0.1em; }
  .nav-links.open .lang-selector { display: block; }
  .cards-grid   { grid-template-columns: 1fr; }
  .tech-grid    { grid-template-columns: repeat(2, 1fr); }
  .biomes-grid  { grid-template-columns: repeat(2, 1fr); }
  .systems-grid { grid-template-columns: 1fr; }
  .phases-grid  { grid-template-columns: repeat(2, 1fr); }
  .pillars-grid { grid-template-columns: 1fr; }
  .values-grid  { grid-template-columns: 1fr; }
  .stats-row    { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; gap: 1.75rem; }
  .footer-bottom{ flex-direction: column; gap: 1rem; text-align: center; }
  .feature-points { grid-template-columns: 1fr; }
  .mini-stats   { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .biomes-grid  { grid-template-columns: 1fr; }
  .phases-grid  { grid-template-columns: 1fr; }
  .hero-ctas    { flex-direction: column; align-items: center; }
  .stats-row    { grid-template-columns: 1fr 1fr; }
}

/* ─── 404 ────────────────────────────────────────────── */
.not-found {
  min-height: 100svh; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 2rem; position: relative;
}
.not-found-code {
  font-family: var(--font-display); font-size: clamp(6rem, 18vw, 14rem);
  font-weight: 300; color: var(--blue); opacity: 0.08;
  line-height: 1; position: absolute; user-select: none;
}
.not-found-content { position: relative; z-index: 1; }
.not-found-glyph { font-size: 2.5rem; color: var(--blue-light); margin-bottom: 1.5rem; opacity: 0.7; }
.not-found-content h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 1rem; }
.not-found-content p  { color: var(--text-muted); margin-bottom: 2.5rem; max-width: 400px; line-height: 1.8; }
