:root {
  color-scheme: light;
  --ink: #10130f;
  --paper: #ede9df;
  --surface: #f8f5ed;
  --muted: #65665f;
  --accent: #ef4a32;
  --accent-ink: #fff8ef;
  --line: rgba(16, 19, 15, 0.24);
  --display: "FZKai-Z03", "STKaiti", "KaiTi", serif;
  --body: "Source Han Sans SC", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  --mono: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  --max: 1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  line-height: 1.68;
  text-rendering: optimizeLegibility;
}
body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.38;
  background-image: radial-gradient(rgba(0,0,0,.12) .55px, transparent .55px);
  background-size: 7px 7px;
  mix-blend-mode: multiply;
}
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
button, a { -webkit-tap-highlight-color: transparent; }
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 30;
  padding: 10px 14px;
  color: var(--accent-ink);
  background: var(--ink);
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }
.site-header {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 48px, var(--max));
  min-height: 86px;
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  aspect-ratio: 1;
  color: var(--accent-ink);
  background: var(--accent);
  font-family: var(--display);
  font-size: 25px;
}
.brand b, .brand small { display: block; }
.brand b { letter-spacing: .18em; }
.brand small { color: var(--muted); font: 10px/1.4 var(--mono); letter-spacing: .18em; }
.header-link { font-size: 14px; text-underline-offset: 5px; }
main { overflow: clip; }
.course-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, .8fr);
  gap: clamp(36px, 7vw, 110px);
  width: min(100% - 48px, var(--max));
  min-height: 690px;
  margin: 0 auto;
  padding: clamp(72px, 10vw, 148px) 0 92px;
}
.course-hero::after {
  position: absolute;
  right: -18vw;
  bottom: -22vw;
  z-index: -1;
  width: 52vw;
  aspect-ratio: 1;
  content: "";
  border: 1px solid var(--line);
  transform: rotate(24deg);
}
.status-row { display: flex; align-items: center; gap: 10px; margin-bottom: 36px; color: var(--muted); font-size: 13px; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 16%, transparent); }
.eyebrow { margin: 0 0 18px; color: var(--accent); font: 700 12px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2 { font-family: var(--display); font-weight: 500; }
h1 { max-width: 820px; margin: 0; font-size: clamp(52px, 7.3vw, 108px); line-height: .98; letter-spacing: -.055em; }
.hero-lead { max-width: 720px; margin: 35px 0 0; color: color-mix(in srgb, var(--ink) 78%, transparent); font-size: clamp(18px, 2vw, 25px); line-height: 1.58; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 42px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; border: 1px solid var(--ink); text-decoration: none; font-weight: 700; transition: transform .2s ease, background .2s ease, color .2s ease; }
.button:hover { transform: translateY(-3px); }
.button-primary { color: var(--accent-ink); border-color: var(--accent); background: var(--accent); }
.button-ghost { background: transparent; }
.hero-proof { align-self: end; padding: clamp(26px, 3vw, 42px); color: var(--surface); background: var(--ink); box-shadow: 18px 18px 0 color-mix(in srgb, var(--accent) 80%, transparent); }
.proof-label { margin: 0 0 16px; color: var(--accent); font: 700 11px var(--mono); letter-spacing: .18em; }
.hero-proof > strong { display: block; font-family: var(--display); font-size: clamp(27px, 3vw, 42px); font-weight: 500; line-height: 1.25; }
.proof-audience { margin: 24px 0 30px; color: color-mix(in srgb, var(--surface) 68%, transparent); }
.operation-grid { display: grid; grid-template-columns: repeat(2, 1fr); margin: 0; border-top: 1px solid rgba(255,255,255,.23); border-left: 1px solid rgba(255,255,255,.23); }
.operation-grid div { min-width: 0; padding: 16px; border-right: 1px solid rgba(255,255,255,.23); border-bottom: 1px solid rgba(255,255,255,.23); }
.operation-grid dt { color: color-mix(in srgb, var(--surface) 58%, transparent); font-size: 11px; }
.operation-grid dd { margin: 3px 0 0; font-weight: 700; }
.section-shell { width: min(100% - 48px, var(--max)); margin: 0 auto; padding: clamp(82px, 11vw, 150px) 0; }
.section-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, .45fr); column-gap: 60px; align-items: end; margin-bottom: 56px; }
.section-heading .eyebrow { grid-column: 1 / -1; }
.section-heading h2 { margin: 0; font-size: clamp(44px, 6vw, 78px); line-height: 1.02; letter-spacing: -.045em; }
.section-heading > p:last-child { margin: 0; color: var(--muted); }
.candidate-label { justify-self: start; align-self: center; padding: 7px 10px; color: var(--accent-ink); background: var(--accent); font-size: 12px; font-weight: 700; }
.pain-section { border-top: 1px solid var(--line); }
.pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.pain-card { min-height: 230px; padding: 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 78%, transparent); }
.pain-card span { color: var(--accent); font: 700 13px var(--mono); }
.pain-card p { margin: 60px 0 0; font-size: 19px; line-height: 1.6; }
.deliverable-section { width: 100%; max-width: none; padding-inline: max(24px, calc((100% - var(--max)) / 2)); color: var(--surface); background: var(--ink); }
.deliverable-section .section-heading > p:last-child { color: color-mix(in srgb, var(--surface) 62%, transparent); }
.deliverable-grid { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid rgba(255,255,255,.2); border-left: 1px solid rgba(255,255,255,.2); }
.deliverable-card { min-height: 280px; padding: 25px; border-right: 1px solid rgba(255,255,255,.2); border-bottom: 1px solid rgba(255,255,255,.2); }
.deliverable-card b { color: var(--accent); font: 700 12px var(--mono); }
.deliverable-card h3 { margin: 72px 0 14px; font-family: var(--display); font-size: 28px; font-weight: 500; }
.deliverable-card p { margin: 0; color: color-mix(in srgb, var(--surface) 62%, transparent); font-size: 14px; }
.module-list { border-top: 2px solid var(--ink); }
.module-row { display: grid; grid-template-columns: 90px minmax(240px, .8fr) minmax(300px, 1.2fr); gap: 28px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.module-number { color: var(--accent); font: 700 14px var(--mono); }
.module-row h3 { margin: 0 0 10px; font-family: var(--display); font-size: 30px; font-weight: 500; }
.module-row p { margin: 6px 0; color: var(--muted); }
.module-row b { color: var(--ink); }
.case-section { width: 100%; max-width: none; padding-inline: max(24px, calc((100% - var(--max)) / 2)); background: var(--surface); }
.case-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.case-card { position: relative; padding: clamp(28px, 4vw, 52px); border: 1px solid var(--ink); background: var(--paper); }
.case-card::after { position: absolute; right: 18px; bottom: 18px; width: 34px; height: 34px; content: ""; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); }
.case-top { display: flex; justify-content: space-between; gap: 20px; font: 700 11px var(--mono); letter-spacing: .08em; }
.case-top span { color: var(--accent); }
.case-top em { font-style: normal; }
.case-card h3 { margin: 62px 0 34px; font-family: var(--display); font-size: clamp(32px, 4vw, 50px); font-weight: 500; line-height: 1.15; }
.case-card dl { margin: 0; }
.case-card dl div { display: grid; grid-template-columns: 56px 1fr; gap: 18px; padding: 13px 0; border-top: 1px solid var(--line); }
.case-card dt { color: var(--muted); font-size: 12px; }
.case-card dd { margin: 0; }
.workflow-track { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; list-style: none; counter-reset: workflow; }
.workflow-track li { position: relative; min-height: 260px; padding: 28px; border-top: 1px solid var(--ink); border-right: 1px solid var(--line); }
.workflow-track li:last-child { border-right: 0; }
.workflow-track li::before { position: absolute; top: -6px; right: -6px; z-index: 1; width: 12px; height: 12px; content: ""; border-radius: 50%; background: var(--accent); }
.workflow-track li:last-child::before { display: none; }
.workflow-track span { color: var(--accent); font: 700 12px var(--mono); }
.workflow-track h3 { margin: 64px 0 12px; font-family: var(--display); font-size: 28px; font-weight: 500; }
.workflow-track p { margin: 0; color: var(--muted); font-size: 14px; }
.fit-section { border-top: 1px solid var(--line); }
.fit-grid { display: grid; grid-template-columns: repeat(2, 1fr); }
.fit-card { min-height: 420px; padding: clamp(30px, 5vw, 64px); border: 1px solid var(--ink); }
.fit-card + .fit-card { border-left: 0; }
.fit-card > span { display: inline-block; margin-bottom: 50px; padding: 7px 12px; font-weight: 800; }
.fit-yes > span { color: var(--accent-ink); background: var(--accent); }
.fit-no { color: var(--surface); background: var(--ink); }
.fit-no > span { color: var(--ink); background: var(--surface); }
.fit-card ul { margin: 0; padding: 0; list-style: none; }
.fit-card li { position: relative; padding: 17px 0 17px 30px; border-top: 1px solid currentColor; }
.fit-card li::before { position: absolute; left: 2px; content: "→"; color: var(--accent); }
.contact-section { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(340px, .8fr); gap: clamp(38px, 8vw, 110px); border-top: 1px solid var(--line); }
.faq-panel h2, .contact-card h2 { margin: 0 0 40px; font-size: clamp(42px, 5vw, 68px); line-height: 1.06; }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { padding: 22px 0; cursor: pointer; font-weight: 800; }
.faq-list details p { max-width: 720px; margin: 0 0 24px; color: var(--muted); }
.contact-card { align-self: start; padding: 34px; color: var(--surface); background: var(--ink); }
.contact-card img { width: min(100%, 360px); margin: 0 auto 22px; padding: 12px; background: #fff; }
.contact-card > span { color: color-mix(in srgb, var(--surface) 55%, transparent); font-size: 12px; }
.contact-card > strong { display: block; margin-top: 3px; font: 700 22px var(--mono); }
.contact-card > p:last-child { margin: 24px 0 0; color: color-mix(in srgb, var(--surface) 58%, transparent); font-size: 13px; }
footer { display: flex; justify-content: space-between; gap: 24px; width: min(100% - 48px, var(--max)); margin: 0 auto; padding: 32px 0 50px; border-top: 1px solid var(--line); }
footer a { font-weight: 800; text-decoration: none; }
footer small { color: var(--muted); text-align: right; }

body[data-theme="enterprise"] { --ink: #10130f; --paper: #ede9df; --surface: #f8f5ed; --muted: #66685f; --accent: #ef4a32; --accent-ink: #fff8ef; }
body[data-theme="education"] { --ink: #17251e; --paper: #f4eddb; --surface: #fff9e9; --muted: #687168; --accent: #2d7b61; --accent-ink: #fffdf3; }
body[data-theme="education"]::before { background-image: linear-gradient(rgba(45,123,97,.08) 1px, transparent 1px), radial-gradient(rgba(23,37,30,.12) .5px, transparent .5px); background-size: 100% 30px, 7px 7px; }
body[data-theme="education"] .course-hero { grid-template-columns: minmax(0, .9fr) minmax(390px, 1.1fr); }
body[data-theme="education"] .course-hero::after { right: -7vw; bottom: 4vw; width: 32vw; border: 2px dashed var(--accent); border-radius: 50%; transform: rotate(-8deg); }
body[data-theme="education"] .hero-proof { transform: rotate(1.2deg); box-shadow: 14px 14px 0 #d8b965; }
body[data-theme="education"] .pain-card:nth-child(2) { transform: translateY(14px) rotate(-.5deg); }
body[data-theme="education"] .deliverable-card:nth-child(odd) { background: rgba(255,255,255,.04); }
body[data-theme="commerce"] { --ink: #17151f; --paper: #f2e7d8; --surface: #fff8ed; --muted: #70666b; --accent: #e17828; --accent-ink: #fff9f1; }
body[data-theme="commerce"] .course-hero { grid-template-columns: minmax(0, 1.35fr) minmax(350px, .65fr); }
body[data-theme="commerce"] .course-hero::after { right: -16vw; bottom: -10vw; width: 55vw; border: 0; background: repeating-linear-gradient(135deg, transparent 0 18px, color-mix(in srgb, var(--accent) 22%, transparent) 18px 20px); transform: skewX(-14deg); }
body[data-theme="commerce"] .hero-proof { box-shadow: 18px 18px 0 #318e9c; }
body[data-theme="commerce"] .pain-card { background: linear-gradient(145deg, color-mix(in srgb, var(--surface) 82%, transparent), transparent); }
body[data-theme="commerce"] .case-card { border-width: 2px 1px 1px 2px; }
body[data-theme="commerce"] .workflow-track li:nth-child(even) { background: color-mix(in srgb, var(--accent) 8%, transparent); }

.reveal-ready [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal-ready [data-reveal].is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  .site-header, .course-hero, .section-shell, footer { width: min(100% - 32px, var(--max)); }
  .course-hero, body[data-theme="education"] .course-hero, body[data-theme="commerce"] .course-hero { grid-template-columns: 1fr; min-height: 0; padding-top: 72px; }
  .hero-proof { align-self: auto; max-width: 620px; }
  .section-heading { grid-template-columns: 1fr; row-gap: 18px; }
  .pain-grid { grid-template-columns: 1fr; }
  .pain-card { min-height: 170px; }
  .pain-card p { margin-top: 36px; }
  .deliverable-grid { grid-template-columns: repeat(2, 1fr); }
  .module-row { grid-template-columns: 64px 1fr; }
  .module-row > div:last-child { grid-column: 2; }
  .workflow-track { grid-template-columns: repeat(2, 1fr); }
  .contact-section { grid-template-columns: 1fr; }
}

@media (max-width: 580px) {
  .site-header { min-height: 72px; }
  .brand small { display: none; }
  .header-link { font-size: 12px; }
  h1 { font-size: clamp(46px, 15vw, 68px); }
  .hero-actions, .button { width: 100%; }
  .section-shell { padding-top: 76px; padding-bottom: 76px; }
  .deliverable-section, .case-section { padding-inline: 16px; }
  .deliverable-grid, .case-grid, .fit-grid, .workflow-track { grid-template-columns: 1fr; }
  .deliverable-card { min-height: 220px; }
  .deliverable-card h3 { margin-top: 48px; }
  .module-row { grid-template-columns: 42px 1fr; gap: 12px; }
  .module-row > div:last-child { grid-column: 1 / -1; padding-left: 54px; }
  .fit-card + .fit-card { border-top: 0; border-left: 1px solid var(--ink); }
  .workflow-track li { min-height: 210px; border-right: 0; }
  .workflow-track li::before { display: none; }
  .contact-card { padding: 24px; }
  footer { flex-direction: column; }
  footer small { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
  .reveal-ready [data-reveal] { opacity: 1; transform: none; }
}
