:root {
  --ink: #101214;
  --muted: #5f6873;
  --soft: #8b95a1;
  --line: #d9dee4;
  --bg: #f7f8f7;
  --panel: #ffffff;
  --band: #eef1f3;
  --teal: #0f8b8d;
  --green: #2f9e76;
  --amber: #f0a202;
  --red: #d93f45;
  --violet: #6b5dd3;
  --shadow: 0 24px 70px rgba(16, 18, 20, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.45;
  max-width: 100vw;
  overflow-x: hidden;
}

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

.topbar {
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(247, 248, 247, 0.88);
  border-bottom: 1px solid rgba(217, 222, 228, 0.8);
  display: flex;
  justify-content: space-between;
  left: 0;
  min-height: 72px;
  padding: 0 42px;
  position: sticky;
  right: 0;
  top: 0;
  z-index: 20;
}

.brand {
  align-items: center;
  display: inline-flex;
  font-size: 19px;
  font-weight: 800;
  gap: 10px;
}

.brand__mark {
  background: linear-gradient(135deg, var(--teal), var(--amber));
  border-radius: 8px;
  display: inline-block;
  height: 24px;
  width: 24px;
}

.nav {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 15px;
  gap: 24px;
}

.nav a {
  border-bottom: 2px solid transparent;
  padding: 25px 0 22px;
}

.nav a:hover {
  border-color: var(--teal);
  color: var(--ink);
}

.hero {
  display: grid;
  gap: 42px;
  grid-template-columns: minmax(340px, 0.88fr) minmax(420px, 1.12fr);
  padding: 46px 42px 54px;
}

.hero__copy {
  align-self: center;
  max-width: 720px;
  min-width: 0;
}

.eyebrow,
.mini-label {
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 14px;
  text-transform: uppercase;
}

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

h1 {
  font-size: clamp(40px, 4.8vw, 70px);
  letter-spacing: 0;
  line-height: 0.98;
  margin-bottom: 26px;
}

h2 {
  font-size: clamp(32px, 3.8vw, 54px);
  letter-spacing: 0;
  line-height: 1.05;
  margin-bottom: 0;
}

h3 {
  font-size: 23px;
  line-height: 1.14;
  margin-bottom: 12px;
}

.lead {
  color: var(--muted);
  font-size: clamp(19px, 2vw, 24px);
  margin-bottom: 26px;
  max-width: 720px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.hero__meta span,
.status-pill,
.panel__note,
.tag {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  font-size: 14px;
  font-weight: 700;
  min-height: 34px;
  padding: 7px 12px;
  white-space: nowrap;
}

.hero__meta span {
  background: var(--panel);
  color: var(--muted);
}

.hero__actions,
.final__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  align-items: center;
  border: 1px solid var(--ink);
  border-radius: 8px;
  display: inline-flex;
  font-size: 16px;
  font-weight: 800;
  justify-content: center;
  min-height: 50px;
  padding: 13px 22px;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

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

.button--primary {
  background: var(--ink);
  color: #fff;
}

.button--primary:hover {
  background: var(--teal);
  border-color: var(--teal);
}

.button--ghost {
  background: #fff;
}

.button--ghost:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.dashboard-preview {
  align-self: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  max-width: 100%;
  min-width: 0;
  padding: 24px;
}

.dashboard-preview__head,
.panel__head {
  align-items: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 22px;
}

.dashboard-preview h2 {
  font-size: clamp(26px, 2.8vw, 38px);
}

.status-pill {
  background: #e9f6f4;
  border-color: rgba(15, 139, 141, 0.24);
  color: var(--teal);
}

.kpi-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
}

.kpi {
  background: #f5f6f4;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 132px;
  padding: 18px;
}

.kpi span,
.kpi small {
  color: var(--muted);
  display: block;
  font-size: 13px;
  font-weight: 700;
}

.kpi strong {
  color: var(--ink);
  display: block;
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1;
  margin: 18px 0 8px;
}

.kpi--good strong {
  color: var(--green);
}

.kpi--loss strong {
  color: var(--red);
}

.kpi--warn strong {
  color: var(--amber);
}

.split-panel {
  align-items: center;
  background: #f9faf9;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 24px;
  grid-template-columns: 180px minmax(0, 1fr);
  padding: 20px;
}

.donut {
  align-items: center;
  aspect-ratio: 1;
  background: conic-gradient(var(--red) calc(var(--value) * 1%), #dfe5e7 0);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  min-width: 0;
  padding: 18px;
}

.donut > div {
  align-items: center;
  background: #fff;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: center;
  text-align: center;
  width: 100%;
}

.donut strong {
  color: var(--red);
  font-size: 32px;
  line-height: 1;
}

.donut span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  margin-top: 8px;
}

.compact-bars {
  display: grid;
  gap: 16px;
}

.compact-bar {
  display: grid;
  gap: 10px;
  grid-template-columns: 120px minmax(120px, 1fr) 72px;
  align-items: center;
}

.compact-bar span,
.compact-bar b {
  font-size: 15px;
}

.compact-bar i,
.bar-row i,
.operator-list i {
  background: #e3e8ea;
  border-radius: 999px;
  display: block;
  height: 10px;
  overflow: hidden;
  position: relative;
}

.compact-bar i::before,
.bar-row i::before,
.operator-list i::before {
  background: var(--red);
  border-radius: inherit;
  content: "";
  display: block;
  height: 100%;
  width: var(--w);
}

.compact-bar--good i::before,
.bar-row--teal i::before,
.operator-list i::before {
  background: var(--teal);
}

.peak-strip {
  align-items: center;
  background: var(--ink);
  border-radius: 8px;
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  padding: 16px 18px;
}

.peak-strip span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
  font-weight: 700;
  margin-right: 4px;
}

.peak-strip strong {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 7px 10px;
}

.section {
  padding: 84px 42px;
}

.section--band {
  background: var(--band);
}

.section--dashboard {
  background: #fff;
}

.section__head {
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(220px, 0.48fr) minmax(320px, 1fr);
  margin-bottom: 40px;
}

.dashboard-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px;
}

.panel--wide {
  grid-row: span 2;
}

.panel__note {
  background: #fff4db;
  border-color: rgba(240, 162, 2, 0.35);
  color: #925f00;
}

.bar-list,
.hour-bars,
.operator-list {
  display: grid;
  gap: 15px;
}

.bar-row {
  align-items: center;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(220px, 1fr) minmax(160px, 0.8fr) 72px;
}

.bar-row span {
  display: block;
  font-size: 17px;
  font-weight: 800;
}

.bar-row small {
  color: var(--muted);
  display: block;
  font-size: 14px;
  margin-top: 3px;
}

.bar-row b {
  font-size: 18px;
  text-align: right;
}

.bar-row--amber i::before {
  background: var(--amber);
}

.bar-row--red i::before {
  background: var(--red);
}

.data-note {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
  margin: 20px 0 0;
  padding-top: 18px;
}

.hour-row {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: 58px minmax(120px, 1fr) 54px;
}

.hour-row span,
.hour-row b {
  font-size: 15px;
  font-weight: 800;
}

.hour-row i {
  background: #e4e8eb;
  border-radius: 999px;
  display: block;
  height: 16px;
  overflow: hidden;
  position: relative;
  width: var(--total);
}

.hour-row i::before {
  background: var(--green);
  content: "";
  display: block;
  height: 100%;
  width: 100%;
}

.hour-row i::after {
  background: var(--red);
  content: "";
  display: block;
  height: 100%;
  left: 0;
  opacity: 0.88;
  position: absolute;
  top: 0;
  width: var(--missed);
}

.operator-list div {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(140px, 1fr) 56px;
}

.operator-list span {
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  min-width: 0;
}

.operator-list b {
  text-align: right;
}

.operator-list i {
  grid-column: 1 / -1;
}

.table-shell {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(16, 18, 20, 0.06);
  overflow-x: auto;
}

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

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

th {
  background: #f1f4f5;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

td {
  color: #252a2f;
  font-size: 15px;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.tag {
  border-radius: 999px;
  font-size: 13px;
  min-height: 28px;
  padding: 4px 10px;
}

.tag--loss {
  background: #fff0f1;
  border-color: rgba(217, 63, 69, 0.25);
  color: var(--red);
}

.tag--good {
  background: #eaf7f0;
  border-color: rgba(47, 158, 118, 0.25);
  color: var(--green);
}

.feature-strip,
.deliverables,
.timeline,
.flow,
.pricing {
  display: grid;
  gap: 20px;
}

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

.feature-strip article,
.deliverables article,
.timeline article,
.flow article,
.price-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
}

.feature-strip span,
.timeline span {
  align-items: center;
  background: var(--ink);
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  font-size: 16px;
  font-weight: 800;
  height: 42px;
  justify-content: center;
  margin-bottom: 34px;
  width: 42px;
}

.feature-strip p,
.deliverables p,
.timeline p,
.flow span,
.price-card li,
.final p {
  color: var(--muted);
  font-size: 17px;
}

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

.flow article {
  min-height: 190px;
}

.flow strong {
  display: block;
  font-size: 22px;
  margin-bottom: 24px;
}

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

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

.price-card {
  border-top: 7px solid var(--teal);
}

.price-card--recommended {
  border-top-color: var(--amber);
  box-shadow: var(--shadow);
}

.price-card__kicker,
.duration {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.price {
  font-size: clamp(40px, 4.8vw, 58px);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
}

.price-card ul {
  margin: 22px 0 0;
  padding-left: 20px;
}

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

.timeline article {
  min-height: 260px;
}

.final {
  align-items: end;
  background: var(--ink);
  color: #fff;
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(320px, 1fr) auto;
}

.final .eyebrow {
  color: #7fd4cc;
}

.final p {
  color: rgba(255, 255, 255, 0.72);
  max-width: 850px;
}

.final .button--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.38);
  color: #fff;
}

.contact-line a {
  color: #7fd4cc;
  font-weight: 800;
}

@media (max-width: 1120px) {
  .kpi-grid,
  .deliverables,
  .flow,
  .timeline,
  .pricing {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero,
  .section__head,
  .dashboard-grid,
  .final {
    grid-template-columns: 1fr;
  }

  .panel--wide {
    grid-row: auto;
  }
}

@media (max-width: 760px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 18px 22px;
    position: static;
  }

  .nav {
    gap: 14px;
  }

  .nav a {
    padding: 0 0 6px;
  }

  .hero,
  .section {
    max-width: 100vw;
    overflow-x: hidden;
    padding-left: 22px;
    padding-right: 22px;
  }

  .hero {
    display: flex;
    flex-direction: column;
    padding-top: 42px;
    width: 100%;
  }

  .hero > * {
    min-width: 0;
  }

  h1 {
    font-size: 32px;
    line-height: 1.08;
    max-width: 100%;
    word-break: break-word;
  }

  h2 {
    font-size: 31px;
  }

  .lead {
    font-size: 18px;
    max-width: 100%;
    word-break: break-word;
  }

  .dashboard-preview,
  .panel,
  .feature-strip article,
  .deliverables article,
  .timeline article,
  .flow article,
  .price-card {
    padding: 22px;
  }

  .hero__copy,
  .dashboard-preview {
    max-width: calc(100vw - 44px);
    width: 100%;
  }

  .hero__actions {
    max-width: 100%;
    width: 100%;
  }

  .hero__meta span,
  .status-pill,
  .panel__note {
    white-space: normal;
  }

  .kpi-grid,
  .feature-strip,
  .deliverables,
  .flow,
  .timeline,
  .pricing {
    grid-template-columns: 1fr;
  }

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

  .donut {
    margin: 0 auto;
    max-width: 210px;
    width: 100%;
  }

  .compact-bar,
  .bar-row,
  .hour-row {
    grid-template-columns: 1fr;
  }

  .bar-row b,
  .compact-bar b,
  .hour-row b {
    text-align: left;
  }

  .hour-row i {
    width: 100%;
  }

  .hero__actions,
  .final__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}

@media print {
  body {
    background: #fff;
  }

  .topbar {
    position: static;
  }

  .button,
  .nav {
    display: none;
  }

  .hero,
  .section {
    break-inside: avoid;
    padding: 28px;
  }

  .dashboard-preview,
  .panel,
  .price-card,
  .table-shell {
    box-shadow: none;
  }
}
