/* ==========================================================================
   CUBIRIUM WEBSITE · DESIGN SYSTEM & STYLES
   Thème sombre haute précision · Sans framework · Sans artifice IA
   ========================================================================== */

:root {
  --bg-main: #090a0f;
  --bg-surface: #11131c;
  --bg-surface-elevated: #161926;
  --bg-surface-hover: #1c2030;

  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.14);
  --border-highlight: rgba(99, 102, 241, 0.4);

  --text-hi: #f8fafc;
  --text-mid: #94a3b8;
  --text-lo: #64748b;

  --accent-primary: #6366f1;
  --accent-hover: #4f46e5;
  --accent-secondary: #8b5cf6;
  --accent-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);

  --success: #10b981;
  --success-bg: rgba(16, 185, 129, 0.12);
  --warning: #f59e0b;
  --danger: #ef4444;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 22px;
  --radius-pill: 9999px;

  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px -10px rgba(99, 102, 241, 0.25);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

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

html {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-hi);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Scrollbar ultra fine */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-pill);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.35);
}

a {
  color: inherit;
  text-decoration: none;
}

code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  color: #c7d2fe;
}

/* --------------------------------------------------------------------------
   Lueurs d'ambiance
   -------------------------------------------------------------------------- */
.ambient-glow {
  position: absolute;
  pointer-events: none;
  filter: blur(140px);
  opacity: 0.22;
  z-index: -1;
  border-radius: 50%;
}

.ambient-glow--primary {
  width: 600px;
  height: 600px;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, #6366f1 0%, rgba(99, 102, 241, 0) 70%);
}

.ambient-glow--secondary {
  width: 500px;
  height: 500px;
  top: 900px;
  right: -100px;
  background: radial-gradient(circle, #8b5cf6 0%, rgba(139, 92, 246, 0) 70%);
}

/* --------------------------------------------------------------------------
   Layout & Container
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: 820px;
}

/* --------------------------------------------------------------------------
   Navbar
   -------------------------------------------------------------------------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(9, 10, 15, 0.85);
  border-bottom: 1px solid var(--border-subtle);
  transition: border-color 0.2s ease;
}

.navbar__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.navbar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
}

.navbar__logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
}

.navbar__name {
  letter-spacing: -0.02em;
}

.navbar__version-tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #a5b4fc;
  border-radius: var(--radius-pill);
}

.navbar__nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.navbar__link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-mid);
  transition: color 0.15s ease;
}

.navbar__link:hover {
  color: var(--text-hi);
}

.navbar__link--github {
  display: flex;
  align-items: center;
  gap: 6px;
}

.navbar__actions {
  display: flex;
  align-items: center;
}

/* --------------------------------------------------------------------------
   Boutons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
}

.btn--primary {
  background: var(--accent-gradient);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.btn--secondary {
  background: var(--bg-surface-elevated);
  color: var(--text-hi);
  border: 1px solid var(--border-subtle);
}

.btn--secondary:hover {
  background: var(--bg-surface-hover);
  border-color: var(--border-strong);
}

.btn--compact {
  padding: 7px 16px;
  font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   Hero Section (Sobre, sans pill AI)
   -------------------------------------------------------------------------- */
.hero {
  padding: 88px 0 96px;
  text-align: center;
}

.hero__container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.035em;
  max-width: 880px;
  margin-bottom: 24px;
}

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

.hero__description {
  font-size: 1.22rem;
  color: var(--text-mid);
  max-width: 680px;
  margin-bottom: 44px;
  font-weight: 400;
  line-height: 1.65;
}

/* Téléchargement Hero */
.hero__download-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-bottom: 64px;
  width: 100%;
}

.hero__download-buttons {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
}

.download-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 26px;
  border-radius: var(--radius-lg);
  text-align: left;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  min-width: 290px;
}

.download-btn--primary {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.45);
}

.download-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -6px rgba(99, 102, 241, 0.6);
  border-color: rgba(255, 255, 255, 0.35);
}

.download-btn--secondary {
  background: var(--bg-surface-elevated);
  color: var(--text-hi);
  border: 1px solid var(--border-subtle);
}

.download-btn--secondary:hover {
  background: var(--bg-surface-hover);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.download-btn__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.download-btn--secondary .download-btn__icon {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-mid);
}

.download-btn__content {
  display: flex;
  flex-direction: column;
}

.download-btn__action {
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}

.download-btn__sub {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 400;
}

.download-btn--secondary .download-btn__sub {
  color: var(--text-lo);
}

.hero__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.88rem;
  color: var(--text-lo);
}

.meta-separator {
  opacity: 0.4;
}

/* ==========================================================================
   VRAIE INTERFACE DE L'APPLICATION CUBIRIUM (Preview Authentique)
   ========================================================================== */
.hero__preview {
  width: 100%;
  max-width: 1040px;
  margin-top: 16px;
}

.real-app-window {
  background: #07090e;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9), 0 0 50px -15px rgba(99, 102, 241, 0.25);
  text-align: left;
}

/* Barre de titre / En-tête de l'application */
.real-app-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: #101522;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  gap: 16px;
}

.real-app-traffic-lights {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot--red {
  background-color: #ff5f56;
}

.dot--yellow {
  background-color: #ffbd2e;
}

.dot--green {
  background-color: #27c93f;
}

.real-app-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.real-app-logo {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}

.real-app-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #f1f5f9;
}

.real-app-sub {
  font-size: 0.78rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.real-app-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.real-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  cursor: default;
}

.real-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #ffffff;
  background: var(--accent-gradient);
  border-radius: var(--radius-sm);
  cursor: default;
}

/* Disposition 2 colonnes réelle */
.real-app-layout {
  display: grid;
  grid-template-columns: 275px 1fr;
  background: #07090e;
  align-items: stretch;
}

/* Volet Gauche : Mondes Disponibles */
.real-worlds-panel {
  background: #101522;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.real-panel-header {
  height: 54px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.real-panel-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.real-panel-title-wrap h3 {
  font-size: 0.92rem;
  font-weight: 700;
  color: #f1f5f9;
}

.real-badge {
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  color: #94a3b8;
}

.real-btn-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  cursor: default;
}

.real-worlds-grid {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
}

/* Cartes de mondes authentiques */
.real-world-card {
  background: #151c2e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.2s ease;
  position: relative;
}

.real-world-card--running {
  border-color: #10b981;
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.2);
}

.real-world-card.is-pinned {
  border-color: rgba(99, 102, 241, 0.35);
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.05) 0%, #151c2e 100%);
}

.real-world-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.real-world-title-box {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.real-world-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.real-world-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #f1f5f9;
  letter-spacing: -0.01em;
}

.real-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #64748b;
  flex-shrink: 0;
}

.real-pulse-dot--running {
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: real-pulse 1.8s infinite;
}

@keyframes real-pulse {
  0% {
    transform: scale(0.9);
    opacity: 0.8;
  }

  50% {
    transform: scale(1.15);
    opacity: 1;
  }

  100% {
    transform: scale(0.9);
    opacity: 0.8;
  }
}

.real-type-badge {
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 1px 6px;
  border-radius: 4px;
}

.real-type-badge--modded {
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.real-type-badge--vanilla {
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.real-world-header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #64748b;
}

.real-pin-btn.active {
  color: #818cf8;
}

.real-world-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  font-size: 0.75rem;
  color: #64748b;
}

.real-meta-launcher {
  grid-column: span 2;
}

.real-meta-item strong {
  color: #94a3b8;
  font-weight: 600;
  margin-left: 4px;
}

.real-world-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.real-btn-stop {
  height: 28px;
  padding: 0 12px;
  background: rgba(239, 68, 68, 0.16);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: default;
}

.real-btn-launch {
  height: 28px;
  padding: 0 12px;
  background: #10b981;
  color: #ffffff;
  border: none;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: default;
}

.real-btn-action {
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: default;
}

/* Volet Droit : Console Panel Authentique */
.real-console-panel {
  display: flex;
  flex-direction: column;
  background: #07090e;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.real-console-header {
  height: 54px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #101522;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-shrink: 0;
  white-space: nowrap !important;
  overflow: hidden;
}

.real-console-title {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0 !important;
  white-space: nowrap !important;
  min-width: 0;
}

.real-active-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #f1f5f9;
  white-space: nowrap !important;
  overflow: hidden;
  text-overflow: ellipsis;
}

.real-console-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0 !important;
  white-space: nowrap !important;
}

/* Pillule de Tunnel Authentique avec bouton copier interactif */
.real-tunnel-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  background: #151c2e;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-pill);
  padding: 0 4px 0 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

.real-tunnel-pill:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: #1b243b;
}

.real-tunnel-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
  flex-shrink: 0 !important;
}

.real-tunnel-ip {
  font-family: var(--font-mono);
  font-size: 0.77rem;
  font-weight: 500;
  color: #f1f5f9;
  white-space: nowrap !important;
  user-select: all;
}

.real-btn-copy {
  height: 22px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-pill);
  color: #f1f5f9;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

.real-btn-copy:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.real-btn-copy.copied {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.5);
  color: #34d399;
}

.real-btn-restart-tunnel {
  color: #64748b;
  display: inline-flex;
  align-items: center;
  padding: 0 4px;
  flex-shrink: 0 !important;
}

.real-btn-danger {
  height: 30px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  background: rgba(239, 68, 68, 0.16);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.35);
  cursor: default;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

.real-btn-small {
  height: 30px;
  padding: 0 10px;
  font-size: 0.75rem;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-pill);
  cursor: default;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

/* Corps du Terminal (Pleine hauteur sans gap) */
.real-terminal-body {
  flex: 1 1 auto;
  min-height: 0;
  background: #07090e;
  padding: 18px 22px;
  font-family: var(--font-mono);
  font-size: 0.81rem;
  line-height: 1.65;
  color: #cbd5e1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.real-terminal-line {
  white-space: pre-wrap;
  word-break: break-all;
  margin-bottom: 2px;
}

.real-terminal-line.info {
  color: #cbd5e1;
}

.real-terminal-line.tunnel {
  color: #34d399;
  font-weight: 600;
}

.real-terminal-line.player {
  color: #93c5fd;
}

/* Barre de commande en bas collée au pied du terminal */
.real-console-footer {
  background: #07090e;
  padding: 0 18px 18px 18px;
  margin-top: auto;
  flex-shrink: 0;
  width: 100%;
  box-sizing: border-box;
}

.real-cmd-wrap {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 0 10px 0 14px;
  height: 42px;
}

.real-cmd-prompt {
  font-family: var(--font-mono);
  color: #818cf8;
  font-weight: 700;
  margin-right: 8px;
}

.real-cmd-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #e2e8f0;
}

.real-cmd-send {
  background: transparent;
  border: none;
  color: #64748b;
  cursor: default;
  display: flex;
  align-items: center;
  padding: 4px;
}

/* --------------------------------------------------------------------------
   Sections communes
   -------------------------------------------------------------------------- */
.section {
  padding: 112px 0;
  position: relative;
}

.section--alt {
  background: rgba(13, 15, 23, 0.5);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section__header {
  text-align: center;
  max-width: 740px;
  margin: 0 auto 64px;
}

.section__title {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.section__description {
  font-size: 1.12rem;
  color: var(--text-mid);
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   Bento Grid
   -------------------------------------------------------------------------- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.bento-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.bento-card--large {
  grid-column: span 2;
  background: linear-gradient(145deg, #131622 0%, #0d0f17 100%);
  border-color: rgba(99, 102, 241, 0.2);
}

.bento-card__icon-wrapper {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.12);
  color: #a5b4fc;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.bento-card__title {
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 12px;
}

.bento-card__text {
  font-size: 0.96rem;
  color: var(--text-mid);
  line-height: 1.68;
}

/* --------------------------------------------------------------------------
   Specs & Compatibilité
   -------------------------------------------------------------------------- */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.spec-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.spec-card__os {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-hi);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.spec-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 0.92rem;
  color: var(--text-mid);
}

.spec-list li strong {
  color: var(--text-hi);
}

/* --------------------------------------------------------------------------
   Changelog & Versions Dynamique
   -------------------------------------------------------------------------- */
.changelog-timeline {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 16px;
}

.changelog-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 60px 0;
  color: var(--text-lo);
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--accent-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Carte de Release */
.release-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 38px 36px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: border-color 0.2s ease;
  position: relative;
}

.release-card--latest {
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: 0 0 30px -10px rgba(99, 102, 241, 0.15);
}

.release-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.release-card__tag-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.release-tag {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  color: #c7d2fe;
}

.release-badge-latest {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.4);
}

.release-date {
  font-size: 0.88rem;
  color: var(--text-lo);
}

.release-card__title {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text-hi);
}

.release-card__body {
  color: var(--text-mid);
  font-size: 0.97rem;
  line-height: 1.75;
}

.release-card__body ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: 4px;
}

.release-card__body li {
  position: relative;
  padding-left: 20px;
}

.release-card__body li::before {
  content: "•";
  position: absolute;
  left: 4px;
  color: var(--accent-primary);
  font-weight: bold;
}

.release-card__downloads {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

.release-download-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-mid);
  transition: all 0.15s ease;
}

.release-download-link:hover {
  background: rgba(255, 255, 255, 0.09);
  color: var(--text-hi);
  border-color: var(--border-strong);
}

.release-download-link svg {
  opacity: 0.7;
}

/* --------------------------------------------------------------------------
   FAQ Section
   -------------------------------------------------------------------------- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  transition: border-color 0.2s ease;
}

.faq-item[open] {
  border-color: var(--border-strong);
}

.faq-item__question {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-hi);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-item__question::-webkit-details-marker {
  display: none;
}

.faq-item__question::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--text-lo);
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-item__question::after {
  transform: rotate(45deg);
}

.faq-item__answer {
  margin-top: 14px;
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--border-subtle);
  background: #06070a;
  padding: 80px 0 48px;
  font-size: 0.9rem;
  color: var(--text-lo);
}

.footer__container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 56px;
}

.footer__col--brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer__brand-name {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-hi);
}

.footer__brand-text {
  max-width: 340px;
  line-height: 1.6;
}

.footer__copyright {
  font-size: 0.8rem;
  color: var(--text-lo);
  margin-top: 10px;
}

.footer__heading {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-hi);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__links a {
  color: var(--text-mid);
  transition: color 0.15s ease;
}

.footer__links a:hover {
  color: var(--text-hi);
}

/* --------------------------------------------------------------------------
   Responsive Mobile
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .hero__title {
    font-size: 2.7rem;
  }

  .real-app-layout {
    grid-template-columns: 1fr;
  }

  .real-worlds-panel {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .bento-grid {
    grid-template-columns: 1fr;
  }

  .bento-card--large {
    grid-column: span 1;
  }

  .specs-grid {
    grid-template-columns: 1fr;
  }

  .footer__container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .navbar__nav {
    display: none;
  }

  .hero {
    padding: 60px 0;
  }

  .hero__title {
    font-size: 2.2rem;
  }

  .hero__description {
    font-size: 1.05rem;
  }

  .download-btn {
    width: 100%;
    min-width: auto;
  }

  .hero__download-buttons {
    width: 100%;
  }

  .real-app-sub {
    display: none;
  }

  .real-console-header {
    flex-direction: column;
    height: auto;
    padding: 12px;
    align-items: flex-start;
  }

  .real-console-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .section {
    padding: 80px 0;
  }

  .section__title {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: 1.85rem;
  }

  .hero__meta {
    flex-direction: column;
    gap: 6px;
  }

  .meta-separator {
    display: none;
  }

  .real-app-header-actions span {
    display: none;
  }

  .release-card {
    padding: 20px;
  }
}