:root {
  --blue: #0078d4;
  --blue-dark: #005a9e;
  --ink: #1f1f1f;
  --muted: #5f6875;
  --soft: #f5f7fb;
  --soft-2: #eef4fb;
  --line: #d7dde7;
  --panel: #ffffff;
  --panel-2: #fbfcfe;
  --green: #107c10;
  --teal: #038387;
  --orange: #ca5010;
  --yellow: #ffb900;
  --red: #c42b1c;
  --shadow: 0 18px 48px rgba(22, 38, 61, 0.14);
  --radius: 8px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", SegoeUI, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  letter-spacing: 0;
}

body.modal-open {
  overflow: hidden;
}

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

button,
input,
select {
  font: inherit;
}

.skip {
  position: absolute;
  top: 12px;
  left: -999px;
  z-index: 200;
  padding: 10px 14px;
  color: #fff;
  background: #000;
  border-radius: 4px;
}

.skip:focus {
  left: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(215, 221, 231, 0.88);
  backdrop-filter: blur(16px);
}

.nav-shell {
  width: min(1200px, calc(100% - 40px));
  min-height: 64px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  min-width: max-content;
  font-family: "Segoe UI", SegoeUI, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-size: 21px;
  font-weight: 800;
  font-style: italic;
  letter-spacing: -0.9px;
  line-height: 1;
}

.brand .chip {
  color: #000;
}

.brand .harbor {
  color: var(--blue);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  min-width: 0;
  color: #343a44;
  font-size: 14px;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 64px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a[aria-current="page"] {
  color: #000;
  border-color: var(--blue);
  outline: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.user-link {
  color: var(--blue);
  font-size: 14px;
  font-weight: 650;
}

.logout-link {
  color: var(--muted);
  font-size: 14px;
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 16px 10px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.15;
  text-align: center;
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease, transform 150ms ease;
}

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

.btn.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.btn.primary:hover,
.btn.primary:focus-visible {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  outline: none;
}

.btn.secondary {
  border-color: #8fb8dc;
  color: var(--blue-dark);
  background: #fff;
}

.btn.secondary:hover,
.btn.secondary:focus-visible {
  background: #eef6fd;
  border-color: var(--blue);
  outline: none;
}

.btn.ghost {
  min-height: 36px;
  padding-inline: 6px;
  color: var(--blue-dark);
  background: transparent;
  border-color: transparent;
}

.btn.ghost:hover,
.btn.ghost:focus-visible {
  text-decoration: underline;
  transform: none;
  outline: none;
}

.btn.full {
  width: 100%;
}

.page {
  overflow: hidden;
}

.container {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}

.narrow {
  width: min(860px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  min-height: calc(100vh - 64px);
  display: grid;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(248, 250, 253, 0.98), rgba(248, 250, 253, 0.88) 44%, rgba(236, 246, 255, 0.72)),
    linear-gradient(180deg, #fff, #f4f8fc);
  border-bottom: 1px solid #e5ebf3;
}

.hero-grid {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  padding: 58px 0 46px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: 48px;
  align-items: center;
}

.notice {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 32px;
  margin-bottom: 20px;
  padding: 6px 10px;
  border: 1px solid #bed5eb;
  border-radius: 4px;
  background: #fff;
  color: #263b55;
  font-size: 13px;
  font-weight: 650;
}

.notice::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 3px rgba(202, 80, 16, 0.14);
}

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

h1 {
  margin-bottom: 20px;
  color: #111;
  font-size: clamp(42px, 6vw, 78px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: 0;
}

h1 .line {
  display: block;
}

.lead {
  max-width: 650px;
  margin-bottom: 28px;
  color: #4d5967;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.42;
}

.hero-actions,
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.metrics-card {
  width: min(100%, 560px);
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid #d2dce8;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 28px rgba(31, 47, 72, 0.09);
}

.metric {
  min-height: 116px;
  padding: 18px;
  border-right: 1px solid #e3e8ef;
  border-bottom: 1px solid #e3e8ef;
}

.metric:nth-child(2n) {
  border-right: 0;
}

.metric:nth-last-child(-n+2) {
  border-bottom: 0;
}

.metric strong {
  display: block;
  margin-bottom: 6px;
  color: #111;
  font-size: 25px;
  line-height: 1.08;
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.hero-media {
  position: relative;
  min-height: 560px;
  border: 1px solid #ccd8e6;
  background: #07121f;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  background: linear-gradient(180deg, rgba(7, 18, 31, 0), rgba(7, 18, 31, 0.92));
  pointer-events: none;
}

.wafer-canvas,
.template-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.media-caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: end;
  color: #fff;
}

.media-caption strong {
  display: block;
  margin-bottom: 6px;
  font-size: 18px;
  line-height: 1.2;
}

.media-caption span {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  line-height: 1.35;
}

.caption-chip {
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #fff;
  background: rgba(0, 120, 212, 0.36);
  font-size: 12px;
  font-weight: 700;
}

.section {
  padding: 86px 0;
  border-bottom: 1px solid #e6ebf1;
  background: #fff;
}

.section.tall {
  min-height: 86vh;
  display: flex;
  align-items: center;
}

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

.section.blueprint {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.82)),
    linear-gradient(#e9f1f8 1px, transparent 1px),
    linear-gradient(90deg, #e9f1f8 1px, transparent 1px);
  background-size: auto, 28px 28px, 28px 28px;
}

.section-kicker {
  margin-bottom: 10px;
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.section-title {
  margin-bottom: 16px;
  color: #111;
  font-size: clamp(31px, 4vw, 54px);
  font-weight: 700;
  line-height: 1.06;
}

.section-copy {
  max-width: 760px;
  margin-bottom: 34px;
  color: #52606f;
  font-size: 18px;
  line-height: 1.55;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(360px, 1.14fr);
  gap: 44px;
  align-items: center;
}

.three-col {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.four-col {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 8px 20px rgba(26, 45, 70, 0.06);
}

.card.pad {
  padding: 22px;
}

.card h3 {
  margin-bottom: 10px;
  font-size: 21px;
  line-height: 1.2;
}

.card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.workflow {
  display: grid;
  gap: 14px;
}

.workflow-step {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  gap: 16px;
  align-items: center;
  min-height: 98px;
  padding: 18px;
  border: 1px solid var(--line);
  background: #fff;
}

.step-num {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eef6fd;
  color: var(--blue-dark);
  font-weight: 800;
}

.workflow-step h3 {
  margin: 0 0 4px;
  font-size: 20px;
}

.workflow-step p {
  margin: 0;
  color: var(--muted);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid #cdd8e5;
  background: #f7fafc;
  color: #3f4b59;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.status-pill.green {
  border-color: #acd9ad;
  background: #eff9ef;
  color: var(--green);
}

.status-pill.orange {
  border-color: #f1c6a8;
  background: #fff5ef;
  color: var(--orange);
}

.status-pill.blue {
  border-color: #b9d8f3;
  background: #eef6fd;
  color: var(--blue-dark);
}

.status-pill.red {
  border-color: #efb5ae;
  background: #fff3f1;
  color: var(--red);
}

.mini-console {
  border: 1px solid #c9d5e3;
  background: #fff;
}

.console-head {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
  font-size: 13px;
  font-weight: 750;
}

.console-body {
  padding: 18px;
}

.data-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid #edf1f5;
}

.data-row:last-child {
  border-bottom: 0;
}

.data-row strong {
  display: block;
  margin-bottom: 4px;
  color: #111;
  font-size: 15px;
}

.data-row span {
  color: var(--muted);
  font-size: 13px;
}

.departure-board {
  border: 1px solid #202733;
  background: #101820;
  color: #f2f6fb;
  box-shadow: var(--shadow);
}

.board-head,
.board-row {
  display: grid;
  grid-template-columns: 0.72fr 1.1fr 1fr 1fr 0.72fr;
  gap: 12px;
  align-items: center;
}

.board-head {
  padding: 14px 16px;
  border-bottom: 1px solid #263443;
  color: #91a4b8;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.board-row {
  min-height: 64px;
  padding: 12px 16px;
  border-bottom: 1px solid #25313f;
  font-family: "Segoe UI", SegoeUI, Arial, sans-serif;
}

.board-row:last-child {
  border-bottom: 0;
}

.board-row strong {
  display: block;
  color: #fff;
  font-size: 16px;
}

.board-row span {
  display: block;
  color: #aebdcb;
  font-size: 12px;
}

.board-status {
  color: #7ee787;
  font-size: 13px;
  font-weight: 800;
  text-align: right;
}

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

.template-card {
  min-height: 244px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  display: flex;
  flex-direction: column;
}

.template-card h3 {
  margin-bottom: 8px;
  font-size: 24px;
}

.template-card p {
  margin-bottom: 18px;
  color: var(--muted);
  line-height: 1.48;
}

.template-meta {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 8px;
  border: 1px solid #cdd8e5;
  border-radius: 4px;
  background: #f8fafc;
  color: #3d4855;
  font-size: 12px;
  font-weight: 700;
}

.tag.blue {
  border-color: #b9d8f3;
  background: #eef6fd;
  color: var(--blue-dark);
}

.tag.green {
  border-color: #bde0bd;
  background: #eff9ef;
  color: var(--green);
}

.tag.orange {
  border-color: #f2ccad;
  background: #fff5ef;
  color: var(--orange);
}

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

.accent-line {
  width: 42px;
  height: 4px;
  margin-bottom: 18px;
  background: var(--blue);
}

.accent-line.green {
  background: var(--green);
}

.accent-line.orange {
  background: var(--orange);
}

.incentive-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.75fr);
  gap: 24px;
  align-items: stretch;
}

.coupon {
  padding: 24px;
  border: 1px solid #b8d7f0;
  border-radius: var(--radius);
  background: #eff7fe;
}

.coupon-code {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin: 6px 0 14px;
  padding: 6px 10px;
  border: 1px dashed var(--blue);
  background: #fff;
  color: var(--blue-dark);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.dashboard-preview {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 18px;
}

.progress-list {
  display: grid;
  gap: 10px;
}

.progress-item {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #edf1f5;
}

.progress-item:last-child {
  border-bottom: 0;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #c7d1dd;
  box-shadow: 0 0 0 5px #eef2f6;
}

.dot.done {
  background: var(--green);
  box-shadow: 0 0 0 5px #e9f6ea;
}

.dot.active {
  background: var(--blue);
  box-shadow: 0 0 0 5px #e5f1fb;
}

.final-cta {
  text-align: center;
  background:
    linear-gradient(180deg, rgba(0, 120, 212, 0.09), rgba(255, 255, 255, 0)),
    #fff;
}

.final-cta .section-copy {
  margin-left: auto;
  margin-right: auto;
}

.footer {
  padding: 46px 0;
  background: #f3f6fa;
  color: #485565;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(4, minmax(0, 0.7fr));
  gap: 24px;
}

.footer h3 {
  margin: 0 0 12px;
  color: #1d2733;
  font-size: 14px;
}

.footer a,
.footer p {
  display: block;
  margin: 0 0 8px;
  color: #596777;
  font-size: 13px;
  line-height: 1.45;
}

.page-hero {
  padding: 76px 0 54px;
  background: linear-gradient(180deg, #f8fafc, #eef5fb);
  border-bottom: 1px solid #e2e8f0;
}

.page-title {
  max-width: 900px;
  margin-bottom: 18px;
  color: #111;
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 700;
  line-height: 1.04;
}

.page-lead {
  max-width: 760px;
  margin-bottom: 0;
  color: #546170;
  font-size: 19px;
  line-height: 1.52;
}

.value-list {
  display: grid;
  gap: 12px;
}

.value-row {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.value-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  background: #eef6fd;
  color: var(--blue-dark);
  font-weight: 850;
}

.timeline {
  position: relative;
  display: grid;
  gap: 0;
  padding-left: 10px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 16px;
  width: 2px;
  background: #d8e0ea;
}

.timeline-node {
  position: relative;
  display: grid;
  grid-template-columns: 30px 1fr auto;
  gap: 14px;
  align-items: start;
  padding: 12px 0;
}

.timeline-node .dot {
  position: relative;
  z-index: 1;
  margin-top: 4px;
}

.timeline-node strong {
  display: block;
  margin-bottom: 3px;
}

.timeline-node span {
  color: var(--muted);
  font-size: 13px;
}

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

.chip-art {
  height: 150px;
  margin: -22px -22px 18px;
  border-bottom: 1px solid #dbe3ee;
  background:
    linear-gradient(90deg, rgba(0, 120, 212, 0.14) 1px, transparent 1px),
    linear-gradient(rgba(16, 124, 16, 0.12) 1px, transparent 1px),
    linear-gradient(135deg, #142235, #24394c 48%, #0f1720);
  background-size: 22px 22px, 22px 22px, auto;
  position: relative;
  overflow: hidden;
}

.chip-art::before,
.chip-art::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(0, 120, 212, 0.22);
}

.chip-art::before {
  width: 36%;
  height: 34%;
  left: 18%;
  top: 21%;
}

.chip-art::after {
  width: 24%;
  height: 22%;
  right: 16%;
  bottom: 18%;
  background: rgba(255, 185, 0, 0.2);
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

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

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid #edf1f5;
  text-align: left;
  vertical-align: top;
}

th {
  background: #f8fafc;
  color: #465264;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

td {
  color: #273240;
  font-size: 14px;
}

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

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

.schematic-wrap {
  min-height: 520px;
  border: 1px solid #cbd7e5;
  border-radius: var(--radius);
  background: #081421;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.pricing-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(360px, 0.74fr);
  gap: 24px;
  align-items: start;
}

.configurator {
  display: grid;
  gap: 18px;
}

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

.field label,
.check-row label {
  color: #303b49;
  font-size: 13px;
  font-weight: 750;
}

.field input,
.field select {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid #c8d4e1;
  border-radius: 4px;
  background: #fff;
  color: #1d2630;
}

.field input:focus,
.field select:focus {
  outline: 2px solid rgba(0, 120, 212, 0.22);
  border-color: var(--blue);
}

.field-hint {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

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

.check-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 9px;
  align-items: start;
  min-height: 56px;
  padding: 12px;
  border: 1px solid #d9e1ec;
  border-radius: 6px;
  background: #fff;
}

.check-row span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.price-preview {
  position: sticky;
  top: 84px;
  border: 1px solid #c9d6e5;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.price-head {
  padding: 20px;
  border-bottom: 1px solid #e5ebf3;
  background: #f8fbfe;
}

.price-head span {
  color: var(--muted);
  font-size: 13px;
}

.price-total {
  margin-top: 8px;
  color: #111;
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 750;
  line-height: 1;
}

.price-body {
  padding: 18px 20px 20px;
}

.price-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #edf1f5;
  color: #3c4856;
  font-size: 14px;
}

.price-line:last-of-type {
  border-bottom: 0;
}

.price-note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.dashboard-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.dashboard-hero {
  padding-bottom: 64px;
}

.dashboard-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.46fr);
  gap: 26px;
  align-items: end;
}

.workspace-card {
  border: 1px solid #c9d5e3;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 28px rgba(31, 47, 72, 0.09);
  overflow: hidden;
}

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

.workspace-stats div {
  min-height: 104px;
  padding: 18px;
  border-right: 1px solid #edf1f5;
  border-bottom: 1px solid #edf1f5;
}

.workspace-stats div:nth-child(2n) {
  border-right: 0;
}

.workspace-stats div:nth-last-child(-n+2) {
  border-bottom: 0;
}

.workspace-stats strong {
  display: block;
  margin-bottom: 4px;
  color: #111;
  font-size: 32px;
  line-height: 1;
}

.workspace-stats span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.sidebar {
  position: sticky;
  top: 84px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.sidebar a,
.sidebar button {
  width: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  border: 0;
  border-bottom: 1px solid #edf1f5;
  background: #fff;
  color: #344153;
  text-align: left;
  cursor: pointer;
}

.sidebar a:last-child,
.sidebar button:last-child {
  border-bottom: 0;
}

.sidebar a:hover,
.sidebar button:hover {
  background: #f4f9fe;
  color: var(--blue-dark);
}

.dashboard-main {
  display: grid;
  gap: 24px;
}

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

.toolbar h2 {
  margin: 0;
  font-size: 28px;
}

.toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.design-list,
.order-list {
  display: grid;
  gap: 14px;
}

.record {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.record h3 {
  margin: 0 0 6px;
  font-size: 20px;
}

.record p {
  margin: 0;
  color: var(--muted);
}

.record-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.status-stack {
  min-width: 190px;
  display: grid;
  justify-items: end;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.order-record {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr);
}

.voyage-mini {
  min-width: 260px;
  display: grid;
  gap: 8px;
}

.voyage-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #273240;
  font-size: 13px;
}

.voyage-bar {
  height: 8px;
  border-radius: 999px;
  background: #e6edf5;
  overflow: hidden;
}

.voyage-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--blue));
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(10, 18, 28, 0.54);
}

.modal-backdrop.open {
  display: flex;
}

.modal {
  width: min(760px, 100%);
  max-height: min(760px, calc(100vh - 44px));
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.26);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid #e3e9f1;
}

.modal-head h2 {
  margin: 0;
  font-size: 24px;
}

.modal-close {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
}

.modal-body {
  overflow: auto;
  padding: 20px;
}

.wizard-step {
  display: none;
}

.wizard-step.active {
  display: block;
}

.wizard-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-top: 1px solid #e3e9f1;
}

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

.choice-card {
  position: relative;
  min-height: 136px;
  padding: 16px;
  border: 1px solid #d5dfeb;
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
}

.choice-card input {
  position: absolute;
  top: 14px;
  right: 14px;
}

.choice-card h3 {
  margin: 0 0 8px;
  padding-right: 26px;
}

.choice-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.42;
}

.file-grid {
  display: grid;
  gap: 12px;
}

.file-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid #d9e1ec;
  border-radius: 6px;
  background: #fbfcfe;
}

.file-row strong {
  display: block;
  margin-bottom: 3px;
}

.file-row span {
  color: var(--muted);
  font-size: 12px;
}

.modal-services {
  margin-top: 14px;
}

.summary-panel {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid #cfe0ef;
  border-radius: 6px;
  background: #f6fbff;
}

.summary-panel p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.48;
}

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

.summary-grid div {
  min-height: 76px;
  padding: 14px;
  border: 1px solid #d9e1ec;
  border-radius: 6px;
  background: #fbfcfe;
}

.summary-grid strong,
.summary-grid span {
  display: block;
}

.summary-grid strong {
  margin-bottom: 5px;
}

.summary-grid span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

@media (max-width: 980px) {
  .nav-shell {
    grid-template-columns: auto auto;
    gap: 14px;
  }

  .menu-toggle {
    display: block;
    justify-self: end;
  }

  .nav-links,
  .nav-actions {
    display: none;
    grid-column: 1 / -1;
  }

  .site-header.nav-open .nav-links,
  .site-header.nav-open .nav-actions {
    display: flex;
  }

  .site-header.nav-open .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-top: 6px;
  }

  .site-header.nav-open .nav-links a {
    min-height: 42px;
  }

  .site-header.nav-open .nav-actions {
    justify-content: flex-start;
    padding-bottom: 12px;
  }

  .hero-grid,
  .two-col,
  .incentive-panel,
  .pricing-layout,
  .dashboard-preview,
  .dashboard-hero-grid,
  .dashboard-shell {
    grid-template-columns: 1fr;
  }

  .hero-media {
    min-height: 430px;
  }

  .three-col,
  .four-col,
  .template-grid,
  .ecosystem-grid,
  .gallery-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .price-preview,
  .sidebar {
    position: static;
  }
}

@media (max-width: 720px) {
  .container,
  .narrow,
  .hero-grid,
  .nav-shell {
    width: min(100% - 28px, 1200px);
  }

  .hero {
    min-height: auto;
  }

  .hero-grid {
    padding: 42px 0 34px;
  }

  h1 {
    font-size: clamp(38px, 12vw, 54px);
  }

  .metrics-card,
  .mode-grid,
  .three-col,
  .four-col,
  .template-grid,
  .ecosystem-grid,
  .gallery-grid,
  .footer-grid,
  .service-grid,
  .choice-grid {
    grid-template-columns: 1fr;
  }

  .metric,
  .metric:nth-child(2n),
  .metric:nth-last-child(-n+2) {
    border-right: 0;
    border-bottom: 1px solid #e3e8ef;
  }

  .metric:last-child {
    border-bottom: 0;
  }

  .section {
    padding: 58px 0;
  }

  .section.tall {
    min-height: auto;
  }

  .workflow-step,
  .record,
  .order-record,
  .file-row,
  .timeline-node {
    grid-template-columns: 1fr;
  }

  .status-stack {
    min-width: 0;
    justify-items: start;
    text-align: left;
  }

  .summary-grid,
  .workspace-stats {
    grid-template-columns: 1fr;
  }

  .workspace-stats div,
  .workspace-stats div:nth-child(2n),
  .workspace-stats div:nth-last-child(-n+2) {
    border-right: 0;
    border-bottom: 1px solid #edf1f5;
  }

  .workspace-stats div:last-child {
    border-bottom: 0;
  }

  .board-head {
    display: none;
  }

  .board-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .board-status {
    text-align: left;
  }

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

  .voyage-mini {
    min-width: 0;
  }

  .media-caption {
    grid-template-columns: 1fr;
  }
}
