:root {
  --bg: #071231;
  --bg-deep: #030918;
  --panel: rgba(16, 28, 63, 0.72);
  --panel-strong: rgba(12, 22, 49, 0.92);
  --border: rgba(255, 215, 110, 0.18);
  --text: #f2f4fb;
  --muted: #acb5d1;
  --gold: #f2c14e;
  --gold-strong: #ffcf5b;
  --cyan: #70d7ff;
  --green: #78ffca;
  --shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
  --radius-xl: 32px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --container: min(1220px, calc(100vw - 32px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 16% 12%, rgba(255, 193, 67, 0.16), transparent 22%),
    radial-gradient(circle at 84% 10%, rgba(55, 120, 255, 0.18), transparent 28%),
    linear-gradient(180deg, #08132f 0%, #040a1d 62%, #020611 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.5), transparent 88%);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.container { width: var(--container); margin: 0 auto; }
.page-shell {
  position: fixed;
  inset: 20px;
  border: 1px solid rgba(255, 214, 102, 0.08);
  border-radius: 28px;
  pointer-events: none;
}

.site-header {
  position: sticky;
  top: 18px;
  z-index: 50;
  width: var(--container);
  margin: 18px auto 0;
  padding: 14px 18px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  background: rgba(6, 12, 30, 0.6);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.22);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  box-shadow: 0 0 0 1px rgba(255,215,110,0.18);
}
.brand-text { display: grid; gap: 2px; }
.brand-text strong { font-size: 1rem; }
.brand-kicker {
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  color: var(--gold);
}

.site-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 1.6vw, 28px);
}
.site-nav a {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
}
.site-nav a:hover,
.site-nav a:focus-visible { color: #fff; }

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  padding: 10px;
  justify-content: center;
  align-items: center;
  gap: 4px;
  flex-direction: column;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: white;
  border-radius: 999px;
}

.solid-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.solid-button:hover,
.ghost-button:hover { transform: translateY(-1px); }
.solid-button {
  background: linear-gradient(180deg, var(--gold-strong), #d39d24);
  color: #161104;
  box-shadow: 0 12px 30px rgba(242, 193, 78, 0.28);
}
.ghost-button {
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.04);
  color: var(--text);
}
.large { min-height: 54px; padding-inline: 24px; }

.hero-section {
  position: relative;
  min-height: min(980px, 100svh);
  display: flex;
  align-items: center;
  padding: 56px 0 24px;
}
.hero-backdrop {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.sky-glow {
  position: absolute;
  width: 40vw;
  height: 40vw;
  filter: blur(60px);
  opacity: 0.45;
}
.sky-left { left: -8vw; top: 4vh; background: radial-gradient(circle, rgba(255, 188, 59, 0.4), transparent 60%); }
.sky-right { right: -8vw; top: 6vh; background: radial-gradient(circle, rgba(42, 117, 255, 0.35), transparent 60%); }
.mountain {
  position: absolute;
  inset-inline: -8vw;
  border-radius: 50% 50% 0 0;
  filter: drop-shadow(0 -16px 20px rgba(0,0,0,0.16));
}
.mountain-back {
  bottom: 12vh;
  height: 34vh;
  background: linear-gradient(180deg, #173b5b, #0a1c2f 70%);
  clip-path: polygon(0 100%, 0 48%, 13% 62%, 22% 38%, 34% 67%, 50% 28%, 61% 55%, 74% 34%, 88% 60%, 100% 44%, 100% 100%);
  opacity: 0.8;
}
.mountain-mid {
  bottom: 0;
  height: 38vh;
  background: linear-gradient(180deg, #0f2b18, #061108 76%);
  clip-path: polygon(0 100%, 0 56%, 12% 72%, 22% 62%, 35% 76%, 49% 48%, 59% 71%, 74% 54%, 84% 66%, 100% 45%, 100% 100%);
}
.fortress-wall {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 17vh;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.06) 0 16px, rgba(255,255,255,0.03) 16px 32px),
    linear-gradient(180deg, #2b3240, #151a26);
  clip-path: polygon(0 100%, 0 18%, 4% 18%, 4% 9%, 7% 9%, 7% 18%, 11% 18%, 11% 7%, 14% 7%, 14% 18%, 18% 18%, 18% 8%, 21% 8%, 21% 18%, 100% 18%, 100% 100%);
  box-shadow: inset 0 18px 0 rgba(255,255,255,0.05);
}
.grass-edge {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16vh;
  height: 20px;
  background: linear-gradient(90deg, #2a8541, #5ca248, #2a8541);
  filter: blur(0.4px);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  align-items: center;
  gap: 36px;
}
.hero-copy {
  max-width: 720px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 198, 75, 0.1);
  color: var(--gold);
  border: 1px solid rgba(255, 208, 92, 0.18);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero-copy h1,
.section-heading h2 {
  margin: 18px 0 16px;
  line-height: 0.97;
  letter-spacing: -0.04em;
}
.hero-copy h1 { font-size: clamp(2.75rem, 5vw, 5.8rem); }
.section-heading h2 { font-size: clamp(2rem, 3.8vw, 3.6rem); }
.hero-lead,
.section-heading p,
.feature-card p,
.concept-card p,
.guide-back p,
.package-card p,
.contact-card p,
.conquest-map p,
.conquest-steps p {
  color: var(--muted);
  line-height: 1.7;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}
.hero-badges span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: #dfe6ff;
  font-weight: 600;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0 32px;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.hero-stats article,
.concept-card,
.feature-card,
.sigil-card,
.floating-card,
.conquest-map,
.conquest-steps,
.guide-card,
.package-card,
.contact-card {
  background: linear-gradient(180deg, rgba(15, 24, 54, 0.86), rgba(7, 14, 33, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.hero-stats article { padding: 18px; }
.stat-label {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 8px;
}
.hero-stats strong { font-size: clamp(1rem, 1.7vw, 1.25rem); }

.hero-stage {
  position: relative;
  display: grid;
  gap: 18px;
  justify-items: end;
}
.sigil-card {
  position: relative;
  width: min(100%, 560px);
  padding: clamp(18px, 2vw, 24px);
  overflow: hidden;
}
.sigil-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 20%, rgba(255, 196, 72, 0.2), transparent 42%);
}
.sigil-glow {
  position: absolute;
  inset: auto 10% 4% 10%;
  height: 16%;
  background: radial-gradient(circle, rgba(255, 205, 86, 0.34), transparent 70%);
  filter: blur(28px);
}
.sigil-image {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  margin: 0 auto;
  filter: drop-shadow(0 16px 44px rgba(255, 193, 70, 0.25));
}
.sigil-caption {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 6px;
  margin-top: 12px;
}
.sigil-caption span {
  color: rgba(255,255,255,0.62);
  font-size: 0.76rem;
  letter-spacing: 0.18em;
}
.sigil-caption strong {
  font-size: 1.1rem;
}
.floating-card {
  width: min(84%, 340px);
  padding: 18px 20px;
}
.card-kicker,
.floating-kicker,
.package-price {
  color: var(--gold);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}
.map-card { justify-self: start; margin-left: 24px; }

section { padding: 72px 0; }
.section-heading {
  max-width: 820px;
  margin-bottom: 28px;
}
.left-align { max-width: 760px; }
.concept-grid,
.feature-grid,
.guide-grid,
.credits-packages {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}
.concept-card,
.feature-card,
.package-card,
.contact-card,
.conquest-map,
.conquest-steps {
  padding: 24px;
}
.concept-card:nth-child(1) { grid-column: span 4; }
.concept-card:nth-child(2) { grid-column: span 4; }
.concept-card:nth-child(3) { grid-column: span 4; }
.feature-card { grid-column: span 4; }
.guide-card { grid-column: span 3; min-height: 240px; perspective: 1000px; position: relative; }
.package-card { grid-column: span 6; }
.contact-card { min-width: 0; }
.accent-gold { box-shadow: 0 22px 48px rgba(242, 193, 78, 0.12); }
.accent-cyan { box-shadow: 0 22px 48px rgba(112, 215, 255, 0.1); }
.accent-green { box-shadow: 0 22px 48px rgba(120, 255, 202, 0.08); }
.feature-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.06);
  font-size: 1.4rem;
}

.conquest-layout,
.credits-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 22px;
}
.map-label {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(112, 215, 255, 0.08);
  color: var(--cyan);
  border: 1px solid rgba(112, 215, 255, 0.16);
  font-weight: 700;
  margin-bottom: 18px;
}
.map-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(44px, 72px));
  gap: 12px;
  margin-bottom: 18px;
}
.map-grid span {
  aspect-ratio: 1;
  border-radius: 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
}
.map-grid .active {
  background: linear-gradient(180deg, rgba(255,206,87,0.9), rgba(208,147,33,0.96));
  border-color: rgba(255, 212, 91, 0.65);
  box-shadow: 0 10px 24px rgba(255, 206, 87, 0.2);
}
.conquest-steps {
  display: grid;
  gap: 18px;
}
.conquest-steps article {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  align-items: start;
}
.conquest-steps strong {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 1.4rem;
}
.conquest-steps h3,
.feature-card h3,
.concept-card h3,
.package-card strong,
.contact-card h3,
.guide-front h3 {
  margin: 0 0 10px;
}

.guide-card > div {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  transition: transform 0.6s cubic-bezier(.2,.8,.2,1), opacity 0.3s ease;
  backface-visibility: hidden;
}
.guide-front,
.guide-back {
  display: grid;
  place-content: center;
  padding: 24px;
  text-align: center;
  background: linear-gradient(180deg, rgba(15, 24, 54, 0.86), rgba(7, 14, 33, 0.9));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: inherit;
}
.guide-front span { font-size: 1.8rem; margin-bottom: 14px; }
.guide-back {
  transform: rotateY(180deg);
  padding: 22px;
}
.guide-card:hover .guide-front,
.guide-card:focus-within .guide-front,
.guide-card.is-flipped .guide-front { transform: rotateY(180deg); }
.guide-card:hover .guide-back,
.guide-card:focus-within .guide-back,
.guide-card.is-flipped .guide-back { transform: rotateY(0); }

.package-card {
  display: grid;
  gap: 8px;
}
.package-card.featured {
  border-color: rgba(255, 209, 88, 0.4);
  box-shadow: 0 18px 48px rgba(255, 198, 75, 0.12);
}
.credits-packages { align-content: start; }
.contact-card ul {
  margin: 16px 0 18px;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.8;
}
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.copy-button { cursor: pointer; }
.copy-button.is-copied { border-color: rgba(120,255,202,0.45); color: var(--green); }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 40px 0 56px;
  color: var(--muted);
}
.site-footer strong { display: block; color: var(--text); margin-bottom: 8px; }

@media (max-width: 1120px) {
  .hero-content,
  .conquest-layout,
  .credits-layout {
    grid-template-columns: 1fr;
  }
  .hero-stage { justify-items: stretch; }
  .map-card { margin-left: 0; justify-self: stretch; width: 100%; }
  .guide-card { grid-column: span 4; }
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: auto auto auto;
    gap: 12px;
  }
  .nav-toggle { display: inline-flex; justify-self: end; }
  .site-nav,
  .header-actions {
    display: none;
  }
  .site-header.is-open {
    border-radius: 28px;
    padding-bottom: 18px;
  }
  .site-header.is-open .site-nav,
  .site-header.is-open .header-actions {
    display: flex;
  }
  .site-header.is-open {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
  .site-header.is-open .nav-toggle { grid-column: 2; grid-row: 1; }
  .site-header.is-open .site-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    flex-direction: column;
    align-items: flex-start;
    padding: 6px 4px 0;
  }
  .site-header.is-open .header-actions {
    grid-column: 1 / -1;
    grid-row: 3;
    flex-wrap: wrap;
    padding-top: 4px;
  }
  .hero-section { min-height: auto; padding-top: 34px; }
  .hero-stats,
  .concept-card,
  .feature-card,
  .package-card,
  .guide-card { grid-column: span 6; }
}

@media (max-width: 640px) {
  :root { --container: min(100vw - 24px, 100%); }
  .page-shell { inset: 12px; border-radius: 20px; }
  .site-header { top: 10px; margin-top: 10px; padding: 12px 14px; }
  .brand-logo { width: 42px; height: 42px; }
  .brand-text strong { font-size: 0.92rem; }
  .hero-copy h1 { font-size: clamp(2.4rem, 14vw, 4rem); }
  .hero-stats,
  .concept-grid,
  .feature-grid,
  .guide-grid,
  .credits-packages {
    grid-template-columns: repeat(6, 1fr);
  }
  .hero-stats article,
  .concept-card,
  .feature-card,
  .package-card,
  .guide-card { grid-column: span 6; }
  .sigil-card,
  .floating-card,
  .conquest-map,
  .conquest-steps,
  .contact-card { padding: 20px; }
  .map-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
  .site-footer { flex-direction: column; align-items: flex-start; }
}
