:root {
  color-scheme: dark;
  font-family: "SF Pro Display", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --page: #0b0f0e;
  --surface: #111714;
  --surface-raised: #17201c;
  --surface-soft: #1c2822;
  --ink: #eef2ef;
  --muted: #98a39d;
  --line: rgba(238, 242, 239, 0.11);
  --line-strong: rgba(111, 174, 150, 0.36);
  --accent: #6fae96;
  --accent-strong: #8fc6b1;
  --accent-ink: #08110d;
  --radius: 24px;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.3);
}

* { box-sizing: border-box; }

html { min-width: 320px; scroll-behavior: smooth; background: var(--page); }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100dvh;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 78% 8%, rgba(66, 112, 93, 0.13), transparent 31rem),
    var(--page);
}

a { color: inherit; }
a:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 4px; }
img { max-width: 100%; }

.page-shell { width: min(100%, 1440px); min-height: 100dvh; margin: 0 auto; padding: 0 42px; }

.site-header {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  border-bottom: 1px solid var(--line);
}

.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; text-decoration: none; }
.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--accent-ink);
  background: var(--accent);
  font-size: 19px;
  font-weight: 800;
}
.brand > span:last-child { display: grid; gap: 1px; }
.brand strong { font-size: 15px; letter-spacing: 0.05em; }
.brand small { color: var(--muted); font-size: 11px; }

.site-nav { display: flex; align-items: center; justify-content: flex-end; gap: 28px; }
.nav-link { color: var(--muted); font-size: 13px; font-weight: 650; text-decoration: none; transition: color 180ms ease; }
.nav-link:hover { color: var(--ink); }
.header-link,
.button,
.product-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 750;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}
.header-link,
.button-primary,
.product-action { color: var(--accent-ink); background: var(--accent); }
.header-link:hover,
.button-primary:hover,
.product:hover .product-action { background: var(--accent-strong); }
.header-link:active,
.button:active { transform: translateY(1px); }

.hero {
  min-height: calc(100dvh - 72px);
  display: grid;
  grid-template-columns: minmax(400px, 1.05fr) minmax(500px, 0.95fr);
  align-items: center;
  gap: clamp(48px, 7vw, 104px);
  padding: 52px 0 68px;
}
.hero-copy { position: relative; z-index: 2; padding-left: clamp(0px, 2.4vw, 34px); }
.eyebrow {
  display: block;
  margin-bottom: 24px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.12em;
}
.hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(54px, 5.3vw, 76px);
  font-weight: 760;
  letter-spacing: -0.065em;
  line-height: 1.1;
}
.hero h1 span { color: var(--accent-strong); }
.hero-copy > p {
  max-width: 500px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.8;
  text-wrap: pretty;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button { min-height: 48px; padding: 0 21px; }
.button-secondary { border: 1px solid var(--line); color: var(--ink); background: rgba(255, 255, 255, 0.025); }
.button-secondary:hover { border-color: var(--line-strong); background: rgba(111, 174, 150, 0.08); }

.character-stage {
  position: relative;
  min-height: min(650px, 69vh);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 58% 43%, rgba(111, 174, 150, 0.18), transparent 43%),
    linear-gradient(145deg, var(--surface-raised), #0e1411);
  box-shadow: var(--shadow);
  isolation: isolate;
}
.character-stage::before {
  content: "";
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(238, 242, 239, 0.08);
  border-radius: 17px;
  pointer-events: none;
}
.stage-word {
  position: absolute;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -50%);
  color: rgba(111, 174, 150, 0.075);
  font-size: clamp(260px, 28vw, 430px);
  font-weight: 900;
  line-height: 1;
  user-select: none;
}
.role {
  position: absolute;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 18px rgba(0, 0, 0, 0.3));
}
.role-1 { z-index: 4; left: 4%; bottom: -5%; width: 42%; }
.role-2 { z-index: 5; right: 2%; bottom: -5%; width: 43%; }
.role-3 { z-index: 2; left: -2%; top: 1%; width: 34%; opacity: 0.78; }
.role-4 { z-index: 2; right: -3%; top: 0; width: 34%; opacity: 0.78; }
.products { padding: 120px 0 88px; }
.section-heading { max-width: 650px; margin-bottom: 44px; }
.section-heading h2 { margin: 0; font-size: clamp(38px, 4.2vw, 58px); letter-spacing: -0.05em; line-height: 1.08; }
.section-heading p { max-width: 540px; margin: 18px 0 0; color: var(--muted); font-size: 16px; line-height: 1.75; }
.product-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; }
.product {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--surface);
  text-decoration: none;
  transition: transform 240ms cubic-bezier(0.16, 1, 0.3, 1), border-color 240ms ease, background 240ms ease;
}
.product:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.product:active { transform: translateY(-1px); }
.product-copy { position: relative; z-index: 4; display: flex; flex-direction: column; align-items: flex-start; }
.status { color: var(--accent); font-size: 12px; font-weight: 750; letter-spacing: 0.06em; }
.product h3 { margin: 16px 0 13px; font-size: clamp(28px, 3vw, 46px); letter-spacing: -0.05em; line-height: 1.08; }
.product p { max-width: 460px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.75; text-wrap: pretty; }
.product-action { margin-top: 30px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 28px; color: var(--ink); font-size: 13px; font-weight: 750; }
.text-link span { color: var(--accent); transition: transform 180ms ease; }
.product:hover .text-link span { transform: translate(2px, -2px); }

.product-ai {
  grid-column: 1 / -1;
  min-height: 470px;
  display: flex;
  align-items: center;
  padding: 54px;
  background:
    radial-gradient(circle at 82% 42%, rgba(111, 174, 150, 0.16), transparent 28%),
    linear-gradient(125deg, var(--surface-raised), #101713);
}
.product-ai .product-copy { width: 52%; }
.product-mingli,
.product-agent { grid-column: span 6; min-height: 390px; padding: 40px; background: linear-gradient(145deg, var(--surface), var(--surface-raised)); }
.product-mingli .product-copy,
.product-agent .product-copy { width: 68%; }
.product-brand {
  grid-column: 1 / -1;
  min-height: 340px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  background: linear-gradient(120deg, var(--surface-soft), var(--surface));
}
.product-brand .product-copy { padding: 48px 60px 48px 24px; }
.product-visual { position: absolute; z-index: 2; pointer-events: none; }
.product-visual img,
.brand-lineup img { display: block; width: 100%; height: auto; filter: drop-shadow(0 18px 16px rgba(0, 0, 0, 0.28)); }
.product-visual.duo { right: 2%; bottom: -10%; width: 47%; height: 94%; }
.product-visual.duo img { position: absolute; bottom: 0; width: 53%; aspect-ratio: 1; object-fit: contain; object-position: center bottom; }
.product-visual.duo img:first-child { left: 0; z-index: 2; }
.product-visual.duo img:last-child { right: 0; z-index: 3; }
.product-visual.single { right: -8%; bottom: -15%; width: 53%; }
.product-agent .agent-visual { right: -6%; bottom: -17%; width: 48%; }
.brand-lineup { align-self: end; min-height: 310px; display: flex; align-items: flex-end; overflow: hidden; padding: 18px 0 0 36px; }
.brand-lineup img { width: 29%; margin-right: -7%; }
.brand-lineup img:nth-child(2) { z-index: 2; }
.brand-lineup img:nth-child(3) { z-index: 3; }
.brand-lineup img:nth-child(4) { z-index: 4; }

.site-footer {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}
.site-footer p { margin: 0; }
.site-footer a { text-underline-offset: 3px; }

@media (prefers-reduced-motion: no-preference) {
  .hero-copy { animation: rise-in 640ms cubic-bezier(0.16, 1, 0.3, 1) both; }
  .character-stage { animation: rise-in 760ms 80ms cubic-bezier(0.16, 1, 0.3, 1) both; }
  .role { animation: role-in 760ms cubic-bezier(0.16, 1, 0.3, 1) both; }
  .role-2, .role-4 { animation-delay: 100ms; }
  @keyframes rise-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
  @keyframes role-in { from { opacity: 0; transform: translateY(20px) scale(0.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
}

@media (min-width: 981px) and (max-height: 820px) {
  .hero { padding: 34px 0 44px; }
  .hero h1 { font-size: clamp(50px, 4.9vw, 70px); }
  .character-stage { min-height: 570px; }
}

@media (max-width: 980px) {
  .page-shell { padding: 0 24px; }
  .hero { min-height: auto; grid-template-columns: 1fr; gap: 42px; padding: 72px 0 60px; }
  .hero-copy { padding-left: 0; }
  .hero-copy > p { max-width: 570px; }
  .character-stage { min-height: min(650px, 78vw); }
  .product-mingli, .product-agent { grid-column: 1 / -1; }
  .product-brand { grid-template-columns: 1fr; }
  .product-brand .product-copy { order: -1; padding: 42px 42px 0; }
  .brand-lineup { min-height: 300px; padding-inline: 10%; }
}

@media (max-width: 700px) {
  .page-shell { padding: 0 16px; }
  .site-header { min-height: 68px; }
  .brand-mark { width: 36px; height: 36px; border-radius: 10px; }
  .site-nav { gap: 10px; }
  .nav-link { display: none; }
  .header-link { min-height: 40px; padding: 0 14px; font-size: 12px; }
  .hero { gap: 30px; padding: 54px 0 42px; }
  .eyebrow { margin-bottom: 18px; font-size: 11px; letter-spacing: 0.08em; }
  .hero h1 { font-size: clamp(39px, 10.5vw, 46px); line-height: 1.14; }
  .hero-copy > p { margin-top: 22px; font-size: 15px; line-height: 1.75; }
  .hero-actions { margin-top: 28px; }
  .button { min-height: 46px; padding: 0 17px; }
  .character-stage { min-height: 430px; border-radius: 20px; }
  .character-stage::before { inset: 12px; border-radius: 14px; }
  .role-1 { left: -2%; width: 51%; }
  .role-2 { right: -3%; width: 52%; }
  .role-3, .role-4 { width: 39%; }
  .products { padding: 82px 0 56px; }
  .section-heading { margin-bottom: 30px; }
  .section-heading h2 { font-size: 38px; }
  .section-heading p { margin-top: 14px; font-size: 14px; }
  .product-grid { gap: 14px; }
  .product { border-radius: 20px; }
  .product-ai { min-height: 530px; align-items: flex-start; padding: 30px; }
  .product-ai .product-copy,
  .product-mingli .product-copy,
  .product-agent .product-copy { width: 100%; }
  .product-mingli, .product-agent { min-height: 480px; padding: 30px; }
  .product h3 { font-size: 32px; }
  .product p { max-width: 330px; font-size: 14px; }
  .product-visual.duo { right: -2%; bottom: -8%; width: 88%; height: 58%; }
  .product-visual.single { right: 3%; bottom: -13%; width: 68%; }
  .product-agent .agent-visual { right: 1%; bottom: -12%; width: 62%; }
  .product-brand { min-height: 570px; }
  .product-brand .product-copy { padding: 30px 30px 0; }
  .brand-lineup { min-height: 300px; padding-inline: 2%; }
  .brand-lineup img { width: 33%; margin-right: -11%; }
  .site-footer { min-height: 120px; align-items: flex-start; justify-content: center; flex-direction: column; gap: 8px; padding: 24px 0; }
}

@media (max-width: 390px) {
  .brand small { display: none; }
  .hero h1 { font-size: 39px; }
  .button-secondary { display: none; }
}
