:root {
  color-scheme: light;
  --ink: #17181c;
  --ink-soft: #4b5059;
  --paper: #ffffff;
  --surface: #f3f5f7;
  --line: #d8dde3;
  --purple: #694bb1;
  --purple-dark: #4f387f;
  --green: #16855b;
  --red: #e12929;
  --yellow: #f4c64e;
  --max: 1180px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif;
  letter-spacing: 0;
  line-height: 1.65;
}

button, a, input, video { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { letter-spacing: 0; }
img, video { display: block; max-width: 100%; }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  background: #fff;
  color: #000;
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  min-height: 68px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 max(24px, calc((100vw - var(--max)) / 2));
  color: #fff;
  background: rgba(23, 24, 28, .94);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(12px);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #fff;
  background: var(--purple);
  border-radius: 7px;
  font-size: 18px;
}

.main-nav { display: flex; gap: 36px; }
.main-nav a { color: #d8d9de; font-size: 14px; }
.main-nav a:hover, .main-nav a:focus-visible { color: #fff; }

.header-download {
  justify-self: end;
  padding: 8px 16px;
  color: #17181c;
  background: #fff;
  border-radius: 5px;
  font-weight: 700;
  font-size: 14px;
}

.hero {
  position: relative;
  min-height: min(820px, calc(100svh - 48px));
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(330px, .9fr) minmax(520px, 1.1fr);
  align-items: center;
  gap: 40px;
  padding: 80px max(28px, calc((100vw - var(--max)) / 2)) 30px;
  color: #fff;
  background: #17181c;
}

.hero::before {
  content: "MATU";
  position: absolute;
  right: -28px;
  bottom: -120px;
  color: rgba(255,255,255,.035);
  font-size: 330px;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
}

.hero-copy { position: relative; z-index: 2; max-width: 570px; }
.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
}
.hero .eyebrow { color: #71d4ad; }

h1, h2, h3, p { margin-top: 0; }
.hero h1 {
  margin-bottom: 24px;
  font-size: clamp(58px, 7vw, 102px);
  line-height: .98;
  font-weight: 900;
}
.hero-summary {
  max-width: 520px;
  margin-bottom: 30px;
  color: #c8cbd0;
  font-size: 18px;
}
.hero-actions, .resource-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 750;
}
.button-primary { color: #fff; background: var(--red); }
.button-primary:hover, .button-primary:focus-visible { background: #c51f1f; }
.button-quiet { color: #fff; border-color: #5c6068; background: transparent; }
.button-quiet:hover, .button-quiet:focus-visible { border-color: #fff; }
.button-outline { color: var(--ink); border-color: #9aa2ac; background: #fff; }
.button-outline:hover, .button-outline:focus-visible { border-color: var(--ink); }
.version-line { margin: 20px 0 0; color: #888d96; font-size: 12px; }

.hero-stage { position: relative; z-index: 2; min-height: 590px; }
.hero-phone, .interactive-phone {
  position: absolute;
  width: 330px;
  height: 660px;
  overflow: hidden;
  background: #0b0c0e;
  border: 7px solid #2d3036;
  border-radius: 46px;
  box-shadow: 0 35px 70px rgba(0,0,0,.42);
}
.hero-phone { left: 50%; top: 50%; width: 295px; height: 590px; transform: translate(-50%, -50%) rotate(4deg); }
.phone-speaker {
  position: absolute;
  z-index: 3;
  top: 10px;
  left: 50%;
  width: 90px;
  height: 21px;
  transform: translateX(-50%);
  background: #0b0c0e;
  border-radius: 0 0 14px 14px;
}
.phone-screen {
  height: 100%;
  overflow: hidden;
  padding: 39px 18px 20px;
  color: #29232f;
  background: #fff8ff;
  font-size: 12px;
}
.app-topline { display: flex; justify-content: space-between; color: var(--purple-dark); font-size: 16px; }
.app-topline small { color: #777; font-size: 10px; }
.app-license { margin: 16px 0 13px; color: #6d6872; font-size: 10px; }
.app-panel {
  padding: 15px;
  background: #e8e2e9;
  border-radius: 11px;
}
.app-panel-title, .demo-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 11px; }
.app-panel-title span { color: #6b6670; font-size: 10px; }
.account-row { display: grid; grid-template-columns: 8px 1fr auto; gap: 7px; align-items: center; padding: 8px 0; border-top: 1px solid #d4cbd7; }
.account-row i { width: 7px; height: 7px; background: var(--green); border-radius: 50%; }
.account-row b { color: var(--green); font-size: 9px; }
.app-panel button { width: 100%; margin-top: 10px; padding: 8px; color: #fff; border: 0; background: var(--purple); border-radius: 6px; }
.app-button { margin: 14px 0; padding: 14px 10px; color: #fff; background: var(--purple); border-radius: 7px; text-align: center; font-weight: 800; }
.app-config { background: #e7e5e6; }
.toggle { padding: 1px 4px 1px 16px; color: #fff !important; background: var(--purple); border-radius: 12px; }
.config-row { display: flex; justify-content: space-between; gap: 8px; padding: 9px 0; border-top: 1px solid #d1cdd2; }
.config-row span { color: #777; }
.config-row b { font-size: 10px; }

.stage-note {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 190px;
  padding: 12px 15px;
  color: #e6e8eb;
  background: #27292f;
  border: 1px solid #454951;
  font-size: 13px;
  font-weight: 700;
}
.stage-note span { color: #75d9b1; font-size: 11px; }
.stage-note-one { top: 13%; left: 0; }
.stage-note-two { top: 47%; right: 0; }
.stage-note-three { bottom: 10%; left: 1%; }
.stage-note::after { content: ""; position: absolute; width: 54px; height: 1px; background: #6c717a; }
.stage-note-one::after, .stage-note-three::after { left: 100%; }
.stage-note-two::after { right: 100%; }
.hero-scroll { position: absolute; left: 50%; bottom: 24px; z-index: 4; color: #8f949d; transform: translateX(-50%); font-size: 12px; }
.hero-scroll span { margin-left: 8px; color: #fff; }

.intro-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  border-left: 1px solid var(--line);
}
.intro-band p { margin: 0; padding: 25px 22px; border-right: 1px solid var(--line); font-size: 13px; font-weight: 700; }

.feature-section, .tutorial-section, .support-section {
  padding: 110px max(24px, calc((100vw - var(--max)) / 2));
}
.section-heading { max-width: 760px; margin-bottom: 58px; }
.section-heading h2, .workflow-band h2, .download-copy h2, .support-section h2 {
  margin-bottom: 18px;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.15;
}
.section-heading > p:last-child, .tutorial-heading > div > p:last-child { color: var(--ink-soft); }

.feature-workbench { display: grid; grid-template-columns: minmax(420px, 1fr) minmax(340px, .8fr); min-height: 730px; background: var(--surface); }
.interactive-phone-wrap { position: relative; min-height: 730px; overflow: hidden; background: #212329; }
.interactive-phone { left: 50%; top: 42px; width: 340px; height: 680px; transform: translateX(-50%); box-shadow: 0 28px 56px rgba(0,0,0,.34); }
.app-demo-screen { padding: 44px 17px 20px; }
.demo-header { position: relative; display: flex; justify-content: space-between; min-height: 66px; color: var(--purple-dark); }
.demo-header div { display: flex; flex-direction: column; gap: 3px; }
.demo-header b { font-size: 17px; }
.demo-header span { color: #77717d; font-size: 10px; }
.demo-block { position: relative; padding: 15px; background: #e9e3ea; border-radius: 10px; }
.demo-title span { color: #6b6670; font-size: 9px; }
.demo-account { display: flex; justify-content: space-between; padding: 8px 0; border-top: 1px solid #d3cad6; }
.demo-account b { color: var(--green); font-size: 10px; }
.demo-add { margin-top: 8px; padding: 8px; color: #fff; background: var(--purple); border-radius: 5px; text-align: center; }
.demo-permissions { position: relative; display: grid; gap: 8px; margin: 13px 0; }
.demo-permissions span { padding: 9px; border: 1px solid #c3bac6; border-radius: 5px; text-align: center; }
.demo-start { position: relative; margin-bottom: 13px; padding: 13px; color: #fff; background: var(--purple); border-radius: 6px; text-align: center; font-weight: 800; }
.demo-manufacture { min-height: 120px; }
.manufacture-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.manufacture-grid span { padding: 8px; border: 1px solid #bbb3bd; border-radius: 4px; color: #78727b; }
.manufacture-grid b { color: #3b3440; font-size: 9px; }
.hotspot {
  position: absolute;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  color: #fff;
  background: var(--red);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(225,41,41,.22);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}
.hotspot:hover, .hotspot:focus-visible, .hotspot.active { transform: scale(1.12); box-shadow: 0 0 0 6px rgba(225,41,41,.2); }
.demo-header .hotspot { top: -3px; right: 0; }
.account-block .hotspot { top: 52px; right: -12px; }
.demo-permissions .hotspot { top: 31px; left: -12px; }
.demo-start .hotspot { top: 8px; right: -12px; }
.demo-manufacture .hotspot { top: 44px; right: -12px; }
.phone-hint { position: absolute; bottom: 17px; left: 0; right: 0; margin: 0; color: #afb3ba; text-align: center; font-size: 12px; }

.feature-detail { display: flex; flex-direction: column; justify-content: center; padding: 60px; }
.feature-index, .step-counter { color: var(--red); font-size: 12px; font-weight: 800; }
.feature-detail h3, .tutorial-copy h3 { margin-bottom: 20px; font-size: 34px; line-height: 1.2; }
.feature-detail > p:not(.feature-index) { min-height: 84px; color: var(--ink-soft); font-size: 16px; }
.feature-detail ul { min-height: 135px; margin: 18px 0 28px; padding: 0; list-style: none; }
.feature-detail li { padding: 8px 0 8px 23px; border-bottom: 1px solid var(--line); position: relative; }
.feature-detail li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 800; }
.feature-selector { display: flex; flex-wrap: wrap; gap: 7px; }
.feature-chip { min-width: 55px; padding: 8px 11px; border: 1px solid #aeb5bd; border-radius: 4px; background: transparent; cursor: pointer; }
.feature-chip.active, .feature-chip:hover, .feature-chip:focus-visible { color: #fff; border-color: var(--ink); background: var(--ink); }

.workflow-band {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 80px;
  padding: 100px max(24px, calc((100vw - var(--max)) / 2));
  color: #fff;
  background: #202229;
}
.workflow-band .eyebrow { color: #71d4ad; }
.workflow-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid #464951; }
.workflow-list li { display: grid; grid-template-columns: 54px 1fr; gap: 20px; padding: 24px 0; border-bottom: 1px solid #464951; }
.workflow-list > li > span { color: #71d4ad; font-size: 12px; }
.workflow-list b { display: block; margin-bottom: 3px; font-size: 18px; }
.workflow-list p { margin: 0; color: #aeb2ba; font-size: 14px; }

.tutorial-section { background: #f4f6f8; }
.tutorial-heading { display: flex; justify-content: space-between; align-items: end; gap: 40px; max-width: none; }
.tutorial-heading > div:first-child { max-width: 690px; }
.tutorial-viewer { display: grid; grid-template-columns: 255px minmax(0, 1fr); min-height: 740px; background: #fff; border: 1px solid var(--line); }
.tutorial-tabs { display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.tutorial-tab { display: flex; gap: 13px; align-items: center; min-height: 78px; padding: 12px 18px; border: 0; border-bottom: 1px solid var(--line); background: transparent; cursor: pointer; text-align: left; font-weight: 700; }
.tutorial-tab span { color: #9299a2; font-size: 11px; }
.tutorial-tab:hover, .tutorial-tab:focus-visible { background: #f7f8f9; }
.tutorial-tab.active { color: #fff; background: var(--purple-dark); }
.tutorial-tab.active span { color: #d9cffa; }
.tutorial-panel { display: grid; grid-template-columns: minmax(300px, .9fr) minmax(330px, 1.1fr); }
.tutorial-copy { align-self: center; padding: 50px; }
.tutorial-copy > p:not(.step-counter) { color: var(--ink-soft); }
.tutorial-copy ol { margin: 28px 0 36px; padding-left: 0; list-style: none; counter-reset: step-action; }
.tutorial-copy li { counter-increment: step-action; position: relative; padding: 12px 0 12px 42px; border-bottom: 1px solid var(--line); }
.tutorial-copy li::before { content: counter(step-action); position: absolute; top: 11px; left: 0; display: grid; place-items: center; width: 26px; height: 26px; color: #fff; background: var(--green); border-radius: 50%; font-size: 11px; }
.tutorial-nav { display: flex; gap: 9px; }
.tutorial-nav button { min-width: 90px; padding: 9px 14px; border: 1px solid #9fa6af; border-radius: 4px; background: #fff; cursor: pointer; }
.tutorial-nav button:disabled { cursor: not-allowed; opacity: .4; }
.tutorial-image-button { position: relative; overflow: hidden; min-height: 740px; padding: 0; border: 0; background: #252831; cursor: zoom-in; }
.tutorial-image-button img { width: 100%; height: 740px; object-fit: contain; }
.tutorial-image-button span { position: absolute; right: 18px; bottom: 18px; padding: 7px 11px; color: #fff; background: rgba(0,0,0,.72); border-radius: 4px; font-size: 11px; }

.download-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  padding: 110px max(24px, calc((100vw - var(--max)) / 2));
  background: #fff;
}
.download-copy p:last-child { max-width: 520px; color: var(--ink-soft); }
.download-meta dl { margin: 0 0 28px; border-top: 1px solid var(--line); }
.download-meta dl div { display: grid; grid-template-columns: 130px 1fr; gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.download-meta dt { color: var(--ink-soft); }
.download-meta dd { margin: 0; font-weight: 750; }
.download-main { width: 100%; }
.download-tip { margin: 14px 0 0; color: var(--ink-soft); font-size: 12px; }

.support-section { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; background: #eff5f2; }
.support-section > div:first-child > p:last-child { max-width: 470px; color: var(--ink-soft); }
.contact-list { border-top: 1px solid #b9c9c0; }
.contact-item { display: grid; grid-template-columns: 100px 1fr auto; align-items: center; gap: 20px; padding: 22px 0; border-bottom: 1px solid #b9c9c0; }
.contact-item span { color: var(--ink-soft); font-size: 13px; }
.contact-item b { font-size: 19px; }
.copy-button { padding: 8px 13px; border: 1px solid #73857b; border-radius: 4px; background: transparent; cursor: pointer; font-weight: 700; }
.copy-button:hover, .copy-button:focus-visible { color: #fff; background: var(--green); border-color: var(--green); }

.site-footer { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 40px; padding: 38px max(24px, calc((100vw - var(--max)) / 2)); color: #aeb1b8; background: #17181c; font-size: 12px; }
.site-footer p { margin: 0; }
.footer-brand { color: #fff; }

.toast { position: fixed; z-index: 80; bottom: 24px; left: 50%; padding: 10px 18px; color: #fff; background: #17181c; border-radius: 4px; opacity: 0; pointer-events: none; transform: translate(-50%, 12px); transition: opacity .2s, transform .2s; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }

.media-dialog { position: fixed; width: min(92vw, 680px); max-width: none; max-height: 92vh; padding: 0; border: 0; background: #15171b; box-shadow: 0 26px 80px rgba(0,0,0,.55); }
.media-dialog::backdrop { background: rgba(9,10,12,.84); }
.media-dialog img { width: 100%; max-height: 90vh; object-fit: contain; }
.dialog-close { position: fixed; z-index: 3; top: 22px; right: 26px; display: grid; place-items: center; width: 42px; height: 42px; padding: 0; color: #fff; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; background: rgba(0,0,0,.72); cursor: pointer; font-size: 28px; line-height: 1; }
.video-dialog { width: min(92vw, 1100px); background: #000; }
.video-dialog video { width: 100%; max-height: 88vh; }

:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

@media (max-width: 980px) {
  .site-header { grid-template-columns: 1fr auto; }
  .main-nav { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 130px; }
  .hero-copy { max-width: 700px; }
  .hero-stage { min-height: 690px; }
  .hero-phone { width: 320px; height: 640px; }
  .feature-workbench { grid-template-columns: 1fr; }
  .feature-detail { min-height: 500px; }
  .workflow-band { grid-template-columns: 1fr; gap: 35px; }
  .tutorial-heading { align-items: flex-start; flex-direction: column; }
  .tutorial-viewer { grid-template-columns: 1fr; }
  .tutorial-tabs { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .tutorial-tab { flex: 0 0 180px; }
  .download-section, .support-section { grid-template-columns: 1fr; gap: 38px; }
  .site-footer { grid-template-columns: 1fr; gap: 16px; }
}

@media (max-width: 680px) {
  .site-header { min-height: 60px; padding: 0 16px; }
  .header-download { padding: 7px 10px; }
  .hero { display: block; padding: 88px 20px 22px; }
  .hero::before { display: none; }
  .hero h1 { margin-bottom: 18px; font-size: 50px; }
  .hero-summary { margin-bottom: 22px; font-size: 15px; }
  .hero-actions .button { width: 100%; }
  .version-line { margin-top: 13px; }
  .hero-stage { height: 260px; min-height: 260px; margin-top: 18px; overflow: hidden; }
  .hero-phone { top: 10px; width: 240px; height: 480px; transform: translateX(-50%) rotate(4deg); }
  .stage-note { display: none; }
  .hero-scroll { display: none; }
  .intro-band { grid-template-columns: 1fr 1fr; padding: 0; }
  .intro-band p { padding: 18px 16px; border-bottom: 1px solid var(--line); font-size: 11px; }
  .feature-section, .tutorial-section, .support-section, .download-section, .workflow-band { padding: 76px 18px; }
  .section-heading { margin-bottom: 38px; }
  .section-heading h2, .workflow-band h2, .download-copy h2, .support-section h2 { font-size: 34px; }
  .feature-workbench { min-height: 0; }
  .interactive-phone-wrap { min-height: 635px; }
  .interactive-phone { top: 28px; width: 294px; height: 588px; }
  .app-demo-screen { padding-top: 39px; font-size: 10px; }
  .demo-header { min-height: 57px; }
  .demo-header b { font-size: 14px; }
  .demo-block { padding: 12px; }
  .demo-account { padding: 6px 0; }
  .demo-add { padding: 6px; }
  .demo-permissions { margin: 10px 0; gap: 5px; }
  .demo-permissions span { padding: 6px; }
  .demo-start { margin-bottom: 10px; padding: 10px; }
  .demo-manufacture { min-height: 98px; }
  .manufacture-grid span { padding: 5px; }
  .feature-detail { min-height: 480px; padding: 36px 24px; }
  .feature-detail h3, .tutorial-copy h3 { font-size: 28px; }
  .workflow-list li { grid-template-columns: 42px 1fr; }
  .resource-actions { width: 100%; }
  .resource-actions .button { width: 100%; }
  .tutorial-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; }
  .tutorial-tab { min-width: 0; min-height: 64px; padding: 8px 4px; flex-direction: column; justify-content: center; gap: 2px; text-align: center; font-size: 10px; }
  .tutorial-panel { grid-template-columns: 1fr; }
  .tutorial-copy { padding: 34px 24px; }
  .tutorial-image-button { min-height: 540px; }
  .tutorial-image-button img { height: 540px; }
  .download-meta dl div { grid-template-columns: 100px 1fr; }
  .contact-item { grid-template-columns: 1fr auto; gap: 4px 14px; }
  .contact-item span { grid-column: 1 / -1; }
  .contact-item b { font-size: 16px; }
  .dialog-close { top: 14px; right: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
