/*
  Quadra City RP - Auteur : @edsnicolas
  Site vitrine FiveM RP sombre, neon et responsive.
*/

:root {
  --purple: #9b35ff;
  --purple-dark: #38105f;
  --red: #ff2d55;
  --red-dark: #8f1028;
  --pink: #ff6bd6;
  --black: #05040a;
  --surface: rgba(16, 11, 28, 0.78);
  --surface-strong: rgba(28, 15, 42, 0.94);
  --text: #f7efff;
  --muted: #bfaed1;
  --border: rgba(255, 107, 214, 0.22);
  --shadow-purple: 0 0 34px rgba(155, 53, 255, 0.45);
  --shadow-red: 0 0 34px rgba(255, 45, 85, 0.4);
  --container: min(1120px, calc(100% - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 20% 15%, rgba(155, 53, 255, 0.26), transparent 32rem),
    radial-gradient(circle at 85% 5%, rgba(255, 45, 85, 0.2), transparent 30rem),
    linear-gradient(140deg, #05040a 0%, #11071c 42%, #09040f 100%);
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.background-effects {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.background-effects::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.95));
}

.city-grid {
  position: absolute;
  right: -10%;
  bottom: -22%;
  width: 125%;
  height: 58%;
  background:
    linear-gradient(to top, rgba(155, 53, 255, 0.4), transparent 2px),
    repeating-linear-gradient(90deg, rgba(255, 45, 85, 0.18) 0 1px, transparent 1px 80px),
    repeating-linear-gradient(0deg, rgba(155, 53, 255, 0.2) 0 1px, transparent 1px 72px);
  filter: drop-shadow(0 0 25px rgba(155, 53, 255, 0.48));
  opacity: 0.55;
  transform: perspective(520px) rotateX(62deg);
  transform-origin: bottom;
  animation: gridPulse 8s ease-in-out infinite alternate;
}

.neon-orb {
  position: absolute;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  filter: blur(55px);
  opacity: 0.34;
  animation: orbFloat 12s ease-in-out infinite alternate;
}

.orb-purple {
  top: 12%;
  left: -9rem;
  background: var(--purple);
}

.orb-red {
  right: -8rem;
  bottom: 12%;
  background: var(--red);
  animation-delay: -4s;
}

.petals-layer {
  position: absolute;
  inset: 0;
}

.petal {
  position: absolute;
  top: -10vh;
  width: var(--size);
  height: calc(var(--size) * 0.78);
  border-radius: 70% 20% 70% 20%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.92), transparent 20%),
    linear-gradient(135deg, rgba(255, 142, 224, 0.96), rgba(255, 45, 120, 0.72));
  box-shadow: 0 0 18px rgba(255, 107, 214, 0.45);
  opacity: var(--opacity);
  transform: translate3d(0, 0, 0) rotate(var(--rotate));
  animation: petalFall var(--duration) linear var(--delay) infinite;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 18px 0;
  background: linear-gradient(to bottom, rgba(5, 4, 10, 0.88), rgba(5, 4, 10, 0.58), transparent);
  backdrop-filter: blur(14px);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: var(--container);
  margin: 0 auto;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(8, 5, 15, 0.72);
  box-shadow: 0 16px 55px rgba(0, 0, 0, 0.38);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Exo 2", sans-serif;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.logo-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 107, 214, 0.45);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(155, 53, 255, 0.85), rgba(255, 45, 85, 0.82));
  box-shadow: var(--shadow-purple);
  overflow: hidden;
  position: relative;
}

.logo-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo-fallback {
  display: none;
}

.logo-mark.logo-missing .logo-image {
  display: none;
}

.logo-mark.logo-missing .logo-fallback {
  display: block;
}

.logo-text strong {
  color: var(--pink);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.nav-links a {
  position: relative;
  transition: color 0.25s ease;
}

.nav-links a::after {
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 100%;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, var(--purple), var(--red));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 99px;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.section {
  width: var(--container);
  margin: 0 auto;
  padding: 92px 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.72fr);
  gap: 48px;
  align-items: center;
  min-height: calc(100vh - 86px);
  padding-top: 56px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  color: var(--pink);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 28px;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, var(--purple), var(--red));
  box-shadow: 0 0 18px var(--pink);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: "Exo 2", sans-serif;
  line-height: 1.05;
}

h1 {
  max-width: 840px;
  margin-bottom: 22px;
  font-size: clamp(3rem, 8vw, 6.6rem);
  font-weight: 800;
  text-shadow:
    0 0 18px rgba(255, 107, 214, 0.5),
    0 0 45px rgba(155, 53, 255, 0.4);
}

.hero-logo {
  display: block;
  width: min(220px, 52vw);
  height: auto;
  margin: 0 0 24px;
  filter:
    drop-shadow(0 0 18px rgba(255, 107, 214, 0.52))
    drop-shadow(0 0 36px rgba(155, 53, 255, 0.35));
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  text-shadow: 0 0 24px rgba(155, 53, 255, 0.42);
}

h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
}

p {
  color: var(--muted);
  line-height: 1.75;
}

.hero-subtitle {
  max-width: 760px;
  color: #ffd5f5;
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  font-weight: 700;
}

.hero-text {
  max-width: 680px;
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 34px;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.01em;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.btn::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: translateX(-120%);
  transition: transform 0.55s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-3px);
}

.btn:hover::before,
.btn:focus-visible::before {
  transform: translateX(120%);
}

.btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--purple), var(--red));
  box-shadow: var(--shadow-purple), var(--shadow-red);
}

.btn-secondary {
  border-color: rgba(255, 107, 214, 0.4);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 0 22px rgba(155, 53, 255, 0.12);
}

.btn-discord {
  color: #fff;
  background: linear-gradient(135deg, rgba(155, 53, 255, 0.9), rgba(255, 45, 85, 0.9));
}

.btn-small {
  min-height: 42px;
  padding-inline: 18px;
  font-size: 0.92rem;
}

.btn-large {
  min-height: 64px;
  margin: 38px auto 0;
  padding-inline: 34px;
  font-size: 1.05rem;
}

.hero-card,
.experience-panel,
.future-grid,
.choice-content {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 32px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    var(--surface);
  box-shadow: 0 22px 90px rgba(0, 0, 0, 0.38), inset 0 0 40px rgba(155, 53, 255, 0.08);
  backdrop-filter: blur(18px);
}

.hero-card {
  padding: 34px;
  overflow: hidden;
}

.hero-card::before {
  position: absolute;
  inset: -1px;
  content: "";
  background:
    linear-gradient(120deg, transparent, rgba(255, 107, 214, 0.22), transparent),
    radial-gradient(circle at top right, rgba(255, 45, 85, 0.28), transparent 46%);
  opacity: 0.8;
  z-index: -1;
}

.status-dot {
  display: inline-block;
  width: 13px;
  height: 13px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: #4dff9a;
  box-shadow: 0 0 24px #4dff9a;
}

.card-label {
  color: var(--pink);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.server-placeholder {
  margin-top: 26px;
  padding: 16px;
  border: 1px dashed rgba(255, 107, 214, 0.4);
  border-radius: 18px;
  color: #ffe6f8;
  background: rgba(0, 0, 0, 0.22);
}

.hero-card-button {
  margin-top: 18px;
}

.section-heading {
  max-width: 780px;
  margin: 0 auto 42px;
  text-align: center;
}

.cards-grid,
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.role-card,
.step-card {
  min-height: 230px;
  padding: 28px;
  border: 1px solid rgba(255, 107, 214, 0.18);
  border-radius: 26px;
  background:
    linear-gradient(150deg, rgba(155, 53, 255, 0.17), rgba(255, 45, 85, 0.08)),
    rgba(8, 5, 15, 0.78);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.32);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.role-card:hover,
.step-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 107, 214, 0.5);
  box-shadow: 0 24px 80px rgba(155, 53, 255, 0.18), 0 0 30px rgba(255, 45, 85, 0.16);
}

.role-card span,
.step-card span {
  display: inline-flex;
  margin-bottom: 18px;
  font-size: 2.1rem;
  filter: drop-shadow(0 0 16px rgba(255, 107, 214, 0.45));
}

.impact-line {
  margin: 42px auto 0;
  color: #fff;
  font-family: "Exo 2", sans-serif;
  font-size: clamp(1.35rem, 3vw, 2.1rem);
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
  text-shadow: 0 0 22px rgba(255, 45, 85, 0.46);
}

.experience-panel {
  max-width: 850px;
  margin: 0 auto;
  padding: 34px;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding: 18px 18px 18px 50px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  color: #fff;
  background: rgba(255, 255, 255, 0.045);
}

.feature-list li::before {
  position: absolute;
  left: 18px;
  top: 50%;
  width: 14px;
  height: 14px;
  content: "";
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--red));
  box-shadow: 0 0 18px var(--red);
  transform: translateY(-50%);
}

.player-choice {
  display: grid;
  place-items: center;
}

.choice-content {
  max-width: 900px;
  padding: 48px;
  text-align: center;
}

.choice-content strong {
  display: inline-block;
  margin-top: 18px;
  color: #fff;
  font-family: "Exo 2", sans-serif;
  font-size: clamp(1.45rem, 4vw, 2.6rem);
  text-shadow: 0 0 24px rgba(255, 107, 214, 0.58);
}

.start-section {
  text-align: center;
}

.step-card {
  min-height: 210px;
  text-align: left;
}

.future-section {
  padding-top: 40px;
}

.future-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
  padding: 34px;
}

.future-grid ul {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.future-grid li {
  padding: 14px 16px;
  border: 1px solid rgba(255, 107, 214, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
}

.site-footer {
  width: var(--container);
  margin: 0 auto;
  padding: 60px 0 42px;
  color: var(--muted);
  text-align: center;
}

.site-footer h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.site-footer small {
  color: rgba(247, 239, 255, 0.66);
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes gridPulse {
  from {
    opacity: 0.34;
    transform: perspective(520px) rotateX(62deg) translateY(0);
  }

  to {
    opacity: 0.68;
    transform: perspective(520px) rotateX(62deg) translateY(-18px);
  }
}

@keyframes orbFloat {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }

  to {
    transform: translate3d(44px, -36px, 0) scale(1.13);
  }
}

@keyframes petalFall {
  0% {
    transform: translate3d(0, -12vh, 0) rotate(var(--rotate));
  }

  50% {
    transform: translate3d(var(--drift), 52vh, 0) rotate(calc(var(--rotate) + 180deg));
  }

  100% {
    transform: translate3d(calc(var(--drift) * -0.55), 112vh, 0) rotate(calc(var(--rotate) + 360deg));
  }
}

@media (max-width: 920px) {
  .navbar {
    border-radius: 26px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 86px;
    left: 20px;
    right: 20px;
    display: grid;
    gap: 4px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: rgba(10, 5, 18, 0.96);
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.55);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  .nav-links.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links a {
    padding: 14px 12px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 76px;
  }

  .cards-grid,
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .future-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  :root {
    --container: min(100% - 28px, 1120px);
  }

  .site-header {
    padding-top: 12px;
  }

  .navbar {
    padding: 10px;
  }

  .logo-text {
    font-size: 0.92rem;
  }

  .btn-discord {
    min-height: 40px;
    padding-inline: 14px;
    font-size: 0.84rem;
  }

  .section {
    padding: 70px 0;
  }

  .hero {
    gap: 30px;
    padding-top: 46px;
  }

  .hero-logo {
    width: min(180px, 58vw);
  }

  .hero-actions,
  .btn {
    width: 100%;
  }

  .btn {
    padding-inline: 18px;
  }

  .cards-grid,
  .steps,
  .feature-list {
    grid-template-columns: 1fr;
  }

  .role-card,
  .step-card,
  .hero-card,
  .experience-panel,
  .choice-content,
  .future-grid {
    padding: 24px;
    border-radius: 24px;
  }

  .role-card,
  .step-card {
    min-height: auto;
  }
}

@media (max-width: 380px) {
  .logo-text {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
