:root {
  color-scheme: dark;
  --bg: #080605;
  --panel: #17100d;
  --panel-2: #241613;
  --text: #fff8ee;
  --muted: #c8b9a5;
  --line: rgba(255, 255, 255, 0.12);
  --gold: #f5c15b;
  --red: #d5382f;
  --green: #8fd16b;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 12%, rgba(213, 56, 47, 0.18), transparent 28%),
    radial-gradient(circle at 84% 20%, rgba(245, 193, 91, 0.12), transparent 30%),
    linear-gradient(180deg, #080605, #120b09 42%, #070504);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.topbar {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px clamp(18px, 4vw, 64px);
  background: rgba(8, 6, 5, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 190px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(245, 193, 91, 0.55);
  background: linear-gradient(135deg, #1b0d09, #9d241d 48%, #f5c15b);
  border-radius: 8px;
  color: #fff4d4;
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.4vw, 30px);
  color: var(--muted);
  font-size: 14px;
}

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

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  background: var(--gold);
  border-radius: 8px;
  color: #1a0d07;
  font-weight: 900;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 140px clamp(18px, 5vw, 80px) 72px;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image:
    linear-gradient(90deg, rgba(8, 6, 5, 0.84), rgba(8, 6, 5, 0.28)),
    url("https://unsplash.com/photos/W53FwtFtoM0/download?force=true&w=2200");
  background-position: center 42%;
  background-size: cover;
  transform: scale(1.02);
}

.hero-overlay {
  background:
    linear-gradient(180deg, rgba(8, 6, 5, 0.18), #080605 98%),
    radial-gradient(circle at 72% 36%, rgba(245, 193, 91, 0.15), transparent 34%),
    radial-gradient(circle at 22% 74%, rgba(213, 56, 47, 0.22), transparent 34%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(54px, 9vw, 112px);
  line-height: 0.9;
  letter-spacing: 0;
  text-shadow: 0 0 34px rgba(213, 56, 47, 0.42);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
}

.hero-copy {
  max-width: 650px;
  color: #f0e0ce;
  font-size: clamp(17px, 2vw, 21px);
}

.hero-actions,
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button.primary {
  border-color: rgba(245, 193, 91, 0.55);
  background: linear-gradient(135deg, var(--gold), #d63a31);
  color: #1b1308;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.button.full {
  width: 100%;
}

.hero-stats {
  margin: 38px 0 0;
}

.hero-stats div {
  min-width: 132px;
  padding: 14px 16px;
  background: rgba(23, 16, 13, 0.82);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.hero-stats dt {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.hero-stats dd {
  margin: 4px 0 0;
  font-size: 20px;
  font-weight: 900;
}

.section {
  padding: 84px clamp(18px, 5vw, 80px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.info-grid,
.download-grid,
.social-grid {
  display: grid;
  gap: 18px;
}

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

.feature-card,
.download-card,
.patch {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent),
    linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.feature-card,
.download-card,
.patch {
  padding: 24px;
}

.feature-card p,
.download-card p,
.community p,
.patch p {
  color: var(--muted);
}

.icon-badge {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  background: rgba(213, 56, 47, 0.14);
  border: 1px solid rgba(245, 193, 91, 0.36);
  border-radius: 8px;
  color: var(--gold);
}

.news-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 18px;
  margin-top: 18px;
}

.patch span,
.tag {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.patch strong {
  display: block;
  margin-bottom: 10px;
  font-size: 26px;
}

.timeline {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.timeline li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  background: var(--panel);
}

.timeline time {
  color: var(--gold);
  font-weight: 900;
}

.character-section {
  background:
    linear-gradient(180deg, rgba(8, 6, 5, 0.55), rgba(8, 6, 5, 0.92)),
    url("https://images.unsplash.com/photo-1773975345930-e2ab9d33b8ae?auto=format&fit=crop&w=2200&q=85");
  background-position: center;
  background-size: cover;
}

.character-carousel {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  gap: 14px;
  align-items: center;
}

.carousel-button {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(245, 193, 91, 0.34);
  border-radius: 8px;
  background: rgba(23, 16, 13, 0.86);
  color: var(--gold);
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.carousel-button:hover,
.carousel-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(245, 193, 91, 0.68);
  background: rgba(64, 29, 21, 0.92);
}

.carousel-button svg {
  width: 26px;
  height: 26px;
}

.class-viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
}

.class-viewport::-webkit-scrollbar {
  display: none;
}

.class-viewport.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}

.class-grid {
  display: flex;
  gap: 18px;
}

.class-card {
  flex: 0 0 clamp(260px, 28vw, 340px);
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  border: 1px solid rgba(245, 193, 91, 0.24);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
  scroll-snap-align: start;
}

.class-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 8%, rgba(8, 6, 5, 0.88) 76%),
    radial-gradient(circle at 50% 22%, rgba(245, 193, 91, 0.22), transparent 42%);
}

.class-card > * {
  position: relative;
  z-index: 1;
}

.class-card span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.class-card p {
  margin-bottom: 0;
  color: #e4d4c1;
}

.blade-master {
  background: linear-gradient(135deg, #431610, #15100f);
}

.kungfu-master {
  background: linear-gradient(135deg, #523710, #15100f);
}

.force-master {
  background: linear-gradient(135deg, #103344, #15100f);
}

.destroyer {
  background: linear-gradient(135deg, #4b2115, #15100f);
}

.assassin {
  background: linear-gradient(135deg, #241331, #15100f);
}

.summoner {
  background: linear-gradient(135deg, #174326, #15100f);
}

.blade-dancer {
  background: linear-gradient(135deg, #1c3b54, #15100f);
}

.warlock {
  background: linear-gradient(135deg, #3b1847, #15100f);
}

.soul-fighter {
  background: linear-gradient(135deg, #244c4a, #15100f);
}

.gunslinger {
  background: linear-gradient(135deg, #4a2a13, #15100f);
}

.warden {
  background: linear-gradient(135deg, #2f3646, #15100f);
}

.archer {
  background: linear-gradient(135deg, #33451c, #15100f);
}

.astromancer {
  background: linear-gradient(135deg, #18284e, #15100f);
}

.dual-blade {
  background: linear-gradient(135deg, #4d1722, #15100f);
}

.musician {
  background: linear-gradient(135deg, #4a2b57, #15100f);
}

.download-grid {
  grid-template-columns: 1.2fr repeat(2, minmax(0, 0.9fr));
}

.download-card.recommended {
  border-color: rgba(245, 193, 91, 0.44);
}

.community {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
}

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

.social {
  min-height: 150px;
  display: grid;
  place-items: center;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: #fff;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    filter 160ms ease;
}

.social:hover,
.social:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(245, 193, 91, 0.44);
  filter: brightness(1.08);
}

.social .brand-icon {
  width: 58px;
  height: 58px;
  fill: currentColor;
  stroke: none;
}

.social.discord {
  background: linear-gradient(135deg, #3b245f, #17100d);
}

.social.facebook {
  background: linear-gradient(135deg, #123f73, #17100d);
}

.social.tiktok {
  background: linear-gradient(135deg, #2a1224, #3a1510);
}

.quick-links {
  position: fixed;
  z-index: 30;
  right: 18px;
  top: 50%;
  display: grid;
  gap: 10px;
  transform: translateY(-50%);
}

.quick-link {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(245, 193, 91, 0.28);
  border-radius: 8px;
  background: rgba(23, 16, 13, 0.88);
  color: #fff;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(12px);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    filter 160ms ease;
}

.quick-link:hover,
.quick-link:focus-visible {
  transform: translateX(-2px);
  border-color: rgba(245, 193, 91, 0.68);
  filter: brightness(1.1);
}

.quick-link svg {
  width: 24px;
  height: 24px;
}

.quick-link .brand-icon {
  fill: currentColor;
  stroke: none;
}

.quick-link.discord {
  background: linear-gradient(135deg, #5865f2, #251b35);
}

.quick-link.facebook {
  background: linear-gradient(135deg, #1877f2, #152035);
}

.quick-link.tiktok {
  background: linear-gradient(135deg, #ff2d55, #121212 55%, #25f4ee);
}

.quick-link.download {
  background: linear-gradient(135deg, #f5c15b, #d5382f);
  color: #1b1308;
}

.quick-link.patch-link {
  background: linear-gradient(135deg, #8056d6, #241331);
}

.quick-link.guide {
  background: linear-gradient(135deg, #2f6f7d, #17100d);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(18px, 5vw, 80px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 920px) {
  .topbar {
    position: sticky;
    flex-wrap: wrap;
  }

  .brand {
    min-width: 0;
  }

  .nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero {
    min-height: 86vh;
    padding-top: 76px;
  }

  .info-grid,
  .news-panel,
  .download-grid,
  .community,
  .social-grid {
    grid-template-columns: 1fr;
  }

  .character-carousel {
    grid-template-columns: 52px 52px 1fr;
  }

  .class-viewport {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .class-card {
    flex-basis: min(82vw, 340px);
  }
}

@media (max-width: 560px) {
  .nav-cta {
    display: none;
  }

  .hero {
    padding-bottom: 44px;
  }

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

  .section {
    padding-top: 58px;
    padding-bottom: 58px;
  }

  .quick-links {
    right: 10px;
    gap: 8px;
  }

  .quick-link {
    width: 42px;
    height: 42px;
  }

  .quick-link svg {
    width: 21px;
    height: 21px;
  }

  .timeline li,
  .footer {
    flex-direction: column;
  }
}
