@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@400;500;600;700&family=Noto+Serif+Arabic:wght@500;600;700&display=swap");

:root {
  --font-ui: "IBM Plex Sans Arabic", "Segoe UI", sans-serif;
  --font-display: "Noto Serif Arabic", Georgia, serif;
  --bg-void: #120d0a;
  --bg-deep: #1f1712;
  --text-main: #f3e6d3;
  --text-soft: rgba(243, 230, 211, 0.78);
  --text-dim: rgba(243, 230, 211, 0.56);
  --stone: #d0ae86;
  --gold: #d8a466;
  --copper: #c77749;
  --proven: #d89d56;
  --proven-strong: #f1c078;
  --inferred: #8ea574;
  --inferred-strong: #b1c391;
  --reimagined: #7fa0a2;
  --reimagined-strong: #acd1d4;
  --line-soft: rgba(255, 224, 188, 0.12);
  --shadow-deep: 0 28px 80px rgba(0, 0, 0, 0.34);
  --shadow-soft: 0 18px 42px rgba(0, 0, 0, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-ui);
  color: var(--text-main);
  background:
    radial-gradient(circle at 12% 18%, rgba(216, 164, 102, 0.16), transparent 22%),
    radial-gradient(circle at 88% 8%, rgba(122, 159, 161, 0.08), transparent 18%),
    linear-gradient(180deg, #0f0b08 0%, #17100c 22%, #231912 52%, #120d0a 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: 0;
}

body::before {
  inset: 0;
  background:
    linear-gradient(rgba(255, 230, 199, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 230, 199, 0.03) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.05));
  opacity: 0.35;
}

body::after {
  bottom: -8rem;
  right: -6rem;
  width: 20rem;
  height: 20rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(199, 119, 73, 0.18), transparent 66%);
  filter: blur(24px);
}

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

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

button {
  border: 0;
  background: none;
}

.site-shell {
  position: relative;
  z-index: 1;
  width: min(1440px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0 64px;
}

.topbar {
  position: sticky;
  top: 16px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 22px;
  margin-bottom: 24px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgba(24, 18, 14, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-soft);
}

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

.brand-lockup img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35));
}

.brand-eyebrow {
  display: block;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.brand-lockup strong {
  display: block;
  font-size: 1rem;
  font-weight: 600;
}

.topnav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.topnav a {
  padding: 8px 0;
  color: var(--text-soft);
  font-size: 0.96rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.topnav a:hover,
.topnav a:focus-visible,
.topnav a[aria-current="page"] {
  color: var(--text-main);
  transform: translateY(-1px);
}

main {
  display: grid;
  gap: 28px;
}

.hero,
.method-strip,
.selector-section,
.explorer-section,
.expansion-section {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  border: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(42, 31, 23, 0.9) 0%, rgba(20, 15, 11, 0.92) 100%);
  box-shadow: var(--shadow-deep);
}

.hero::before,
.method-strip::before,
.selector-section::before,
.explorer-section::before,
.expansion-section::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 224, 188, 0.55), transparent);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 28px;
  padding: 40px;
  min-height: 78vh;
  align-items: center;
  background:
    radial-gradient(circle at 85% 22%, rgba(216, 164, 102, 0.12), transparent 18%),
    radial-gradient(circle at 76% 64%, rgba(106, 155, 159, 0.09), transparent 18%),
    linear-gradient(135deg, rgba(35, 25, 19, 0.96) 0%, rgba(22, 16, 12, 0.98) 56%, rgba(51, 33, 23, 0.92) 100%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 0.84rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stone);
}

h1,
h2,
h3,
strong {
  font-family: var(--font-display);
}

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

h1 {
  margin-bottom: 16px;
  font-size: clamp(3rem, 5.5vw, 5.7rem);
  line-height: 1.22;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(1.9rem, 3.2vw, 3rem);
  line-height: 1.35;
}

h3 {
  margin-bottom: 10px;
  font-size: clamp(1.35rem, 2.4vw, 1.95rem);
  line-height: 1.4;
}

p {
  color: var(--text-soft);
  line-height: 1.9;
}

.hero-lead {
  margin-bottom: 14px;
  font-size: clamp(1.06rem, 1.55vw, 1.26rem);
  color: var(--text-main);
}

.hero-note {
  max-width: 46rem;
}

.hero-actions,
.terrain-metrics,
.legend-items {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

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

.button-primary {
  background: linear-gradient(135deg, var(--copper), #a65d39);
  color: #fff8ef;
  box-shadow: 0 16px 28px rgba(199, 119, 73, 0.28);
}

.button-secondary {
  border: 1px solid rgba(255, 224, 188, 0.18);
  background: rgba(251, 242, 227, 0.05);
  color: var(--text-main);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: rgba(251, 242, 227, 0.1);
}

.hero-atlas {
  position: relative;
  min-height: 560px;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid rgba(255, 224, 188, 0.14);
  background:
    radial-gradient(circle at 24% 22%, rgba(255, 255, 255, 0.08), transparent 20%),
    radial-gradient(circle at 76% 72%, rgba(106, 155, 159, 0.14), transparent 20%),
    linear-gradient(180deg, rgba(77, 56, 40, 0.96) 0%, rgba(44, 31, 22, 0.94) 34%, rgba(23, 16, 12, 0.96) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero-atlas::before {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 26px;
  border: 1px solid rgba(255, 224, 188, 0.08);
  background:
    repeating-radial-gradient(circle at 36% 38%, rgba(255, 224, 188, 0.06) 0 2px, transparent 2px 18px),
    repeating-radial-gradient(circle at 72% 64%, rgba(255, 224, 188, 0.035) 0 2px, transparent 2px 22px);
  opacity: 0.9;
}

.atlas-glow {
  position: absolute;
  inset: 18% 16% auto auto;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216, 164, 102, 0.3), transparent 72%);
  filter: blur(18px);
}

.atlas-panel {
  position: absolute;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 224, 188, 0.14);
  background: rgba(18, 13, 10, 0.46);
  backdrop-filter: blur(12px);
  width: min(280px, calc(100% - 36px));
}

.atlas-panel span,
.atlas-panel small {
  display: block;
}

.atlas-panel span {
  margin-bottom: 4px;
  color: var(--text-main);
  font-weight: 600;
}

.atlas-panel small {
  color: var(--text-dim);
  line-height: 1.6;
}

.atlas-panel-north {
  top: 56px;
  right: 46px;
}

.atlas-panel-center {
  top: 228px;
  left: 42px;
}

.atlas-panel-south {
  bottom: 56px;
  right: 64px;
}

.atlas-ridge,
.atlas-route {
  position: absolute;
  pointer-events: none;
}

.atlas-ridge {
  border-radius: 999px;
  border: 1px solid rgba(255, 224, 188, 0.12);
}

.ridge-1 {
  inset: 80px 90px 230px 70px;
  transform: rotate(-12deg);
}

.ridge-2 {
  inset: 176px 56px 138px 140px;
  transform: rotate(8deg);
}

.ridge-3 {
  inset: 320px 120px 36px 40px;
  transform: rotate(-6deg);
}

.atlas-route {
  border-top: 1px dashed rgba(216, 164, 102, 0.5);
  transform-origin: center;
  animation: routeDrift 18s linear infinite;
}

.route-1 {
  top: 160px;
  right: 120px;
  width: 240px;
  transform: rotate(-18deg);
}

.route-2 {
  bottom: 146px;
  left: 86px;
  width: 280px;
  transform: rotate(12deg);
}

.section-heading {
  max-width: 860px;
  padding: 34px 34px 0;
}

.section-heading-wide {
  max-width: 980px;
}

.method-strip {
  padding-bottom: 32px;
}

.honesty-grid,
.region-card-grid,
.expansion-grid {
  display: grid;
  gap: 16px;
  padding: 0 34px;
}

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

.honesty-card,
.region-card,
.info-panel,
.feature-panel,
.expansion-grid article {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(251, 242, 227, 0.08), rgba(251, 242, 227, 0.03));
  box-shadow: var(--shadow-soft);
}

.honesty-card {
  padding: 20px;
}

.certainty-dot,
.legend-swatch {
  display: inline-flex;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  margin-bottom: 14px;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.03);
}

.certainty-proven .certainty-dot,
.certainty-proven .legend-swatch {
  background: var(--proven);
}

.certainty-inferred .certainty-dot,
.certainty-inferred .legend-swatch {
  background: var(--inferred);
}

.certainty-reimagined .certainty-dot,
.certainty-reimagined .legend-swatch {
  background: var(--reimagined);
}

.selector-section {
  padding-bottom: 34px;
}

.region-card {
  display: grid;
  gap: 18px;
  padding: 24px;
  text-align: right;
  cursor: pointer;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.region-card:hover,
.region-card:focus-visible,
.region-card[aria-pressed="true"] {
  transform: translateY(-3px);
  border-color: rgba(255, 224, 188, 0.3);
  background: linear-gradient(180deg, rgba(251, 242, 227, 0.14), rgba(251, 242, 227, 0.06));
}

.region-card-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.region-card-header span {
  color: var(--text-dim);
  font-size: 0.92rem;
}

.region-card h3 {
  margin-bottom: 6px;
}

.region-card p {
  margin-bottom: 0;
}

.region-card .tone {
  font-size: 0.92rem;
  color: var(--stone);
}

.region-card .counts {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.region-card .counts strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-soft);
  font-size: 0.92rem;
  font-family: var(--font-ui);
}

.explorer-section {
  padding-bottom: 34px;
}

.region-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0 34px 22px;
}

.region-tab {
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 224, 188, 0.14);
  background: rgba(251, 242, 227, 0.04);
  color: var(--text-soft);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.region-tab:hover,
.region-tab:focus-visible,
.region-tab[aria-pressed="true"] {
  color: var(--text-main);
  background: rgba(251, 242, 227, 0.12);
  border-color: rgba(255, 224, 188, 0.3);
  transform: translateY(-1px);
}

.explorer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 390px;
  gap: 18px;
  padding: 0 34px;
  align-items: start;
}

.terrain-panel {
  display: grid;
  gap: 16px;
}

.terrain-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.terrain-head p:last-child {
  margin-bottom: 0;
}

.terrain-metrics span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(251, 242, 227, 0.04);
  border: 1px solid rgba(255, 224, 188, 0.12);
  color: var(--text-soft);
  font-size: 0.92rem;
}

.terrain-stage {
  position: relative;
  isolation: isolate;
  min-height: 680px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 224, 188, 0.14);
  background: radial-gradient(circle at 18% 22%, rgba(255, 241, 220, 0.08), transparent 18%), linear-gradient(160deg, rgba(91, 69, 50, 0.96) 0%, rgba(61, 45, 33, 0.96) 34%, rgba(22, 17, 13, 0.98) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.terrain-stage:focus-visible {
  outline: 2px solid rgba(255, 224, 188, 0.5);
  outline-offset: 3px;
}

.terrain-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 72% 24%, rgba(216, 164, 102, 0.16), transparent 18%), linear-gradient(180deg, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0.18) 100%);
  mix-blend-mode: screen;
  opacity: 0.8;
}

.terrain-svg,
.terrain-markers,
.terrain-atmosphere {
  position: absolute;
  inset: 0;
}

.terrain-svg {
  width: 100%;
  height: 100%;
  z-index: 1;
}

.terrain-markers {
  z-index: 2;
}

.terrain-svg .contour {
  fill: none;
  stroke: rgba(255, 233, 204, 0.13);
  stroke-width: 0.45;
}

.terrain-svg .agriculture {
  fill: rgba(126, 145, 92, 0.18);
  stroke: rgba(177, 195, 145, 0.26);
  stroke-width: 0.4;
}

.terrain-svg .spring-line {
  fill: none;
  stroke: rgba(127, 160, 162, 0.28);
  stroke-width: 0.6;
}

.terrain-svg .route {
  fill: none;
  stroke-width: 0.7;
  stroke-linecap: round;
  stroke-dasharray: 2.2 2.4;
  animation: routeFlow 13s linear infinite;
}

.terrain-svg .route.inferred {
  stroke: rgba(177, 195, 145, 0.72);
}

.terrain-svg .route.proven {
  stroke: rgba(241, 192, 120, 0.75);
}

.terrain-svg .zone {
  opacity: 0.36;
}

.terrain-svg .zone.proven {
  fill: rgba(216, 157, 86, 0.18);
  stroke: rgba(216, 157, 86, 0.4);
}

.terrain-svg .zone.inferred {
  fill: rgba(142, 165, 116, 0.14);
  stroke: rgba(177, 195, 145, 0.42);
  stroke-dasharray: 1.8 1.8;
}

.terrain-svg .zone.reimagined {
  fill: rgba(127, 160, 162, 0.12);
  stroke: rgba(172, 209, 212, 0.22);
}

.terrain-svg .water-ring {
  fill: rgba(106, 155, 159, 0.18);
  stroke: rgba(172, 209, 212, 0.35);
  stroke-width: 0.5;
}

.feature-marker {
  position: absolute;
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--text-main);
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  backdrop-filter: blur(10px);
}

.feature-marker .marker-core {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.feature-marker .marker-label {
  position: absolute;
  top: calc(100% + 8px);
  right: 50%;
  transform: translateX(50%);
  width: max-content;
  max-width: 180px;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--text-soft);
  background: rgba(18, 13, 10, 0.68);
  border: 1px solid rgba(255, 224, 188, 0.08);
  opacity: 0;
  transition: opacity 0.18s ease;
  pointer-events: none;
  white-space: nowrap;
}

.feature-marker:hover,
.feature-marker:focus-visible,
.feature-marker.is-active {
  transform: translate(-50%, -50%) scale(1.03);
}

.feature-marker:hover .marker-label,
.feature-marker:focus-visible .marker-label,
.feature-marker.is-active .marker-label {
  opacity: 1;
}

.feature-marker.is-active {
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.03);
}

.feature-marker.certainty-proven {
  background: rgba(216, 157, 86, 0.16);
  border-color: rgba(241, 192, 120, 0.34);
}

.feature-marker.certainty-proven .marker-core {
  background: var(--proven-strong);
  box-shadow: 0 0 0 10px rgba(216, 157, 86, 0.14), 0 0 16px rgba(241, 192, 120, 0.45);
}

.feature-marker.certainty-inferred {
  background: rgba(142, 165, 116, 0.14);
  border-color: rgba(177, 195, 145, 0.28);
}

.feature-marker.certainty-inferred .marker-core {
  background: var(--inferred-strong);
  box-shadow: 0 0 0 8px rgba(142, 165, 116, 0.12);
}

.feature-marker.certainty-reimagined {
  background: rgba(127, 160, 162, 0.14);
  border-color: rgba(172, 209, 212, 0.24);
}

.feature-marker.certainty-reimagined .marker-core {
  background: var(--reimagined-strong);
  box-shadow: 0 0 0 8px rgba(127, 160, 162, 0.12);
}

.feature-marker.kind-atmosphere .marker-core {
  animation: slowPulse 6.4s ease-in-out infinite;
}

.feature-marker.kind-node .marker-core,
.feature-marker.kind-spring .marker-core {
  animation: fastPulse 4.2s ease-in-out infinite;
}

.terrain-atmosphere {
  z-index: 0;
  overflow: hidden;
}

.mist,
.dust {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.mist {
  background: radial-gradient(circle, rgba(255, 240, 220, 0.1), transparent 65%);
  filter: blur(16px);
  animation: mistFloat 22s ease-in-out infinite alternate;
}

.mist-a {
  inset: 14% auto auto 8%;
  width: 220px;
  height: 220px;
}

.mist-b {
  inset: auto 4% 18% auto;
  width: 280px;
  height: 280px;
  animation-duration: 28s;
}

.dust {
  background: radial-gradient(circle, rgba(216, 164, 102, 0.18), transparent 70%);
  filter: blur(10px);
  animation: dustShift 16s linear infinite;
}

.dust-a {
  top: 24%;
  left: 44%;
  width: 120px;
  height: 120px;
}

.dust-b {
  bottom: 18%;
  right: 28%;
  width: 160px;
  height: 160px;
  animation-duration: 20s;
}

.terrain-assist {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.94rem;
}

.legend-panel {
  display: grid;
  gap: 14px;
  padding: 20px 22px;
  border-radius: 24px;
  border: 1px solid rgba(255, 224, 188, 0.12);
  background: rgba(18, 13, 10, 0.32);
}

.legend-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 224, 188, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.legend-item p,
.legend-item strong {
  margin: 0;
}

.legend-item strong {
  display: block;
  margin-bottom: 4px;
}

.inspector-panel {
  display: grid;
  gap: 16px;
}

.info-panel,
.feature-panel {
  padding: 22px;
}

.info-panel h3 {
  margin-bottom: 8px;
}

.info-panel .panel-kicker {
  margin-bottom: 10px;
  font-size: 0.84rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stone);
}

.info-panel .certainty-pill,
.feature-group-label,
.feature-item-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.86rem;
}

.info-panel .certainty-pill.certainty-proven,
.feature-group-label.certainty-proven,
.feature-item-meta.certainty-proven {
  border-color: rgba(241, 192, 120, 0.22);
  background: rgba(216, 157, 86, 0.14);
}

.info-panel .certainty-pill.certainty-inferred,
.feature-group-label.certainty-inferred,
.feature-item-meta.certainty-inferred {
  border-color: rgba(177, 195, 145, 0.22);
  background: rgba(142, 165, 116, 0.12);
}

.info-panel .certainty-pill.certainty-reimagined,
.feature-group-label.certainty-reimagined,
.feature-item-meta.certainty-reimagined {
  border-color: rgba(172, 209, 212, 0.2);
  background: rgba(127, 160, 162, 0.12);
}

.panel-description {
  margin-bottom: 14px;
  color: var(--text-main);
}

.panel-basis,
.panel-footnote {
  margin-bottom: 0;
  color: var(--text-soft);
  font-size: 0.96rem;
}

.panel-basis strong,
.panel-footnote strong,
.feature-group-header strong,
.feature-item-head strong {
  font-family: var(--font-ui);
}

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

.panel-stats div {
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(255, 224, 188, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.panel-stats strong,
.panel-stats span {
  display: block;
}

.panel-stats strong {
  margin-bottom: 2px;
  font-size: 1.08rem;
}

.panel-stats span {
  color: var(--text-dim);
  font-size: 0.86rem;
}

.feature-panel-head {
  margin-bottom: 14px;
}

.feature-panel-head p:last-child {
  margin-bottom: 0;
  color: var(--text-dim);
}

.feature-list,
.feature-group {
  display: grid;
  gap: 12px;
}

.feature-group-header,
.feature-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.feature-items {
  display: grid;
  gap: 8px;
}

.feature-item {
  display: grid;
  gap: 10px;
  width: 100%;
  padding: 14px;
  text-align: right;
  border-radius: 18px;
  border: 1px solid rgba(255, 224, 188, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.feature-item:hover,
.feature-item:focus-visible,
.feature-item.is-active {
  transform: translateY(-1px);
  border-color: rgba(255, 224, 188, 0.24);
  background: rgba(255, 255, 255, 0.06);
}

.feature-item p {
  margin: 0;
  color: var(--text-dim);
  line-height: 1.75;
  font-size: 0.92rem;
}

.expansion-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding-bottom: 34px;
}

.expansion-grid article {
  padding: 20px;
}

.expansion-grid article p {
  margin-bottom: 0;
}

@keyframes fastPulse {
  0%,
  100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.14); opacity: 1; }
}

@keyframes slowPulse {
  0%,
  100% { transform: scale(1); opacity: 0.72; }
  50% { transform: scale(1.1); opacity: 1; }
}

@keyframes routeFlow {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: 16; }
}

@keyframes routeDrift {
  from { opacity: 0.32; }
  50% { opacity: 0.66; }
  to { opacity: 0.32; }
}

@keyframes mistFloat {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(16px, -18px, 0) scale(1.08); }
}

@keyframes dustShift {
  from { transform: translate3d(0, 0, 0); opacity: 0.42; }
  50% { opacity: 0.68; }
  to { transform: translate3d(18px, -8px, 0); opacity: 0.42; }
}

@media (max-width: 1200px) {
  .hero,
  .explorer-grid { grid-template-columns: 1fr; }
  .hero-atlas { min-height: 440px; }
  .inspector-panel { grid-template-columns: 1fr 1fr; }
  .expansion-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .site-shell {
    width: min(100%, calc(100% - 24px));
    padding-top: 12px;
  }

  .topbar {
    position: static;
    border-radius: 24px;
    padding: 16px 18px;
  }

  .honesty-grid,
  .region-card-grid,
  .expansion-grid { grid-template-columns: 1fr; }

  .inspector-panel { grid-template-columns: 1fr; }

  .terrain-head,
  .feature-group-header,
  .topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .panel-stats { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .hero,
  .method-strip,
  .selector-section,
  .explorer-section,
  .expansion-section { border-radius: 24px; }

  .hero {
    min-height: auto;
    padding: 24px 20px;
  }

  .section-heading,
  .region-tabs,
  .explorer-grid,
  .honesty-grid,
  .region-card-grid,
  .expansion-grid {
    padding-left: 20px;
    padding-right: 20px;
  }

  .section-heading { padding-top: 24px; }
  .terrain-stage { min-height: 520px; }
  .hero-atlas { min-height: 360px; }

  .atlas-panel { width: calc(100% - 28px); }
  .atlas-panel-north,
  .atlas-panel-center,
  .atlas-panel-south {
    right: 14px;
    left: 14px;
  }

  .atlas-panel-center { top: 154px; }
  .atlas-panel-south { bottom: 18px; }
  .atlas-ridge,
  .atlas-route { opacity: 0.5; }

  .button,
  .region-tab { width: 100%; }
  .feature-marker .marker-label { display: none; }
}

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