:root {
  --azure: #0078d4;
  --cyan: #50e6ff;
  --green: #10893e;
  --ink: #172033;
  --muted: #5d6b82;
  --line: #d7e3ef;
  --panel: #ffffff;
  --page: #f3f7fb;
  --soft: #eaf5ff;
  --shadow: 0 18px 50px rgba(19, 38, 66, 0.1);
}

body[data-theme="prod"] {
  --active: var(--green);
  --soft: #e9f7ef;
}

body[data-theme="prep"] {
  --active: var(--azure);
  --soft: #eaf5ff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: Arial, Helvetica, sans-serif;
}

.hero {
  min-height: 460px;
  padding: 26px clamp(22px, 3vw, 52px) 92px;
  color: #fff;
  background:
    linear-gradient(90deg, var(--azure) 0 9px, var(--cyan) 9px 13px, transparent 13px),
    linear-gradient(130deg, #0b2742 0%, #123b5c 58%, #154b56 100%);
}

.topbar,
.brand,
.hero-grid,
.board-heading,
.panel-title {
  display: flex;
  gap: 20px;
}

.topbar,
.board-heading,
.panel-title {
  align-items: flex-start;
  justify-content: space-between;
}

.brand {
  align-items: center;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--cyan);
  font-weight: 900;
}

.brand p,
.brand strong {
  display: block;
  margin: 0;
}

.brand p,
.section-kicker,
.kicker {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand strong {
  margin-top: 5px;
  color: #d7e9f8;
  font-size: 14px;
}

.status-light {
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  padding: 10px 13px;
  font-size: 13px;
  font-weight: 800;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(560px, 1.1fr) minmax(420px, 0.9fr);
  align-items: end;
  width: calc(100vw - 72px);
  margin: 42px auto 0;
}

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

.kicker {
  margin: 0 0 14px;
}

h1 {
  margin: 0 0 20px;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 1.02;
  letter-spacing: 0;
}

.lead {
  max-width: 800px;
  margin: 0;
  color: #dcebf8;
  font-size: 20px;
  line-height: 1.55;
}

.action-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  max-width: 720px;
  margin-top: 30px;
}

button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  background: var(--azure);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

button:hover {
  filter: brightness(1.05);
}

.hero-photo {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(13, 27, 46, 0.76);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
}

.hero-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.hero-photo div {
  padding: 18px;
}

.hero-photo span {
  display: block;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-photo strong {
  display: block;
  margin-top: 8px;
  font-size: 24px;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(720px, 1.55fr) minmax(420px, 0.75fr);
  gap: 24px;
  width: calc(100vw - 72px);
  margin: -52px auto 54px;
}

.board,
.mini-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.board {
  min-height: 560px;
  padding: clamp(22px, 2.3vw, 34px);
}

.mini-panel {
  padding: 22px;
}

.prep-note-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.prep-note-card img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  object-fit: cover;
}

.prep-note-card p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.side-stack {
  display: grid;
  gap: 22px;
}

.section-kicker {
  margin: 0 0 7px;
}

h2 {
  margin: 0 0 8px;
  font-size: 26px;
  letter-spacing: 0;
}

.board-heading p,
.demo-note,
.metric small,
.event small,
.check small,
.empty {
  color: var(--muted);
  line-height: 1.5;
}

.board-heading p,
.demo-note,
.empty {
  margin: 0;
}

#route-chip {
  max-width: 260px;
  overflow-wrap: anywhere;
  border-radius: 8px;
  background: var(--soft);
  color: var(--active);
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 900;
}

.metrics,
.timeline,
.status-grid {
  display: grid;
  gap: 14px;
}

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

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

.metric,
.event,
.check,
.stat {
  border-radius: 8px;
}

.metric,
.stat {
  border: 1px solid var(--line);
  background: #fbfdff;
  padding: 16px;
}

.metric {
  min-height: 118px;
}

.metric span,
.event b,
.stat span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.metric strong,
.stat strong {
  display: block;
  margin-top: 10px;
  color: var(--active);
  font-size: 29px;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.metric small {
  display: block;
  margin-top: 8px;
}

.event {
  min-height: 112px;
  border-left: 5px solid var(--active);
  background: var(--soft);
  padding: 16px;
}

.event span {
  display: block;
  margin-bottom: 8px;
}

.event strong {
  display: block;
  margin-bottom: 7px;
  font-size: 24px;
  font-weight: 900;
}

.checks {
  display: grid;
  gap: 12px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.check {
  display: flex;
  gap: 12px;
  border: 1px solid var(--line);
  background: #fbfdff;
  padding: 13px;
}

.dot {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--active);
}

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

.reveal-panel {
  min-height: 320px;
}

.panel-title button {
  min-height: 36px;
  background: #213850;
  padding: 8px 12px;
}

.panel-content {
  margin-top: 18px;
}

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

.stat strong {
  font-size: 19px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 13px;
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--soft);
  color: var(--active);
  font-size: 12px;
  text-transform: uppercase;
}

td {
  color: var(--ink);
}

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

.data-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.data-form label.wide {
  grid-column: 1 / -1;
}

.data-form input,
.data-form select,
.data-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  line-height: 1.4;
  padding: 11px 12px;
  text-transform: none;
}

.data-form select {
  appearance: none;
}

.data-form button {
  grid-column: 1 / -1;
}

.demo-note {
  margin-top: 20px;
  font-size: 13px;
}

@media (max-width: 1040px) {
  .hero-grid,
  .workspace {
    grid-template-columns: 1fr;
    width: min(100% - 28px, 900px);
  }

  .workspace {
    margin-top: -86px;
  }

  .board {
    min-height: auto;
  }
}

@media (max-width: 760px) {
  .hero {
    min-height: auto;
    padding: 22px 16px 96px;
  }

  .topbar,
  .board-heading,
  .panel-title {
    flex-direction: column;
  }

  .hero-grid {
    margin-top: 54px;
  }

  .action-row,
  .metrics,
  .timeline,
  .status-grid,
  .prep-note-card,
  .data-form {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 42px;
  }

  .lead {
    font-size: 17px;
  }

  .workspace {
    width: min(100% - 24px, 1440px);
    margin-bottom: 34px;
  }
}
