/* Shared design baseline across hub/drama/gwy/type:
   --shell 1600px, --pad clamp(14-22px), --radius 14px,
   button min-height 48px, h1 clamp(34-60px) lh 1.08, h2 clamp(30-46px),
   eyebrow 12px ls 0.24em uppercase 800, section pad clamp(64-100px),
   sticky header padding 18px, footer 36px. Per-product accents below. */
:root {
  color-scheme: light;
  --paper: #eef3f8;
  --paper-soft: #f8fbfd;
  --ink: #131e2c;
  --ink-soft: #2c3e54;
  --muted: #5e7186;
  --line: rgba(46, 84, 130, 0.22);
  --line-soft: rgba(46, 84, 130, 0.12);
  --coral: #2e6fb5;
  --coral-deep: #1f4f87;
  --peach: #7aa6d4;
  --gold: #4f8cc7;
  --card: rgba(248, 251, 253, 0.88);
  --shell: 1100px;
  --pad: clamp(14px, 1.4vw, 22px);
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; max-width: 100vw; }

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: "Noto Serif SC", "Songti SC", "Microsoft YaHei", serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% -8rem, rgba(46, 111, 181, 0.14), transparent 32rem),
    radial-gradient(circle at 86% 30%, rgba(122, 166, 212, 0.10), transparent 28rem),
    radial-gradient(circle at 12% 78%, rgba(79, 140, 199, 0.08), transparent 26rem),
    linear-gradient(rgba(19, 30, 44, 0.025) 1px, transparent 1px),
    var(--paper);
  background-size: auto, auto, auto, 28px 28px, auto;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.32;
  background-image: radial-gradient(circle, rgba(19, 30, 44, 0.18) 0.7px, transparent 0.7px);
  background-size: 18px 18px;
  mix-blend-mode: multiply;
}

a { color: inherit; text-decoration: none; }

.shell, .header-shell {
  width: min(100% - var(--pad) * 2, var(--shell));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(46, 111, 181, 0.28);
  background: rgba(238, 243, 248, 0.92);
  backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 rgba(19, 30, 44, 0.04);
}

.header-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand img {
  width: 60px;
  height: 40px;
  object-fit: contain;
  object-position: right center;
}

.brand span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.1;
}

.brand strong { font-size: 16px; letter-spacing: 0.04em; }

.brand em {
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--coral);
  font-family: "Inter", "Trebuchet MS", sans-serif;
  font-weight: 700;
}

nav {
  display: flex;
  gap: clamp(16px, 2.2vw, 28px);
  color: var(--muted);
  font-size: 14px;
}

nav a:hover { color: var(--coral-deep); }

.hero {
  position: relative;
  padding: clamp(60px, 8vw, 96px) 0 clamp(48px, 7vw, 80px);
  overflow: hidden;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.34;
  pointer-events: none;
}

.hero-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--coral);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-family: "Inter", "Trebuchet MS", sans-serif;
}

h1, h2, p { margin-top: 0; }

h1 {
  margin-bottom: 24px;
  max-width: none;
  font-size: clamp(34px, 4.6vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  word-break: keep-all;
}

.summary {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: clamp(16px, 1.85vw, 20px);
  line-height: 1.78;
}

.summary strong { color: var(--ink); font-weight: 700; }

.summary code {
  font-family: "Cascadia Mono", "JetBrains Mono", monospace;
  font-size: 0.9em;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(46, 111, 181, 0.1);
  color: var(--coral-deep);
  border: 1px solid rgba(46, 111, 181, 0.2);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-weight: 800;
  font-size: 15px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.button:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(31, 79, 135, 0.16); }

.button.primary {
  color: #f8fbfd;
  background: var(--coral);
  border-color: var(--coral);
}

.button.ghost {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(31, 79, 135, 0.28);
}

.button.ghost:hover {
  background: #fff;
  border-color: rgba(31, 79, 135, 0.5);
}

.reel {
  position: relative;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(251, 243, 232, 0.94)),
    var(--card);
  box-shadow: 0 32px 80px rgba(31, 79, 135, 0.14);
}

.reel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--coral-deep);
  font-weight: 800;
  font-size: 13px;
}

.reel-head b {
  padding: 6px 10px;
  border: 1px solid rgba(46, 111, 181, 0.32);
  border-radius: 999px;
  color: var(--coral-deep);
  background: rgba(46, 111, 181, 0.1);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.reel-card {
  padding: 22px;
  border: 1px solid rgba(46, 111, 181, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(rgba(74, 53, 39, 0.04) 1px, transparent 1px),
    #f8fbfd;
  background-size: 100% 22px;
  font-family: "Cascadia Mono", "JetBrains Mono", "Microsoft YaHei", monospace;
}

.reel-line { margin: 0 0 12px; line-height: 1.55; }
.reel-line:last-child { margin-bottom: 0; }
.reel-line.label {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}
.reel-line.scene { color: var(--ink); font-size: 15px; }
.reel-line.beat { color: var(--coral-deep); font-weight: 700; font-size: 15px; }
.reel-line.shot { color: var(--gold); font-size: 13px; }

.reel-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  margin-top: 18px;
}

.reel-strip span {
  height: 28px;
  border: 1px solid rgba(46, 111, 181, 0.25);
  background:
    linear-gradient(180deg, rgba(122, 166, 212, 0.16), transparent),
    radial-gradient(circle at 50% 120%, rgba(46, 111, 181, 0.22), transparent 60%);
  border-radius: 3px;
}

.section {
  padding: clamp(64px, 8vw, 100px) 0;
  border-top: 1px solid var(--line);
}

.section-heading { max-width: 920px; margin: 0 auto 44px; text-align: center; }
.section-heading h2 { margin-bottom: 14px; }
.section-sub { margin: 0; color: var(--ink); font-size: 16px; font-weight: 500; line-height: 1.7; }

h2 {
  max-width: 980px;
  margin: 0 auto;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.005em;
  word-break: keep-all;
}

h2.nowrap { white-space: nowrap; max-width: none; }

.step-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 14px;
}

.step-grid li {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.step-grid li:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 48px rgba(31, 79, 135, 0.12);
}

.step-num {
  font-family: "Inter", "Trebuchet MS", sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--coral);
}

.step-grid strong {
  font-size: 22px;
  color: var(--coral-deep);
  letter-spacing: 0;
}

.step-grid p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.7;
  font-size: 14px;
  flex: 1;
}

.step-grid em {
  font-style: normal;
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
  border-top: 1px dashed var(--line);
  padding-top: 10px;
  margin-top: auto;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 16px;
}

.why-grid article {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.why-grid article:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 48px rgba(31, 79, 135, 0.12);
}

.why-tag {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: "Inter", "Trebuchet MS", sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--coral-deep);
  background: rgba(46, 111, 181, 0.12);
  border: 1px solid rgba(46, 111, 181, 0.28);
}

.why-grid strong {
  font-size: 17px;
  color: var(--ink);
  line-height: 1.4;
}

.why-grid p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.7;
  font-size: 14px;
}

.why-grid em {
  font-style: normal;
  color: var(--coral-deep);
  font-weight: 600;
}

.beat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 14px;
}

.beat-grid article {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 160px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.beat-grid article:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 48px rgba(31, 79, 135, 0.12);
}

.beat-time {
  font-family: "Inter", "Trebuchet MS", sans-serif;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--coral);
}

.beat-grid strong {
  color: var(--coral-deep);
  font-size: 17px;
  letter-spacing: 0.02em;
}

.beat-grid p {
  margin: auto 0 0;
  color: var(--ink-soft);
  line-height: 1.65;
  font-size: 13px;
}

.install-block {
  max-width: 880px;
  margin: 0 auto;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.install-block pre {
  margin: 0;
  padding: 20px;
  border-radius: 10px;
  background: #131e2c;
  border: 1px solid rgba(46, 111, 181, 0.32);
  overflow-x: auto;
  font-family: "Cascadia Mono", "JetBrains Mono", monospace;
  font-size: 14px;
  line-height: 1.65;
  color: #eef3f8;
}

.install-block pre code {
  background: transparent;
  border: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

.install-note {
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
}

.install-note a {
  color: var(--coral-deep);
  text-decoration: underline;
  text-decoration-color: rgba(46, 111, 181, 0.4);
  text-underline-offset: 3px;
}

.install-note code {
  font-family: "Cascadia Mono", "JetBrains Mono", monospace;
  font-size: 0.92em;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(46, 111, 181, 0.1);
  color: var(--coral-deep);
  border: 1px solid rgba(46, 111, 181, 0.2);
}

.scene-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.scene-panel h2 {
  text-align: left;
  margin: 0 0 18px;
  max-width: 720px;
}

.scene-panel p {
  color: var(--ink-soft);
  line-height: 1.8;
  font-size: 17px;
  max-width: 620px;
}

.scene-panel p strong { color: var(--ink); font-weight: 700; }

.step-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.step-list li {
  display: flex;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 17px;
  align-items: baseline;
  color: var(--ink);
}

.step-list span {
  color: var(--coral);
  font-weight: 800;
  font-family: "Inter", "Trebuchet MS", sans-serif;
  font-size: 13px;
  letter-spacing: 0.16em;
  min-width: 56px;
}

.note { background: rgba(255, 250, 242, 0.6); }
.note p {
  max-width: 820px;
  margin: 0 auto;
  color: var(--ink-soft);
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.75;
  text-align: center;
}

.footer {
  padding: 36px 0 30px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.footer-shell {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(20px, 4vw, 40px);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--ink);
}

.footer-brand strong { font-size: 15px; letter-spacing: 0.04em; }
.footer-brand span { color: var(--muted); font-size: 13px; }

.footer-nav {
  justify-self: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  font-size: 13px;
}

.footer-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.footer-meta a { color: var(--ink); font-weight: 600; }

@media (max-width: 1100px) {
  .step-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .beat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  h2.nowrap { white-space: normal; max-width: 980px; }
}

@media (max-width: 920px) {
  .hero-shell, .scene-panel { grid-template-columns: 1fr; }
  .scene-panel h2 { text-align: center; }
}

@media (max-width: 720px) {
  .footer-shell { grid-template-columns: 1fr; text-align: center; }
  .footer-meta { align-items: center; }
}

@media (max-width: 620px) {
  :root { --pad: 14px; }
  .header-shell { flex-wrap: wrap; gap: 12px; }
  nav { width: 100%; justify-content: space-between; gap: 12px; }
  .reel-strip { grid-template-columns: repeat(3, 1fr); }
  .step-list li { font-size: 16px; gap: 14px; }
  .step-grid, .beat-grid, .why-grid { grid-template-columns: 1fr; }
}
