:root {
  --bg: #090909;
  --surface: #111111;
  --surface-2: #161616;
  --ink: #f3f1ed;
  --muted: #929292;
  --line: #292929;
  --accent: #ff00b8;
  --font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; background: var(--bg); }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
body, button, input { font: inherit; }
a { color: inherit; text-decoration: none; }
button, input { border: 0; }
svg { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.home-page main { overflow: hidden; }
/* Home hero */
.home-hero {
  position: relative;
  min-height: max(760px, 100svh);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #0b0b0b url("assets/hero-background.jpg") center / cover no-repeat;
}
.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .42) 0%, rgba(0, 0, 0, .54) 58%, rgba(9, 9, 9, .72) 100%),
    rgba(0, 0, 0, .16);
}
.home-hero-content {
  position: relative;
  width: min(980px, calc(100% - 48px));
  margin: 0 auto;
  padding: 150px 0 86px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translate3d(0, var(--hero-shift, 0), 0);
  animation: heroEnter .85s cubic-bezier(.16, 1, .3, 1) both;
  will-change: transform;
}
.section-kicker,
.forum-eyebrow,
.auth-modal-kicker,
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #b6b6b6;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.section-kicker::before,
.badge::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--accent);
}
.home-hero h1 {
  max-width: 980px;
  margin: 0 0 26px;
  font-family: var(--font-sans);
  font-size: clamp(64px, 8.6vw, 124px);
  font-weight: 780;
  letter-spacing: -.06em;
  line-height: .88;
}
.home-hero h1 em,
.faq-heading h2 em {
  color: var(--accent);
  font-style: normal;
}
.home-hero p {
  max-width: 610px;
  margin: 0;
  color: #c1c1c1;
  font-size: clamp(15px, 1.65vw, 18px);
  line-height: 1.6;
}
.home-hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 32px; }
.home-btn {
  min-height: 52px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  border: 1px solid #5c5c5c;
  border-radius: 12px;
  color: var(--ink);
  background: #101010;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: -.01em;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.home-btn svg { width: 17px; }
.home-btn-primary { border-color: var(--accent); color: #090909; background: var(--accent); box-shadow: 0 12px 34px rgba(255, 0, 184, .16); }
.home-btn-primary:hover { background: #ff3ac7; box-shadow: 0 16px 38px rgba(255, 0, 184, .24); transform: translateY(-2px); }
.home-btn-ghost:hover { border-color: #aaa; background: #1a1a1a; transform: translateY(-2px); }

.home-faq {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  align-items: start;
  gap: clamp(50px, 8vw, 120px);
}
.faq-heading h2 {
  margin: 18px 0;
  font-family: var(--font-sans);
  font-size: clamp(46px, 5.4vw, 70px);
  font-weight: 760;
  letter-spacing: -.055em;
  line-height: .94;
}
.faq-heading p {
  max-width: 470px;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}
/* FAQ */
.home-faq { padding: 120px 0 130px; }
.faq-items { display: grid; gap: 10px; }
.faq-entry {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #101010;
  transition: border-color .2s ease, background-color .2s ease, transform .2s ease;
}
.faq-entry:hover { border-color: #424242; transform: translateY(-2px); }
.faq-entry[open] { border-color: rgba(255, 0, 184, .42); background: #131313; }
.faq-entry summary {
  position: relative;
  padding: 21px 52px 21px 20px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}
.faq-entry summary::-webkit-details-marker { display: none; }
.faq-entry summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 6px;
  color: var(--accent);
  font-size: 20px;
  transform: translateY(-50%);
}
.faq-entry[open] summary::after { content: "\2212"; }
.faq-entry p { margin: 0; padding: 0 54px 21px 20px; color: #8d8d8d; font-size: 12px; line-height: 1.75; }

/* Footer */
.home-footer,
.site-footer {
  border-top: 1px solid var(--line);
  background: #070707;
}
.home-footer {
  width: min(1200px, calc(100% - 48px));
  min-height: 130px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 210px 1fr auto;
  align-items: center;
  gap: 30px;
}
.home-footer-brand { width: 185px; height: 62px; }
.home-footer-brand img { width: 185px; height: 62px; object-fit: contain; }
.home-footer .trophy-glow-layer { display: none; }
.home-footer p { color: #666; font-size: 10px; }
.home-footer > div { display: flex; flex-wrap: wrap; gap: 18px; }
.home-footer > div a { color: #888; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.home-footer > div a:hover { color: var(--ink); }

/* Authentication modal */
.auth-modal[hidden] { display: none; }
.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  overflow-y: auto;
}
.auth-modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .84); }
.auth-dialog {
  position: relative;
  width: min(440px, 100%);
  margin: auto;
  padding: 34px;
  border: 1px solid #3a3a3a;
  border-top: 3px solid var(--accent);
  border-radius: 18px;
  background: #101010;
}
.auth-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  color: #aaa;
  background: transparent;
  font-size: 22px;
  cursor: pointer;
}
.auth-modal-close:hover { color: #fff; }
.auth-modal-kicker { color: var(--accent); }
.auth-panel h2 {
  margin: 18px 0 8px;
  font-family: var(--font-sans);
  font-size: 44px;
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: .92;
  text-transform: uppercase;
}
.auth-panel > p { margin: 0 0 24px; color: #898989; font-size: 11px; line-height: 1.65; }
.auth-modal-form { display: grid; gap: 15px; }
.auth-modal-form label { display: grid; gap: 7px; color: #ccc; font-size: 10px; font-weight: 700; }
.auth-modal-form input {
  width: 100%;
  height: 46px;
  padding: 0 13px;
  border: 1px solid #333;
  border-radius: 10px;
  outline: 0;
  color: #fff;
  background: #0a0a0a;
}
.auth-modal-form input:focus { border-color: var(--accent); }
.auth-modal-form input::placeholder { color: #555; }
.auth-modal-form small { color: #686868; font-size: 8px; }
.auth-input-wrap { position: relative; display: block; }
.auth-input-wrap input { padding-right: 52px; }
.auth-input-wrap button {
  position: absolute;
  top: 50%;
  right: 8px;
  color: #888;
  background: transparent;
  font-size: 9px;
  transform: translateY(-50%);
  cursor: pointer;
}
.auth-modal-submit {
  height: 48px;
  border: 1px solid var(--accent);
  border-radius: 10px;
  color: #090909;
  background: var(--accent);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
}
.auth-modal-submit:hover:not(:disabled) { background: #ff3ac7; }
.auth-modal-submit:disabled { opacity: .55; cursor: wait; }
.auth-modal-message { display: none; padding: 10px 12px; border: 1px solid #333; font-size: 9px; line-height: 1.5; }
.auth-modal-message.is-visible { display: block; }
.auth-modal-message.is-error { color: #ff9db3; border-color: #713040; background: #1b0d11; }
.auth-modal-message.is-success { color: #a8e8c2; border-color: #28583b; background: #0d1811; }
.auth-modal-switch { margin: 20px 0 0 !important; color: #7d7d7d !important; text-align: center; }
.auth-modal-switch button { color: var(--accent); background: none; font-weight: 800; cursor: pointer; }
.auth-modal-open { overflow: hidden; }

/* Legal pages */
.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.section { padding: 82px 0 110px; }
.page-card { max-width: 860px; margin: 0 auto; }
.legal-page { padding: 38px; border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: 20px; background: #101010; }
.section-head { padding: 4px 0 30px; border-bottom: 1px solid var(--line); }
.section-head h1 {
  margin: 18px 0 12px;
  font-family: var(--font-sans);
  font-size: clamp(54px, 8vw, 88px);
  font-weight: 780;
  letter-spacing: -.055em;
  line-height: .94;
}
.section-head p { max-width: 680px; margin: 0; color: var(--muted); line-height: 1.7; }
.legal-copy { padding: 34px 0; color: #b6b6b6; font-size: 14px; line-height: 1.8; }
.legal-copy p { margin: 0 0 24px; }
.legal-copy ul { margin: 0; padding-left: 20px; }
.legal-copy li { margin-bottom: 13px; padding-left: 6px; }
.footer-grid { padding: 52px 0; display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 36px; }
.footer-brand { color: var(--ink); font-size: 20px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.footer-brand span { color: inherit !important; }
.footer-copy { max-width: 340px; color: #777; font-size: 12px; line-height: 1.7; }
.footer-col h4 { margin: 0 0 14px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.footer-col a { display: block; margin-bottom: 10px; color: #808080; font-size: 11px; }
.footer-col a:hover { color: #fff; }
.footer-bottom { padding: 20px 0 28px; border-top: 1px solid var(--line); color: #666; font-size: 10px; }

/* Subtle motion: visible content remains accessible when JavaScript is unavailable. */
@keyframes heroEnter {
  from { opacity: 0; transform: translate3d(0, 28px, 0); }
  to { opacity: 1; transform: translate3d(0, var(--hero-shift, 0), 0); }
}
.scroll-motion-ready .scroll-reveal {
  opacity: 0;
  transform: translate3d(0, 34px, 0);
  transition:
    opacity .7s cubic-bezier(.16, 1, .3, 1) var(--reveal-delay, 0ms),
    transform .8s cubic-bezier(.16, 1, .3, 1) var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.scroll-motion-ready .faq-heading.scroll-reveal { transform: translate3d(-28px, 20px, 0); }
.scroll-motion-ready .scroll-reveal.is-visible { opacity: 1; transform: translate3d(0, 0, 0); }

@media (max-width: 900px) {
  .home-hero-content { padding-top: 180px; }
  .home-faq { grid-template-columns: 1fr; gap: 42px; }
  .home-footer { grid-template-columns: 1fr; gap: 0; padding: 34px 0; }
  .home-footer > div { margin-top: 12px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .home-hero { min-height: 780px; background-position: 48% center; }
  .home-hero-content,
  .home-faq,
  .home-footer { width: min(100% - 28px, 1200px); }
  .home-hero-content { padding-top: 176px; }
  .home-hero h1 { font-size: clamp(58px, 19vw, 86px); }
  .home-hero p { font-size: 14px; }
  .home-hero-actions { display: grid; }
  .home-btn { width: 100%; }
  .home-faq { padding: 84px 0 88px; }
  .faq-heading h2 { font-size: 53px; }
  .auth-dialog { padding: 30px 21px; }
  .auth-panel h2 { font-size: 38px; }
  .section { padding: 58px 0 80px; }
  .legal-page { padding: 28px 22px; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .scroll-motion-ready .scroll-reveal { opacity: 1; transform: none; }
  .home-hero-content { transform: none; }
}
