/**
 * GMod4Life — Accueil v3 (FunRP)
 * Composition distincte, typo Bricolage + Manrope
 */

.home-page {
  --font-display: 'Bricolage Grotesque', 'Syne', sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;
  --bg: #08090e;
  --bg2: #0e1018;
  --ink: #f4f1ea;
  --muted: #a8b0c0;
  --line: rgba(244, 241, 234, 0.12);
  --heat: #e84855;
  --heat2: #ff7a59;
  --max: 1120px;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
}

.home-page .brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.04em;
}
.home-page .btn-primary,
.home-page .btn-nav-play {
  background: linear-gradient(135deg, var(--heat), #c41e2a 70%);
}

.home-page .brand-name,
.home-page .hm-hero__brand,
.home-page .hm-sec-head h2,
.home-page .hm-event__title,
.home-page .hm-feature h3,
.home-page .hm-step h3,
.home-page .hm-person h3,
.home-page .hm-discord__copy h2,
.home-page .hm-faq__item summary {
  font-family: var(--font-display);
}

/* Grain + fond */
.home-page .site-bg__img {
  background:
    url('../img/background.png') center / cover no-repeat;
  transform: scale(1.04);
  filter: saturate(1.05) contrast(1.05);
}
.home-page .site-bg__shade {
  background:
    linear-gradient(180deg, rgba(8, 9, 14, 0.55) 0%, rgba(8, 9, 14, 0.35) 35%, rgba(8, 9, 14, 0.88) 72%, var(--bg) 100%),
    radial-gradient(ellipse 80% 55% at 50% 0%, rgba(232, 72, 85, 0.16), transparent 60%);
}
.site-bg__grain {
  position: absolute;
  inset: 0;
  opacity: 0.07;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.hm-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--heat2);
  margin-bottom: 10px;
}
.hm-kicker .lucide-icon {
  width: 14px;
  height: 14px;
  stroke-width: 2.2;
  color: var(--heat2);
}

.hm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 28px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  border-radius: 10px;
  text-decoration: none;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.hm-btn .lucide-icon {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
}
.hm-btn:active { transform: scale(0.98); }
.hm-btn--play {
  color: #fff;
  background: linear-gradient(135deg, var(--heat), #c41e2a 70%);
  box-shadow: 0 12px 32px rgba(232, 72, 85, 0.35);
}
.hm-btn--play:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}
.hm-btn--ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.hm-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.28);
}

.hm-sec-head {
  max-width: 40rem;
  margin-bottom: 48px;
}
.hm-sec-head h2 {
  font-size: clamp(1.9rem, 4.5vw, 2.85rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin: 0 0 12px;
  color: #fff;
}
.hm-sec-head p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.55;
  margin: 0;
}

.home-page .lucide-icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ─── HERO ─── */
.hm-hero {
  position: relative;
  min-height: calc(100svh - var(--nav-h, 68px));
  display: grid;
  place-items: center;
  padding: 48px 0 72px;
  overflow: hidden;
  isolation: isolate;
}
.hm-hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url('../img/background.png') center / cover no-repeat;
  animation: hmKen 28s ease-in-out infinite alternate;
}
.hm-hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(8, 9, 14, 0.45) 0%, rgba(8, 9, 14, 0.25) 40%, rgba(8, 9, 14, 0.82) 78%, var(--bg) 100%),
    radial-gradient(ellipse 70% 50% at 50% 30%, rgba(232, 72, 85, 0.18), transparent 65%);
}
.hm-hero__inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: hmRise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hm-hero__logo {
  width: min(160px, 38vw);
  height: auto;
  margin-bottom: 18px;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.55));
  animation: hmFloat 5.5s ease-in-out infinite;
}
.hm-hero__brand {
  font-size: clamp(3.2rem, 12vw, 6.5rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.88;
  margin: 0 0 18px;
  color: #fff;
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.5);
}
.hm-hero__brand span {
  color: var(--heat2);
}
.hm-hero__tag {
  max-width: 28ch;
  margin: 0 0 32px;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  font-weight: 500;
  line-height: 1.45;
  color: #e8ecf4;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}
.hm-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.hm-hero__scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 42px;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  border-radius: 16px;
  display: grid;
  place-items: start center;
  padding-top: 8px;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.hm-hero__scroll:hover { opacity: 1; }
.hm-hero__scroll span {
  width: 4px;
  height: 8px;
  border-radius: 4px;
  background: #fff;
  animation: hmScroll 1.6s ease-in-out infinite;
}

@keyframes hmKen {
  from { transform: scale(1.02) translateY(0); }
  to { transform: scale(1.08) translateY(-1.5%); }
}
@keyframes hmFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes hmRise {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: none; }
}
@keyframes hmScroll {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(12px); }
}

/* ─── LIVE ─── */
.hm-live {
  padding: 0;
  border-block: 1px solid var(--line);
  background: rgba(14, 16, 24, 0.85);
  backdrop-filter: blur(16px);
}
.hm-live__row {
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  gap: 24px;
  align-items: center;
  padding-block: 22px;
}
.hm-live__status {
  display: flex;
  align-items: center;
  gap: 14px;
}
.hm-live__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
  animation: hmPulse 2s ease infinite;
}
#hero-online.offline .hm-live__dot {
  background: #64748b;
  animation: none;
  box-shadow: none;
}
@keyframes hmPulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45); }
  70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
.hm-live__label {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 2px;
}
.hm-live__count {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.hm-live__count strong {
  font-family: var(--font-display);
  font-size: 1.75rem;
  letter-spacing: -0.03em;
}
.hm-live__count span { color: var(--muted); font-weight: 600; font-size: 1rem; }
.hm-live__meta {
  display: flex;
  gap: 28px;
}
.hm-live__meta > div span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}
.hm-live__meta strong {
  display: block;
  font-size: 0.95rem;
  color: #fff;
  font-weight: 700;
}
.hm-live__ip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.hm-live__ip:hover {
  border-color: rgba(232, 72, 85, 0.45);
  background: rgba(232, 72, 85, 0.08);
}
.hm-live__ip code {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.78rem;
  color: #e2e8f0;
}
.hm-live__ip em {
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--heat2);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ─── EVENT ─── */
.hm-event {
  padding: 64px 0;
  background:
    radial-gradient(ellipse 60% 80% at 10% 50%, rgba(234, 88, 12, 0.12), transparent 55%),
    radial-gradient(ellipse 50% 70% at 90% 40%, rgba(126, 34, 206, 0.1), transparent 50%),
    var(--bg2);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.hm-event__inner { max-width: 560px; margin-inline: auto; }
.hm-event__title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin: 0 0 24px;
  color: #fff;
}
.hm-event .hw-countdown {
  margin: 0 auto;
  max-width: 100%;
}

/* ─── FEATURES ─── */
.hm-why {
  padding: 100px 0;
  background: var(--bg);
}
.hm-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.hm-feature {
  padding: 28px 24px 30px;
  border-radius: 18px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--line);
  transition: border-color 0.2s, transform 0.2s;
}
.hm-feature:hover {
  border-color: rgba(232, 72, 85, 0.4);
  transform: translateY(-3px);
}
.hm-feature__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: rgba(232, 72, 85, 0.12);
  color: var(--heat2);
  border: 1px solid rgba(232, 72, 85, 0.22);
}
.hm-feature__icon .lucide-icon {
  width: 28px;
  height: 28px;
}
.hm-feature h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 10px;
  color: #fff;
}
.hm-feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* ─── START / STEPS ─── */
.hm-start {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--bg2) 0%, var(--bg) 100%);
  border-block: 1px solid var(--line);
}
.hm-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.hm-step {
  padding: 28px 24px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(8, 9, 14, 0.5);
}
.hm-step__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--heat2);
}
.hm-step h3 {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
  color: #fff;
}
.hm-step p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}
.hm-step a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--heat2);
  text-decoration: none;
}
.hm-step a:hover { color: #fff; }

/* ─── TEAM ─── */
.hm-team {
  padding: 100px 0;
}
.hm-team__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.hm-person {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.04), transparent);
  transition: border-color 0.2s;
}
.hm-person:hover { border-color: rgba(232, 72, 85, 0.35); }
.hm-person__av {
  flex-shrink: 0;
}
.hm-person__av img,
.hm-person__ini {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.14);
  display: block;
}
.hm-person__ini {
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--heat), #7f1d1d);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  color: #fff;
}
.hm-person__body { min-width: 0; }
.hm-person h3 {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  color: #fff;
}
.hm-person__role {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--heat2);
  margin: 0 0 8px;
}
.hm-person__bio {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
}

/* ─── DISCORD ─── */
.hm-discord {
  padding: 100px 0;
  background:
    radial-gradient(ellipse 50% 60% at 0% 50%, rgba(88, 101, 242, 0.14), transparent 55%),
    var(--bg2);
  border-block: 1px solid var(--line);
}
.hm-discord__grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
}
.hm-discord__copy h2 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin: 0 0 14px;
  color: #fff;
}
.hm-discord__copy > p {
  margin: 0 0 20px;
  max-width: 36ch;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
}
.hm-discord__points {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hm-discord__points li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  font-size: 0.95rem;
  color: #e8ecf4;
}
.hm-discord__points .lucide-icon { color: var(--heat2); }
.hm-discord__widget {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #1e1f22;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.hm-discord__widget iframe {
  display: block;
  max-width: 100%;
}

/* ─── FAQ ─── */
.hm-faq {
  padding: 100px 0 120px;
  background: var(--bg);
}
.hm-faq__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.hm-faq__item {
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  overflow: hidden;
  transition: border-color 0.2s;
}
.hm-faq__item[open] {
  border-color: rgba(232, 72, 85, 0.4);
  background: rgba(232, 72, 85, 0.05);
}
.hm-faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  user-select: none;
}
.hm-faq__item summary::-webkit-details-marker { display: none; }
.hm-faq__item summary > span:nth-child(2) { flex: 1; }
.hm-faq__ico {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: rgba(232, 72, 85, 0.12);
  color: var(--heat2);
  flex-shrink: 0;
}
.hm-faq__chev {
  color: var(--muted);
  transition: transform 0.2s;
}
.hm-faq__item[open] .hm-faq__chev { transform: rotate(180deg); color: var(--heat2); }
.hm-faq__body {
  padding: 0 16px 18px 68px;
}
.hm-faq__body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}
.hm-faq__body a {
  color: var(--heat2);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.hm-faq__body code {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.85em;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
}

.hm-footer {
  border-top: 1px solid var(--line);
  background: rgba(8, 9, 14, 0.95);
}

/* Reveal */
.home-page .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.home-page .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (max-width: 900px) {
  .hm-live__row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .hm-live__ip { justify-self: start; }
  .hm-features,
  .hm-steps,
  .hm-faq__grid { grid-template-columns: 1fr; }
  .hm-discord__grid { grid-template-columns: 1fr; }
  .hm-discord__widget { justify-self: center; }
}

@media (max-width: 640px) {
  .hm-hero { padding: 32px 0 64px; }
  .hm-hero__logo { width: min(120px, 34vw); }
  .hm-why, .hm-start, .hm-team, .hm-discord, .hm-faq { padding: 64px 0; }
  .hm-faq__body { padding-left: 16px; }
  .hm-live__meta { flex-wrap: wrap; gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .hm-hero__media,
  .hm-hero__logo,
  .hm-hero__scroll span,
  .hm-live__dot {
    animation: none !important;
  }
  .home-page .reveal {
    opacity: 1;
    transform: none;
  }
}

