:root {
  color: #1a201d;
  background: #f5f6f4;
  font-family: "Segoe UI Variable", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  --ink: #1a201d;
  --muted: #626b66;
  --line: #d8ddd9;
  --paper: #ffffff;
  --soft: #eef1ee;
  --green: #17684c;
  --green-dark: #0f4f39;
  --red: #9b4035;
  --gold: #a67c3f;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #f5f6f4; letter-spacing: 0; }
button, input { font: inherit; letter-spacing: 0; }
a { color: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 72px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 10px clamp(20px, 4vw, 64px);
  border-bottom: 1px solid rgba(218, 223, 219, 0.92);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
}

.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand img { width: 42px; height: 42px; object-fit: cover; border-radius: 7px; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 15px; }
.brand small { margin-top: 2px; color: var(--muted); font-size: 11px; }

.site-nav { display: flex; justify-content: center; gap: clamp(18px, 2.4vw, 34px); }
.site-nav a { color: #46504a; font-size: 13px; font-weight: 600; text-decoration: none; }
.site-nav a:hover { color: var(--green); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.menu-button { display: none; }

.button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 15px;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}
.button.primary { background: var(--green); color: #fff; }
.button.primary:hover { background: var(--green-dark); }
.button.secondary { border-color: var(--line); background: #fff; color: #303934; }
.button.secondary:hover { border-color: #aeb8b1; background: var(--soft); }
.button.light { background: #fff; color: #17201c; }
.button.light:hover { background: #e8efea; }
.button.glass { border-color: rgba(255, 255, 255, 0.55); background: rgba(17, 24, 21, 0.32); color: #fff; }
.button.glass:hover { background: rgba(17, 24, 21, 0.58); }

.hero {
  position: relative;
  height: calc(100svh - 124px);
  min-height: 560px;
  max-height: 820px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #14211c url('/site/software-cover.png') center 52% / cover no-repeat;
  color: #fff;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 15, 18, 0.88) 0%, rgba(8, 15, 18, 0.66) 38%, rgba(8, 15, 18, 0.12) 72%), linear-gradient(0deg, rgba(7, 12, 11, 0.78) 0%, transparent 58%);
}
.hero-content {
  position: relative;
  z-index: 1;
  width: min(720px, calc(100% - 40px));
  margin: 0 0 clamp(78px, 10vh, 110px) clamp(20px, 7vw, 112px);
}
.eyebrow { margin: 0 0 10px; color: var(--green); font-size: 11px; font-weight: 800; letter-spacing: 0; }
.hero .eyebrow { color: #d4b26f; }
.hero h1 { margin: 0; font-size: 64px; line-height: 1.05; letter-spacing: 0; }
.hero-lead { max-width: 660px; margin: 22px 0 0; color: rgba(255,255,255,0.88); font-size: 18px; line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-next { position: absolute; z-index: 1; right: clamp(20px, 5vw, 76px); bottom: 22px; color: rgba(255,255,255,0.85); font-size: 12px; text-decoration: none; }
.hero-next span { margin-left: 7px; }

.signal-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.signal-band div { min-height: 92px; padding: 21px clamp(18px, 2.6vw, 38px); border-right: 1px solid var(--line); }
.signal-band div:last-child { border-right: 0; }
.signal-band strong, .signal-band span { display: block; }
.signal-band strong { font-size: 14px; }
.signal-band span { margin-top: 6px; color: var(--muted); font-size: 12px; line-height: 1.5; }

.section { padding: 90px clamp(20px, 7vw, 112px); }
.section-heading { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr); gap: 56px; align-items: end; margin-bottom: 38px; }
.section-heading.compact { grid-template-columns: minmax(0, 1fr) auto; }
.section-heading h2, .promotion-copy h2, .contact-heading h2 { margin: 0; font-size: 36px; line-height: 1.25; letter-spacing: 0; }
.section-heading > p, .contact-heading > p:last-child { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.8; }

.business-section { background: #f5f6f4; }
.business-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.business-grid article {
  min-height: 290px;
  display: flex;
  flex-direction: column;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--paper);
}
.business-grid .index { color: var(--gold); font-size: 12px; font-weight: 800; }
.business-grid h3 { margin: 46px 0 13px; font-size: 19px; }
.business-grid p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.75; }
.business-grid a { margin-top: auto; padding-top: 24px; color: var(--green); font-size: 13px; font-weight: 700; text-decoration: none; }

.model-section { background: var(--paper); }
.model-tabs { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 7px; background: var(--soft); }
.model-tabs button { min-height: 34px; padding: 7px 14px; border: 0; border-radius: 5px; background: transparent; color: var(--muted); cursor: pointer; font-size: 12px; font-weight: 700; }
.model-tabs button.active { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(20, 29, 24, 0.12); }
.model-list { border-top: 1px solid var(--line); }
.model-list article { min-height: 110px; display: grid; grid-template-columns: minmax(260px, 0.9fr) minmax(300px, 1.1fr) auto; gap: 32px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); }
.model-list article[hidden] { display: none; }
.model-list h3 { margin: 7px 0 0; font-size: 18px; }
.model-list p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.model-kind { font-size: 11px; font-weight: 800; }
.model-kind.text { color: #7759a2; }
.model-kind.image { color: var(--red); }
.model-kind.video { color: #2b669c; }
.model-kind.studio { color: var(--green); }
.model-status { padding: 6px 9px; border: 1px solid var(--line); border-radius: 5px; color: #4c5751; font-size: 11px; white-space: nowrap; }
.model-note { display: flex; justify-content: space-between; gap: 20px; margin-top: 20px; color: var(--muted); font-size: 12px; }
.model-note a { color: var(--green); font-weight: 700; text-decoration: none; }

.workflow-section { background: #eef1ee; }
.workflow-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; border-top: 1px solid #cbd2cd; border-bottom: 1px solid #cbd2cd; }
.workflow-list li { min-height: 210px; padding: 24px; border-right: 1px solid #cbd2cd; }
.workflow-list li:last-child { border-right: 0; }
.workflow-list > li > span { color: var(--red); font-size: 12px; font-weight: 800; }
.workflow-list h3 { margin: 58px 0 11px; font-size: 18px; }
.workflow-list p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }

.promotion-section { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr); gap: 70px; padding: 88px clamp(20px, 7vw, 112px); background: #17201c; color: #fff; }
.promotion-copy .eyebrow { color: #d4b26f; }
.promotion-copy h2 { max-width: 720px; }
.promotion-copy > p:last-of-type { max-width: 760px; margin: 22px 0 0; color: #c7cfca; font-size: 15px; line-height: 1.85; }
.promotion-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 28px; }
.promotion-section .button.secondary { border-color: #59635d; background: transparent; color: #fff; }
.promotion-section .button.secondary:hover { background: #27312c; }
.promotion-data { margin: 0; border-top: 1px solid #465049; }
.promotion-data div { display: grid; grid-template-columns: 100px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid #465049; }
.promotion-data dt { color: #d4b26f; font-size: 12px; font-weight: 800; }
.promotion-data dd { margin: 0; color: #e2e7e4; font-size: 13px; }

.contact-section { background: #fff; }
.contact-heading { max-width: 820px; }
.contact-heading > p:last-child { margin-top: 20px; }
.contact-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 42px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.contact-options article { min-height: 145px; padding: 25px 28px; border-right: 1px solid var(--line); }
.contact-options article:last-child { border-right: 0; }
.contact-options h3 { margin: 0; font-size: 16px; }
.contact-options p { margin: 12px 0 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.contact-button { margin-top: 28px; }

.site-footer { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 30px; padding: 34px clamp(20px, 7vw, 112px); border-top: 1px solid var(--line); background: #f5f6f4; }
.site-footer strong, .site-footer span { display: block; }
.site-footer strong { font-size: 14px; }
.site-footer span, .site-footer p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.site-footer nav { display: flex; gap: 20px; }
.site-footer nav a { color: #4d5751; font-size: 12px; text-decoration: none; }

@media (max-width: 1120px) {
  .site-header { grid-template-columns: auto auto 1fr; gap: 14px; }
  .site-nav { position: absolute; top: 71px; left: 0; right: 0; display: none; flex-direction: column; gap: 0; padding: 10px 20px 18px; border-bottom: 1px solid var(--line); background: #fff; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 4px; border-bottom: 1px solid #edf0ed; }
  .menu-button { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); cursor: pointer; font-size: 19px; }
  .header-actions { justify-self: end; }
  .business-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workflow-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workflow-list li:nth-child(2) { border-right: 0; }
  .workflow-list li:nth-child(-n+2) { border-bottom: 1px solid #cbd2cd; }
  .promotion-section { grid-template-columns: 1fr; gap: 42px; }
}

@media (max-width: 760px) {
  .site-header { min-height: 64px; grid-template-columns: auto 38px; padding: 9px 16px; }
  .brand img { width: 38px; height: 38px; }
  .brand small { display: none; }
  .header-actions { display: none; }
  .site-nav { top: 63px; }
  .hero { height: calc(100svh - 112px); min-height: 540px; max-height: 720px; background-position: 62% center; }
  .hero-shade { background: linear-gradient(0deg, rgba(7, 12, 11, 0.9) 0%, rgba(7, 12, 11, 0.42) 72%, rgba(7, 12, 11, 0.12) 100%); }
  .hero-content { width: calc(100% - 32px); margin: 0 16px 72px; }
  .hero h1 { font-size: 42px; }
  .hero-lead { margin-top: 16px; font-size: 15px; line-height: 1.65; }
  .hero-next { right: 16px; bottom: 18px; }
  .signal-band { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .signal-band div { min-height: 86px; padding: 18px 16px; }
  .signal-band div:nth-child(2) { border-right: 0; }
  .signal-band div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .section { padding: 64px 18px; }
  .section-heading, .section-heading.compact { grid-template-columns: 1fr; gap: 24px; align-items: start; }
  .section-heading h2, .promotion-copy h2, .contact-heading h2 { font-size: 29px; }
  .business-grid { grid-template-columns: 1fr; }
  .business-grid article { min-height: 235px; }
  .business-grid h3 { margin-top: 32px; }
  .model-tabs { width: 100%; overflow-x: auto; }
  .model-tabs button { flex: 1 0 auto; }
  .model-list article { grid-template-columns: 1fr; gap: 12px; padding: 22px 0; }
  .model-status { justify-self: start; }
  .model-note { flex-direction: column; gap: 8px; }
  .workflow-list { grid-template-columns: 1fr; }
  .workflow-list li, .workflow-list li:nth-child(2) { min-height: 170px; border-right: 0; border-bottom: 1px solid #cbd2cd; }
  .workflow-list li:last-child { border-bottom: 0; }
  .workflow-list h3 { margin-top: 32px; }
  .promotion-section { padding: 64px 18px; }
  .promotion-data div { grid-template-columns: 88px 1fr; }
  .contact-options { grid-template-columns: 1fr; }
  .contact-options article { min-height: 120px; border-right: 0; border-bottom: 1px solid var(--line); }
  .contact-options article:last-child { border-bottom: 0; }
  .site-footer { grid-template-columns: 1fr; align-items: start; gap: 20px; padding: 30px 18px; }
  .site-footer nav { flex-wrap: wrap; }
}

@media (max-width: 420px) {
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-actions .button { width: 100%; }
  .signal-band { grid-template-columns: 1fr; }
  .signal-band div { border-right: 0; border-bottom: 1px solid var(--line); }
  .signal-band div:last-child { border-bottom: 0; }
}

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