:root {
  color-scheme: light;
  --ink: #182436;
  --muted: #667085;
  --line: #d7dee8;
  --surface: #ffffff;
  --surface-soft: #f5f8fb;
  --blue: #1f63d8;
  --blue-deep: #12356f;
  --cyan: #19a7b3;
  --green: #178a5a;
  --amber: #c67a00;
  --red: #c74343;
  --shadow: 0 18px 48px rgba(21, 38, 65, 0.11);
  --radius: 8px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-size: 16px;
  line-height: 1.6;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
  padding: 0 48px;
  border-bottom: 1px solid rgba(215, 222, 232, 0.8);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-weight: 700;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 30px;
  border: 2px solid var(--blue-deep);
  border-radius: 4px;
  color: var(--blue-deep);
  font-size: 14px;
}

.brand-text {
  color: #203047;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  color: #405169;
  font-size: 14px;
}

.site-nav a,
.header-action {
  white-space: nowrap;
}

.site-nav a:hover {
  color: var(--blue);
}

.header-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid var(--blue);
  border-radius: var(--radius);
  color: var(--blue);
  font-weight: 700;
  font-size: 14px;
}

.hero {
  min-height: 72vh;
  display: grid;
  align-items: center;
  padding: 72px 48px;
  color: #ffffff;
  background-image:
    linear-gradient(90deg, rgba(12, 30, 58, 0.96) 0%, rgba(17, 50, 95, 0.88) 48%, rgba(10, 42, 62, 0.42) 100%),
    url("./assets/mdy-mipi-board.png");
  background-size: cover;
  background-position: center right;
}

.hero-inner {
  width: min(100%, 1180px);
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--cyan);
  font-weight: 800;
  font-size: 14px;
}

.hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: 52px;
  line-height: 1.1;
  font-weight: 800;
}

.hero-copy {
  max-width: 720px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
}

.nowrap {
  white-space: nowrap;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 800;
  line-height: 1.2;
}

.button.primary {
  background: var(--blue);
  color: #ffffff;
}

.button.primary:hover {
  background: #174fb0;
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.68);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.inquiry-form .button.secondary {
  border-color: var(--line);
  background: #ffffff;
  color: var(--ink);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 32px 0 0;
  list-style: none;
}

.hero-tags li {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
}

.need-strip {
  background: #eef5f8;
  border-bottom: 1px solid var(--line);
}

.strip-inner {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 18px 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.strip-inner strong {
  margin-right: 4px;
}

.strip-inner span {
  padding: 4px 10px;
  border-radius: 999px;
  background: #ffffff;
  color: #405169;
  font-size: 14px;
}

.section {
  padding: 82px 48px;
}

.section[id] {
  scroll-margin-top: 88px;
}

.section:nth-of-type(odd) {
  background: var(--surface-soft);
}

.section-heading {
  width: min(100%, 860px);
  margin: 0 auto 34px;
  text-align: center;
}

.section-heading.align-left {
  text-align: left;
  margin-left: 0;
}

.section-heading h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1.22;
}

.section-heading p:last-child {
  margin: 14px 0 0;
  color: var(--muted);
}

.problem-grid,
.scene-grid,
.interface-grid,
.platform-points,
.inquiry-grid,
.contact-grid {
  width: min(100%, 1180px);
  margin: 0 auto;
}

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

.problem-card,
.scene-card,
.interface-card,
.deliverables,
.inquiry-form,
.summary-panel,
.contact-card,
.platform-points > div,
.faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(21, 38, 65, 0.05);
}

.problem-card {
  min-height: 226px;
  padding: 24px;
}

.card-index {
  display: inline-flex;
  color: var(--blue);
  font-weight: 800;
  font-size: 13px;
}

.problem-card h3,
.scene-card h3,
.interface-card h3,
.platform-points h3,
.deliverables h3 {
  margin: 10px 0 10px;
  font-size: 20px;
  line-height: 1.32;
}

.problem-card p,
.scene-card p,
.interface-card p,
.platform-points p,
.deliverables li,
.faq-list p {
  color: var(--muted);
}

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

.scene-card {
  position: relative;
  min-height: 360px;
  padding: 24px;
  overflow: hidden;
}

.scene-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: var(--blue);
}

.scene-robot::before {
  background: var(--green);
}

.scene-auto::before {
  background: var(--amber);
}

.scene-vision::before {
  background: var(--cyan);
}

.scene-test::before {
  background: var(--red);
}

.scene-label {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  background: #eff6ff;
  color: var(--blue-deep);
  font-size: 13px;
  font-weight: 800;
}

.scene-robot .scene-label {
  background: #eaf7f0;
  color: #0f6d45;
}

.scene-auto .scene-label {
  background: #fff5dd;
  color: #8a5500;
}

.scene-vision .scene-label {
  background: #e7f9fb;
  color: #10737b;
}

.scene-test .scene-label {
  background: #fff0f0;
  color: #9c2d2d;
}

.scene-card ul,
.deliverables ul {
  margin: 18px 0 0;
  padding-left: 18px;
}

.flow-section {
  background: #ffffff;
}

.flow-wrap {
  width: min(100%, 1180px);
  margin: 0 auto;
  overflow-x: auto;
  padding-bottom: 6px;
}

.flow-diagram {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) 34px minmax(170px, 1fr) 34px minmax(190px, 1.15fr) 34px minmax(170px, 1fr) 34px minmax(170px, 1fr);
  align-items: center;
  min-width: 1080px;
  gap: 0;
}

.flow-node {
  min-height: 170px;
  padding: 20px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--blue);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.flow-node strong,
.flow-node span,
.flow-node small {
  display: block;
}

.flow-node strong {
  font-size: 18px;
}

.flow-node span {
  margin-top: 12px;
  color: #304058;
}

.flow-node small {
  margin-top: 10px;
  color: var(--muted);
}

.flow-node.sensors {
  border-top-color: var(--green);
}

.flow-node.fpga {
  border-top-color: var(--cyan);
}

.flow-node.output {
  border-top-color: var(--amber);
}

.flow-node.software {
  border-top-color: var(--red);
}

.flow-arrow {
  text-align: center;
  color: var(--blue);
  font-size: 28px;
  font-weight: 800;
}

.platform-section {
  display: grid;
  grid-template-columns: minmax(320px, 520px) minmax(360px, 560px);
  justify-content: center;
  gap: 32px 38px;
  align-items: center;
  background: var(--surface-soft);
}

.platform-section > .section-heading,
.platform-section > .platform-figure {
  width: 100%;
  max-width: 560px;
  justify-self: stretch;
}

.platform-figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.platform-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 42%;
}

.platform-figure figcaption {
  padding: 12px 16px 16px;
  color: var(--muted);
  font-size: 13px;
}

.platform-points {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  width: min(100%, 1180px);
  justify-self: center;
}

.platform-points > div {
  min-height: 170px;
  padding: 22px;
}

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

.interface-card {
  min-height: 208px;
  padding: 22px;
}

.deliverables {
  width: min(100%, 1180px);
  margin: 20px auto 0;
  padding: 24px 28px;
}

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

.inquiry-section {
  background: #f7fbfd;
}

.inquiry-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 22px;
  align-items: start;
}

.inquiry-form,
.summary-panel {
  padding: 24px;
}

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

.inquiry-form label,
.checkbox-set {
  display: grid;
  gap: 7px;
  color: #344054;
  font-weight: 700;
  font-size: 14px;
}

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

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cfd8e3;
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--ink);
  padding: 11px 12px;
  min-height: 44px;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(31, 99, 216, 0.16);
  border-color: var(--blue);
}

.checkbox-set {
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.checkbox-set legend {
  padding: 0 6px;
}

.checkbox-set label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.checkbox-set input {
  width: 17px;
  height: 17px;
  min-height: 17px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.form-note,
.copy-state {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.section.contact-section {
  background: #ffffff;
}

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

.contact-card {
  min-height: 220px;
  padding: 28px 26px;
}

.contact-card h3 {
  margin: 0 0 18px;
  font-size: 20px;
}

.contact-card p {
  margin: 0 0 12px;
  color: #43546c;
}

.contact-card a {
  color: #2c5c9b;
}

.contact-card a:hover {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.summary-panel {
  position: sticky;
  top: 88px;
}

.summary-label {
  margin: 0 0 14px;
  color: var(--blue);
  font-weight: 800;
}

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

.metric strong,
.metric span {
  display: block;
}

.metric strong {
  font-size: 30px;
  line-height: 1.2;
  color: var(--blue-deep);
}

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

.route-advice {
  margin: 18px 0;
  padding: 14px;
  border-left: 4px solid var(--cyan);
  background: #edf9fb;
  color: #24495b;
}

#summary-text {
  min-height: 245px;
  color: #344054;
  background: #fbfcfe;
}

.faq-list {
  width: min(100%, 900px);
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.faq-list details {
  padding: 0;
  overflow: hidden;
}

.faq-list summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 800;
}

.faq-list p {
  margin: 0;
  padding: 0 22px 20px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  padding: 40px 48px;
  background: #162032;
  color: rgba(255, 255, 255, 0.86);
}

.site-footer p,
.site-footer address {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-style: normal;
}

@media (max-width: 1080px) {
  .site-header {
    padding: 0 28px;
  }

  .site-nav {
    display: none;
  }

  .hero {
    padding: 64px 28px;
    background-position: 58% center;
  }

  .hero h1 {
    font-size: 42px;
  }

  .section {
    padding: 68px 28px;
  }

  .strip-inner {
    padding-inline: 28px;
  }

  .problem-grid,
  .scene-grid,
  .interface-grid,
  .platform-points,
  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .platform-section {
    grid-template-columns: 1fr;
  }

  .platform-section > * {
    width: min(100%, 820px);
    justify-self: center;
  }

  .platform-points {
    grid-column: auto;
  }

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

  .summary-panel {
    position: static;
  }
}

@media (max-width: 700px) {
  .site-header {
    height: auto;
    min-height: 64px;
    padding: 12px 18px;
  }

  .brand-text {
    display: none;
  }

  .header-action {
    min-height: 36px;
    padding: 0 12px;
  }

  .hero {
    min-height: 76vh;
    padding: 56px 20px;
    background-image:
      linear-gradient(180deg, rgba(12, 30, 58, 0.98) 0%, rgba(17, 50, 95, 0.9) 62%, rgba(13, 49, 67, 0.72) 100%),
      url("./assets/mdy-mipi-board.png");
    background-position: center;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero-copy {
    font-size: 16px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .section {
    padding: 56px 20px;
  }

  .section-heading {
    text-align: left;
    margin-bottom: 26px;
  }

  .section-heading h2 {
    font-size: 27px;
  }

  .strip-inner {
    padding: 16px 20px;
  }

  .problem-grid,
  .scene-grid,
  .interface-grid,
  .platform-points,
  .contact-grid,
  .deliverables ul,
  .field-row {
    grid-template-columns: 1fr;
  }

  .scene-card,
  .problem-card,
  .interface-card {
    min-height: auto;
  }

  .flow-wrap {
    margin-inline: -20px;
    padding-inline: 20px;
  }

  .inquiry-form,
  .summary-panel,
  .contact-card,
  .deliverables {
    padding: 20px;
  }

  .contact-card {
    min-height: auto;
  }

  .site-footer {
    flex-direction: column;
    padding: 34px 20px;
  }
}
