:root {
  --bg: #050814;
  --panel-border: rgba(120, 149, 255, 0.18);
  --ink: #eef4ff;
  --muted: #98a6d4;
  --muted-strong: #c7d1f2;
  --blue: #59d9ff;
  --violet: #8b62ff;
  --glow: 0 30px 80px rgba(4, 9, 26, 0.55);
  --glass: linear-gradient(180deg, rgba(18, 26, 57, 0.52), rgba(8, 12, 26, 0.68));
  --map-fill: rgba(94, 126, 255, 0.22);
  --map-stroke: rgba(174, 199, 255, 0.38);
  --map-hover: rgba(89, 217, 255, 0.5);
  --map-active: rgba(139, 98, 255, 0.72);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 16%, rgba(255, 154, 84, 0.18), transparent 24%),
    radial-gradient(circle at 80% 12%, rgba(89, 217, 255, 0.18), transparent 22%),
    radial-gradient(circle at 50% 72%, rgba(139, 98, 255, 0.12), transparent 26%),
    linear-gradient(180deg, #03050d 0%, #060a18 36%, #040712 100%);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }

:focus-visible {
  outline: 2px solid rgba(89, 217, 255, 0.8);
  outline-offset: 2px;
  border-radius: 3px;
}

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

.cinematic-backdrop {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.backdrop-image,
.topography-grid,
.map-silhouette,
.backdrop-overlay {
  position: absolute;
  inset: -6%;
}

.backdrop-image {
  background:
    radial-gradient(circle at 50% 82%, rgba(255, 175, 121, 0.26), transparent 24%),
    radial-gradient(circle at 24% 34%, rgba(89, 217, 255, 0.14), transparent 18%),
    linear-gradient(180deg, rgba(255, 155, 86, 0.18), rgba(9, 14, 31, 0.16) 34%, rgba(3, 6, 15, 0.9) 100%),
    linear-gradient(155deg, rgba(11, 17, 36, 0.32), rgba(5, 9, 22, 0.88)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 900'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0%25' stop-color='%2317223f'/%3E%3Cstop offset='52%25' stop-color='%23091222'/%3E%3Cstop offset='100%25' stop-color='%23030711'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='1600' height='900' fill='url(%23g)'/%3E%3Cpath d='M0 620 L140 520 L240 560 L360 448 L520 530 L700 390 L900 470 L1060 360 L1240 452 L1420 330 L1600 430 L1600 900 L0 900 Z' fill='%231a2648'/%3E%3Cpath d='M0 700 L180 610 L320 650 L500 560 L720 650 L940 520 L1160 620 L1380 500 L1600 570 L1600 900 L0 900 Z' fill='%2310182f'/%3E%3C/svg%3E");
  background-size: cover;
  transform: scale(1.08);
}

.topography-grid {
  background:
    linear-gradient(rgba(89, 217, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(89, 217, 255, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.35), transparent 82%);
}

.map-silhouette {
  inset: auto 8% 14% auto;
  width: min(56vw, 920px);
  height: min(48vw, 620px);
  background:
    radial-gradient(circle at 50% 50%, rgba(89, 217, 255, 0.14), transparent 44%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 320'%3E%3Cpath d='M29 169l55-29 46 10 51-26 74 25 70-11 54 14 72-11 82 35 59 4 56 43 64-1 47 39-12 18-54 6-88-17-87 6-72 24-90-8-89 14-58-16-70-41-65-9-44-34 5-31z' fill='rgba(255,255,255,0.06)' stroke='rgba(127,187,255,0.4)' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.95;
}

.backdrop-overlay {
  background: linear-gradient(180deg, rgba(2, 4, 10, 0.24), rgba(3, 6, 15, 0.68) 48%, rgba(3, 6, 15, 0.96) 100%);
}

.layer-back { transform: translateY(calc(var(--parallax-y, 0px) * 0.18)); }
.layer-mid { transform: translateY(calc(var(--parallax-y, 0px) * 0.38)); }
.layer-front {
  transform:
    translateY(calc(var(--parallax-y, 0px) * 0.62))
    translateX(calc(var(--parallax-x, 0px) * 0.22));
}

.glass {
  background: var(--glass), rgba(9, 13, 29, 0.48);
  border: 1px solid var(--panel-border);
  box-shadow: var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(24px);
}

.topbar {
  position: sticky;
  top: 18px;
  z-index: 30;
  max-width: 1500px;
  margin: 22px auto 0;
  padding: 18px 22px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand-lockup { display: grid; gap: 6px; }
.brand-kicker, .eyebrow {
  margin: 0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--blue);
}
.brand-name {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.topnav { display: flex; gap: 18px; color: var(--muted); }

.topbar-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 8px 0 28px;
  display: grid;
  gap: 14px;
}

.hero-map {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.hero-intro {
  border-radius: 28px;
  padding: 18px 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-width: 0;
}

.hero-intro-copy h1,
.section-heading h2,
.control-panel h2,
.map-header h2,
.format-card h3,
.feature-card h3,
.preview-card h3 {
  margin: 0;
  letter-spacing: -0.06em;
}

.hero-intro-copy h1 {
  font-size: clamp(34px, 3.7vw, 56px);
  line-height: 1;
  max-width: none;
  white-space: nowrap;
}

.hero-text,
.panel-copy,
.stage-hint,
.format-card p,
.feature-card p,
.preview-card p {
  color: var(--muted);
}

.hero-text {
  margin: 10px 0 0;
  max-width: none;
  font-size: 14px;
  line-height: 1.4;
  white-space: nowrap;
}

.hero-format-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  justify-content: end;
  max-width: 640px;
}

.hero-format-chip {
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(127, 154, 255, 0.18);
  background: linear-gradient(135deg, rgba(17, 31, 73, 0.86), rgba(11, 21, 51, 0.94));
  color: var(--muted-strong);
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
  transition:
    transform 140ms ease,
    border-color 140ms ease,
    box-shadow 140ms ease,
    background 140ms ease,
    color 140ms ease;
}

.hero-format-chip:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(112, 226, 255, 0.34);
  box-shadow: 0 10px 24px rgba(7, 12, 32, 0.24);
}

.hero-format-chip.is-active {
  color: #04111f;
  border-color: rgba(116, 232, 255, 0.48);
  background: linear-gradient(135deg, rgba(89, 217, 255, 0.96), rgba(120, 162, 255, 0.94));
  box-shadow: 0 12px 30px rgba(26, 123, 186, 0.22);
}

.hero-format-chip.is-planned,
.hero-format-chip:disabled {
  color: rgba(199, 209, 242, 0.54);
  border-color: rgba(127, 154, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  cursor: not-allowed;
  box-shadow: none;
}

.primary-action,
.secondary-action,
.reset-button,
.download-link {
  min-height: 52px;
  padding: 0 20px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.primary-action {
  background: linear-gradient(135deg, rgba(89, 217, 255, 0.94), rgba(139, 98, 255, 0.96));
  color: #060916;
  font-weight: 800;
}

.secondary-action,
.reset-button,
.download-link {
  border: 1px solid rgba(130, 157, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted-strong);
  transition:
    transform 150ms ease,
    border-color 150ms ease,
    background 150ms ease,
    box-shadow 150ms ease,
    color 150ms ease;
}

.secondary-action:hover,
.reset-button:hover {
  transform: translateY(-1px);
  border-color: rgba(157, 182, 255, 0.34);
  background: rgba(255, 255, 255, 0.07);
}

.secondary-action:active,
.reset-button:active {
  transform: translateY(1px) scale(0.985);
}

.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-side {
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: end;
  gap: 14px;
}

.hero-badges {
  justify-content: end;
  max-width: 460px;
}
.hero-badges span,
.code-pill,
.download-chip {
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(127, 154, 255, 0.16);
  color: var(--muted-strong);
  font-size: 13px;
}

.workspace {
  border-radius: 30px;
  padding: 0;
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  gap: 0;
  overflow: hidden;
  min-width: 0;
}

.control-column {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 12px;
  border-right: 1px solid rgba(127, 154, 255, 0.12);
  min-width: 0;
}

.control-panel,
.mini-stats,
.detail-panel,
.map-stage,
.format-card,
.feature-card,
.code-card,
.preview-card,
.metric-card {
  border-radius: 24px;
}

.control-panel,
.detail-panel,
.format-card,
.feature-card,
.code-card,
.preview-card {
  padding: 18px;
}

.config-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.status-pill {
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  color: #dff8ff;
  background: linear-gradient(135deg, rgba(18, 120, 156, 0.2), rgba(66, 110, 255, 0.18));
  border: 1px solid rgba(89, 217, 255, 0.32);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.status-pill.is-planned {
  color: #ffe6bc;
  border-color: rgba(255, 181, 99, 0.34);
  background: linear-gradient(135deg, rgba(115, 61, 19, 0.24), rgba(173, 101, 24, 0.18));
}

.field { display: grid; gap: 8px; margin-bottom: 14px; }
.field span { color: var(--muted); font-size: 14px; }
.field.is-hidden { display: none; }

.field-checklist {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(131, 159, 255, 0.18);
  background: rgba(5, 9, 21, 0.6);
}

.field-option {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 10px;
  align-items: start;
  color: var(--muted-strong);
  font-size: 13px;
}

.field-option input {
  margin: 2px 0 0;
}

.field-option small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.field select,
.field input {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid rgba(131, 159, 255, 0.18);
  background: rgba(5, 9, 21, 0.88);
  color: var(--ink);
}

.action-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
}

.action-row > * {
  width: 100%;
  min-width: 0;
}

.download-summary {
  margin: 4px 0 16px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(131,159,255,0.12);
}

.download-summary strong {
  display: block;
  font-size: 15px;
}

.download-summary p {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.size-badge {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #c8f7e8;
  background: linear-gradient(135deg, rgba(40, 160, 120, 0.28), rgba(30, 120, 90, 0.22));
  border: 1px solid rgba(60, 200, 140, 0.3);
}

.size-badge:empty {
  display: none;
}

.download-link.is-ready {
  min-width: 0;
  font-weight: 800;
  color: #04121c;
  border-color: rgba(89, 217, 255, 0.34);
  background: linear-gradient(135deg, rgba(89, 217, 255, 0.95), rgba(122, 163, 255, 0.94));
  box-shadow:
    0 12px 28px rgba(61, 154, 255, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.download-link.is-ready:hover {
  transform: translateY(-2px);
  border-color: rgba(140, 233, 255, 0.48);
  background: linear-gradient(135deg, rgba(118, 232, 255, 0.98), rgba(149, 182, 255, 0.96));
  box-shadow:
    0 18px 34px rgba(61, 154, 255, 0.32),
    0 0 0 1px rgba(178, 241, 255, 0.22);
}

.download-link.is-ready:active {
  transform: translateY(1px) scale(0.985);
  box-shadow:
    0 8px 18px rgba(61, 154, 255, 0.24),
    inset 0 2px 6px rgba(13, 40, 92, 0.18);
}

.download-link.is-preparing {
  color: #1a1200;
  border-color: rgba(255, 200, 60, 0.4);
  background: linear-gradient(135deg, rgba(255, 200, 60, 0.92), rgba(255, 160, 40, 0.9));
  box-shadow: 0 8px 20px rgba(200, 140, 20, 0.22);
  animation: pulse-preparing 1.2s ease-in-out infinite;
}

@keyframes pulse-preparing {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.download-link.is-success {
  color: #042010;
  border-color: rgba(60, 220, 120, 0.4);
  background: linear-gradient(135deg, rgba(60, 220, 120, 0.94), rgba(40, 180, 100, 0.92));
  box-shadow: 0 8px 20px rgba(40, 160, 80, 0.24);
}

.download-link.is-error {
  color: #200404;
  border-color: rgba(255, 80, 80, 0.4);
  background: linear-gradient(135deg, rgba(255, 80, 80, 0.94), rgba(220, 50, 50, 0.92));
  box-shadow: 0 8px 20px rgba(200, 40, 40, 0.24);
}

.download-link.is-planned,
.download-link:disabled {
  min-width: 138px;
  cursor: not-allowed;
  color: #f0d6b4;
  border-color: rgba(255, 181, 99, 0.24);
  background: linear-gradient(135deg, rgba(67, 42, 22, 0.82), rgba(43, 28, 16, 0.88));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  opacity: 0.88;
}

.mini-stats {
  padding: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(131,159,255,0.12);
}

.mini-stats article {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255,255,255,0.03);
}

.mini-stats span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.mini-stats strong {
  display: block;
  margin-top: 8px;
  font-size: 30px;
  letter-spacing: -0.06em;
}

.detail-panel {
  min-height: 240px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(131,159,255,0.12);
}

.detail-empty { margin: 0; color: var(--muted); }
.detail-grid {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 8px 14px;
}
.detail-grid dt, .detail-grid dd { margin: 0; }
.detail-grid dt { color: var(--muted); font-size: 14px; }
.detail-grid dd { color: var(--ink); font-size: 15px; word-break: break-word; }

.map-column {
  display: grid;
  min-width: 0;
}

.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 248px;
  min-height: 100%;
  min-width: 0;
}

.map-rail {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 12px;
  border-left: 1px solid rgba(127, 154, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(12, 18, 42, 0.92), rgba(10, 15, 34, 0.9)),
    radial-gradient(circle at top, rgba(97, 233, 255, 0.08), transparent 42%);
  min-width: 0;
}

.rail-search {
  margin-bottom: 0;
}

.map-stage {
  position: relative;
  min-height: 74vh;
  min-width: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 12%, rgba(89, 217, 255, 0.08), transparent 16%),
    radial-gradient(circle at 84% 14%, rgba(139, 98, 255, 0.12), transparent 18%),
    linear-gradient(180deg, rgba(255, 171, 109, 0.08), rgba(7, 10, 23, 0.16) 18%, rgba(5, 8, 19, 0.96) 100%);
}

.stage-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(89, 217, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(89, 217, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 96%);
}

#mapSvg {
  width: 100%;
  height: 74vh;
  display: block;
  position: relative;
  z-index: 1;
}

.feature {
  fill: var(--feature-fill, var(--map-fill));
  stroke: var(--feature-stroke, var(--map-stroke));
  stroke-width: 1;
  cursor: pointer;
  pointer-events: all;
  transition: fill 140ms ease, stroke 140ms ease, filter 140ms ease, opacity 140ms ease;
}

.feature.is-muted {
  opacity: 0.2;
}

.feature.is-search-match {
  opacity: 1;
  fill: rgba(117, 197, 255, 0.72);
  stroke: rgba(203, 229, 255, 0.7);
}

.feature.is-hovered {
  fill: var(--map-hover);
  filter: drop-shadow(0 0 8px rgba(89, 217, 255, 0.34));
}

.feature.is-selected {
  fill: var(--map-active);
  filter: drop-shadow(0 0 10px rgba(139, 98, 255, 0.4));
}

.map-overlay {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 2;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(132, 151, 255, 0.16);
  background: rgba(5, 10, 23, 0.72);
  color: var(--muted-strong);
  font-size: 14px;
}

.quality-button {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 3;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(91, 226, 168, 0.36);
  color: #dfffee;
  background: rgba(7, 33, 26, 0.76);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
}

.quality-button.has-warnings {
  color: #ffe8ba;
  border-color: rgba(255, 181, 99, 0.42);
  background: rgba(70, 43, 12, 0.78);
}

.quality-button.is-hidden,
.quality-panel.is-hidden {
  display: none;
}

.quality-panel {
  position: absolute;
  top: 66px;
  right: 20px;
  z-index: 4;
  width: min(320px, calc(100% - 40px));
  padding: 14px;
  border-radius: 18px;
  color: var(--ink);
  border: 1px solid rgba(255, 181, 99, 0.28);
  background: rgba(7, 12, 28, 0.92);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
}

.quality-panel h3 {
  margin: 0 0 8px;
  font-size: 15px;
}

.quality-panel p {
  margin: 0 0 10px;
  color: var(--muted-strong);
  font-size: 13px;
  line-height: 1.45;
}

.quality-panel ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted-strong);
  font-size: 13px;
  line-height: 1.55;
}

.format-section,
.snippet-section {
  display: grid;
  gap: 20px;
}

.section-heading { display: grid; gap: 8px; max-width: 760px; }
.section-heading h2 {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.02;
}

.format-grid,
.feature-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.format-card,
.feature-card {
  transition: transform 180ms ease, border-color 180ms ease;
}

.format-card:hover,
.feature-card:hover {
  transform: translateY(-4px);
}

.format-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  font-weight: 800;
  color: #06101c;
  background: linear-gradient(135deg, rgba(89, 217, 255, 0.96), rgba(139, 98, 255, 0.9));
}

.snippet-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 18px;
}

.code-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  color: var(--muted-strong);
}

.code-card pre {
  margin: 0;
  padding: 18px;
  border-radius: 20px;
  overflow: auto;
  background: rgba(3, 6, 16, 0.88);
  border: 1px solid rgba(131, 159, 255, 0.12);
}

.code-card code {
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 14px;
  line-height: 1.7;
  color: #d7e5ff;
}

.preview-card { position: relative; overflow: hidden; }

.preview-mock {
  margin-top: 18px;
  height: 280px;
  border-radius: 24px;
  position: relative;
  background:
    radial-gradient(circle at 22% 18%, rgba(89, 217, 255, 0.14), transparent 18%),
    radial-gradient(circle at 76% 26%, rgba(139, 98, 255, 0.18), transparent 24%),
    linear-gradient(180deg, rgba(12, 18, 39, 0.92), rgba(6, 9, 21, 0.98));
  border: 1px solid rgba(131, 159, 255, 0.12);
}

.mock-window {
  position: absolute;
  top: 18px;
  right: 18px;
  bottom: 18px;
  left: 150px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 28% 30%, rgba(89, 217, 255, 0.12), transparent 22%),
    linear-gradient(135deg, rgba(18, 29, 63, 0.92), rgba(7, 10, 23, 0.96));
  border: 1px solid rgba(134, 162, 255, 0.12);
}

.mock-window::before {
  content: "";
  position: absolute;
  inset: 16% 12%;
  border-radius: 22px;
  background:
    radial-gradient(circle at 30% 46%, rgba(89, 217, 255, 0.18), transparent 16%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 320'%3E%3Cpath d='M29 169l55-29 46 10 51-26 74 25 70-11 54 14 72-11 82 35 59 4 56 43 64-1 47 39-12 18-54 6-88-17-87 6-72 24-90-8-89 14-58-16-70-41-65-9-44-34 5-31z' fill='rgba(255,255,255,0.06)' stroke='rgba(127,187,255,0.45)' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.mock-sidebar {
  position: absolute;
  top: 18px;
  left: 18px;
  bottom: 18px;
  width: 112px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(131, 159, 255, 0.1);
}

.mock-chip {
  position: absolute;
  left: 34px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(89, 217, 255, 0.8), rgba(139, 98, 255, 0.7));
}

.chip-a { top: 52px; width: 68px; }
.chip-b { top: 86px; width: 54px; }
.chip-c { top: 120px; width: 72px; }

@media (max-width: 1240px) {
  .workspace,
  .snippet-layout,
  .hero-intro {
    grid-template-columns: 1fr;
  }

  .workspace {
    gap: 0;
  }

  .control-column {
    border-right: 0;
    border-bottom: 1px solid rgba(127, 154, 255, 0.12);
  }

  .map-layout {
    grid-template-columns: 1fr;
  }

  .map-rail {
    border-left: 0;
    border-top: 1px solid rgba(127, 154, 255, 0.12);
  }

  .topbar-actions {
    flex-direction: column;
    align-items: end;
  }

  .topbar-cta {
    flex-wrap: wrap;
    justify-content: end;
  }

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

@media (max-width: 840px) {
  .content {
    padding: 14px 8px 32px;
    gap: 14px;
  }

  .topbar {
    margin: 14px;
    top: 12px;
    padding: 16px 18px;
    border-radius: 20px;
    flex-direction: column;
    align-items: start;
    gap: 12px;
  }

  .topbar-actions,
  .topbar-cta,
  .topnav {
    flex-wrap: wrap;
    gap: 12px;
    align-items: start;
    justify-content: start;
  }

  .hero-intro-copy h1 {
    font-size: 46px;
    white-space: normal;
  }

  .hero-text {
    white-space: normal;
  }

  .hero-format-strip {
    margin-top: 10px;
    justify-content: start;
    max-width: none;
  }

  .workspace,
  .format-grid,
  .feature-strip,
  .snippet-layout,
  .mini-stats,
  .action-row {
    grid-template-columns: 1fr;
  }

  .control-column,
  .map-rail {
    padding: 16px;
  }

  .map-stage,
  #mapSvg {
    min-height: 58vh;
    height: 58vh;
  }

  .hero-side,
  .hero-badges {
    justify-content: start;
    max-width: none;
  }
}
