:root {
  --royal-purple: #6a0dad;
  --deep-purple: #25083f;
  --night: #08030f;
  --panel: rgba(18, 10, 32, 0.86);
  --panel-strong: rgba(12, 7, 22, 0.94);
  --gold: #ffd700;
  --gold-soft: #ffe985;
  --text: #f7f2ff;
  --muted: #d4c7ea;
  --line: rgba(255, 215, 0, 0.24);
  --danger: #ef4444;
  --radius: 22px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  --max-width: 1180px;
}

* { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 15% 10%, rgba(106, 13, 173, 0.35), transparent 34rem),
    radial-gradient(circle at 85% 12%, rgba(255, 215, 0, 0.16), transparent 28rem),
    linear-gradient(180deg, #10041d 0%, #07020d 44%, #030105 100%);
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: linear-gradient(rgba(4, 2, 8, 0.72), rgba(4, 2, 8, 0.9)), url('/assets/images/brick-wall.webp');
  background-size: cover;
  background-position: center;
  opacity: 0.32;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: 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: 42px 42px;
  mask-image: radial-gradient(circle at center, black, transparent 78%);
}

img { max-width: 100%; height: auto; }
a { color: var(--gold-soft); text-decoration: none; }
a:hover, a:focus { color: var(--gold); }

.skip-link {
  position: absolute;
  left: -999px;
  top: 1rem;
  z-index: 10000;
  padding: 0.8rem 1rem;
  color: #050208;
  background: var(--gold);
  border-radius: 999px;
}
.skip-link:focus { left: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 215, 0, 0.18);
  background: rgba(5, 2, 10, 0.78);
  backdrop-filter: blur(16px);
}

.nav-shell {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  filter: drop-shadow(0 0 18px rgba(255, 215, 0, 0.28));
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 0.65rem 0.8rem;
  font: inherit;
  cursor: pointer;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.primary-nav a {
  color: var(--muted);
  padding: 0.7rem 0.9rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
}

.primary-nav a[aria-current="page"], .primary-nav a:hover, .primary-nav a:focus {
  color: #050208;
  background: linear-gradient(135deg, var(--gold), #ffb800);
}

.cta-small {
  border: 1px solid var(--line);
  color: var(--text) !important;
  background: rgba(106, 13, 173, 0.38);
}
.cta-small:hover, .cta-small:focus { color: #050208 !important; }

main { min-height: 70vh; }
.section, .hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 1rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  align-items: center;
  gap: 2rem;
  min-height: calc(100vh - 80px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1rem;
  padding: 0.35rem 0.75rem;
  color: var(--gold-soft);
  background: rgba(255, 215, 0, 0.08);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

h1, h2, h3 { line-height: 1.08; margin: 0 0 1rem; }
h1 {
  font-size: clamp(3.2rem, 9vw, 7.8rem);
  letter-spacing: -0.08em;
  text-transform: uppercase;
}
h2 { font-size: clamp(2.15rem, 5vw, 4.1rem); letter-spacing: -0.05em; }
h3 { font-size: 1.35rem; }

.gold-text {
  color: var(--gold);
  text-shadow: 0 0 28px rgba(255, 215, 0, 0.25);
}

.lead {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  margin: 0 0 1.5rem;
}

.hero-actions, .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 46px;
  padding: 0.78rem 1.05rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 900;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}
.button:hover, .button:focus { transform: translateY(-2px); }
.button-primary { color: #050208; background: linear-gradient(135deg, var(--gold), #ffb800); box-shadow: 0 14px 32px rgba(255, 184, 0, 0.18); }
.button-secondary { color: var(--text); border-color: var(--line); background: rgba(255, 255, 255, 0.06); }
.button-danger { color: #fff; border-color: rgba(239, 68, 68, 0.55); background: rgba(239, 68, 68, 0.16); }

.hero-card, .card, .notice, .legal-card, .project-card, .timeline-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(30, 18, 50, 0.86), rgba(10, 5, 20, 0.9));
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}

.hero-card {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  display: grid;
  place-items: center;
  isolation: isolate;
}
.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255, 215, 0, 0.18), transparent 38%), linear-gradient(rgba(7, 3, 13, 0.1), rgba(7, 3, 13, 0.84)), url('/assets/images/brick-wall.webp');
  background-size: cover;
  z-index: -2;
}
.hero-card::after {
  content: "";
  position: absolute;
  width: 82%;
  height: 82%;
  border-radius: 50%;
  background: rgba(106, 13, 173, 0.22);
  filter: blur(5px);
  z-index: -1;
}
.hero-crown {
  width: min(88%, 520px);
  filter: drop-shadow(0 34px 42px rgba(0,0,0,0.42));
  transform: none;
  transform-origin: center;
}
.floating-logo {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  border: 1px solid rgba(255, 215, 0, 0.4);
  background: rgba(0, 0, 0, 0.46);
  padding: 0.45rem;
}

.grid { display: grid; gap: 1rem; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card, .project-card, .timeline-card, .legal-card, .notice { padding: 1.35rem; }
.card-icon { font-size: 2rem; margin-bottom: 0.7rem; }
.card p, .project-card p, .timeline-card p, .legal-card p, .legal-card li { color: var(--muted); }
.card p:last-child, .project-card p:last-child { margin-bottom: 0; }

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
}
.section-heading p { max-width: 680px; color: var(--muted); margin: 0; }

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  align-items: center;
}
.image-panel {
  position: relative;
  overflow: hidden;
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.05);
  box-shadow: var(--shadow);
}
.image-panel img { border-radius: 18px; display: block; }
.badge-row { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 1rem; }
.badge {
  display: inline-flex;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(255,215,0,0.2);
  background: rgba(255, 215, 0, 0.08);
  color: var(--gold-soft);
  font-size: 0.85rem;
  font-weight: 800;
}

.page-hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 1rem 2rem;
}
.page-hero .lead { margin-bottom: 0; }

.project-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.project-card .project-top {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 0.8rem;
}
.project-card .project-logo {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.35);
}
.project-card .actions { margin-top: auto; }

.status {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 1rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.status-live { color: #071407; background: #73f7a2; }
.status-build { color: #130d00; background: var(--gold); }
.status-soon { color: #fbe9ff; background: rgba(106, 13, 173, 0.74); }

.topgg-widget {
  width: 100%;
  max-width: 420px;
  min-height: 110px;
  border-radius: 14px;
  background: rgba(255,255,255,0.08);
}

.legal-card {
  max-width: 920px;
  margin: 0 auto 1rem;
}
.legal-card h2 { font-size: 2.2rem; }
.legal-card h3 { margin-top: 1.7rem; color: var(--gold-soft); }
.legal-card ul { padding-left: 1.25rem; }

.site-footer {
  border-top: 1px solid rgba(255, 215, 0, 0.18);
  background: rgba(0, 0, 0, 0.56);
}
.footer-shell {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1rem;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 1rem;
  align-items: center;
}
.footer-brand { display: flex; align-items: center; gap: 0.8rem; }
.footer-brand img { width: 44px; height: 44px; border-radius: 50%; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.85rem; }
.footer-links a { color: var(--muted); font-weight: 800; }
.footer-bottom { max-width: var(--max-width); margin: 0 auto; padding: 0 1rem 1.5rem; color: rgba(247,242,255,0.7); font-size: 0.92rem; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: 74px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.85rem;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(5, 2, 10, 0.96);
    box-shadow: var(--shadow);
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav a { text-align: center; }
  .hero, .split { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: 3rem; }
  .hero-card { min-height: 390px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .section-heading { display: block; }
  .footer-shell { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
}

@media (max-width: 520px) {
  .brand span { max-width: 170px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .section, .hero, .page-hero { padding-left: 0.85rem; padding-right: 0.85rem; }
  h1 { font-size: clamp(2.8rem, 18vw, 4.8rem); }
  .hero-card { min-height: 300px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.001ms !important; animation-duration: 0.001ms !important; }
}

/* Final production polish: tighter hero balance, cleaner crown treatment, and smoother interactions. */
.site-header {
  background: rgba(5, 2, 10, 0.86);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.24);
}

.nav-shell {
  padding-block: 0.72rem;
}

.hero {
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.88fr);
  gap: clamp(2rem, 5vw, 4rem);
  min-height: calc(100svh - 74px);
  padding-top: clamp(4rem, 7vw, 6rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.hero h1 {
  max-width: 760px;
  text-wrap: balance;
  text-shadow: 0 22px 42px rgba(0, 0, 0, 0.28);
}

.hero .lead {
  max-width: 670px;
}

.hero-card {
  justify-self: end;
  width: min(100%, 560px);
  min-height: clamp(390px, 44vw, 500px);
  border-color: rgba(255, 215, 0, 0.34);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero-card::before {
  background:
    radial-gradient(circle at center, rgba(255, 215, 0, 0.15), transparent 34%),
    radial-gradient(circle at center, rgba(106, 13, 173, 0.26), transparent 55%),
    linear-gradient(rgba(7, 3, 13, 0.04), rgba(7, 3, 13, 0.82)),
    url('/assets/images/brick-wall.webp');
  background-size: cover;
  background-position: center;
}

.hero-card::after {
  width: 72%;
  height: 72%;
  background: radial-gradient(circle, rgba(106, 13, 173, 0.28), rgba(106, 13, 173, 0.12) 45%, transparent 72%);
  filter: blur(3px);
  opacity: 0.92;
}

.hero-crown {
  width: min(88%, 520px);
  filter: drop-shadow(0 34px 42px rgba(0,0,0,0.42));
  transform: none;
  transform-origin: center;
}

.floating-logo {
  width: 78px;
  height: 78px;
  right: 1.15rem;
  bottom: 1.15rem;
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.46),
    0 0 0 6px rgba(0, 0, 0, 0.2);
}

.eyebrow {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.button {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.button-primary {
  box-shadow:
    0 16px 34px rgba(255, 184, 0, 0.20),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.button-secondary {
  backdrop-filter: blur(10px);
}

.card, .project-card, .timeline-card, .legal-card, .notice, .image-panel {
  box-shadow:
    0 24px 62px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

@media (prefers-reduced-motion: no-preference) {
  .hero-card, .button, .primary-nav a, .floating-logo {
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
  }

  .hero-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 215, 0, 0.48);
  }

  .floating-logo:hover {
    transform: translateY(-2px) scale(1.03);
  }
}

@media (max-width: 860px) {
  .hero {
    gap: 2rem;
    padding-top: 3.25rem;
  }

  .hero-card {
    justify-self: stretch;
    width: 100%;
    min-height: 360px;
  }

  .hero-crown {
  width: min(88%, 520px);
  filter: drop-shadow(0 34px 42px rgba(0,0,0,0.42));
  transform: none;
  transform-origin: center;
}

  .floating-logo {
    width: 68px;
    height: 68px;
  }
}

@media (max-width: 520px) {
  .hero-actions {
    align-items: stretch;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-card {
    min-height: 310px;
  }
}

/* Restored original shiny crown with subtle baked-in straightening. */
