:root {
  --bg-0: #f3f7fb;
  --bg-1: #e8f0f8;
  --surface: #ffffff;
  --text-main: #11243b;
  --text-muted: #4f647c;
  --border: #d3deea;
  --accent: #0f766e;
  --accent-strong: #115e59;
  --accent-soft: #ccfbf1;
  --shadow: 0 20px 48px rgba(16, 35, 59, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body,
#react-entry-point,
#_dash-app-content {
  height: 100%;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text-main);
  background: radial-gradient(circle at 10% 10%, #ffffff, var(--bg-0) 45%, var(--bg-1));
}

h1,
h2,
h3,
h4 {
  font-family: "Space Grotesk", sans-serif;
  margin-top: 0;
}

.app-shell {
  min-height: 100%;
}

.landing-page {
  width: min(1150px, 92vw);
  margin: 0 auto;
  padding: 52px 0 64px;
}

.simulation-page {
  width: min(1280px, 96vw);
  margin: 0 auto;
  padding: 24px 0;
  height: 100dvh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

.hero {
  background: linear-gradient(135deg, #0e1f34, #12395f 55%, #1d7f88);
  color: #f8fbff;
  border-radius: 22px;
  padding: 42px;
  box-shadow: var(--shadow);
}

.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.82;
}

.hero-title {
  font-size: clamp(2rem, 4.2vw, 3rem);
  margin: 10px 0;
}

.hero-subtitle {
  margin: 0;
  max-width: 670px;
  line-height: 1.55;
  opacity: 0.92;
}

.card-grid {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.viz-card {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 8px 24px rgba(17, 36, 59, 0.06);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card-title {
  margin: 0;
  font-size: 1.15rem;
}

.menu-link {
  width: 100%;
}

.primary-btn,
.ghost-btn {
  border: none;
  border-radius: 11px;
  padding: 11px 16px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.menu-btn {
  width: 100%;
  text-align: center;
  padding: 14px 18px;
}

.primary-btn {
  background: linear-gradient(135deg, var(--accent), #0ea5a0);
  color: #f2fffd;
}

.primary-btn:hover {
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
}

.ghost-btn {
  background: var(--accent-soft);
  color: var(--accent-strong);
  cursor: not-allowed;
}

.back-link {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--accent-strong);
  text-decoration: none;
  font-weight: 700;
}

.page-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin: 0;
}

.sim-header {
  padding: 0 4px;
  margin-bottom: 14px;
}

.sim-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 0;
  gap: 18px;
  overflow: hidden;
}

.sim-column {
  min-width: 0;
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 8px 24px rgba(17, 36, 59, 0.06);
}

.section-title {
  margin-bottom: 14px;
}

.menu-group {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #f8fbff;
  margin-bottom: 12px;
  overflow: hidden;
}

.menu-group .menu-group {
  margin-top: 10px;
  margin-bottom: 0;
}

.menu-summary {
  cursor: pointer;
  padding: 11px 14px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.98rem;
  font-weight: 600;
  user-select: none;
}

.menu-group[open] > .menu-summary {
  background: #eef6ff;
  border-bottom: 1px solid var(--border);
}

.menu-content {
  padding: 12px 14px 14px;
}

.menu-content > div + div,
.menu-content > label + input,
.menu-content > p + div {
  margin-top: 10px;
}

.menu-content p {
  margin: 0;
  color: var(--text-muted);
}

.menu-content label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.94rem;
  font-weight: 600;
}

.menu-content input {
  width: 100%;
}

.results-wrap {
  margin-top: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 8px 24px rgba(17, 36, 59, 0.06);
}

@media (max-width: 680px) {
  .landing-page,
  .simulation-page {
    width: 94vw;
    padding-top: 28px;
  }

  .hero {
    padding: 30px 22px;
  }

  .simulation-page {
    height: auto;
    overflow: visible;
    padding-bottom: 24px;
  }

  .sim-split {
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .sim-column {
    height: auto;
    overflow: visible;
  }
}
