/* Ragnarok Midgard — original design. Dark night theme, gold accents. */
:root {
  --bg: #0b1220;
  --bg-2: #101a2e;
  --card: #141f36;
  --line: #24365a;
  --text: #eef2f8;
  --muted: #aab8d0;
  --gold: #f2b544;
  --gold-dark: #d99a1f;
  --blue: #6fb1ff;
  --radius: 14px;
  --wrap: 1080px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
h1, h2 { line-height: 1.2; margin: 0 0 12px; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
.section-lede { color: var(--muted); max-width: 640px; margin: 0 auto 28px; }
.section { padding: 72px 0; text-align: center; }
.section:nth-of-type(even) { background: var(--bg-2); }

/* Header */
.top {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 20px;
  background: rgba(11, 18, 32, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--gold); color: #1a1405;
  display: grid; place-items: center;
  font-weight: 800; font-size: 1.2rem;
}
.brand-copy { display: flex; flex-direction: column; line-height: 1.1; }
.brand-copy strong { font-size: 0.95rem; letter-spacing: 0.08em; }
.brand-copy small { font-size: 0.62rem; letter-spacing: 0.22em; color: var(--muted); }
.lang { display: flex; gap: 4px; }
.lang button {
  background: transparent; color: var(--muted);
  border: 1px solid var(--line); border-radius: 8px;
  padding: 6px 12px; font-size: 0.85rem; font-weight: 600; cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: #1a1405; }

/* Hero */
.hero { position: relative; overflow: hidden; text-align: center; padding: 84px 20px 64px; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.45; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,18,32,0.55) 0%, rgba(11,18,32,0.82) 60%, var(--bg) 100%);
}
.hero-inner { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; }
.kicker { color: var(--gold); font-weight: 700; letter-spacing: 0.18em; font-size: 0.8rem; margin: 0 0 14px; }
.hero h1 { font-size: clamp(2rem, 6vw, 3.4rem); margin-bottom: 14px; text-wrap: balance; }
.lede { color: #d5deee; font-size: 1.15rem; margin: 0 auto 26px; max-width: 560px; }
.note { color: var(--muted); font-size: 0.9rem; margin: 12px 0 4px; }
.crossplay { color: var(--blue); font-size: 0.92rem; font-weight: 600; margin: 0 0 22px; }
.badges {
  list-style: none; display: flex; flex-wrap: wrap; gap: 8px;
  justify-content: center; padding: 0; margin: 0;
}
.badges li {
  border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 14px; font-size: 0.82rem; color: var(--muted);
  background: rgba(11, 18, 32, 0.7);
}

/* Buttons */
.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  font-weight: 700; font-size: 1.05rem; border-radius: 12px;
  padding: 14px 30px; border: 1px solid transparent;
  transition: transform 0.12s ease, background 0.12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--gold); color: #1a1405; }
.btn-primary:hover { background: var(--gold-dark); }
.btn-ghost { border-color: var(--gold); color: var(--gold); background: transparent; }
.btn-ghost:hover { background: rgba(242, 181, 68, 0.12); }
.btn-big { font-size: 1.2rem; padding: 16px 38px; }
.btn-small { font-size: 0.92rem; padding: 10px 18px; }

/* Gallery */
.gallery {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 28px;
}
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); aspect-ratio: 16 / 9; }

/* Classes */
.class-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 32px;
}
.class-card {
  margin: 0; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; text-align: center;
}
.class-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; }
.class-card figcaption { padding: 12px 8px; font-weight: 700; font-size: 0.98rem; }

/* Free */
.free-list {
  list-style: none; padding: 0; margin: 0 auto 18px; max-width: 720px;
  display: grid; gap: 12px; text-align: left;
}
.free-list li {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 20px;
  display: flex; flex-direction: column; gap: 2px;
}
.free-list li strong { font-size: 1.05rem; }
.free-list li span { color: var(--muted); font-size: 0.95rem; }
.small { color: var(--muted); font-size: 0.85rem; }

/* Steps */
.steps-list {
  list-style: none; padding: 0; margin: 0 auto 32px; max-width: 640px;
  display: grid; gap: 12px; text-align: left; counter-reset: step;
}
.steps-list li {
  display: flex; align-items: center; gap: 14px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 18px; font-size: 1.02rem;
}
.step-n {
  flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%;
  background: var(--gold); color: #1a1405; font-weight: 800;
  display: grid; place-items: center;
}

/* FAQ */
.faq .wrap { max-width: 720px; }
.faq details {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 20px; margin-bottom: 10px;
  text-align: left;
}
.faq summary { font-weight: 700; cursor: pointer; font-size: 1.02rem; }
.faq summary::marker { color: var(--gold); }
.faq details p { color: var(--muted); margin: 10px 0 0; }

/* Final */
.final { padding: 84px 20px; text-align: center; background: var(--bg-2); }
.final h2 { font-size: clamp(1.8rem, 5vw, 2.6rem); }
.final p { color: var(--muted); margin-bottom: 26px; }

/* Footer */
.site-footer { padding: 40px 0 110px; border-top: 1px solid var(--line); text-align: center; }
.disclaimer { color: var(--muted); font-size: 0.82rem; max-width: 680px; margin: 0 auto 16px; }
.footer-link { color: var(--gold); font-weight: 600; text-decoration: none; }
.footer-link:hover { text-decoration: underline; }

/* Sticky bar */
.sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 20px;
  background: rgba(11, 18, 32, 0.96);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.4);
}
.sticky-bar[hidden] { display: none; }
.sticky-title { font-weight: 700; font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Responsive */
@media (max-width: 760px) {
  .section { padding: 52px 0; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .class-grid { grid-template-columns: repeat(2, 1fr); }
  .sticky-title { display: none; }
  .sticky-bar { justify-content: center; }
  .btn { padding: 13px 24px; }
}
