:root {
  color-scheme: dark;
  --bg: #0a0a0f;
  --bg-elevated: #12121b;
  --bg-card: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f5f5f7;
  --text-muted: #a0a0ad;
  --text-dim: #6c6c7a;
  --accent: #e94560;
  --accent-2: #ff7b6b;
  --accent-warm: #f7c531;
  --accent-cool: #69ccf0;
  --accent-grass: #81c784;
  --max-w: 1120px;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 80px rgba(233, 69, 96, 0.18);
  --gradient-accent: linear-gradient(135deg, #e94560 0%, #ff7b6b 100%);
  --gradient-gold: linear-gradient(135deg, #f7c531 0%, #ff8a3d 100%);
  --gradient-bg: radial-gradient(ellipse at top, #1a1a2e 0%, #0a0a0f 60%);
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text);
}

p {
  margin: 0;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(233, 69, 96, 0.1);
  border: 1px solid rgba(233, 69, 96, 0.3);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.section {
  padding: 96px 0;
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}

.section-head h2 {
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 16px;
}

.section-head p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 15, 0.7);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  font-size: 0.95rem;
}

.brand img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.nav-links a {
  transition: color 0.15s ease;
}

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

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gradient-accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 8px 16px;
  border-radius: 999px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(233, 69, 96, 0.4);
}

.hero {
  position: relative;
  padding: 80px 0 96px;
  background: var(--gradient-bg);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(233, 69, 96, 0.18), transparent 50%),
    radial-gradient(circle at 80% 30%, rgba(105, 204, 240, 0.12), transparent 50%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.hero-copy h1 .grad {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.hero-tagline {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 36px;
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #000;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 12px 20px;
  min-width: 180px;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.store-badge:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.store-badge svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.store-badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.store-badge-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #aaa;
}

.store-badge-name {
  font-size: 1.05rem;
  font-weight: 700;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.hero-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-meta-item .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-grass);
  box-shadow: 0 0 8px var(--accent-grass);
}

.hero-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: 10px;
  perspective: 1000px;
}

.hero-tile {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #1a1a2e;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
}

.hero-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.hero-tile:hover img {
  transform: scale(1.08);
}

.hero-tile.t1 { grid-column: 1; grid-row: 1 / 3; transform: translateY(20px) rotate(-2deg); }
.hero-tile.t2 { grid-column: 2; grid-row: 1 / 4; transform: translateY(-10px); border-color: rgba(233, 69, 96, 0.4); }
.hero-tile.t3 { grid-column: 3; grid-row: 1 / 3; transform: translateY(30px) rotate(2deg); }
.hero-tile.t4 { grid-column: 1; grid-row: 3 / 5; transform: translateY(8px) rotate(-1deg); }
.hero-tile.t5 { grid-column: 2; grid-row: 4; transform: translateY(-20px); }
.hero-tile.t6 { grid-column: 3; grid-row: 3 / 5; transform: translateY(20px) rotate(1deg); }

.usps {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 64px 0;
}

.usp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.usp {
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.usp:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
}

.usp-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(233, 69, 96, 0.12);
  border: 1px solid rgba(233, 69, 96, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 18px;
}

.usp-icon svg {
  width: 22px;
  height: 22px;
}

.usp h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.usp p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.modes {
  background: var(--bg);
}

.modes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.mode-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.mode-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
}

.mode-img {
  width: 100%;
  aspect-ratio: 9 / 12;
  object-fit: cover;
  background: #000;
}

.mode-body {
  padding: 24px 28px 28px;
}

.mode-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.mode-card.pve .mode-tag { color: var(--accent-cool); }

.mode-body h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 8px 0 10px;
}

.mode-body p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.flow {
  background: var(--bg-elevated);
}

.flow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.flow-step {
  position: relative;
  padding: 28px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.flow-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gradient-accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 16px;
  box-shadow: 0 4px 14px rgba(233, 69, 96, 0.4);
}

.flow-step h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.flow-step p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.classes {
  background: var(--bg);
}

.class-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.class-tile {
  position: relative;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--klass);
  border-radius: var(--radius-sm);
  transition: transform 0.15s ease, background 0.15s ease;
}

.class-tile:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.06);
}

.class-tile h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--klass);
  margin-bottom: 4px;
}

.class-tile span {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.class-tile span.str { background: rgba(229, 115, 115, 0.15); color: #e57373; }
.class-tile span.agi { background: rgba(129, 199, 132, 0.15); color: #81c784; }
.class-tile span.int { background: rgba(100, 181, 246, 0.15); color: #64b5f6; }

.class-tile p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.attrs {
  background: var(--bg-elevated);
}

.attrs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.attr {
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.attr.str { border-color: rgba(229, 115, 115, 0.35); }
.attr.agi { border-color: rgba(129, 199, 132, 0.35); }
.attr.int { border-color: rgba(100, 181, 246, 0.35); }

.attr h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.attr.str h3 { color: #e57373; }
.attr.agi h3 { color: #81c784; }
.attr.int h3 { color: #64b5f6; }

.attr p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.attr-stats {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.attr-stats span {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.attr-edge {
  font-size: 0.8rem;
  color: var(--text-dim);
  font-style: italic;
}

.world {
  background: var(--bg);
}

.world-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.world-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.world-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.06);
}

.world-card img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.35);
  padding: 6px;
  border: 1px solid var(--border);
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

.world-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
}

.world-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.story {
  background: var(--bg-elevated);
  position: relative;
  overflow: hidden;
}

.story-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.story-copy h2 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 20px;
}

.story-copy p {
  color: var(--text-muted);
  margin-bottom: 16px;
}

.story-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.story-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta {
  background: linear-gradient(135deg, #16213e 0%, #1a1a2e 60%, #0a0a0f 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(233, 69, 96, 0.18), transparent 60%);
  pointer-events: none;
}

.cta-inner {
  position: relative;
}

.cta h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  margin-bottom: 16px;
}

.cta p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 540px;
  margin: 0 auto 36px;
}

.cta .store-row {
  justify-content: center;
}

.footer {
  background: #050509;
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.footer-brand img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.footer-links {
  display: flex;
  gap: 24px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links a:hover { color: var(--text); }

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.footer-credit {
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}

.footer-credit a {
  color: var(--text-muted);
  border-bottom: 1px dotted var(--border-strong);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.footer-credit a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

@media (max-width: 960px) {
  .section { padding: 72px 0; }
  .hero { padding: 56px 0 72px; }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 460px; margin: 0 auto; }
  .usp-grid { grid-template-columns: 1fr; gap: 16px; }
  .modes-grid { grid-template-columns: 1fr; }
  .flow-grid { grid-template-columns: repeat(2, 1fr); }
  .class-list { grid-template-columns: repeat(2, 1fr); }
  .attrs-grid { grid-template-columns: 1fr; }
  .world-grid { grid-template-columns: repeat(2, 1fr); }
  .story-inner { grid-template-columns: 1fr; gap: 32px; }
  .nav-links { display: none; }
}

@media (max-width: 520px) {
  .container { padding: 0 18px; }
  .section-head { margin-bottom: 40px; }
  .store-badge { min-width: 0; flex: 1; }
  .flow-grid { grid-template-columns: 1fr; }
  .class-list { grid-template-columns: 1fr; }
  .world-grid { grid-template-columns: 1fr; }
}

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