:root {
  --ink-strong: #102a43;
  --ink: #16324f;
  --muted: #5d6c82;
  --muted-soft: #7d8ba0;
  --surface: #fffdf8;
  --surface-alt: #f4efe5;
  --surface-dark: #0f2338;
  --surface-deep: #081726;
  --line: rgba(16, 42, 67, 0.12);
  --line-strong: rgba(255, 255, 255, 0.12);
  --accent: #ff6b4a;
  --accent-strong: #e85535;
  --accent-teal: #0f8b8d;
  --accent-gold: #ffd166;
  --success: #2bb673;
  --shadow-xl: 0 36px 120px rgba(9, 23, 38, 0.18);
  --shadow-lg: 0 24px 70px rgba(9, 23, 38, 0.12);
  --shadow-md: 0 16px 30px rgba(9, 23, 38, 0.08);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface-alt);
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
}

h1,
h2,
h3,
strong {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", serif;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
  line-height: 1.65;
}

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

img {
  display: block;
}

button,
input,
select {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  border: 0;
  clip: rect(0, 0, 0, 0);
}

.page-shell {
  min-height: 100vh;
}

.flash-stack {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 30;
  display: grid;
  gap: 12px;
}

.flash,
.toast {
  padding: 14px 18px;
  border-radius: 16px;
  color: white;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(16px);
}

.flash--success,
.toast.is-visible {
  background: rgba(43, 182, 115, 0.92);
}

.flash--error {
  background: rgba(232, 85, 53, 0.92);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 30px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
  z-index: 30;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.landing-page {
  background:
    radial-gradient(circle at top left, rgba(15, 139, 141, 0.22), transparent 24%),
    linear-gradient(180deg, #071523 0%, #10253c 42%, #0f2238 100%);
  color: white;
}

.hero-section,
.feature-strip,
.narrative-section,
.cta-section,
.auth-layout,
.app-layout,
.error-layout {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-section {
  padding: 26px 0 72px;
  position: relative;
}

.split-landing {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 50%);
  grid-template-rows: auto;
  min-height: 100vh;
}

.split-landing__nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px clamp(20px, 4vw, 48px);
  background: linear-gradient(180deg, rgba(8, 23, 38, 0.95) 0%, transparent 100%);
}

.split-landing__nav .brand-lockup {
  color: white;
}

.split-landing__nav .button--ghost {
  color: white;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-teal) 100%);
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(15, 139, 141, 0.3);
}

.split-landing__scroll {
  grid-column: 1;
  padding: 0 clamp(24px, 5vw, 64px);
  overflow-y: auto;
  height: 100vh;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
}

.split-landing__scroll::-webkit-scrollbar {
  display: none;
}

.split-landing__sticky {
  grid-column: 2;
  position: sticky;
  top: 0;
  height: 100vh;
  background: rgba(0, 0, 0, 0.15);
  border-left: 1px solid rgba(255, 255, 255, 0.06);
}

.split-landing__map {
  width: 100%;
  height: 100%;
  background: var(--surface-deep);
}

.split-landing__map .leaflet-control-zoom {
  display: none;
}

.split-landing__badges {
  position: absolute;
  bottom: 28px;
  left: 24px;
  right: 24px;
  display: flex;
  gap: 14px;
  z-index: 1000;
  pointer-events: none;
}

.split-landing__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 16px;
  background: linear-gradient(135deg, #0f2338 0%, #0a1a2e 100%);
  border: 1px solid rgba(255, 209, 102, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.split-landing__badge strong {
  color: var(--accent-gold);
  font-family: "Iowan Old Style", "Palatino Linotype", serif;
  font-size: 1.35rem;
  line-height: 1;
  text-shadow: 0 0 12px rgba(255, 209, 102, 0.3);
}

.split-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100vh;
  min-height: 100vh;
  padding: 48px 0 40px;
  scroll-snap-align: start;
  position: relative;
}

.split-section .eyebrow,
.split-section h1,
.split-section h2,
.split-section p,
.split-section .split-section__actions,
.split-section .button--primary {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.split-section .eyebrow { transition-delay: 0.05s; }
.split-section h1,
.split-section h2 { transition-delay: 0.15s; }
.split-section p { transition-delay: 0.25s; }
.split-section .split-section__actions,
.split-section .button--primary:not(.split-section__actions .button--primary) { transition-delay: 0.35s; }

.split-section.is-active .eyebrow,
.split-section.is-active h1,
.split-section.is-active h2,
.split-section.is-active p,
.split-section.is-active .split-section__actions,
.split-section.is-active .button--primary {
  opacity: 1;
  transform: translateY(0);
}

.split-section--hero {
  padding-top: 120px;
}

.split-section--hero h1 {
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  line-height: 0.96;
  max-width: 10ch;
  color: white;
  margin-top: 16px;
}

.split-section__text {
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 1.08rem;
  line-height: 1.65;
  max-width: 42ch;
}

.split-section__actions {
  display: flex;
  gap: 14px;
  margin-top: 28px;
}

.split-section--feature .eyebrow {
  color: var(--accent-gold);
}

.split-section--feature h2 {
  margin-top: 14px;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.06;
  color: white;
  max-width: 16ch;
}

.split-section--feature p {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 42ch;
}

.split-section--cta {
  min-height: 100vh;
  text-align: center;
  align-items: center;
}

.split-section--cta h2 {
  margin-top: 14px;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.06;
  color: white;
}

.split-section--cta .button {
  margin-top: 24px;
}

.scroll-indicator {
  position: fixed;
  left: clamp(12px, 2vw, 24px);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 20;
}

.scroll-indicator__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: background 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}

.scroll-indicator__dot:hover {
  background: rgba(255, 255, 255, 0.4);
}

.scroll-indicator__dot.is-active {
  background: var(--accent-gold);
  border-color: var(--accent-gold);
  transform: scale(1.3);
  box-shadow: 0 0 12px rgba(255, 209, 102, 0.4);
}

.scroll-hint {
  position: fixed;
  bottom: 28px;
  left: clamp(24px, 5vw, 64px);
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  z-index: 20;
  animation: scrollHintBounce 2s ease-in-out infinite;
  transition: opacity 0.4s ease;
}

.scroll-hint.is-hidden {
  opacity: 0;
  pointer-events: none;
}

@keyframes scrollHintBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

.top-nav,
.app-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.top-nav {
  position: relative;
  z-index: 2;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 1.02rem;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  box-shadow: 0 14px 36px rgba(16, 42, 67, 0.18);
}

.top-nav__actions,
.app-topbar__actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.button--primary {
  color: white;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-teal) 100%);
  box-shadow: 0 18px 34px rgba(15, 139, 141, 0.22);
}

.button--secondary {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(16, 42, 67, 0.12);
}

.button--ghost {
  background: rgba(255, 255, 255, 0.4);
  border-color: rgba(16, 42, 67, 0.1);
}

.button--large {
  min-height: 56px;
  padding-inline: 26px;
}

.button--block,
.button--wide {
  width: 100%;
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.76rem;
  color: var(--accent-teal);
  font-weight: 700;
}

.hero-grid,
.narrative-section,
.auth-layout,
.admin-grid {
  display: grid;
  gap: 28px;
}

.hero-grid {
  grid-template-columns: minmax(0, 0.96fr) minmax(480px, 1.04fr);
  align-items: center;
  padding-top: 68px;
  position: relative;
  z-index: 1;
}

.hero-copy h1,
.auth-copy h1,
.error-card h1 {
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  line-height: 0.98;
  margin-top: 16px;
}

.hero-copy {
  max-width: 640px;
}

.hero-copy h1 {
  max-width: 10.5ch;
}

.hero-text,
.auth-copy p,
.auth-card__intro,
.error-card p {
  margin-top: 18px;
  max-width: 62ch;
  font-size: 1rem;
  color: var(--muted);
}

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

.hero-ribbon {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hero-ribbon span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(16, 42, 67, 0.08);
  color: var(--ink);
  box-shadow: 0 10px 24px rgba(16, 42, 67, 0.06);
}

.hero-stats,
.feature-grid,
.dashboard-kpis,
.preview-card-grid {
  display: grid;
  gap: 18px;
}

.hero-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 32px;
}

.metric-card,
.feature-card,
.preview-card,
.mosaic-card,
.kpi-card,
.panel,
.auth-card,
.error-card {
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.52);
  box-shadow: var(--shadow-lg);
}

.metric-card,
.feature-card,
.preview-card,
.mosaic-card,
.kpi-card,
.auth-card,
.error-card {
  padding: 22px;
}

.metric-card strong,
.feature-card h3,
.mosaic-card strong,
.kpi-card strong {
  display: block;
  font-size: 1.55rem;
  margin-bottom: 10px;
}

.preview-card strong {
  display: block;
  font-size: 1.05rem;
  line-height: 1.25;
  margin-bottom: 6px;
}

.metric-card span,
.preview-card__eyebrow,
.feature-card p,
.mosaic-card .eyebrow,
.kpi-card span {
  color: var(--muted);
}

.hero-visual {
  position: relative;
  min-height: 620px;
  transform-style: preserve-3d;
  display: flex;
  align-items: center;
  justify-content: center;
}

.passport-scene {
  position: relative;
  width: min(100%, 620px);
  min-height: 620px;
  display: grid;
  place-items: center;
  perspective: 1600px;
}

.passport-halo {
  position: absolute;
  border-radius: 50%;
  filter: blur(28px);
  opacity: 0.5;
}

.passport-halo--teal {
  width: 220px;
  height: 220px;
  top: 72px;
  right: 82px;
  background: rgba(15, 139, 141, 0.22);
}

.passport-halo--gold {
  width: 170px;
  height: 170px;
  left: 54px;
  bottom: 90px;
  background: rgba(255, 209, 102, 0.22);
}

.passport-book {
  position: relative;
  width: min(100%, 590px);
  min-height: 420px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 20px 18px;
  border-radius: 34px;
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.28), transparent 18%),
    linear-gradient(160deg, #bfa989 0%, #e3d3b7 12%, #f7ecd8 46%, #e3d2b6 100%);
  border: 1px solid rgba(93, 77, 54, 0.18);
  box-shadow: 0 36px 90px rgba(16, 42, 67, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.8), inset 0 -18px 28px rgba(121, 99, 66, 0.08);
  transform: rotate(-8deg);
}

.passport-book::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 26px;
  border: 1px solid rgba(93, 77, 54, 0.12);
  pointer-events: none;
}

.passport-book::after {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 24px;
  background:
    linear-gradient(90deg, rgba(84, 64, 38, 0.05), transparent 14%, transparent 86%, rgba(84, 64, 38, 0.05)),
    radial-gradient(circle at 24% 76%, rgba(123, 94, 58, 0.06), transparent 18%);
  pointer-events: none;
}

.passport-book__spine {
  position: absolute;
  top: 16px;
  bottom: 16px;
  left: calc(50% - 12px);
  width: 24px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(104, 81, 49, 0.22), rgba(255, 255, 255, 0.12), rgba(104, 81, 49, 0.16)),
    linear-gradient(90deg, rgba(120, 91, 49, 0.3), rgba(255, 255, 255, 0.3), rgba(120, 91, 49, 0.24));
  box-shadow: inset 0 0 10px rgba(104, 81, 49, 0.18);
}

.passport-page {
  position: relative;
  min-height: 380px;
  padding: 24px 20px 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.32), transparent 18%),
    radial-gradient(circle at 82% 78%, rgba(146, 121, 88, 0.08), transparent 18%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(248, 239, 221, 0.88)),
    repeating-linear-gradient(180deg, rgba(163, 138, 104, 0.05) 0 1px, transparent 1px 26px),
    repeating-linear-gradient(90deg, rgba(166, 144, 112, 0.028) 0 1px, transparent 1px 22px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.passport-page--left {
  border-radius: 24px 10px 10px 24px;
}

.passport-page--right {
  border-radius: 10px 24px 24px 10px;
}

.passport-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 26% 18%, rgba(15, 139, 141, 0.08), transparent 24%),
    radial-gradient(circle at 78% 76%, rgba(255, 107, 74, 0.08), transparent 22%);
  pointer-events: none;
}

.passport-page::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(96deg, transparent 0 46%, rgba(110, 88, 57, 0.055) 49%, rgba(255, 255, 255, 0.12) 51%, transparent 54%),
    radial-gradient(circle at 14% 84%, rgba(132, 104, 71, 0.05), transparent 16%);
  pointer-events: none;
}

.passport-page__meta {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: rgba(70, 54, 35, 0.66);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.passport-page--left .passport-page__meta,
.passport-page--right .passport-page__meta {
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.18);
}

.passport-route {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 270px;
  margin-top: 24px;
}

.passport-route__continent {
  fill: rgba(30, 52, 77, 0.18);
}

.passport-route__continent--alt {
  fill: rgba(30, 52, 77, 0.13);
}

.passport-route__continent--small {
  fill: rgba(30, 52, 77, 0.15);
}

.passport-route__line {
  fill: none;
  stroke: url(#routeStroke);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 12 12;
  animation: dash 15s linear infinite;
}

.passport-route__line--secondary {
  stroke-width: 3;
  opacity: 0.75;
  animation-direction: reverse;
}

.passport-route__dot {
  fill: #fff8ed;
  stroke: rgba(16, 42, 67, 0.16);
  stroke-width: 6;
  animation: pulse 3.2s ease-in-out infinite;
}

.passport-route__dot--2 {
  fill: var(--accent-gold);
  animation-delay: 0.5s;
}

.passport-route__dot--3 {
  fill: var(--accent);
  animation-delay: 1s;
}

.passport-route__dot--4 {
  fill: var(--accent-teal);
  animation-delay: 1.5s;
}

.passport-stamp {
  position: absolute;
  max-width: 170px;
  mix-blend-mode: multiply;
  opacity: 0;
  filter: saturate(0.86) contrast(0.98) blur(0.1px);
  transform-origin: center;
  animation: stampIn 800ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.passport-stamp--iceland {
  top: 162px;
  left: 32px;
  transform: rotate(-13deg) scale(0.84);
  animation-delay: 0.25s;
}

.passport-stamp--ghana {
  bottom: 28px;
  left: 78px;
  max-width: 150px;
  transform: rotate(8deg) scale(0.84);
  animation-delay: 0.8s;
}

.passport-stamp--vietnam {
  top: 122px;
  right: 18px;
  max-width: 190px;
  transform: rotate(-7deg) scale(0.84);
  animation-delay: 1.35s;
}

.passport-badge,
.passport-note {
  position: relative;
  z-index: 1;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.46);
  border: 1px solid rgba(93, 77, 54, 0.12);
  box-shadow: 0 10px 26px rgba(85, 69, 48, 0.08);
}

.passport-badge {
  margin-top: 22px;
  max-width: 220px;
}

.passport-badge span,
.passport-note span {
  display: block;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(70, 54, 35, 0.62);
}

.passport-badge strong,
.passport-note strong {
  display: block;
  margin-top: 8px;
  color: var(--ink-strong);
  font-size: 1.25rem;
  line-height: 1.2;
}

.passport-badge em {
  display: block;
  margin-top: 6px;
  font-style: normal;
  color: rgba(70, 54, 35, 0.72);
  font-size: 0.95rem;
}

.passport-note {
  max-width: 220px;
  margin-top: 182px;
  margin-left: auto;
  transform: rotate(2deg);
}

.hero-orbit {
  position: absolute;
  inset: 10px auto auto -18px;
  width: min(88%, 560px);
  opacity: 0.92;
  z-index: 0;
  filter: drop-shadow(0 18px 32px rgba(15, 139, 141, 0.16));
  animation: drift 7s ease-in-out infinite;
}

.orbit-ring {
  fill: none;
  stroke-width: 1.5;
}

.orbit-ring--soft {
  stroke: rgba(16, 42, 67, 0.18);
}

.orbit-ring--bright {
  stroke: rgba(16, 42, 67, 0.28);
}

.orbit-path {
  fill: rgba(255, 255, 255, 0.68);
  stroke: url(#heroStroke);
  stroke-width: 2.6;
}

.orbit-dash {
  fill: none;
  stroke: url(#heroStroke);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 10 14;
  animation: dash 16s linear infinite;
}

.orbit-dash--reverse {
  animation-direction: reverse;
  opacity: 0.72;
}

.orbit-node {
  animation: pulse 3.2s ease-in-out infinite;
}

.orbit-node--gold {
  fill: var(--accent-gold);
}

.orbit-node--coral {
  fill: var(--accent);
  animation-delay: 0.6s;
}

.orbit-node--teal {
  fill: var(--accent-teal);
  animation-delay: 1.2s;
}

.preview-window {
  position: absolute;
  right: 0;
  bottom: 18px;
  width: min(100%, 470px);
  border-radius: 34px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(8, 23, 38, 0.82);
  box-shadow: 0 36px 90px rgba(9, 23, 38, 0.28);
  backdrop-filter: blur(18px);
  transition: transform 240ms ease, box-shadow 240ms ease;
  z-index: 1;
}

.preview-window__chrome {
  display: flex;
  gap: 8px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.06);
}

.preview-window__chrome span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
}

.preview-window__content {
  display: grid;
  gap: 16px;
  padding: 20px;
}

.preview-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: white;
  box-shadow: none;
}

.preview-card__eyebrow {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.66);
}

.preview-card--wide {
  padding: 20px;
}

.preview-progress {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 10px;
}

.preview-progress span {
  display: block;
  margin-top: 4px;
  font-size: 0.96rem;
  color: rgba(255, 255, 255, 0.66);
}

.preview-progress__ring {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: conic-gradient(var(--accent-gold) 0 92deg, rgba(255, 255, 255, 0.12) 92deg 360deg);
  position: relative;
}

.preview-progress__ring::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: rgba(8, 23, 38, 0.95);
}

.preview-map {
  position: relative;
  min-height: 220px;
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 30%, rgba(15, 139, 141, 0.22), transparent 18%),
    radial-gradient(circle at 74% 48%, rgba(255, 107, 74, 0.16), transparent 21%),
    linear-gradient(180deg, #122a43 0%, #081726 100%);
}

.preview-map__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255, 209, 102, 0.12), transparent 52%);
}

.preview-map__continent {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.preview-map__continent--1 {
  width: 180px;
  height: 110px;
  top: 58px;
  left: 50px;
}

.preview-map__continent--2 {
  width: 120px;
  height: 82px;
  top: 52px;
  right: 58px;
}

.preview-map__continent--3 {
  width: 110px;
  height: 64px;
  bottom: 38px;
  left: 210px;
}

.preview-dot {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.12);
  animation: pulse 3s ease-in-out infinite;
}

.preview-dot--1 {
  top: 72px;
  left: 122px;
}

.preview-dot--2 {
  top: 96px;
  right: 116px;
  background: var(--accent-gold);
  animation-delay: 0.8s;
}

.preview-dot--3 {
  bottom: 52px;
  left: 248px;
  background: var(--accent);
  animation-delay: 1.4s;
}

.showcase-strip {
  padding: 12px 0 20px;
}

.showcase-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 22px;
  padding: 28px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at top left, rgba(255, 209, 102, 0.18), transparent 22%),
    linear-gradient(160deg, rgba(16, 42, 67, 0.96), rgba(8, 23, 38, 0.96));
  color: white;
  box-shadow: var(--shadow-xl);
}

.showcase-panel__copy p {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.98rem;
}

.showcase-metrics {
  display: grid;
  gap: 14px;
}

.showcase-metric {
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.showcase-metric span {
  display: block;
  color: rgba(255, 255, 255, 0.62);
  margin-bottom: 10px;
}

.showcase-metric strong {
  font-size: 1.22rem;
  line-height: 1.22;
  color: white;
}

.feature-strip {
  padding: 36px 0 28px;
}

.section-heading {
  max-width: 760px;
}

.section-heading h2,
.narrative-panel h2,
.cta-section h2,
.panel__header h2,
.auth-card h2 {
  margin-top: 12px;
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
  line-height: 1.04;
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
}

.feature-card {
  min-height: 220px;
}

.feature-card h3 {
  font-size: 1.35rem;
}

.feature-card p,
.journey-list {
  font-size: 0.98rem;
}

.narrative-section {
  grid-template-columns: 1fr 1fr;
  padding: 48px 0;
  align-items: stretch;
}

.narrative-panel,
.cta-section {
  padding: 30px;
  border-radius: var(--radius-xl);
  background: linear-gradient(160deg, rgba(16, 42, 67, 0.96), rgba(8, 23, 38, 0.96));
  color: white;
  box-shadow: var(--shadow-xl);
}

.journey-list {
  margin: 28px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 14px;
  color: rgba(255, 255, 255, 0.82);
}

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

.mosaic-card {
  min-height: 190px;
}

.mosaic-card strong {
  font-size: 1.3rem;
  line-height: 1.25;
}

.mosaic-card--tall {
  grid-column: span 2;
}

.cta-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin: 18px auto 60px;
}

.auth-page {
  background:
    radial-gradient(circle at top left, rgba(15, 139, 141, 0.2), transparent 32%),
    linear-gradient(180deg, #fbf6ee 0%, #ece2d1 100%);
}

.auth-page--dark {
  background:
    radial-gradient(circle at top left, rgba(15, 139, 141, 0.22), transparent 24%),
    linear-gradient(180deg, #071523 0%, #10253c 42%, #0f2238 100%);
  color: white;
}

.auth-page--dark .auth-visual {
  background: linear-gradient(160deg, rgba(16, 42, 67, 0.6), rgba(8, 23, 38, 0.8));
  box-shadow: none;
}

.auth-page--dark .auth-card-wrap {
  background: transparent;
}

.auth-page--dark .auth-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: none;
  color: white;
}

.auth-page--dark .auth-card h2 {
  color: white;
}

.auth-page--dark .auth-card__intro {
  color: rgba(255, 255, 255, 0.62);
}

.auth-page--dark .eyebrow {
  color: var(--accent-gold);
}

.auth-page--dark .brand-lockup {
  color: white;
}

.auth-page--dark .field span {
  color: rgba(255, 255, 255, 0.68);
}

.auth-page--dark .field input {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: white;
}

.auth-page--dark .field input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.auth-page--dark .field input:focus {
  border-color: rgba(15, 139, 141, 0.5);
  box-shadow: 0 0 0 4px rgba(15, 139, 141, 0.12);
}

.auth-visual {
  position: relative;
  overflow: hidden;
}

.auth-map {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--surface-deep);
}

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

.auth-visual__overlay {
  position: relative;
  z-index: 1;
  padding: 30px 30px 24px;
  background: rgba(8, 23, 38, 0.6);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.4),
    inset 0 -1px 0 rgba(255, 209, 102, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.auth-visual__overlay .auth-copy {
  margin-top: 16px;
}

.auth-visual__overlay .auth-copy h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.auth-visual__overlay .auth-copy p {
  margin-top: 10px;
  font-size: 0.92rem;
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 470px);
  align-items: stretch;
  min-height: 100vh;
  padding: 28px 0;
}

.auth-visual,
.auth-card-wrap {
  border-radius: var(--radius-xl);
}

.auth-visual {
  position: relative;
  color: white;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.auth-copy {
  margin-top: 80px;
  max-width: 520px;
}

.auth-copy h1 {
  font-size: clamp(2.35rem, 4.2vw, 3.7rem);
  max-width: 10ch;
}

.auth-copy p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1rem;
}

.auth-illustration {
  position: absolute;
  right: -40px;
  bottom: -30px;
  width: min(620px, 72%);
}

.auth-arc {
  fill: none;
  stroke: url(#authGradient);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 18 12;
  animation: dash 14s linear infinite;
}

.auth-arc--secondary {
  opacity: 0.6;
  animation-direction: reverse;
}

.auth-node {
  fill: var(--accent-teal);
  animation: pulse 3.4s ease-in-out infinite;
}

.auth-node--warm {
  fill: var(--accent-gold);
  animation-delay: 0.7s;
}

.auth-node--soft {
  fill: var(--accent);
  animation-delay: 1.4s;
}

.auth-card-wrap {
  display: grid;
  place-items: center;
}

.auth-card {
  width: min(100%, 420px);
}

.auth-card h2 {
  font-size: clamp(1.65rem, 2.2vw, 2.15rem);
}

.form-grid {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.field {
  display: grid;
  gap: 8px;
}

.field span,
.checkbox span {
  font-size: 0.94rem;
  color: var(--muted);
}

.field input,
.field select {
  min-height: 52px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: rgba(15, 139, 141, 0.5);
  box-shadow: 0 0 0 4px rgba(15, 139, 141, 0.12);
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 12px;
}

.checkbox input {
  width: 18px;
  height: 18px;
}

.app-page {
  background:
    radial-gradient(circle at top left, rgba(15, 139, 141, 0.22), transparent 24%),
    linear-gradient(180deg, #071523 0%, #10253c 42%, #0f2238 100%);
  color: white;
}

.app-page .brand-lockup,
.app-page .button--ghost {
  color: white;
}

.app-page .button--ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

.dash-shell {
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.dash-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 56px;
  flex-shrink: 0;
  background: rgba(8, 23, 38, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 1000;
  color: white;
  gap: 16px;
}

.dash-topbar .brand-lockup {
  color: white;
}

.dash-topbar .brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  box-shadow: none;
}

.dash-topbar__center {
  display: flex;
  align-items: center;
  gap: 16px;
}

.dash-user-name {
  font-family: "Iowan Old Style", "Palatino Linotype", serif;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.dash-topbar__stats {
  display: flex;
  gap: 8px;
}

.dash-topbar__stat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
}

.dash-topbar__stat strong {
  color: var(--accent-gold);
  font-size: 0.85rem;
  font-family: "Iowan Old Style", "Palatino Linotype", serif;
}

.dash-topbar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dash-topbar__select {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: white;
  font-size: 0.88rem;
}

.dash-map-wrap {
  position: relative;
  flex: 1;
  min-height: 0;
}

.dash-map {
  width: 100%;
  height: 100%;
  background: #0a1827;
}

.dash-kpi-overlay {
  position: absolute;
  bottom: 24px;
  left: 24px;
  display: flex;
  gap: 12px;
  z-index: 1000;
  pointer-events: none;
}

.dash-kpi-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 16px;
  background: linear-gradient(135deg, #0f2338 0%, #0a1a2e 100%);
  border: 1px solid rgba(255, 209, 102, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.88rem;
  font-weight: 600;
  pointer-events: auto;
}

.dash-kpi-badge strong {
  color: var(--accent-gold);
  font-family: "Iowan Old Style", "Palatino Linotype", serif;
  font-size: 1.35rem;
  line-height: 1;
  text-shadow: 0 0 12px rgba(255, 209, 102, 0.3);
}

.dash-kpi-badge--ring {
  padding: 6px 14px 6px 6px;
}

.dash-kpi-badge .progress-ring {
  width: 48px;
  height: 48px;
  padding: 4px;
}

.dash-kpi-badge .progress-ring__inner strong {
  font-size: 0.82rem;
}

.dash-kpi-badge .progress-ring__inner span {
  display: none;
}

.dash-drawer-toggle {
  position: absolute;
  top: 20px;
  right: 24px;
  z-index: 1000;
  padding: 12px 22px;
  border-radius: 14px;
  border: 1px solid rgba(255, 209, 102, 0.22);
  background: linear-gradient(135deg, #0f2338 0%, #0a1a2e 100%);
  color: white;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.dash-drawer-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.dash-map-save {
  position: absolute;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  padding: 14px 28px;
  border-radius: 14px;
  border: 1px solid rgba(255, 209, 102, 0.4);
  background: var(--accent-gold);
  color: var(--surface-deep);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(255, 209, 102, 0.25);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.dash-map-save:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 40px rgba(255, 209, 102, 0.35);
}

.dash-map-save[hidden] {
  display: none;
}

.dash-scrim {
  position: fixed;
  inset: 0;
  z-index: 1999;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 320ms ease;
}

.dash-scrim.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.dash-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(460px, 90vw);
  height: 100vh;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #0f2338 0%, #0a1827 100%);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: -16px 0 60px rgba(0, 0, 0, 0.4);
  transform: translateX(100%);
  transition: transform 320ms cubic-bezier(0.4, 0, 0.2, 1);
  color: white;
}

.dash-drawer.is-open {
  transform: translateX(0);
}

.dash-drawer__header {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.dash-drawer__header h2 {
  font-size: 1.25rem;
  flex: 1;
  margin: 0;
}

.dash-drawer__close {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 150ms ease;
}

.dash-drawer__close:hover {
  background: rgba(255, 255, 255, 0.12);
}

.dash-drawer__header .field--search {
  width: 100%;
}

.dash-drawer__header .field--search input {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: white;
}

.dash-drawer__header .field--search input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.dash-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
}

.dash-drawer .continent-list {
  max-height: none;
}

.dash-drawer__footer {
  padding: 16px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.field--select select {
  min-width: 260px;
}

.kpi-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.kpi-card span {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.92rem;
}

.kpi-card strong {
  margin-top: 10px;
  color: white;
  font-size: 1.45rem;
}

.kpi-card--progress {
  display: flex;
  align-items: center;
  justify-content: center;
}

.progress-ring {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  padding: 10px;
  background: conic-gradient(var(--accent-gold) 0deg, rgba(255, 255, 255, 0.08) 0deg);
}

.progress-ring__inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(8, 23, 38, 0.95);
  text-align: center;
}

.progress-ring__inner strong {
  font-size: 1.55rem;
}

.progress-ring__inner span {
  color: rgba(255, 255, 255, 0.62);
}


.panel {
  padding: 22px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.panel__header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.app-page .panel__header h2 {
  font-size: 1.45rem;
}

.panel__header--stacked {
  align-items: stretch;
}

.panel__hint {
  color: rgba(255, 255, 255, 0.62);
  max-width: 260px;
  font-size: 0.94rem;
}

.map-canvas {
  height: 620px;
  border-radius: 24px;
  overflow: hidden;
}

.leaflet-container {
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
  background: transparent;
}

.continent-list {
  display: grid;
  gap: 12px;
  max-height: 540px;
  padding-right: 6px;
  overflow: auto;
}

.continent-card {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.continent-card__header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  border: 0;
  color: white;
  background: transparent;
  padding: 16px 18px;
  cursor: pointer;
}

.continent-card__chevron {
  color: rgba(255, 255, 255, 0.5);
  transition: transform 180ms ease;
}

.continent-card.is-collapsed .continent-card__chevron {
  transform: rotate(-90deg);
}

.continent-card__header strong {
  font-size: 1.02rem;
}

.continent-card__meta {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.9rem;
}

.continent-card__content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0 18px 18px;
}

.continent-card__content[hidden] {
  display: none;
}

.country-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid transparent;
  color: rgba(255, 255, 255, 0.92);
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.country-toggle.is-checked {
  background: rgba(255, 209, 102, 0.16);
  border-color: rgba(255, 209, 102, 0.24);
}

.country-toggle:hover {
  transform: translateY(-1px);
}

.country-toggle input {
  width: 18px;
  height: 18px;
}

.country-emoji {
  font-size: 1.1rem;
}

.country-name {
  display: block;
  line-height: 1.3;
  font-size: 0.96rem;
}

.country-iso {
  display: block;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.54);
}

.panel__footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-top: 18px;
}

.panel__footer span {
  color: rgba(255, 255, 255, 0.68);
}

.selection-meta {
  display: grid;
  gap: 6px;
}

.save-state {
  font-size: 0.9rem;
}

.save-state.is-dirty {
  color: var(--accent-gold);
}

.save-state.is-saving {
  color: white;
}

.save-state.is-saved {
  color: rgba(255, 255, 255, 0.68);
}

.field--search input {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.1);
  color: white;
}

.field--search input::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

.admin-grid {
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
  margin-top: 28px;
}

.app-topbar__title {
  font-size: 1.1rem;
  font-family: inherit;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  overflow: hidden;
}

.admin-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-table td {
  padding: 14px 16px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
}

.admin-table__row {
  cursor: pointer;
  transition: background 120ms ease;
}

.admin-table__row:hover {
  background: rgba(255, 255, 255, 0.04);
}

.admin-table__row.is-expanded {
  background: rgba(255, 255, 255, 0.06);
}

.admin-table__row td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.admin-table__mono {
  font-family: "SF Mono", "Fira Code", monospace;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
}

.admin-table__chevron {
  text-align: center;
  color: rgba(255, 255, 255, 0.35);
  transition: transform 180ms ease;
  display: inline-block;
}

.admin-table__row.is-expanded .admin-table__chevron {
  transform: rotate(90deg);
}

.admin-table__detail[hidden] {
  display: none;
}

.admin-table__detail td {
  padding: 18px 16px 24px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.form-grid--inline {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.form-grid__row {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.badge--sm {
  min-height: 26px;
  font-size: 0.78rem;
  padding: 0 10px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.78);
}

.badge--accent {
  background: rgba(255, 209, 102, 0.16);
  color: var(--accent-gold);
}

.error-page {
  background: linear-gradient(180deg, #fbf7ef 0%, #ece2d3 100%);
}

.error-layout {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.error-card {
  max-width: 680px;
  text-align: center;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

@keyframes drift {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-16px);
  }
}

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

@keyframes dash {
  from {
    stroke-dashoffset: 0;
  }
  to {
    stroke-dashoffset: -240;
  }
}


@media (max-width: 1080px) {
  .hero-grid,
  .admin-grid,
  .narrative-section,
  .auth-layout {
    grid-template-columns: 1fr;
  }

  .hero-stats,
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .cta-section {
    flex-direction: column;
    align-items: flex-start;
  }

  .split-landing {
    grid-template-columns: 1fr;
  }

  .split-landing__scroll {
    height: auto;
    overflow-y: visible;
    scroll-snap-type: none;
  }

  .split-landing__sticky {
    position: relative;
    height: 50vh;
    grid-column: 1;
    border-left: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    order: -1;
  }

  .split-section {
    height: auto;
    min-height: auto;
    padding: 48px 0;
    scroll-snap-align: none;
  }

  .split-section--hero {
    padding-top: 40px;
  }

  .split-section--cta {
    min-height: auto;
  }

  .scroll-indicator,
  .scroll-hint {
    display: none;
  }

  .split-section .eyebrow,
  .split-section h1,
  .split-section h2,
  .split-section p,
  .split-section .split-section__actions,
  .split-section .button--primary {
    opacity: 1;
    transform: none;
  }

  .dash-topbar__stats {
    display: none;
  }

  .dash-drawer {
    width: min(460px, 90vw);
  }
}

@media (max-width: 720px) {
  .hero-section,
  .feature-strip,
  .narrative-section,
  .cta-section,
  .auth-layout,
  .app-layout,
  .error-layout {
    width: min(100% - 20px, 100%);
  }

  .hero-grid {
    padding-top: 42px;
  }

  .hero-copy h1,
  .auth-copy h1,
  .error-card h1 {
    font-size: clamp(2.6rem, 12vw, 4rem);
  }

  .hero-stats,
  .feature-grid,
  .preview-card-grid,
  .narrative-mosaic,
  .continent-card__content {
    grid-template-columns: 1fr;
  }

  .showcase-panel {
    padding: 22px;
  }

  .top-nav,
  .app-topbar,
  .panel__header,
  .panel__footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .form-grid--inline {
    grid-template-columns: 1fr;
  }

  .admin-table__chevron {
    display: none;
  }

  .map-canvas {
    height: 420px;
  }

  .split-landing__sticky {
    height: 40vh;
  }

  .split-section--hero h1 {
    font-size: clamp(2.2rem, 11vw, 3.2rem);
  }

  .auth-visual {
    display: none;
  }

  .dash-drawer {
    width: 100vw;
  }

  .dash-kpi-overlay {
    gap: 10px;
  }

  .dash-kpi-badge {
    padding: 8px 14px;
    font-size: 0.85rem;
  }

  .dash-kpi-badge strong {
    font-size: 1.15rem;
  }

  .dash-kpi-badge .progress-ring {
    width: 40px;
    height: 40px;
    padding: 4px;
  }

  .dash-kpi-badge .progress-ring__inner strong {
    font-size: 0.7rem;
  }

  .dash-kpi-badge .progress-ring__inner span {
    display: none;
  }

  .dash-topbar {
    padding: 0 12px;
    gap: 8px;
  }

  .dash-topbar .brand-lockup span {
    display: none;
  }

  .dash-topbar__actions {
    gap: 6px;
  }
}
