:root {
  --bg: #06070a;
  --bg-soft: #0f131b;
  --panel: rgba(16, 21, 30, 0.9);
  --panel-2: rgba(21, 28, 40, 0.86);
  --panel-3: rgba(11, 15, 23, 0.96);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(220, 176, 110, 0.26);
  --text: #f4f1e8;
  --muted: #b2b9c6;
  --muted-2: #8d95a4;
  --gold: #dcb06e;
  --gold-strong: #f0c88c;
  --blue: #6ea6ff;
  --danger: #ff7967;
  --success: #74d890;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --max: 1480px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  font-family: "Sora", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(110, 166, 255, 0.14), transparent 24%),
    radial-gradient(circle at 85% 12%, rgba(220, 176, 110, 0.18), transparent 24%),
    linear-gradient(180deg, #05070a 0%, #0a0e14 30%, #0a1019 62%, #070a10 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -4;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, black 26%, transparent 88%);
  opacity: 0.26;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background:
    linear-gradient(115deg, rgba(220, 176, 110, 0) 20%, rgba(220, 176, 110, 0.08) 38%, rgba(220, 176, 110, 0) 56%),
    linear-gradient(290deg, rgba(110, 166, 255, 0) 24%, rgba(110, 166, 255, 0.07) 44%, rgba(110, 166, 255, 0) 62%);
  mix-blend-mode: screen;
  animation: sweep 16s ease-in-out infinite alternate;
}

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

img {
  max-width: 100%;
}

p,
li {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.62;
  color: var(--muted);
}

h1,
h2,
h3,
h4,
.display,
.hero-kicker strong,
.brand-copy strong,
.stat-number,
.info-value strong,
.timeline-step strong {
  margin: 0;
  font-family: "Bebas Neue", sans-serif;
  font-weight: 400;
  letter-spacing: 0.03em;
}

.ambient {
  position: fixed;
  z-index: -2;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(90px);
  opacity: 0.75;
  animation: drift 18s ease-in-out infinite;
}

.ambient-a {
  top: 12%;
  right: -140px;
  width: 380px;
  height: 380px;
  background: rgba(220, 176, 110, 0.16);
}

.ambient-b {
  left: -140px;
  bottom: -140px;
  width: 420px;
  height: 420px;
  background: rgba(110, 166, 255, 0.12);
  animation-duration: 22s;
}

.container {
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(7, 10, 15, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.topbar-inner,
.brand,
.nav,
.topbar-actions,
.hero-actions,
.status-pill,
.footer-row,
.footer-meta,
.page-ribbon,
.nav-toggle,
.info-row,
.server-live-row,
.metric-row,
.faq-trigger {
  display: flex;
  align-items: center;
}

.topbar-inner,
.footer-row {
  justify-content: space-between;
}

.topbar-inner {
  gap: 24px;
  padding: 16px 0;
}

.brand {
  gap: 14px;
  min-width: max-content;
}

.brand-mark {
  width: 58px;
  height: 58px;
  min-width: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(220, 176, 110, 0.22), rgba(110, 166, 255, 0.16));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 26px rgba(255, 255, 255, 0.06);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font-size: 1.16rem;
}

.brand-copy small,
.eyebrow,
.status-note,
.hero-kicker span,
.mini-label {
  color: var(--gold-strong);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav {
  gap: 22px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
}

.nav a {
  position: relative;
  padding: 8px 0;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: scaleX(0);
  transition: transform 180ms ease;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
}

.nav a:hover::after,
.nav a.active::after {
  transform: scaleX(1);
}

.topbar-actions {
  gap: 12px;
}

.nav-toggle {
  display: none;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  margin: 0 auto;
  border-radius: 999px;
  background: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #111318;
  background: linear-gradient(135deg, #dcb06e, #f0c88c);
  box-shadow: 0 16px 36px rgba(220, 176, 110, 0.26);
}

.btn-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.11);
}

.btn-secondary:hover {
  border-color: var(--line-strong);
}

.hero,
.page-hero,
.section {
  position: relative;
}

.hero {
  padding: 34px 0 18px;
}

.page-hero {
  padding: 24px 0 8px;
}

.section {
  padding: 18px 0 24px;
}

.hero-layout,
.split-grid,
.server-grid,
.faction-grid,
.rules-grid,
.faq-grid,
.footer-grid,
.stats-grid,
.onboarding-grid,
.overview-grid,
.feature-grid,
.sub-feature-grid,
.mosaic-grid {
  display: grid;
  gap: 18px;
}

.hero-layout {
  grid-template-columns: 1.2fr 0.92fr;
  align-items: stretch;
}

.hero-copy,
.hero-visual,
.page-hero-shell,
.panel,
.faction-card,
.rule-card,
.faq-item,
.cta-shell,
.mosaic-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(18, 24, 35, 0.94), rgba(10, 14, 22, 0.95));
  box-shadow: var(--shadow);
}

.hero-copy,
.hero-visual,
.page-hero-shell,
.panel,
.faction-card,
.rule-card,
.faq-item,
.cta-shell,
.mosaic-card {
  padding: 24px;
}

.hero-copy::before,
.hero-visual::before,
.page-hero-shell::before,
.panel::before,
.faction-card::before,
.rule-card::before,
.faq-item::before,
.cta-shell::before,
.mosaic-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(220, 176, 110, 0.08), transparent 32%, transparent 68%, rgba(110, 166, 255, 0.06));
  pointer-events: none;
}

.hero-copy {
  display: grid;
  gap: 16px;
  padding: 28px;
}

.hero-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.status-pill {
  gap: 10px;
  width: fit-content;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 8px rgba(116, 216, 144, 0.14);
}

.status-dot.is-offline {
  background: var(--danger);
  box-shadow: 0 0 0 8px rgba(255, 121, 103, 0.14);
}

.hero-copy h1,
.page-hero-shell h1 {
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 0.98;
}

.lead,
.page-hero-shell p {
  max-width: 70ch;
  font-size: 0.9rem;
  line-height: 1.6;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 10px;
}

.stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.stat-block {
  padding: 14px 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
}

.stat-number {
  display: block;
  font-size: clamp(1.18rem, 1.6vw, 1.7rem);
  line-height: 0.98;
  margin-bottom: 8px;
}

.hero-visual {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 14px;
  min-height: 100%;
  background:
    linear-gradient(180deg, rgba(16, 22, 31, 0.92), rgba(10, 15, 23, 0.98)),
    radial-gradient(circle at top right, rgba(220, 176, 110, 0.18), transparent 28%);
}

.hero-visual .display {
  font-size: clamp(1.45rem, 2vw, 2.1rem);
  line-height: 1;
}

.visual-grid,
.feature-grid,
.sub-feature-grid,
.overview-grid,
.faction-grid,
.rules-grid,
.faq-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.visual-card,
.feature-card,
.sub-feature-card,
.overview-card,
.info-card,
.server-live-card,
.timeline-step {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.035);
}

.visual-card strong,
.feature-card h3,
.sub-feature-card h3,
.overview-card h3,
.info-card strong,
.server-live-card strong,
.timeline-step strong,
.faction-card h2,
.rule-card h2,
.faq-item h2 {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
}

.visual-card strong,
.info-value strong,
.server-live-card strong {
  font-size: 1.18rem;
  font-family: "Bebas Neue", sans-serif;
}

.section-head {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.section-head h2 {
  font-size: clamp(1.42rem, 2.2vw, 2.05rem);
  line-height: 1.02;
}

.section-head p {
  max-width: 72ch;
}

.feature-card,
.sub-feature-card,
.overview-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(16, 21, 30, 0.88), rgba(12, 16, 23, 0.96));
}

.feature-card h3,
.sub-feature-card h3,
.overview-card h3,
.faq-item h2,
.rule-card h2,
.faction-card h2 {
  font-size: 1.16rem;
  font-family: "Bebas Neue", sans-serif;
  line-height: 1.02;
}

.split-grid {
  grid-template-columns: 0.92fr 1.08fr;
}

.info-stack,
.timeline-stack,
.detail-list,
.bullet-stack,
.rule-list,
.page-ribbon {
  display: grid;
  gap: 10px;
}

.info-row {
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.info-row:last-child {
  border-bottom: 0;
}

.info-row span:first-child,
.metric-label,
.faq-answer strong {
  color: var(--muted-2);
}

.timeline-step {
  display: grid;
  gap: 6px;
}

.timeline-step strong {
  font-size: 1rem;
}

.timeline-step p,
.feature-card p,
.sub-feature-card p,
.overview-card p,
.faction-card p,
.rule-card p,
.faq-item p {
  color: var(--muted);
}

.server-grid {
  grid-template-columns: 1.08fr 0.92fr;
}

.server-live-row {
  gap: 12px;
  flex-wrap: wrap;
}

.server-live-card {
  min-width: 150px;
  flex: 1 1 180px;
}

.page-ribbon {
  margin-top: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.page-ribbon > span {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--text);
}

.page-ribbon small {
  color: var(--muted-2);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.page-ribbon strong {
  display: inline-block;
  font-size: 1rem;
  line-height: 1.1;
  white-space: nowrap;
}

.metric-row {
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.metric-row:last-child {
  border-bottom: 0;
}

.metric-row strong {
  font-size: 0.96rem;
}

.progress-shell {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.progress {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--gold));
}

.faction-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.faction-type,
.rule-tag {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
  color: var(--gold-strong);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.detail-list,
.rule-list {
  padding-left: 18px;
}

.detail-list li,
.rule-list li {
  color: var(--muted);
}

.rules-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.faq-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.faq-item {
  padding: 0;
}

.faq-trigger {
  width: 100%;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  list-style: none;
  cursor: pointer;
}

.faq-trigger::-webkit-details-marker {
  display: none;
}

.faq-answer {
  padding: 0 20px 18px;
}

.faq-item[open] .faq-trigger {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cta-shell {
  display: grid;
  grid-template-columns: 1.1fr auto;
  gap: 16px;
  align-items: end;
}

.footer {
  padding: 16px 0 28px;
}

.footer-row {
  gap: 24px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(9, 12, 18, 0.78);
}

.footer-row strong {
  display: block;
  margin-bottom: 8px;
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.08rem;
}

.footer-meta {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.footer-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.tilt-card {
  transform-style: preserve-3d;
  transition: transform 180ms ease;
}

@keyframes sweep {
  from {
    transform: translate3d(-2%, 0, 0);
  }
  to {
    transform: translate3d(2%, -2%, 0);
  }
}

@keyframes drift {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(18px, -14px, 0) scale(1.05);
  }
}

@media (max-width: 1120px) {
  .hero-layout,
  .split-grid,
  .server-grid,
  .cta-shell {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .sub-feature-grid,
  .overview-grid,
  .faction-grid,
  .rules-grid,
  .faq-grid,
  .visual-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .container {
    width: min(calc(100% - 28px), var(--max));
  }

  .topbar-inner {
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: flex;
    margin-left: auto;
  }

  .nav {
    display: none;
    width: 100%;
    grid-auto-flow: row;
    gap: 8px;
    padding-top: 8px;
  }

  .nav.is-open {
    display: grid;
  }

  .topbar-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .hero-copy,
  .hero-visual,
  .page-hero-shell,
  .panel,
  .faction-card,
  .rule-card,
  .faq-trigger,
  .faq-answer,
  .cta-shell,
  .mosaic-card {
    padding-left: 22px;
    padding-right: 22px;
  }

  .hero-copy h1,
  .page-hero-shell h1 {
    font-size: clamp(1.55rem, 7vw, 2.2rem);
  }

  .page-ribbon,
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .topbar-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .hero-actions {
    display: grid;
  }

  .footer-row {
    padding: 20px;
  }
}
