:root {
  --blue: #1a73e8;
  --blue-700: #174ea6;
  --blue-50: #e8f0fe;
  --green: #188038;
  --green-50: #e6f4ea;
  --yellow: #f9ab00;
  --yellow-50: #fef7e0;
  --red: #d93025;
  --red-50: #fce8e6;
  --ink: #202124;
  --muted: #5f6368;
  --subtle: #80868b;
  --line: #dadce0;
  --line-soft: #e8eaed;
  --surface: #ffffff;
  --surface-2: #f8fafd;
  --surface-3: #f1f3f4;
  --shadow: 0 24px 70px rgba(60, 64, 67, 0.14);
  --shadow-soft: 0 16px 44px rgba(60, 64, 67, 0.10);
  --radius: 8px;
  --max: 1180px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: Arial, "Segoe UI", Helvetica, sans-serif;
  line-height: 1.5;
}

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

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
}

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

.page-shell {
  min-height: 100vh;
  overflow: hidden;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(218, 220, 224, 0.82);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

.nav {
  width: min(var(--max), calc(100% - 40px));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 7px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(90deg, transparent 48%, rgba(255, 255, 255, 0.82) 49% 51%, transparent 52%),
    linear-gradient(0deg, transparent 48%, rgba(255, 255, 255, 0.82) 49% 51%, transparent 52%),
    conic-gradient(from 180deg, var(--blue), var(--green), var(--yellow), var(--red), var(--blue));
  box-shadow: inset 0 0 0 6px #fff;
}

.brand-name {
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 21px;
  font-weight: 800;
  font-style: italic;
  letter-spacing: -0.9px;
  line-height: 1;
  white-space: nowrap;
}

.brand-name .chip {
  color: #000;
}

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

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--muted);
  font-size: 14px;
  flex: 1 1 auto;
}

.nav-links a {
  border-radius: 999px;
  padding: 9px 13px;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: var(--blue-50);
  color: var(--blue-700);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.button {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 20px;
  cursor: pointer;
  font-weight: 700;
  white-space: nowrap;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

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

.button.primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 12px 24px rgba(26, 115, 232, 0.23);
}

.button.primary:hover {
  background: var(--blue-700);
}

.button.secondary {
  color: var(--blue-700);
  border-color: var(--line);
  background: #fff;
}

.button.secondary:hover {
  border-color: #b9c7e8;
  background: var(--blue-50);
}

.button.ghost {
  color: var(--blue-700);
  background: transparent;
  padding-inline: 13px;
}

.button.ghost:hover {
  background: var(--blue-50);
}

.button.full {
  width: 100%;
}

.icon {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.hero {
  width: min(var(--max), calc(100% - 40px));
  min-height: calc(100vh - 68px);
  margin: 0 auto;
  padding: 58px 0 46px;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(390px, 0.98fr);
  align-items: center;
  gap: 48px;
}

.hero.compact {
  min-height: 520px;
  padding-block: 64px;
}

.hero.centered {
  grid-template-columns: minmax(0, 820px);
  justify-content: center;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  border: 1px solid #d7e2ff;
  border-radius: 999px;
  background: var(--blue-50);
  color: var(--blue-700);
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 700;
}

.eyebrow.center {
  margin-inline: auto;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(24, 128, 56, 0.12);
  flex: 0 0 auto;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(44px, 7vw, 76px);
  line-height: 1.03;
}

.hero.centered h1 {
  margin-inline: auto;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
}

h3 {
  margin-bottom: 10px;
  font-size: 24px;
  line-height: 1.18;
}

h4 {
  margin-bottom: 7px;
  font-size: 15px;
  line-height: 1.2;
}

.hero-copy,
.section-copy,
.page-copy {
  color: #3c4043;
  font-size: 20px;
  line-height: 1.58;
}

.section-copy,
.page-copy {
  max-width: 780px;
}

.hero.centered .hero-copy,
.hero.centered .page-copy {
  margin-inline: auto;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 13px;
}

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

.hero.centered .hero-actions {
  justify-content: center;
}

.metrics-card {
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.metrics-card .card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

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

.metric {
  min-height: 122px;
  padding: 18px 16px;
  border-right: 1px solid var(--line-soft);
}

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

.metric strong {
  display: block;
  color: var(--ink);
  font-size: 23px;
  line-height: 1.1;
  margin-bottom: 9px;
}

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

.visual-shell {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 82% 13%, rgba(26, 115, 232, 0.16), transparent 34%),
    linear-gradient(180deg, #fff, #f7faff);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-visual {
  min-height: 520px;
}

.wafer-canvas {
  width: 100%;
  min-height: 520px;
}

.visual-caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.caption-tile {
  border: 1px solid rgba(218, 220, 224, 0.86);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  padding: 12px;
}

.caption-tile b {
  display: block;
  font-size: 14px;
}

.caption-tile span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}

.landing-section,
.page-section {
  padding: 86px 0;
}

.landing-section {
  min-height: clamp(680px, 92vh, 920px);
  display: flex;
  align-items: center;
}

.section-band {
  background: var(--surface-2);
  border-block: 1px solid var(--line-soft);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 34px;
}

.section-head.center {
  display: block;
  text-align: center;
}

.section-head.center .section-copy {
  margin-inline: auto;
}

.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(380px, 1.05fr);
  align-items: center;
  gap: 44px;
}

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

.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: 16px;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 22px;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.04);
}

.card.soft {
  background: var(--surface-2);
}

.card.compact {
  padding: 16px;
}

.card p:last-child {
  margin-bottom: 0;
}

.card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 16px 0 10px;
}

.section-head.mini {
  align-items: start;
  margin-bottom: 24px;
}

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

.workflow-step {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: #fff;
}

.step-number {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--blue-50);
  color: var(--blue-700);
  font-weight: 800;
}

.status-pill,
.tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  max-width: 100%;
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: 6px 10px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.status-pill.blue,
.tag.blue {
  border-color: #c7d7fe;
  background: var(--blue-50);
  color: var(--blue-700);
}

.status-pill.green,
.tag.green {
  border-color: #b7dfc2;
  background: var(--green-50);
  color: var(--green);
}

.status-pill.yellow,
.tag.yellow {
  border-color: #f5d88b;
  background: var(--yellow-50);
  color: #8f6100;
}

.status-pill.red,
.tag.red {
  border-color: #f5b7b1;
  background: var(--red-50);
  color: var(--red);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.departure-board {
  border: 1px solid #222;
  border-radius: var(--radius);
  background: #202124;
  color: #f8fafd;
  box-shadow: var(--shadow);
  overflow: hidden;
}

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

.board-header {
  padding: 13px 16px;
  color: #bdc1c6;
  border-bottom: 1px solid #3c4043;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.board-row {
  min-height: 58px;
  padding: 13px 16px;
  border-bottom: 1px solid #3c4043;
  font-family: "Courier New", monospace;
}

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

.board-row strong {
  color: #fff;
  font-family: Arial, "Segoe UI", sans-serif;
  font-size: 15px;
}

.board-code {
  color: #8ab4f8;
  font-weight: 800;
}

.board-time {
  color: #fdd663;
}

.split-flap {
  display: inline-flex;
  border-radius: 4px;
  background: #2d2f31;
  box-shadow: inset 0 -1px 0 #101112, inset 0 1px 0 #4a4d51;
  padding: 3px 7px;
}

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

.template-card {
  min-height: 270px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-top: 4px solid var(--blue);
}

.template-card.green-top {
  border-top-color: var(--green);
}

.template-card.yellow-top {
  border-top-color: var(--yellow);
}

.template-card.red-top {
  border-top-color: var(--red);
}

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

.spec-list li {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 10px;
  color: var(--muted);
  font-size: 14px;
}

.spec-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

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

.ecosystem-map {
  position: relative;
  min-height: 440px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(218, 220, 224, 0.55) 1px, transparent 1px),
    linear-gradient(0deg, rgba(218, 220, 224, 0.55) 1px, transparent 1px),
    linear-gradient(180deg, #fff, #f7fbff);
  background-size: 42px 42px, 42px 42px, 100% 100%;
  overflow: hidden;
}

.map-node {
  position: absolute;
  width: min(210px, 42%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  padding: 14px;
  box-shadow: var(--shadow-soft);
}

.map-node:nth-child(1) {
  left: 7%;
  top: 12%;
}

.map-node:nth-child(2) {
  right: 8%;
  top: 16%;
}

.map-node:nth-child(3) {
  left: 21%;
  bottom: 12%;
}

.map-node:nth-child(4) {
  right: 15%;
  bottom: 14%;
}

.map-node.center-node {
  left: 50%;
  top: 50%;
  width: 230px;
  transform: translate(-50%, -50%);
  border-color: #b9c7e8;
  background: var(--blue-50);
}

.dashboard-preview {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.preview-toolbar {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line-soft);
  padding: 12px 16px;
}

.preview-body {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 380px;
}

.preview-side {
  border-right: 1px solid var(--line-soft);
  background: var(--surface-2);
  padding: 16px;
}

.side-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-radius: var(--radius);
  padding: 10px 12px;
  color: var(--muted);
  font-size: 14px;
}

.side-item.active {
  background: var(--blue-50);
  color: var(--blue-700);
  font-weight: 800;
}

.preview-main {
  padding: 16px;
  display: grid;
  gap: 12px;
}

.data-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(90px, 0.6fr) minmax(90px, 0.6fr);
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 14px;
}

.final-cta {
  text-align: center;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) repeat(4, minmax(120px, 0.6fr));
  gap: 26px;
}

.footer a {
  display: block;
  color: var(--muted);
  font-size: 14px;
  margin-top: 8px;
}

.mission-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
}

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

.timeline {
  display: grid;
  gap: 0;
}

.timeline-panel {
  padding: 22px 20px;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 14px;
  min-height: 64px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 24px;
  bottom: -4px;
  width: 2px;
  background: var(--line);
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-marker {
  position: relative;
  z-index: 1;
  width: 22px;
  height: 22px;
  border: 3px solid var(--line);
  border-radius: 50%;
  background: #fff;
  margin-top: 2px;
}

.timeline-item.done .timeline-marker {
  border-color: var(--green);
  background: var(--green);
}

.timeline-item.active .timeline-marker {
  border-color: var(--blue);
  box-shadow: 0 0 0 6px rgba(26, 115, 232, 0.12);
}

.timeline-copy b {
  display: block;
  margin-bottom: 2px;
}

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

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

.chip-thumb {
  position: relative;
  min-height: 170px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(26, 115, 232, 0.15) 1px, transparent 1px),
    linear-gradient(0deg, rgba(24, 128, 56, 0.14) 1px, transparent 1px),
    linear-gradient(135deg, #f7fbff, #fff 42%, #eef4ff);
  background-size: 17px 17px, 17px 17px, 100% 100%;
  overflow: hidden;
}

.chip-thumb::before,
.chip-thumb::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(26, 115, 232, 0.42);
  background: rgba(26, 115, 232, 0.12);
}

.chip-thumb::before {
  inset: 28px 38px 44px 44px;
}

.chip-thumb::after {
  width: 32%;
  height: 22%;
  right: 28px;
  bottom: 24px;
  border-color: rgba(249, 171, 0, 0.5);
  background: rgba(249, 171, 0, 0.14);
}

.chip-thumb-green {
  background:
    linear-gradient(90deg, rgba(24, 128, 56, 0.16) 1px, transparent 1px),
    linear-gradient(0deg, rgba(26, 115, 232, 0.12) 1px, transparent 1px),
    linear-gradient(135deg, #f7fff9, #fff 42%, #e6f4ea);
  background-size: 17px 17px, 17px 17px, 100% 100%;
}

.chip-thumb-yellow {
  background:
    linear-gradient(90deg, rgba(249, 171, 0, 0.17) 1px, transparent 1px),
    linear-gradient(0deg, rgba(26, 115, 232, 0.12) 1px, transparent 1px),
    linear-gradient(135deg, #fffdf6, #fff 42%, #fef7e0);
  background-size: 17px 17px, 17px 17px, 100% 100%;
}

.chip-thumb-red {
  background:
    linear-gradient(90deg, rgba(217, 48, 37, 0.15) 1px, transparent 1px),
    linear-gradient(0deg, rgba(26, 115, 232, 0.12) 1px, transparent 1px),
    linear-gradient(135deg, #fff8f7, #fff 42%, #fce8e6);
  background-size: 17px 17px, 17px 17px, 100% 100%;
}

.shuttle-card {
  display: flex;
  flex-direction: column;
}

.shuttle-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
}

.shuttle-table th,
.shuttle-table td {
  border-bottom: 1px solid var(--line-soft);
  padding: 14px 12px;
  text-align: left;
  vertical-align: top;
}

.shuttle-table th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

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

.schematic-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.schematic {
  position: relative;
  min-height: 390px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}

.schematic-title {
  position: absolute;
  left: 16px;
  top: 14px;
  z-index: 2;
  display: flex;
  gap: 8px;
  align-items: center;
}

.reticle {
  position: absolute;
  inset: 74px 56px 54px;
  border: 2px solid #9aa0a6;
  border-radius: 5px;
  background:
    linear-gradient(90deg, rgba(218, 220, 224, 0.74) 1px, transparent 1px),
    linear-gradient(0deg, rgba(218, 220, 224, 0.74) 1px, transparent 1px),
    linear-gradient(135deg, #fbfcff, #eef4ff);
  background-size: 28px 28px, 28px 28px, 100% 100%;
}

.mpw-die {
  position: absolute;
  left: 18%;
  top: 20%;
  width: 38%;
  height: 46%;
  border: 2px solid var(--blue);
  border-radius: 4px;
  background: rgba(26, 115, 232, 0.13);
  animation: mpw-die 6.5s ease-in-out infinite;
}

.mpw-die::after {
  content: "";
  position: absolute;
  inset: 17%;
  border: 1px solid rgba(26, 115, 232, 0.5);
  background:
    linear-gradient(90deg, transparent 48%, rgba(26, 115, 232, 0.28) 49% 51%, transparent 52%),
    linear-gradient(0deg, transparent 48%, rgba(26, 115, 232, 0.28) 49% 51%, transparent 52%);
}

@keyframes mpw-die {
  0%,
  100% {
    left: 12%;
    top: 20%;
    width: 35%;
    height: 36%;
  }
  32% {
    left: 48%;
    top: 13%;
    width: 28%;
    height: 52%;
  }
  66% {
    left: 29%;
    top: 43%;
    width: 52%;
    height: 28%;
  }
}

.chip-outline {
  position: absolute;
  inset: 76px 56px 52px;
  border: 3px solid #3c4043;
  border-radius: 7px;
  background: #f8fafd;
  box-shadow: inset 0 0 0 20px #fff, inset 0 0 0 22px #dadce0;
}

.chip-core {
  position: absolute;
  inset: 34px;
  border: 1px solid #bdc1c6;
  border-radius: 5px;
  background:
    linear-gradient(90deg, rgba(218, 220, 224, 0.68) 1px, transparent 1px),
    linear-gradient(0deg, rgba(218, 220, 224, 0.68) 1px, transparent 1px),
    #f7fbff;
  background-size: 22px 22px, 22px 22px, 100% 100%;
}

.pad {
  position: absolute;
  background: #9aa0a6;
}

.pad.top,
.pad.bottom {
  width: 18px;
  height: 6px;
}

.pad.left,
.pad.right {
  width: 6px;
  height: 18px;
}

.pad.top {
  top: 12px;
}

.pad.bottom {
  bottom: 12px;
}

.pad.left {
  left: 12px;
}

.pad.right {
  right: 12px;
}

.pad.p1 {
  left: 18%;
}

.pad.p2 {
  left: 34%;
}

.pad.p3 {
  left: 50%;
}

.pad.p4 {
  left: 66%;
}

.pad.p5 {
  top: 22%;
}

.pad.p6 {
  top: 42%;
}

.pad.p7 {
  top: 62%;
}

.mpc-slot {
  position: absolute;
  border: 2px solid var(--green);
  border-radius: 4px;
  background: rgba(24, 128, 56, 0.12);
  animation: mpc-slot-a 7s ease-in-out infinite;
}

.mpc-slot.one {
  left: 18%;
  top: 20%;
  width: 28%;
  height: 24%;
}

.mpc-slot.two {
  left: 55%;
  top: 32%;
  width: 22%;
  height: 34%;
  border-color: var(--yellow);
  background: rgba(249, 171, 0, 0.15);
  animation-name: mpc-slot-b;
}

.mpc-slot.three {
  left: 28%;
  top: 62%;
  width: 36%;
  height: 18%;
  border-color: var(--blue);
  background: rgba(26, 115, 232, 0.12);
  animation-name: mpc-slot-c;
}

@keyframes mpc-slot-a {
  0%,
  100% {
    left: 16%;
    top: 19%;
    width: 25%;
    height: 22%;
  }
  50% {
    left: 24%;
    top: 28%;
    width: 35%;
    height: 20%;
  }
}

@keyframes mpc-slot-b {
  0%,
  100% {
    left: 55%;
    top: 32%;
    width: 22%;
    height: 34%;
  }
  50% {
    left: 50%;
    top: 19%;
    width: 28%;
    height: 25%;
  }
}

@keyframes mpc-slot-c {
  0%,
  100% {
    left: 28%;
    top: 62%;
    width: 36%;
    height: 18%;
  }
  50% {
    left: 19%;
    top: 55%;
    width: 24%;
    height: 30%;
  }
}

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

.config-panel,
.price-preview {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.04);
}

.config-panel {
  padding: 24px;
}

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

.preview-total {
  padding: 24px;
  background: linear-gradient(180deg, var(--blue-50), #fff);
  border-bottom: 1px solid var(--line-soft);
}

.preview-total strong {
  display: block;
  font-size: 42px;
  line-height: 1.05;
}

.preview-total span {
  color: var(--muted);
}

.price-lines {
  padding: 18px 24px 24px;
  display: grid;
  gap: 12px;
}

.price-line {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.price-line b {
  color: var(--ink);
  text-align: right;
  overflow-wrap: anywhere;
}

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

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.field label,
.check-row span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.field input,
.field select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  padding: 0 12px;
}

.field input:focus,
.field select:focus {
  outline: 2px solid rgba(26, 115, 232, 0.25);
  border-color: var(--blue);
}

.check-grid {
  display: grid;
  gap: 10px;
}

.check-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
}

.check-row input {
  width: 18px;
  height: 18px;
}

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

.dashboard-nav {
  position: sticky;
  top: 88px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 12px;
}

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

.table-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}

.table-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line-soft);
}

.responsive-table {
  overflow-x: auto;
}

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

.data-table th,
.data-table td {
  border-bottom: 1px solid var(--line-soft);
  padding: 15px 20px;
  text-align: left;
  vertical-align: top;
}

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

.data-table th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.voyage-mini {
  display: grid;
  gap: 6px;
  min-width: 180px;
}

.progress-track {
  height: 8px;
  border-radius: 999px;
  background: var(--line-soft);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--green));
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(32, 33, 36, 0.42);
}

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

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

.modal-head,
.modal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line-soft);
}

.modal-foot {
  border-top: 1px solid var(--line-soft);
  border-bottom: 0;
}

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

.close-button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.close-button:hover {
  background: var(--surface-3);
}

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

.wizard-step {
  height: 5px;
  border-radius: 999px;
  background: var(--line-soft);
}

.wizard-step.active {
  background: var(--blue);
}

.wizard-pane {
  display: none;
}

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

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

.option-card {
  position: relative;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: #fff;
}

.option-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.option-card:has(input:checked) {
  border-color: var(--blue);
  background: var(--blue-50);
  box-shadow: inset 0 0 0 1px var(--blue);
}

.requirements-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  padding: 14px;
}

.file-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line-soft);
  padding: 12px 0;
}

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

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 120;
  display: none;
  border: 1px solid #b7dfc2;
  border-radius: var(--radius);
  background: var(--green-50);
  color: var(--green);
  padding: 12px 14px;
  font-weight: 700;
  box-shadow: var(--shadow-soft);
}

.toast.open {
  display: block;
}

@media (max-width: 1040px) {
  .hero,
  .split-grid,
  .pricing-layout,
  .dashboard-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 44px;
  }

  .hero-visual,
  .wafer-canvas {
    min-height: 440px;
  }

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

  .dashboard-nav,
  .price-preview {
    position: static;
  }
}

@media (max-width: 800px) {
  .nav {
    width: min(100% - 28px, var(--max));
    min-height: auto;
    padding: 12px 0;
    flex-wrap: wrap;
  }

  .brand {
    order: 1;
  }

  .nav-actions {
    order: 2;
    margin-left: auto;
  }

  .nav-links {
    order: 3;
    flex: 1 0 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .nav-actions .button.secondary {
    display: none;
  }

  .container,
  .hero {
    width: min(100% - 28px, var(--max));
  }

  .hero-copy,
  .section-copy,
  .page-copy {
    font-size: 18px;
  }

  .landing-section,
  .page-section {
    padding: 58px 0;
  }

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

  .metric-grid,
  .three-col,
  .two-col,
  .mission-grid,
  .value-grid,
  .mode-grid,
  .schematic-row,
  .gallery-grid,
  .field-grid,
  .option-grid {
    grid-template-columns: 1fr;
  }

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

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

  .section-head {
    display: block;
  }

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

  .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;
  }

  .visual-caption,
  .preview-body {
    grid-template-columns: 1fr;
  }

  .data-row {
    grid-template-columns: 1fr;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .button {
    min-height: 40px;
    padding-inline: 15px;
  }

  .hero-actions,
  .section-actions,
  .table-card-head,
  .modal-foot {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .button,
  .section-actions .button,
  .table-card-head .button,
  .modal-foot .button {
    width: 100%;
  }

  .visual-caption {
    position: static;
    padding: 12px;
  }

  .hero-visual,
  .wafer-canvas {
    min-height: 360px;
  }

  .workflow-step {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .workflow-step .status-pill {
    grid-column: 1 / -1;
  }

  .timeline-item {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .timeline-date {
    grid-column: 2;
    text-align: left;
  }

  .schematic {
    min-height: 320px;
  }
}
