:root {
  --bg: #08111a;
  --bg-deep: #040a12;
  --bg-soft: #0d1c28;
  --panel: rgba(8, 17, 26, 0.78);
  --panel-strong: rgba(7, 13, 20, 0.92);
  --panel-warm: rgba(20, 28, 36, 0.82);
  --line: rgba(201, 168, 96, 0.18);
  --line-strong: rgba(201, 168, 96, 0.34);
  --text: #f4efe5;
  --muted: #b6b0a4;
  --gold: #d0aa61;
  --gold-soft: #edd29a;
  --cyan: #85bfd8;
  --cyan-soft: #c2e6f5;
  --green: #315347;
  --mist: rgba(225, 230, 235, 0.16);
  --shadow-xl: 0 28px 90px rgba(0, 0, 0, 0.42);
  --shadow-lg: 0 18px 50px rgba(0, 0, 0, 0.36);
  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-md: 18px;
  --max: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(39, 87, 123, 0.22), transparent 28%),
    radial-gradient(circle at top right, rgba(179, 145, 80, 0.1), transparent 24%),
    linear-gradient(180deg, #0a1520 0%, #07111a 44%, #040a12 100%);
  overflow-x: hidden;
}

::selection {
  background: rgba(208, 170, 97, 0.32);
  color: var(--text);
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
}

.site-backdrop {
  position: fixed;
  inset: 0;
  z-index: -5;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.2));
  opacity: 0.18;
}

.mist {
  position: fixed;
  border-radius: 999px;
  pointer-events: none;
  z-index: -4;
  filter: blur(56px);
  opacity: 0.48;
}

.mist-one {
  width: 420px;
  height: 180px;
  top: 90px;
  left: -80px;
  background: linear-gradient(135deg, rgba(194, 230, 245, 0.18), rgba(225, 230, 235, 0.04));
  animation: drift-one 26s ease-in-out infinite alternate;
}

.mist-two {
  width: 480px;
  height: 220px;
  top: 360px;
  right: -120px;
  background: linear-gradient(135deg, rgba(237, 210, 154, 0.12), rgba(225, 230, 235, 0.06));
  animation: drift-two 30s ease-in-out infinite alternate;
}

.mist-three {
  width: 360px;
  height: 160px;
  bottom: 110px;
  left: 22%;
  background: linear-gradient(135deg, rgba(194, 230, 245, 0.08), rgba(225, 230, 235, 0.05));
  animation: drift-three 24s ease-in-out infinite alternate;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  background: linear-gradient(180deg, rgba(5, 10, 16, 0.92), rgba(5, 10, 16, 0.68));
  border-bottom: 1px solid rgba(208, 170, 97, 0.08);
}

.nav {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.logo,
.footer-logo {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand-title,
.brand-subtitle {
  font-family: "Cinzel", serif;
}

.brand-title {
  font-size: 1.04rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-subtitle {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.nav-links,
.footer-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a,
.footer-links a,
.mobile-menu a {
  color: var(--muted);
  font-size: 0.95rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.footer-links a:hover,
.mobile-menu a:hover {
  color: var(--text);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 11px;
  border: 1px solid rgba(208, 170, 97, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 7px 0;
  border-radius: 999px;
  background: var(--text);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 16px;
  padding: 0 20px 18px;
  background: rgba(7, 13, 20, 0.96);
  border-top: 1px solid rgba(208, 170, 97, 0.08);
}

.mobile-menu.open {
  display: flex;
}

.hero {
  padding: 92px 0 54px;
}

.hero-layout,
.story-layout,
.polish-layout,
.footer-inner {
  display: grid;
  gap: 36px;
}

.hero-layout {
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  align-items: center;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--gold-soft);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

h1,
h2,
h3,
.panel-label,
.panel-status,
.section-heading h2,
.story-copy h2,
.polish-copy h2,
.cta-panel h2 {
  font-family: "Cinzel", serif;
}

.hero h1 {
  margin: 0;
  max-width: 10.5ch;
  font-size: clamp(3.3rem, 7vw, 6rem);
  line-height: 0.96;
  letter-spacing: -0.03em;
}

.hero-text,
.section-heading p,
.story-copy p,
.feature-card p,
.mode-card p,
.polish-copy p,
.polish-point span,
.cta-panel p,
.footer-brand p {
  color: var(--muted);
  line-height: 1.8;
}

.hero-text {
  max-width: 640px;
  margin: 24px 0 0;
  font-size: 1.05rem;
}

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

.btn {
  min-height: 56px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.02em;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

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

.btn-primary {
  color: #1d1203;
  background: linear-gradient(135deg, var(--gold), #f1d79f);
  box-shadow: 0 18px 34px rgba(208, 170, 97, 0.22);
}

.btn-secondary {
  color: var(--text);
  border: 1px solid rgba(208, 170, 97, 0.22);
  background: rgba(255, 255, 255, 0.03);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-badges span,
.treasure-pill {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(208, 170, 97, 0.16);
  color: var(--cyan-soft);
  font-size: 0.88rem;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.metric-card,
.feature-card,
.mode-card,
.chronicle-card,
.guild-board,
.polish-point,
.cta-panel,
.atlas-panel,
.expedition-slab,
.floating-plaque {
  border: 1px solid rgba(208, 170, 97, 0.14);
  box-shadow: var(--shadow-lg);
}

.metric-card {
  padding: 18px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 100%),
    rgba(9, 18, 28, 0.72);
}

.metric-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 0.98rem;
}

.metric-card span {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.hero-visual {
  position: relative;
}

.atlas-stage {
  position: relative;
  padding: 26px 74px 58px 36px;
}

.atlas-panel {
  position: relative;
  padding: 20px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 24%),
    linear-gradient(180deg, rgba(17, 31, 43, 0.95), rgba(8, 18, 27, 0.94));
}

.atlas-panel::before,
.chronicle-card::before,
.guild-board::before,
.cta-panel::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(208, 170, 97, 0.12);
  border-radius: inherit;
  pointer-events: none;
}

.panel-bar,
.visual-header,
.slab-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.panel-bar {
  margin-bottom: 16px;
}

.panel-label,
.panel-status,
.visual-header span,
.visual-header strong,
.slab-header span,
.slab-header strong {
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.panel-label,
.visual-header span,
.slab-header span {
  color: var(--muted);
}

.panel-status,
.visual-header strong,
.slab-header strong {
  color: var(--gold-soft);
}

[data-spotlight] {
  --spotlight-x: 50%;
  --spotlight-y: 50%;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

[data-spotlight] > * {
  position: relative;
  z-index: 1;
}

[data-spotlight]::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at var(--spotlight-x) var(--spotlight-y), rgba(237, 210, 154, 0.28), transparent 24%),
    radial-gradient(circle at 22% 20%, rgba(133, 191, 216, 0.12), transparent 28%);
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 2;
  transition: background-position 0.18s ease;
}

.atlas-map,
.chronicle-map {
  border-radius: 28px;
  border: 1px solid rgba(208, 170, 97, 0.14);
  background:
    linear-gradient(180deg, rgba(13, 31, 43, 0.96), rgba(8, 19, 29, 0.96)),
    radial-gradient(circle at top left, rgba(194, 230, 245, 0.08), transparent 34%);
}

.map-art,
.map-live-base {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.map-art {
  object-fit: cover;
  opacity: 0.94;
  filter: saturate(0.92) contrast(1.02) brightness(0.98);
}

.map-live-base {
  overflow: hidden;
  border-radius: inherit;
}

.map-live-base .leaflet-pane,
.map-live-base .leaflet-control-container {
  z-index: 0;
}

.map-live-base .leaflet-container {
  width: 100%;
  height: 100%;
  background: #10202b;
  font: inherit;
}

.map-live-base .leaflet-tile {
  filter: saturate(0.9) contrast(1.06) brightness(0.92);
}

.map-live-base .leaflet-control-zoom {
  display: none;
}

.map-live-base .leaflet-control-attribution {
  background: rgba(6, 14, 21, 0.82);
  color: var(--muted);
  border-radius: 12px 0 0 0;
  padding: 4px 8px;
}

.map-live-base .leaflet-control-attribution a {
  color: var(--cyan-soft);
}

.atlas-map {
  height: 460px;
}

.chronicle-map {
  height: 360px;
  cursor: crosshair;
  touch-action: none;
}

.chronicle-map .map-art,
.chronicle-map .map-live-base .leaflet-tile {
  opacity: 0.98;
  filter: saturate(0.96) contrast(1.04) brightness(1);
}

.atlas-grid {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  z-index: 1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
}

.atlas-grid.soft {
  opacity: 0.36;
}

.landmass,
.route,
.signal-node,
.discovery-beacon,
.fog-bank,
.compass-rose {
  position: absolute;
}

.landmass {
  background:
    linear-gradient(135deg, rgba(74, 120, 95, 0.96), rgba(38, 74, 58, 0.92)),
    radial-gradient(circle at 30% 30%, rgba(194, 230, 245, 0.08), transparent 34%);
  border: 1px solid rgba(237, 210, 154, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.landmass-a {
  width: 36%;
  height: 28%;
  top: 14%;
  left: 16%;
  clip-path: polygon(9% 28%, 28% 10%, 70% 14%, 94% 38%, 80% 78%, 42% 94%, 12% 70%);
  transform: rotate(-8deg);
}

.landmass-b {
  width: 24%;
  height: 20%;
  top: 49%;
  right: 18%;
  clip-path: polygon(14% 24%, 56% 4%, 92% 24%, 86% 72%, 48% 98%, 10% 76%);
  transform: rotate(12deg);
}

.landmass-c {
  width: 16%;
  height: 13%;
  bottom: 18%;
  left: 26%;
  clip-path: polygon(10% 24%, 42% 0%, 100% 28%, 76% 100%, 18% 82%);
  transform: rotate(-16deg);
}

.landmass-d {
  width: 32%;
  height: 22%;
  top: 22%;
  left: 18%;
  clip-path: polygon(12% 18%, 50% 2%, 92% 28%, 80% 88%, 24% 94%, 0% 54%);
}

.landmass-e {
  width: 22%;
  height: 18%;
  bottom: 16%;
  right: 20%;
  clip-path: polygon(4% 34%, 38% 2%, 100% 20%, 90% 78%, 26% 98%);
  transform: rotate(8deg);
}

.route {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(208, 170, 97, 0), rgba(208, 170, 97, 0.9), rgba(133, 191, 216, 0.96), rgba(208, 170, 97, 0));
  box-shadow: 0 0 18px rgba(133, 191, 216, 0.28);
  transition: opacity 0.35s ease, filter 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
}

.route-a {
  width: 50%;
  top: 34%;
  left: 18%;
  transform: rotate(16deg);
}

.route-b {
  width: 32%;
  bottom: 28%;
  right: 17%;
  transform: rotate(-30deg);
}

.route-c {
  width: 28%;
  bottom: 22%;
  left: 24%;
  transform: rotate(8deg);
}

.route-d {
  width: 48%;
  top: 42%;
  left: 18%;
  transform: rotate(12deg);
}

.route-e {
  width: 24%;
  bottom: 24%;
  right: 18%;
  transform: rotate(-24deg);
}

.signal-node {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold-soft);
  box-shadow: 0 0 0 8px rgba(208, 170, 97, 0.12);
  transition: opacity 0.35s ease, background 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
}

.node-a {
  top: 30%;
  left: 24%;
}

.node-b {
  top: 48%;
  left: 52%;
}

.node-c {
  bottom: 24%;
  right: 22%;
}

.node-d {
  top: 36%;
  left: 28%;
}

.node-e {
  bottom: 24%;
  right: 24%;
}

.discovery-beacon {
  top: 20%;
  right: 26%;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff5d1, #d0aa61 62%, #6f4a0d 100%);
  box-shadow:
    0 0 0 10px rgba(208, 170, 97, 0.08),
    0 0 24px rgba(208, 170, 97, 0.35);
  opacity: 0.3;
  transform: scale(0.88);
  transition: opacity 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}

.discovery-beacon::before {
  content: "";
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  border: 1px solid rgba(237, 210, 154, 0.34);
  opacity: 0;
}

.fog-bank {
  border-radius: 999px;
  filter: blur(14px);
  background: rgba(232, 235, 239, 0.16);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.fog-bank-a {
  width: 210px;
  height: 100px;
  top: 15%;
  right: -40px;
  animation: fog-pulse 9s ease-in-out infinite;
}

.fog-bank-b {
  width: 180px;
  height: 92px;
  bottom: 10%;
  left: -30px;
  animation: fog-pulse 11s ease-in-out infinite alternate;
}

.fog-bank-c {
  width: 180px;
  height: 92px;
  top: 10%;
  right: -20px;
  animation: fog-pulse 10s ease-in-out infinite;
}

.compass-rose {
  width: 86px;
  height: 86px;
  right: 18px;
  top: 18px;
  border-radius: 50%;
  border: 1px solid rgba(208, 170, 97, 0.24);
  background: rgba(6, 14, 21, 0.62);
}

.compass-rose::before,
.compass-rose::after {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 4px;
  border: 1px solid rgba(208, 170, 97, 0.2);
  transform: rotate(45deg);
}

.compass-rose::after {
  inset: 6px 41px;
  border-radius: 999px;
  transform: none;
}

.compass-rose span {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--gold-soft);
  font-family: "Cinzel", serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.panel-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.panel-stat {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(208, 170, 97, 0.1);
}

.panel-stat span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.8rem;
}

.panel-stat strong {
  font-size: 1rem;
}

.demo-console {
  margin-top: 16px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(208, 170, 97, 0.1);
}

.demo-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.demo-toggle {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(208, 170, 97, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.demo-toggle:hover,
.demo-toggle:focus-visible {
  color: var(--text);
  border-color: rgba(208, 170, 97, 0.28);
  transform: translateY(-1px);
}

.demo-toggle:focus-visible {
  outline: 2px solid rgba(237, 210, 154, 0.45);
  outline-offset: 2px;
}

.demo-toggle.is-active {
  color: #1d1203;
  background: linear-gradient(135deg, var(--gold), #f1d79f);
  border-color: transparent;
}

.demo-copy {
  margin-top: 14px;
}

.demo-copy strong {
  display: block;
  margin-bottom: 6px;
}

.demo-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.atlas-panel[data-demo-state="solo"] .route-b,
.atlas-panel[data-demo-state="solo"] .route-c,
.atlas-panel[data-demo-state="solo"] .node-b,
.atlas-panel[data-demo-state="solo"] .node-c {
  opacity: 0.28;
}

.atlas-panel[data-demo-state="solo"] .route-a,
.atlas-panel[data-demo-state="solo"] .node-a {
  filter: saturate(1.08);
  box-shadow: 0 0 24px rgba(133, 191, 216, 0.34);
}

.atlas-panel[data-demo-state="party"] .route-a,
.atlas-panel[data-demo-state="party"] .route-b,
.atlas-panel[data-demo-state="party"] .route-c {
  opacity: 1;
  box-shadow: 0 0 22px rgba(133, 191, 216, 0.4);
}

.atlas-panel[data-demo-state="party"] .signal-node {
  background: var(--cyan-soft);
  box-shadow: 0 0 0 8px rgba(133, 191, 216, 0.16);
  transform: scale(1.06);
}

.atlas-panel[data-demo-state="party"] .fog-bank {
  opacity: 0.12;
}

.atlas-panel[data-demo-state="treasure"] .route-a,
.atlas-panel[data-demo-state="treasure"] .route-b {
  opacity: 0.32;
}

.atlas-panel[data-demo-state="treasure"] .route-c,
.atlas-panel[data-demo-state="treasure"] .node-c {
  opacity: 1;
  transform: scale(1.08);
  box-shadow: 0 0 0 10px rgba(208, 170, 97, 0.16), 0 0 26px rgba(208, 170, 97, 0.3);
}

.atlas-panel[data-demo-state="treasure"] .discovery-beacon {
  opacity: 1;
  transform: scale(1.04);
  box-shadow:
    0 0 0 14px rgba(208, 170, 97, 0.1),
    0 0 32px rgba(208, 170, 97, 0.4);
}

.atlas-panel[data-demo-state="treasure"] .discovery-beacon::before {
  opacity: 1;
  animation: beacon-ping 2.1s ease-out infinite;
}

.atlas-panel[data-demo-state="treasure"] .fog-bank-b {
  transform: translate3d(16px, -4px, 0) scale(1.06);
}

.floating-plaque,
.expedition-slab {
  position: absolute;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 100%),
    rgba(9, 17, 26, 0.82);
  backdrop-filter: blur(16px);
}

.floating-plaque {
  min-width: 210px;
  padding: 16px 18px;
  border-radius: 22px;
}

.plaque-top {
  top: 6%;
  left: 0;
}

.plaque-bottom {
  right: 0;
  bottom: 10%;
}

.small-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.expedition-slab {
  right: 0;
  top: 29%;
  width: 230px;
  padding: 18px;
  border-radius: 24px;
}

.slab-row,
.slab-progress {
  margin-top: 14px;
}

.slab-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.slab-row strong,
.slab-progress span {
  color: var(--text);
}

.progress-track {
  height: 8px;
  margin-top: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.progress-fill {
  width: 72%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--cyan));
}

.signal-bar {
  padding: 18px 0 0;
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.signal-item {
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(208, 170, 97, 0.1);
  color: var(--cyan-soft);
  line-height: 1.6;
}

.section {
  padding: 100px 0;
  position: relative;
}

.story-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
}

.story-layout.reverse .story-copy {
  order: 2;
}

.story-layout.reverse .story-visual {
  order: 1;
}

.story-copy h2,
.section-heading h2,
.polish-copy h2,
.cta-panel h2 {
  margin: 0 0 16px;
  font-size: clamp(2.2rem, 4.6vw, 4rem);
  line-height: 1.02;
}

.story-list {
  margin: 24px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.9;
}

.chronicle-card,
.guild-board,
.cta-panel {
  position: relative;
  padding: 22px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 22%),
    linear-gradient(180deg, rgba(16, 31, 43, 0.92), rgba(8, 17, 25, 0.92));
}

.chronicle-note {
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(208, 170, 97, 0.1);
}

.chronicle-note strong {
  display: block;
  margin-bottom: 6px;
}

.chronicle-note span {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

.reveal-fog {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
  border-radius: inherit;
}

.route-scout,
.chronicle-hint {
  position: absolute;
  z-index: 4;
  pointer-events: none;
}

.route-scout {
  width: 18px;
  height: 18px;
  left: var(--scout-x, 28%);
  top: var(--scout-y, 38%);
  border-radius: 50%;
  border: 1px solid rgba(237, 210, 154, 0.7);
  background: radial-gradient(circle at 35% 35%, #fff7dd, rgba(208, 170, 97, 0.92) 58%, rgba(111, 74, 13, 0.9));
  box-shadow:
    0 0 0 8px rgba(208, 170, 97, 0.08),
    0 0 24px rgba(208, 170, 97, 0.28);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.75);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.route-scout::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(237, 210, 154, 0.22);
}

.chronicle-hint {
  left: 16px;
  right: 16px;
  top: 16px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(6, 14, 21, 0.72);
  border: 1px solid rgba(208, 170, 97, 0.14);
  color: var(--cyan-soft);
  font-size: 0.84rem;
  letter-spacing: 0.04em;
  line-height: 1.5;
  text-align: center;
  opacity: 0.92;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.chronicle-map.is-active .route-scout,
.chronicle-map.is-revealed .route-scout {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.chronicle-map.is-active .chronicle-hint,
.chronicle-map.is-revealed .chronicle-hint {
  opacity: 0;
  transform: translateY(-8px);
}

.location-console {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.location-btn {
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid rgba(208, 170, 97, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.location-btn:hover,
.location-btn:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(208, 170, 97, 0.34);
  background: rgba(255, 255, 255, 0.08);
}

.location-btn:focus-visible {
  outline: 2px solid rgba(237, 210, 154, 0.45);
  outline-offset: 2px;
}

.location-btn:disabled {
  opacity: 0.7;
  cursor: wait;
  transform: none;
}

.location-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.location-copy.is-error {
  color: #f2c2b8;
}

.map-credit {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.map-credit a {
  color: var(--cyan-soft);
}

.section-accent {
  background:
    radial-gradient(circle at left center, rgba(208, 170, 97, 0.06), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.015), rgba(255, 255, 255, 0));
}

.guild-rows {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.guild-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(208, 170, 97, 0.1);
}

.row-label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.guild-row strong {
  font-size: 1rem;
  line-height: 1.5;
}

.row-badge {
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(208, 170, 97, 0.14);
  color: var(--gold-soft);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.row-badge-alt {
  background: rgba(133, 191, 216, 0.14);
  color: var(--cyan-soft);
}

.mode-stack {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.mode-card {
  padding: 22px;
  border-radius: 24px;
  background: rgba(10, 18, 27, 0.7);
}

.mode-card h3,
.feature-card h3,
.polish-point strong {
  margin: 0 0 10px;
  font-size: 1.16rem;
}

.features-section .section-heading {
  max-width: 820px;
  margin-bottom: 34px;
}

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

.feature-card {
  padding: 24px;
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 100%),
    rgba(9, 18, 27, 0.72);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(208, 170, 97, 0.24);
  box-shadow: var(--shadow-xl);
}

.feature-index {
  display: inline-flex;
  min-width: 54px;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border-radius: 18px;
  border: 1px solid rgba(208, 170, 97, 0.18);
  background: linear-gradient(135deg, rgba(208, 170, 97, 0.16), rgba(133, 191, 216, 0.12));
  color: var(--gold-soft);
  font-family: "Cinzel", serif;
  font-weight: 700;
}

.polish-layout {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: start;
}

.polish-points {
  display: grid;
  gap: 16px;
}

.polish-point {
  padding: 22px;
  border-radius: 24px;
  background: rgba(9, 18, 27, 0.7);
}

.polish-point strong {
  display: block;
}

.polish-point span {
  display: block;
}

.cta-section {
  padding-top: 44px;
  padding-bottom: 110px;
}

.cta-panel {
  padding: 42px 30px;
  text-align: center;
  background:
    radial-gradient(circle at top, rgba(208, 170, 97, 0.1), transparent 34%),
    linear-gradient(180deg, rgba(16, 31, 43, 0.96), rgba(8, 17, 25, 0.96));
}

.cta-panel p {
  max-width: 720px;
  margin: 0 auto;
}

.cta-actions {
  justify-content: center;
}

.site-footer {
  padding: 28px 0 38px;
  border-top: 1px solid rgba(208, 170, 97, 0.08);
  background: rgba(4, 10, 15, 0.72);
}

.footer-inner {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-brand p {
  margin: 4px 0 0;
  font-size: 0.92rem;
}

.reveal,
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.js-ready .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.js-ready .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.14s;
}

.delay-2 {
  transition-delay: 0.28s;
}

@keyframes drift-one {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(90px, 24px, 0) scale(1.08);
  }
}

@keyframes drift-two {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(-72px, 36px, 0) scale(1.1);
  }
}

@keyframes drift-three {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(36px, -18px, 0) scale(1.06);
  }
}

@keyframes fog-pulse {
  0% {
    opacity: 0.18;
    transform: scale(1);
  }
  50% {
    opacity: 0.3;
    transform: scale(1.04);
  }
  100% {
    opacity: 0.18;
    transform: scale(1);
  }
}

@keyframes beacon-ping {
  0% {
    opacity: 0.85;
    transform: scale(0.84);
  }
  100% {
    opacity: 0;
    transform: scale(1.4);
  }
}

@media (max-width: 1160px) {
  .hero-layout,
  .story-layout,
  .polish-layout,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .story-layout.reverse .story-copy,
  .story-layout.reverse .story-visual {
    order: initial;
  }

  .atlas-stage {
    padding: 22px 20px 20px;
  }

  .plaque-top,
  .plaque-bottom,
  .expedition-slab {
    position: static;
    width: 100%;
    margin-top: 14px;
  }
}

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

  .menu-toggle {
    display: inline-block;
  }

  .hero-metrics,
  .panel-stats,
  .signal-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }

  .demo-buttons {
    flex-direction: column;
  }

  .demo-toggle {
    width: 100%;
  }

  .guild-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 26px, var(--max));
  }

  .hero {
    padding-top: 72px;
  }

  .hero h1 {
    font-size: 2.75rem;
  }

  .story-copy h2,
  .section-heading h2,
  .polish-copy h2,
  .cta-panel h2 {
    font-size: 2rem;
  }

  .hero-actions,
  .cta-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .atlas-panel,
  .chronicle-card,
  .guild-board,
  .cta-panel {
    padding: 18px;
  }

  .atlas-map {
    height: 380px;
  }

  .chronicle-map {
    height: 300px;
  }

  .section {
    padding: 80px 0;
  }

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

  .brand-subtitle {
    font-size: 0.66rem;
  }

  .logo,
  .footer-logo {
    width: 46px;
    height: 46px;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
