:root {
  --bg: #050407;
  --bg-soft: #0c0811;
  --panel: rgba(14, 10, 18, 0.82);
  --panel-strong: #120b17;
  --text: #fff8ff;
  --muted: #cfc2d7;
  --line: rgba(255, 255, 255, 0.13);
  --red: #ff174d;
  --red-dark: #9e062a;
  --cyan: #31ecff;
  --magenta: #f42bd0;
  --violet: #8e4cff;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 14% 12%, rgba(244, 43, 208, 0.16), transparent 30%),
    radial-gradient(circle at 84% 18%, rgba(49, 236, 255, 0.13), transparent 28%),
    linear-gradient(180deg, #050407 0%, #0c0610 45%, #050407 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body.nav-open {
  overflow: hidden;
}

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

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  width: 100%;
  padding: 14px clamp(18px, 4vw, 54px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 4, 7, 0.72);
  backdrop-filter: blur(18px);
  transition: background 180ms ease, border-color 180ms ease;
}

.site-header > * {
  min-width: 0;
}

.site-header.is-scrolled {
  border-color: rgba(49, 236, 255, 0.18);
  background: rgba(5, 4, 7, 0.93);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
  font-weight: 900;
  letter-spacing: 0;
}

.brand img {
  width: 54px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(49, 236, 255, 0.38));
}

.brand span {
  font-size: 0.92rem;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: clamp(10px, 1.5vw, 24px);
}

.site-nav a {
  position: relative;
  padding: 8px 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
  transition: color 160ms ease;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--red), var(--cyan));
  content: "";
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 160ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: #ffffff;
}

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

.header-discord,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.header-discord {
  background: linear-gradient(135deg, var(--red), var(--magenta));
  box-shadow: 0 12px 30px rgba(255, 23, 77, 0.25);
}

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

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  color: white;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 88svh;
  overflow: hidden;
  padding: 132px clamp(20px, 5vw, 70px) 58px;
  isolation: isolate;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(5, 4, 7, 0.96) 0%, rgba(5, 4, 7, 0.72) 42%, rgba(5, 4, 7, 0.28) 100%),
    linear-gradient(180deg, rgba(5, 4, 7, 0.35) 0%, rgba(5, 4, 7, 0.88) 100%);
  content: "";
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 24%;
  background: linear-gradient(180deg, transparent, var(--bg));
  content: "";
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.18) contrast(1.08);
  transform: scale(1.04);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(260px, 0.78fr);
  align-items: center;
  gap: clamp(28px, 5vw, 74px);
  max-width: var(--max);
  min-height: calc(88svh - 190px);
  margin: 0 auto;
}

.hero-copy {
  max-width: 740px;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(3.4rem, 8vw, 7.8rem);
  font-weight: 1000;
  line-height: 0.88;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 0 26px rgba(255, 23, 77, 0.4), 0 0 42px rgba(49, 236, 255, 0.28);
}

h1 span {
  display: block;
}

.hero-text {
  max-width: 650px;
  margin: 26px 0 0;
  color: #f1e8f5;
  font-size: clamp(1.04rem, 1.55vw, 1.28rem);
}

.hero-actions,
.shop-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--red), var(--magenta));
  box-shadow: 0 18px 38px rgba(255, 23, 77, 0.27);
}

.btn-ghost {
  border-color: rgba(49, 236, 255, 0.45);
  background: rgba(49, 236, 255, 0.07);
  color: #f7fdff;
}

.btn-ghost:hover {
  border-color: var(--cyan);
  box-shadow: 0 14px 35px rgba(49, 236, 255, 0.13);
}

.hero-logo {
  justify-self: center;
  width: min(420px, 92%);
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(49, 236, 255, 0.22);
  border-radius: var(--radius);
  background: radial-gradient(circle at center, rgba(244, 43, 208, 0.16), rgba(5, 4, 7, 0.18) 64%);
  box-shadow: var(--shadow), inset 0 0 60px rgba(49, 236, 255, 0.08);
}

.hero-logo img {
  width: 100%;
  filter: drop-shadow(0 0 22px rgba(49, 236, 255, 0.36)) drop-shadow(0 0 18px rgba(244, 43, 208, 0.26));
}

.quick-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  max-width: var(--max);
  margin: -28px auto 0;
  padding: 0 clamp(20px, 5vw, 0px);
  position: relative;
  z-index: 5;
}

.quick-panel article {
  min-height: 170px;
  padding: 26px;
  border: 1px solid var(--line);
  background: rgba(11, 8, 15, 0.91);
  box-shadow: var(--shadow);
}

.quick-panel span {
  color: var(--red);
  font-weight: 1000;
}

.quick-panel h2 {
  margin: 10px 0 8px;
  font-size: 1.25rem;
}

.quick-panel p,
.rule-card p,
.timeline p,
.info-list p,
.server-card p,
.shop-content p,
.shop-items p,
.site-footer p {
  margin: 0;
  color: var(--muted);
}

.section {
  padding: clamp(76px, 9vw, 120px) clamp(20px, 5vw, 70px);
}

.section-dark {
  background:
    linear-gradient(180deg, rgba(5, 4, 7, 0), rgba(255, 23, 77, 0.045) 45%, rgba(5, 4, 7, 0)),
    var(--bg);
}

.section-heading {
  max-width: var(--max);
  margin: 0 auto 34px;
}

.section-heading h2,
.shop-content h2 {
  margin: 0;
  font-size: clamp(2.1rem, 4.5vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.section-heading > p:last-child,
.shop-content > p {
  max-width: 680px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.04rem;
}

.rule-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: var(--max);
  margin: 0 auto;
}

.rule-card {
  min-height: 245px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
}

.rule-card.accent {
  border-color: rgba(255, 23, 77, 0.3);
  background: linear-gradient(180deg, rgba(255, 23, 77, 0.1), rgba(255, 255, 255, 0.025));
}

.rule-card h3,
.timeline h3,
.info-list h3,
.server-card h3,
.shop-items h3 {
  margin: 0 0 12px;
  font-size: 1.1rem;
}

.section-split {
  background:
    linear-gradient(90deg, rgba(49, 236, 255, 0.045), transparent 38%, rgba(244, 43, 208, 0.07)),
    #08050c;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  max-width: var(--max);
  margin: 0 auto;
  border-top: 1px solid rgba(49, 236, 255, 0.35);
}

.timeline article {
  position: relative;
  padding: 28px 22px 8px 0;
}

.timeline article + article {
  padding-left: 22px;
}

.timeline span {
  position: absolute;
  top: -7px;
  left: 0;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 22px rgba(49, 236, 255, 0.8);
}

.timeline article + article span {
  left: 22px;
}

.info-section {
  background: #07050a;
}

.info-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 20px;
  max-width: var(--max);
  margin: 0 auto;
}

.info-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.info-list article,
.server-card,
.shop-items article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.server-card {
  align-self: stretch;
  background:
    linear-gradient(180deg, rgba(49, 236, 255, 0.08), rgba(244, 43, 208, 0.08)),
    var(--panel-strong);
}

.server-card img {
  width: 168px;
  margin: 0 auto 18px;
  filter: drop-shadow(0 0 18px rgba(49, 236, 255, 0.34));
}

.server-card .btn {
  width: 100%;
  margin-top: 24px;
}

.shop-section {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(280px, 0.68fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  padding: clamp(78px, 10vw, 128px) clamp(20px, 5vw, 70px);
  background:
    linear-gradient(135deg, rgba(255, 23, 77, 0.16), rgba(49, 236, 255, 0.06) 48%, rgba(244, 43, 208, 0.16)),
    #0a060d;
}

.shop-content,
.shop-items {
  max-width: 620px;
  min-width: 0;
}

.shop-content {
  justify-self: end;
}

.shop-items {
  display: grid;
  gap: 14px;
}

.shop-items span {
  color: var(--cyan);
  font-size: 0.75rem;
  font-weight: 1000;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 32px clamp(20px, 5vw, 70px);
  border-top: 1px solid var(--line);
  background: #040306;
}

.site-footer img {
  width: 92px;
  filter: drop-shadow(0 0 14px rgba(49, 236, 255, 0.3));
}

.site-footer div {
  display: flex;
  gap: 18px;
  color: var(--cyan);
  font-weight: 900;
}

@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: auto 1fr auto auto;
  }

  .nav-toggle {
    display: block;
    grid-column: 3;
    justify-self: end;
  }

  .site-nav {
    grid-column: 1 / -1;
  }

  .header-discord {
    grid-column: 4;
  }

  .site-nav {
    position: fixed;
    top: 75px;
    right: 16px;
    left: 16px;
    display: grid;
    justify-content: stretch;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(7, 5, 10, 0.98);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 160ms ease, transform 160ms ease;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    padding: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .site-nav a::after {
    display: none;
  }

  .hero-grid,
  .shop-section {
    grid-template-columns: 1fr;
  }

  .hero-logo {
    width: min(330px, 82vw);
  }

  .rule-grid,
  .timeline {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline {
    border-top: 0;
    gap: 16px;
  }

  .timeline article,
  .timeline article + article {
    padding: 22px;
    border: 1px solid rgba(49, 236, 255, 0.2);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.035);
  }

  .timeline span,
  .timeline article + article span {
    top: 18px;
    left: 18px;
  }

  .timeline h3 {
    padding-left: 24px;
  }

  .shop-content {
    justify-self: start;
  }
}

@media (max-width: 760px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    padding: 10px 14px;
  }

  .brand span {
    display: none;
  }

  .brand img {
    width: 48px;
    height: 40px;
  }

  .header-discord {
    display: none;
  }

  .nav-toggle {
    grid-column: 3;
    width: 42px;
    height: 42px;
  }

  .hero {
    min-height: auto;
    padding: 112px 18px 48px;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(5, 4, 7, 0.86) 0%, rgba(5, 4, 7, 0.72) 50%, rgba(5, 4, 7, 0.96) 100%),
      rgba(5, 4, 7, 0.35);
  }

  .hero-grid {
    min-height: 0;
  }

  h1 {
    font-size: clamp(2.75rem, 12vw, 3.35rem);
  }

  .hero-actions,
  .shop-actions {
    display: grid;
  }

  .btn {
    width: 100%;
  }

  .quick-panel,
  .rule-grid,
  .timeline,
  .info-layout,
  .info-list {
    grid-template-columns: 1fr;
  }

  .quick-panel {
    margin-top: 0;
    padding: 0 18px;
  }

  .quick-panel article {
    min-height: auto;
  }

  .section,
  .shop-section {
    padding-right: 18px;
    padding-left: 18px;
  }

  .rule-card {
    min-height: auto;
  }

  .site-footer {
    justify-content: center;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
