:root {
  --bg: #060418;
  --bg-deep: #03020e;
  --surface: rgba(28, 18, 64, 0.62);
  --surface-strong: rgba(20, 14, 48, 0.92);
  --line: rgba(155, 130, 240, 0.22);
  --text: #f3eefc;
  --muted: rgba(220, 210, 245, 0.7);
  --violet: #9a6bff;
  --violet-soft: #b48dff;
  --violet-deep: #5b30c8;
  --violet-glow: rgba(154, 107, 255, 0.45);
  --pink: #d96bff;
  --good: #62e5b3;
  --danger: #ff6a86;
  --shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.4);
  --content-width: 1100px;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --radius-pill: 999px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  background: var(--bg-deep);
  color: var(--text);
  letter-spacing: 0.01em;
  min-height: 100vh;
  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at top, rgba(154, 107, 255, 0.28), transparent 55%),
    radial-gradient(ellipse at 80% 80%, rgba(217, 107, 255, 0.18), transparent 50%),
    radial-gradient(ellipse at 20% 90%, rgba(91, 48, 200, 0.22), transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  pointer-events: none;
  z-index: -1;
}

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

button,
input,
textarea {
  font: inherit;
}

input,
textarea {
  outline: none;
}

.site-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: min(var(--content-width), calc(100% - 2rem));
  margin: 0 auto;
}

.loader {
  position: fixed;
  inset: 0;
  background: var(--bg-deep);
  display: grid;
  place-items: center;
  z-index: 9999;
  transition: opacity 0.6s ease;
}

.loader.fading-out {
  opacity: 0;
  pointer-events: none;
}

.loader-core {
  display: grid;
  gap: 1.5rem;
  justify-items: center;
}

.loader-word {
  display: flex;
  gap: 0.3rem;
  font-family: "Space Grotesk", sans-serif;
}

.lettre {
  font-size: clamp(1.8rem, 4vw, 3.5rem);
  color: #2a1a55;
  letter-spacing: 0.18em;
  font-weight: 700;
  animation: letterPulse 1.4s linear infinite;
}

.lettre:nth-child(1) { animation-delay: 0.05s; }
.lettre:nth-child(2) { animation-delay: 0.1s; }
.lettre:nth-child(3) { animation-delay: 0.15s; }
.lettre:nth-child(4) { animation-delay: 0.2s; }
.lettre:nth-child(5) { animation-delay: 0.25s; }
.lettre:nth-child(6) { animation-delay: 0.3s; }
.lettre:nth-child(7) { animation-delay: 0.35s; }
.lettre:nth-child(8) { animation-delay: 0.4s; }
.lettre:nth-child(9) { animation-delay: 0.45s; }
.lettre:nth-child(10) { animation-delay: 0.5s; }

@keyframes letterPulse {
  0%, 100% {
    color: #2a1a55;
    text-shadow: none;
  }
  50% {
    color: var(--violet-soft);
    text-shadow: 0 0 12px var(--violet-glow);
  }
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 1rem 0;
  backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(6, 4, 24, 0.85), rgba(6, 4, 24, 0.55));
  border-bottom: 1px solid var(--line);
}

.nav-shell {
  width: min(var(--content-width), calc(100% - 2rem));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.navbar-brand {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, var(--violet-soft), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-tagline {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.intro-screen {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 4rem 1rem 6rem;
}

.intro-card {
  width: min(560px, 100%);
  padding: 3rem 2.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
  text-align: center;
  display: grid;
  gap: 1.3rem;
}

.intro-eyebrow {
  display: inline-block;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  color: var(--violet-soft);
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--violet-glow);
  border-radius: var(--radius-pill);
  justify-self: center;
}

.intro-card h1 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, #ffffff, var(--violet-soft) 60%, var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.intro-lede {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 1rem;
}

.intro-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin: 0.5rem 0;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.intro-meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.intro-meta-num {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--violet-soft);
}

.intro-meta-label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.play-input {
  width: 100%;
  padding: 0.95rem 1.1rem;
  background: rgba(6, 4, 24, 0.55);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--text);
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.play-input::placeholder {
  color: rgba(220, 210, 245, 0.4);
}

.play-input:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(154, 107, 255, 0.18);
}

.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.1rem 2rem;
  background: linear-gradient(135deg, var(--violet), var(--pink));
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  box-shadow:
    0 8px 24px rgba(154, 107, 255, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 12px 32px rgba(154, 107, 255, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.primary-btn:active {
  transform: translateY(0);
  filter: brightness(0.95);
}

.primary-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.primary-btn--sm {
  padding: 0.75rem 1.4rem;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
}

.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.3rem;
  background: rgba(154, 107, 255, 0.08);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.ghost-btn:hover {
  background: rgba(154, 107, 255, 0.18);
  border-color: var(--violet);
}

.intro-foot {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.footer {
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  margin-top: auto;
}

.footer-shell {
  width: min(var(--content-width), calc(100% - 2rem));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.hidden {
  display: none !important;
}

@media (max-width: 640px) {
  .intro-card {
    padding: 2.2rem 1.5rem;
  }

  .intro-meta-num {
    font-size: 1.4rem;
  }

  .footer-shell {
    flex-direction: column;
    gap: 0.4rem;
  }
}
