:root {
  --blue: #2563eb;
  --blue-700: #1d4ed8;
  --blue-050: #eff6ff;
  --ink: #0f172a;
  --ink-2: #1f2937;
  --muted: #57606a;
  --muted-2: #6b7280;
  --soft: #f6f8fa;
  --soft-2: #eef2f7;
  --panel: #ffffff;
  --line: #d8dee4;
  --line-strong: #afb8c1;
  --green: #238636;
  --green-050: #eaf7ee;
  --amber: #bf8700;
  --amber-050: #fff8c5;
  --red: #cf222e;
  --red-050: #ffebe9;
  --violet: #8250df;
  --cyan: #0891b2;
  --dark: #0d1117;
  --dark-2: #161b22;
  --shadow: 0 18px 52px rgba(15, 23, 42, 0.12);
  --radius: 8px;
  --mono: ui-monospace, SFMono-Regular, SFMono, Menlo, Consolas, "Liberation Mono", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #ffffff;
  font-family: var(--sans);
  line-height: 1.5;
  letter-spacing: 0;
}

body.no-scroll {
  overflow: hidden;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button,
select,
input[type="checkbox"],
input[type="range"] {
  cursor: pointer;
}

img,
canvas {
  display: block;
  max-width: 100%;
}

.site-shell {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(246, 248, 250, 0.96), rgba(255, 255, 255, 0.98) 560px),
    radial-gradient(circle at 18% 10%, rgba(37, 99, 235, 0.14), transparent 340px);
}

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

.narrow {
  width: min(920px, calc(100% - 40px));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(216, 222, 228, 0.88);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 66px;
}

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

.brand-logo .chip {
  color: #000000;
}

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

.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #3f4a5a;
  font-size: 14px;
  font-weight: 650;
}

.header-nav a {
  padding: 10px 12px;
  border-radius: 6px;
}

.header-nav a:hover,
.header-nav a.active {
  background: var(--soft);
  color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}

.user-link {
  max-width: 130px;
  overflow: hidden;
  color: var(--blue);
  font-size: 14px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 750;
  white-space: nowrap;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.btn:hover {
  border-color: #8c959f;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.1);
  transform: translateY(-1px);
}

.btn-primary {
  border-color: #1f883d;
  background: linear-gradient(180deg, #32c767, #238636);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(35, 134, 54, 0.22);
}

.btn-primary:hover {
  border-color: #1a7f37;
  box-shadow: 0 14px 30px rgba(35, 134, 54, 0.28);
}

.btn-blue {
  border-color: var(--blue);
  background: var(--blue);
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.18);
}

.btn-blue:hover {
  border-color: var(--blue-700);
  background: var(--blue-700);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.72);
}

.btn-small {
  min-height: 34px;
  padding: 0 12px;
  font-size: 13px;
}

.btn-wide {
  width: 100%;
}

.hero {
  position: relative;
  min-height: calc(100vh - 66px);
  padding: 76px 0 52px;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.98fr);
  align-items: center;
  gap: 48px;
  width: 100%;
}

.notice,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  margin: 0 0 18px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #435060;
  font-size: 13px;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.notice::before,
.eyebrow::before {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(35, 134, 54, 0.12);
}

.page-kicker {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--blue);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

.hero-title {
  margin: 0;
  color: #0b1220;
  font-size: clamp(46px, 6vw, 82px);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-title span {
  display: block;
}

.hero-copy {
  max-width: 650px;
  margin: 24px 0 0;
  color: #445064;
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.55;
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
  color: #57606a;
  font-size: 14px;
  font-weight: 650;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--blue);
}

.dot.green {
  background: var(--green);
}

.dot.amber {
  background: var(--amber);
}

.media-stack {
  display: grid;
  gap: 16px;
}

.wafer-stage {
  position: relative;
  min-height: 440px;
  overflow: hidden;
  border: 1px solid #30363d;
  border-radius: var(--radius);
  background: var(--dark);
  box-shadow: var(--shadow);
}

.wafer-stage canvas {
  width: 100%;
  height: 440px;
}

.wafer-caption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 14px;
  padding: 12px;
  border: 1px solid rgba(139, 148, 158, 0.35);
  border-radius: 6px;
  background: rgba(13, 17, 23, 0.76);
  color: #f0f6fc;
  backdrop-filter: blur(12px);
}

.wafer-caption strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}

.wafer-caption span {
  color: #c9d1d9;
  font-size: 12px;
}

.terminal-tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 6px;
  background: #21262d;
  color: #7ee787;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.metrics-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.metrics-card header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.metrics-card header strong {
  font-size: 14px;
}

.metrics-card header span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.metric {
  min-width: 0;
  padding: 15px 16px;
  border-right: 1px solid var(--line);
}

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

.metric b {
  display: block;
  color: var(--ink);
  font-size: 21px;
  line-height: 1.15;
}

.metric small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.landing-section,
.content-section {
  padding: 88px 0;
}

.landing-section {
  min-height: 92vh;
  display: flex;
  align-items: center;
  border-top: 1px solid rgba(216, 222, 228, 0.72);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.55fr);
  align-items: end;
  gap: 36px;
  margin-bottom: 34px;
}

.section-head.single {
  grid-template-columns: 1fr;
  max-width: 820px;
}

.section-head h2,
.page-hero h1 {
  margin: 0;
  color: #0b1220;
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 1.02;
  letter-spacing: 0;
}

.section-head p,
.page-hero p {
  margin: 0;
  color: #4b5563;
  font-size: 18px;
  line-height: 1.6;
}

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

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

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

.two-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.panel,
.card,
.repo-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.panel-header,
.repo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.panel-header strong,
.repo-header strong {
  font-size: 14px;
}

.repo-header code,
.muted-code {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}

.panel-body,
.card-body {
  padding: 16px;
}

.card {
  padding: 18px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.25;
}

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

.workflow-track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.workflow-step {
  position: relative;
  min-height: 210px;
  padding: 22px 18px;
  border-right: 1px solid var(--line);
}

.workflow-step:last-child {
  border-right: 0;
}

.workflow-step::after {
  content: "";
  position: absolute;
  top: 32px;
  right: -6px;
  z-index: 1;
  width: 12px;
  height: 12px;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: #ffffff;
  transform: rotate(45deg);
}

.workflow-step:last-child::after {
  display: none;
}

.step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: var(--dark);
  color: #ffffff;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
}

.workflow-step h3 {
  margin-bottom: 8px;
  font-size: 17px;
}

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

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft);
  color: #3f4a5a;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.status-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
}

.status-green {
  border-color: rgba(35, 134, 54, 0.22);
  background: var(--green-050);
  color: var(--green);
}

.status-blue {
  border-color: rgba(37, 99, 235, 0.22);
  background: var(--blue-050);
  color: var(--blue);
}

.status-amber {
  border-color: rgba(191, 135, 0, 0.25);
  background: var(--amber-050);
  color: #8a6200;
}

.status-red {
  border-color: rgba(207, 34, 46, 0.22);
  background: var(--red-050);
  color: var(--red);
}

.status-violet {
  border-color: rgba(130, 80, 223, 0.22);
  background: #f3edff;
  color: var(--violet);
}

.departure-board {
  overflow: hidden;
  border: 1px solid #30363d;
  border-radius: var(--radius);
  background: var(--dark);
  box-shadow: var(--shadow);
}

.board-header,
.board-row {
  display: grid;
  grid-template-columns: 1fr 0.9fr 0.9fr 0.8fr;
  gap: 10px;
  align-items: center;
}

.board-header {
  padding: 13px 16px;
  border-bottom: 1px solid #30363d;
  color: #8b949e;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.board-row {
  padding: 14px 16px;
  border-bottom: 1px solid #30363d;
  color: #f0f6fc;
  font-family: var(--mono);
  font-size: 13px;
}

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

.board-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.board-time {
  color: #7ee787;
}

.board-status {
  color: #d29922;
}

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

.template-card {
  display: flex;
  min-height: 250px;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

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

.template-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

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

.spec-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.spec-list strong {
  color: var(--ink);
  text-align: right;
}

.ecosystem-map {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 20px;
  align-items: stretch;
}

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

.stack-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--soft);
}

.stack-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: var(--dark);
  color: #ffffff;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
}

.repo-files {
  display: grid;
}

.file-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

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

.file-row strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

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

.mini-table {
  display: grid;
  gap: 10px;
}

.mini-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--soft);
}

.mini-row strong {
  display: block;
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.timeline {
  position: relative;
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  position: relative;
  padding: 0 0 20px 28px;
  border-left: 2px solid var(--line);
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 3px;
  width: 12px;
  height: 12px;
  border: 2px solid #ffffff;
  border-radius: 999px;
  background: var(--line-strong);
  box-shadow: 0 0 0 1px var(--line);
}

.timeline li.done::before {
  background: var(--green);
}

.timeline li.active::before {
  background: var(--blue);
}

.timeline strong {
  display: block;
  font-size: 14px;
}

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

.final-cta {
  color: #ffffff;
  background:
    radial-gradient(circle at 76% 12%, rgba(37, 99, 235, 0.28), transparent 340px),
    linear-gradient(135deg, #0d1117, #111827 48%, #0f172a);
}

.final-cta .section-head h2,
.final-cta .section-head p {
  color: #ffffff;
}

.final-cta .section-head p {
  color: #c9d1d9;
}

.site-footer {
  padding: 42px 0;
  border-top: 1px solid var(--line);
  background: var(--soft);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: start;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.footer-note {
  max-width: 520px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.page-hero {
  padding: 78px 0 40px;
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.65fr);
  gap: 40px;
  align-items: end;
}

.page-hero .summary-panel {
  margin-top: 0;
}

.summary-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.summary-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
}

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

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

.summary-row strong {
  text-align: right;
  font-family: var(--mono);
  font-size: 13px;
}

.value-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

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

.chip-art {
  position: relative;
  height: 154px;
  overflow: hidden;
  border: 1px solid #30363d;
  border-radius: 6px;
  background:
    linear-gradient(90deg, rgba(125, 231, 135, 0.13) 1px, transparent 1px),
    linear-gradient(0deg, rgba(37, 99, 235, 0.16) 1px, transparent 1px),
    linear-gradient(135deg, #0d1117, #161b22);
  background-size: 18px 18px, 18px 18px, auto;
}

.chip-art::before,
.chip-art::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(125, 231, 135, 0.55);
  background: rgba(37, 99, 235, 0.12);
}

.chip-art::before {
  inset: 28px 36px 36px 30px;
}

.chip-art::after {
  right: 42px;
  bottom: 30px;
  width: 64px;
  height: 44px;
  border-color: rgba(45, 212, 191, 0.58);
}

.chip-card footer {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

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

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

.flight-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.flight-card h3 {
  margin: 0 0 6px;
  font-size: 17px;
}

.flight-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

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

.schema-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  align-items: stretch;
}

.schematic-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.schematic-panel canvas {
  width: 100%;
  height: 360px;
  background: #0d1117;
}

.schematic-caption {
  padding: 14px 16px;
  border-top: 1px solid var(--line);
}

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

.schematic-caption span {
  color: var(--muted);
  font-size: 14px;
}

.template-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.template-detail {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.template-detail header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.template-detail h3 {
  margin: 0;
  font-size: 23px;
}

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

.configurator {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 0.55fr);
  gap: 20px;
  align-items: start;
}

.form-grid {
  display: grid;
  gap: 16px;
}

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

.field label,
.field-title {
  color: #24292f;
  font-size: 13px;
  font-weight: 800;
}

.field select,
.field input[type="number"],
.field input[type="text"],
.field textarea {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
}

.field textarea {
  min-height: 96px;
  padding: 10px 12px;
  resize: vertical;
}

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

.service-list {
  display: grid;
  gap: 8px;
}

.check-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--soft);
}

.check-row strong {
  display: block;
  font-size: 14px;
}

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

.price-preview {
  position: sticky;
  top: 88px;
  overflow: hidden;
}

.price-total {
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

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

.price-total strong {
  display: block;
  margin-top: 2px;
  font-size: 38px;
  line-height: 1;
}

.price-total small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}

.line-items {
  display: grid;
}

.line-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.line-item strong {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 13px;
}

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

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: 18px;
  align-items: start;
}

.table-list {
  display: grid;
}

.table-row {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) 0.8fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

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

.table-row h3 {
  margin: 0 0 4px;
  font-size: 15px;
}

.table-row p {
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}

.order-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.order-card:last-child {
  border-bottom: 0;
}

.order-card header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.order-card h3 {
  margin: 0 0 4px;
  font-size: 16px;
}

.order-card p {
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}

.voyage-bar {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 5px;
}

.voyage-segment {
  height: 8px;
  border-radius: 999px;
  background: var(--line);
}

.voyage-segment.done {
  background: var(--green);
}

.voyage-segment.active {
  background: var(--blue);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(13, 17, 23, 0.62);
}

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

.modal {
  width: min(760px, 100%);
  max-height: min(780px, calc(100vh - 48px));
  overflow: auto;
  border: 1px solid #30363d;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
}

.modal-header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.modal-header h2 {
  margin: 0;
  font-size: 20px;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
}

.wizard {
  padding: 18px;
}

.wizard-progress {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}

.wizard-dot {
  height: 6px;
  border-radius: 999px;
  background: var(--line);
}

.wizard-dot.active,
.wizard-dot.done {
  background: var(--blue);
}

.wizard-step-panel {
  display: none;
}

.wizard-step-panel.active {
  display: grid;
  gap: 16px;
}

.wizard-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.compact-actions {
  margin-top: 0;
}

.file-requirements {
  display: grid;
  gap: 8px;
}

.upload-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--soft);
}

.upload-row strong {
  display: block;
  font-size: 14px;
}

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

.mobile-only {
  display: none;
}

@media (max-width: 980px) {
  .header-inner {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 14px 0;
  }

  .header-nav,
  .header-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .hero,
  .landing-section {
    min-height: auto;
  }

  .hero-grid,
  .section-head,
  .split-grid,
  .ecosystem-map,
  .dashboard-preview,
  .page-hero-grid,
  .schedule-grid,
  .schema-grid,
  .configurator,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .metric-grid,
  .template-grid,
  .four-grid,
  .value-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .workflow-track {
    grid-template-columns: 1fr;
  }

  .workflow-step {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .workflow-step:last-child {
    border-bottom: 0;
  }

  .workflow-step::after {
    display: none;
  }

  .price-preview {
    position: static;
  }
}

@media (max-width: 720px) {
  .container,
  .narrow {
    width: min(100% - 28px, 1180px);
  }

  .hero,
  .page-hero,
  .landing-section,
  .content-section {
    padding: 52px 0;
  }

  .hero-grid {
    gap: 28px;
  }

  .hero-title {
    font-size: clamp(42px, 13vw, 58px);
  }

  .hero-copy,
  .section-head p,
  .page-hero p {
    font-size: 16px;
  }

  .wafer-stage,
  .wafer-stage canvas {
    min-height: 330px;
    height: 330px;
  }

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

  .metric-grid,
  .three-grid,
  .two-grid,
  .template-grid,
  .chip-gallery,
  .template-detail-grid,
  .mode-strip {
    grid-template-columns: 1fr;
  }

  .metric {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

  .board-header,
  .board-row {
    grid-template-columns: 1fr 0.75fr;
  }

  .board-header span:nth-child(3),
  .board-header span:nth-child(4),
  .board-row span:nth-child(3),
  .board-row span:nth-child(4) {
    display: none;
  }

  .flight-card,
  .table-row,
  .order-card header,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .table-row {
    align-items: start;
  }

  .schematic-panel canvas {
    height: 300px;
  }

  .modal-backdrop {
    padding: 12px;
  }

  .wizard-footer {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
