:root {
  color-scheme: light dark;
  --bg: #f4f0e9;
  --surface: #fbf8f2;
  --surface-strong: #ffffff;
  --ink: #18191d;
  --muted: #676762;
  --line: rgba(24, 25, 29, 0.16);
  --line-soft: rgba(24, 25, 29, 0.09);
  --accent: #ef695c;
  --accent-ink: #25100e;
  --deep: #172028;
  --deep-ink: #f6f2ea;
  --shadow: 0 28px 80px rgba(44, 35, 25, 0.14);
  --header-height: 72px;
  --shell: 1240px;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  font-synthesis: none;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1014;
    --surface: #12161b;
    --surface-strong: #171c22;
    --ink: #f3efe7;
    --muted: #a5a39d;
    --line: rgba(243, 239, 231, 0.18);
    --line-soft: rgba(243, 239, 231, 0.09);
    --accent: #ff7466;
    --accent-ink: #200d0b;
    --deep: #e9e3d8;
    --deep-ink: #15181c;
    --shadow: 0 28px 80px rgba(0, 0, 0, 0.4);
  }
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { color: inherit; font: inherit; }

.shell {
  width: min(calc(100% - 56px), var(--shell));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 10px 14px;
  color: var(--accent-ink);
  background: var(--accent);
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus { transform: translateY(0); }
.header-sentinel { position: absolute; top: 0; width: 1px; height: 20px; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-height);
  border-bottom: 1px solid transparent;
  transition: background-color 180ms ease, border-color 180ms ease, backdrop-filter 180ms ease;
}

.site-header.is-scrolled {
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-color: var(--line-soft);
  backdrop-filter: blur(18px);
}

.header-inner { display: flex; height: 100%; align-items: center; justify-content: space-between; }
.studio-brand { display: inline-flex; align-items: center; gap: 11px; font-size: 16px; font-weight: 760; letter-spacing: 0.04em; }
.studio-brand img { width: 34px; height: 34px; border-radius: 8px; }
.desktop-nav { display: flex; align-items: center; gap: clamp(28px, 4vw, 58px); }
.desktop-nav a { color: var(--muted); font-size: 14px; transition: color 160ms ease; }
.desktop-nav a:hover, .desktop-nav a:focus-visible { color: var(--ink); }
.header-link { padding-bottom: 3px; border-bottom: 1px solid var(--ink); font-size: 13px; font-weight: 700; }
.menu-button, .mobile-menu { display: none; }

.portal-hero { padding: calc(var(--header-height) + 116px) 0 118px; border-bottom: 1px solid var(--line); }
.hero-layout { display: grid; grid-template-columns: minmax(0, 1.32fr) minmax(300px, 0.68fr); gap: clamp(70px, 10vw, 160px); align-items: end; }
.eyebrow { margin: 0 0 24px; color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: 0.18em; }
.hero-copy h1 { max-width: 900px; margin: 0; font-size: clamp(48px, 6.5vw, 88px); font-weight: 760; letter-spacing: -0.055em; line-height: 1.05; }
.hero-lead { max-width: 700px; margin: 34px 0 0; color: var(--muted); font-size: clamp(18px, 2vw, 22px); line-height: 1.75; }

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 21px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 720;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}
.button:hover { transform: translateY(-2px); }
.button:focus-visible, .menu-button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.button-primary { color: var(--accent-ink); background: var(--accent); }
.button-primary:hover { background: color-mix(in srgb, var(--accent) 86%, white); }
.button-secondary { color: var(--ink); border-color: var(--line); background: transparent; }
.button-secondary:hover { border-color: var(--ink); }
.hero-copy > .button { margin-top: 40px; }

.hero-index { align-self: stretch; display: flex; min-height: 356px; flex-direction: column; justify-content: flex-end; border-left: 1px solid var(--line); padding-left: 34px; }
.hero-count { display: flex; align-items: flex-end; gap: 12px; padding-bottom: 28px; }
.hero-count strong { font-size: 62px; line-height: 0.8; letter-spacing: -0.06em; }
.hero-count span { color: var(--muted); font-size: 13px; }
.hero-index ol { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.hero-index li { display: grid; grid-template-columns: 42px 1fr; gap: 10px; padding: 17px 0; border-bottom: 1px solid var(--line-soft); }
.hero-index li span { color: var(--accent); font: 12px ui-monospace, monospace; }
.hero-index li a { font-weight: 700; }
.hero-index > p { margin: 28px 0 0; color: var(--muted); font-size: 12px; }

.products-section { padding: 130px 0 54px; }
.section-heading { margin-bottom: 100px; }
.section-heading h2 { max-width: 860px; margin: 0; font-size: clamp(36px, 5vw, 68px); line-height: 1.12; letter-spacing: -0.045em; }
.product-showcase { display: grid; grid-template-columns: minmax(360px, 0.75fr) minmax(0, 1.25fr); gap: clamp(54px, 8vw, 112px); align-items: center; padding: 96px 0; border-top: 1px solid var(--line); }
.product-showcase-reverse { grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr); }
.product-showcase-reverse .product-copy { order: 2; }
.product-showcase-reverse .product-visual { order: 1; }
.product-number { margin: 0 0 30px; color: var(--accent); font: 700 12px ui-monospace, monospace; letter-spacing: 0.11em; }
.product-title-row { display: flex; align-items: center; gap: 17px; }
.product-title-row img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; }
.product-title-row span { color: var(--muted); font: 10px ui-monospace, monospace; letter-spacing: 0.13em; }
.product-title-row h2 { margin: 1px 0 0; font-size: clamp(32px, 3.5vw, 48px); letter-spacing: -0.04em; line-height: 1.1; }
.product-lead { margin: 30px 0; color: var(--muted); font-size: 18px; line-height: 1.8; }
.product-points { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.product-points li { display: grid; grid-template-columns: 100px 1fr; gap: 18px; padding: 15px 0; border-bottom: 1px solid var(--line-soft); font-size: 13px; }
.product-points span { color: var(--muted); }
.product-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 34px; }
.text-link { padding: 9px 2px; border-bottom: 1px solid var(--ink); font-size: 13px; font-weight: 700; }
.product-visual { margin: 0; }
.product-visual img { width: 100%; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); background: var(--surface-strong); }
.product-visual figcaption { display: flex; justify-content: space-between; gap: 20px; margin-top: 15px; color: var(--muted); font-size: 11px; }
.product-visual figcaption span { color: var(--ink); font-weight: 700; }
.daily-visual img { aspect-ratio: 16 / 9; object-fit: cover; object-position: center top; }

.method-section { padding: 120px 0 140px; background: var(--deep); color: var(--deep-ink); }
.method-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(70px, 10vw, 150px); }
.section-heading.compact { margin: 0; }
.section-heading.compact h2 { font-size: clamp(34px, 4vw, 56px); }
.method-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid color-mix(in srgb, var(--deep-ink) 24%, transparent); }
.method-list li { display: grid; grid-template-columns: 46px 1fr; gap: 18px; padding: 28px 0; border-bottom: 1px solid color-mix(in srgb, var(--deep-ink) 16%, transparent); }
.method-list li > span { color: var(--accent); font: 12px ui-monospace, monospace; }
.method-list strong { display: block; margin-bottom: 6px; font-size: 20px; }
.method-list p { margin: 0; color: color-mix(in srgb, var(--deep-ink) 68%, transparent); font-size: 14px; }

.site-footer { padding: 58px 0; border-top: 1px solid var(--line); }
.footer-layout { display: grid; grid-template-columns: 1fr auto auto; gap: 48px; align-items: end; }
.footer-layout strong { font-size: 18px; }
.footer-layout p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.footer-layout nav { display: flex; gap: 26px; font-size: 13px; font-weight: 700; }

.detail-main { padding-top: var(--header-height); }
.detail-hero { padding: 92px 0 86px; border-bottom: 1px solid var(--line); }
.detail-hero-layout { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); gap: clamp(58px, 8vw, 110px); align-items: center; }
.detail-kicker { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
.detail-kicker img { width: 66px; height: 66px; border-radius: 15px; object-fit: cover; }
.detail-kicker span { color: var(--accent); font: 700 12px ui-monospace, monospace; letter-spacing: 0.1em; }
.detail-copy h1 { margin: 0; font-size: clamp(48px, 6vw, 78px); line-height: 1.04; letter-spacing: -0.055em; }
.detail-copy > p { margin: 28px 0 0; color: var(--muted); font-size: 19px; line-height: 1.8; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 34px; color: var(--muted); font-size: 12px; }
.detail-visual { margin: 0; }
.detail-visual img { width: 100%; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.detail-visual figcaption { margin-top: 12px; color: var(--muted); font-size: 11px; text-align: right; }
.detail-section { padding: 112px 0; }
.detail-section + .detail-section { border-top: 1px solid var(--line); }
.detail-heading { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: 70px; margin-bottom: 70px; }
.detail-heading h2 { margin: 0; font-size: clamp(34px, 4vw, 54px); line-height: 1.15; letter-spacing: -0.04em; }
.detail-heading p { max-width: 650px; margin: 8px 0 0; color: var(--muted); font-size: 17px; }
.flow-list { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.flow-list li { min-height: 240px; padding: 26px 24px 24px 0; border-right: 1px solid var(--line-soft); }
.flow-list li + li { padding-left: 24px; }
.flow-list li:last-child { border-right: 0; }
.flow-list span { color: var(--accent); font: 12px ui-monospace, monospace; }
.flow-list strong { display: block; margin-top: 54px; font-size: 21px; }
.flow-list p { margin: 10px 0 0; color: var(--muted); font-size: 14px; }
.detail-split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.detail-split article { border-top: 1px solid var(--line); padding-top: 26px; }
.detail-split h3 { margin: 0 0 18px; font-size: 28px; letter-spacing: -0.03em; }
.detail-split p { color: var(--muted); }
.detail-split ul { margin: 25px 0 0; padding: 0; list-style: none; }
.detail-split li { padding: 11px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.boundary { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 70px; align-items: center; padding: 52px; color: var(--deep-ink); background: var(--deep); }
.boundary h2 { margin: 0; font-size: clamp(32px, 4vw, 52px); line-height: 1.15; }
.boundary p { margin: 0 0 24px; color: color-mix(in srgb, var(--deep-ink) 72%, transparent); }
.boundary .button-secondary { color: var(--deep-ink); border-color: color-mix(in srgb, var(--deep-ink) 36%, transparent); }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 620ms ease, transform 620ms ease; }
.reveal-delay { transition-delay: 110ms; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 960px) {
  .hero-layout, .product-showcase, .product-showcase-reverse, .method-layout, .detail-hero-layout, .detail-heading { grid-template-columns: 1fr; }
  .hero-index { min-height: 0; border-left: 0; border-top: 1px solid var(--line); padding: 32px 0 0; }
  .product-showcase-reverse .product-copy, .product-showcase-reverse .product-visual { order: initial; }
  .product-visual { grid-row: auto; }
  .product-copy { max-width: 700px; }
  .method-layout { gap: 64px; }
  .detail-heading { gap: 24px; }
  .flow-list { grid-template-columns: repeat(2, 1fr); }
  .flow-list li:nth-child(2) { border-right: 0; }
  .flow-list li:nth-child(n+3) { border-top: 1px solid var(--line-soft); }
  .footer-layout { grid-template-columns: 1fr auto; }
  .footer-layout > p { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  :root { --header-height: 64px; }
  .shell { width: min(calc(100% - 34px), var(--shell)); }
  .desktop-nav, .header-link { display: none; }
  .menu-button { display: inline-flex; min-width: 52px; justify-content: flex-end; padding: 8px 0; border: 0; background: transparent; font-size: 13px; font-weight: 750; }
  .mobile-menu { position: absolute; top: var(--header-height); right: 0; left: 0; display: grid; padding: 12px 17px 22px; border-bottom: 1px solid var(--line); background: var(--bg); }
  .mobile-menu[hidden] { display: none; }
  .mobile-menu a { padding: 14px 0; border-bottom: 1px solid var(--line-soft); font-weight: 700; }
  .portal-hero { padding: calc(var(--header-height) + 68px) 0 78px; }
  .hero-layout { gap: 70px; }
  .hero-copy h1 { font-size: clamp(43px, 13vw, 66px); }
  .hero-lead { margin-top: 26px; font-size: 17px; }
  .hero-copy > .button { margin-top: 30px; }
  .products-section { padding-top: 86px; }
  .section-heading { margin-bottom: 66px; }
  .section-heading h2 { font-size: 40px; }
  .product-showcase { gap: 44px; padding: 70px 0; }
  .product-title-row { align-items: flex-start; }
  .product-title-row h2 { font-size: 35px; }
  .product-lead { font-size: 16px; }
  .product-points li { grid-template-columns: 90px 1fr; }
  .product-visual figcaption { display: block; }
  .product-visual figcaption span { display: block; margin-bottom: 3px; }
  .method-section { padding: 84px 0 96px; }
  .detail-hero { padding: 70px 0; }
  .detail-hero-layout { gap: 54px; }
  .detail-copy h1 { font-size: 48px; }
  .detail-section { padding: 82px 0; }
  .flow-list { grid-template-columns: 1fr; }
  .flow-list li, .flow-list li + li { min-height: 0; padding: 24px 0 30px; border-right: 0; border-top: 1px solid var(--line-soft); }
  .flow-list strong { margin-top: 30px; }
  .detail-split, .boundary { grid-template-columns: 1fr; gap: 48px; }
  .detail-split { gap: 58px; }
  .boundary { padding: 34px 26px; }
  .footer-layout { grid-template-columns: 1fr; gap: 30px; }
  .footer-layout > p { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .reveal { opacity: 1; transform: none; }
}
