:root {
  --gx-red: #ff0000;
  --gx-black: #050505;
  --bg-dark: #000000;
  --text-white: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--gx-black);
  font-family: 'Inter', sans-serif;
  color: var(--text-white);
  overflow: hidden;
  height: 100vh;
}

.prelander {
  position: relative;
  height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 2rem;
  background: var(--bg-dark);
  transition: all 0.7s ease-in-out;
}

.prelander.exiting {
  opacity: 0;
  transform: scale(1.05);
}

/* Effets de fond */
.bg-image {
  position: absolute;
  inset: 0;
  opacity: 1; /* Fond bien visible selon demande */
  background-image: url('https://cdn.gamtix.com/Images/2026/Prelander%20Fix%201.png');
  background-size: cover;
  background-position: center;
  pointer-events: none;
}

.bg-overlay {
  position: absolute;
  inset: 0;
  /* Overlay léger pour garder l'image visible tout en assurant la lisibilité du texte */
  background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.5) 100%);
  pointer-events: none;
}

.scanlines::after {
  content: "";
  display: block;
  position: absolute;
  top: 0; left: 0; bottom: 0; right: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.1) 50%);
  background-size: 100% 2px;
  pointer-events: none;
  z-index: 2;
  opacity: 0.3;
}

/* Mise en page */
.container {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1200px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.logo {
  height: 2.8rem;
  filter: drop-shadow(0 0 15px rgba(255, 0, 0, 0.6));
}

.status-text {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gx-red);
  opacity: 0.9;
  text-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 900px;
  width: 100%;
  padding-bottom: 2rem;
}

/* Typographie */
.hook {
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  line-height: 0.85;
  letter-spacing: -0.05em;
  margin-top: 2rem; /* Espace augmenté pour équilibre */
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
}

.hook-line-1 {
  font-size: clamp(2rem, 8vw, 4.5rem);
  color: white;
  text-shadow: 0 4px 15px rgba(0,0,0,0.9);
}

.hook-line-2 {
  font-size: clamp(2.5rem, 10vw, 5.5rem);
  margin-top: 1rem; /* Espace entre les deux lignes */
}

.gx-text-glow {
  background: linear-gradient(to bottom, #ffffff 20%, var(--gx-red) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 15px rgba(255,0,0,0.7));
}

.subtitle {
  font-size: clamp(1rem, 4vw, 1.5rem);
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-white);
  text-shadow: 0 2px 10px rgba(0,0,0,0.8);
  margin-bottom: 1.2rem;
}

.description {
  font-size: 0.9rem;
  color: #d1d5db;
  text-shadow: 0 2px 5px rgba(0,0,0,0.9);
  max-width: 480px;
  margin-bottom: 3.5rem;
  line-height: 1.6;
  font-weight: 500;
}

/* Zone CTA & Loader */
.cta-area {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.loader {
  width: 18rem;
  background: rgba(0, 0, 0, 0.6);
  padding: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border-radius: 4px;
}

.progress-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: var(--gx-red);
  width: 0%;
  box-shadow: 0 0 10px var(--gx-red);
}

/* Bouton CTA - Style Rectangle avec coins cerclés */
.cta-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.4rem 2.5rem;
  min-width: clamp(300px, 90vw, 440px);
  background: var(--gx-red);
  color: var(--text-white);
  border-radius: 1.2rem; /* Coins cerclés selon demande */
  border: 4px solid var(--gx-black);
  cursor: pointer;
  box-shadow: 0 0 25px rgba(255, 0, 0, 0.5);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
  outline: none;
}

.cta-button:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 45px rgba(255, 0, 0, 0.8);
}

.cta-button:active {
  transform: translateY(2px) scale(0.98);
}

.btn-hover-sweep {
  position: absolute;
  inset: 0;
  background: white;
  transform: translateX(-100%);
  transition: transform 0.4s ease;
  z-index: 1;
}

.cta-button:hover .btn-hover-sweep {
  transform: translateX(0);
}

.btn-corner-accent {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 1.8rem;
  height: 1.8rem;
  background: var(--gx-black);
  border-top-left-radius: 1rem;
  z-index: 20;
}

.btn-text {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: clamp(0.75rem, 3vw, 1rem);
  letter-spacing: 0.1em;
  color: var(--text-white); /* Texte blanc selon demande */
  transition: color 0.4s ease;
}

.cta-button:hover .btn-text {
  color: var(--gx-red);
}

.arrow-icon {
  transition: transform 0.4s ease;
}

.cta-button:hover .arrow-icon {
  transform: translateX(6px);
}

/* Pied de page */
.footer {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: white;
  opacity: 0.6;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
  margin-bottom: 1.5rem;
}

.hidden {
  display: none !important;
}

/* Animations */
@keyframes progressAnim {
  to { width: 100%; }
}

@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

.animate-entrance {
  animation: fadeInScale 0.6s ease-out forwards;
}