:root {
  --bg: #0b0b0d;
  --bg-2: #121116;
  --surface: #1a1820;
  --surface-2: #231f2c;
  --line: rgba(255, 255, 255, 0.1);
  --text: #fff;
  --text-2: #cfcbd6;
  --text-3: #9d98a8;
  --acc: #c9a3e3;
  --grad: linear-gradient(294deg, #9549b5 32.76%, #41204f 84.48%);
  --gold: #b79e73;
  --red: #ff8a84;
  --red-soft: rgba(229, 72, 77, 0.14);
  --max: 1400px;
  --pad: clamp(20px, 4vw, 56px);
  --fs-body: 18px;
  --fs-h2: clamp(30px, 3.4vw, 54px);
  --fs-h3: clamp(22px, 1.8vw, 30px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; background: var(--bg); overflow-x: clip; }
main {
  color: var(--text-2);
  font-size: var(--fs-body); font-weight: 500; line-height: 1.85; letter-spacing: 0.04em;
  word-break: auto-phrase; text-wrap: pretty;
  -webkit-font-smoothing: antialiased;
}
main h1, main h2, main h3, main p, main ul, main ol, main figure { margin: 0; }
main ul, main ol { padding: 0; list-style: none; }
main h1, main h2, main h3 { color: var(--text); line-height: 1.3; text-wrap: balance; font-weight: 700; letter-spacing: 0.04em; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.nowrap { white-space: nowrap; }
.note { font-size: 13px; line-height: 1.7; color: var(--text-3); }
main section { position: relative; padding: clamp(80px, 10vw, 160px) 0; }
.sec-title { margin-bottom: clamp(40px, 5vw, 80px); }
.sec-title h2 { font-size: var(--fs-h2); }
.sec-en { margin-bottom: 12px; font-family: "Libre Baskerville", serif; font-size: 14px; font-weight: 700; line-height: 1.6; letter-spacing: 0.08em; color: var(--gold); }
.sec-title > p { margin-top: 20px; max-width: 40em; font-size: 18px; }
.sa-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 60px; padding: 0 32px; border-radius: 60px; font-weight: 700; font-size: 16px; letter-spacing: 0.04em; text-decoration: none; white-space: nowrap; }
.sa-btn::after { content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: 0; transition: opacity .3s; pointer-events: none; }
.sa-btn:hover::after { opacity: 1; }
.sa-btn:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }
.sa-btn-main { background: var(--grad); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18); }
.sa-btn-main::after { background: rgba(255, 255, 255, 0.14); }
.sa-btn-sub { color: #351d4d; background: linear-gradient(274deg, #fff 3.51%, #faecff 95.18%); }
.sa-btn-sub::after { background: rgba(149, 73, 181, 0.16); }
.actions { display: flex; flex-wrap: wrap; gap: 16px; }
.actions .cta { display: flex; flex-direction: column; gap: 8px; }
.actions .cta small { font-family: inherit; font-size: 13px; color: var(--text-3); text-align: center; }
.screen-cap { margin-top: 14px; }
.hero { min-height: calc(100vh - 100px); min-height: calc(100svh - 100px); display: flex; align-items: center; padding: 64px 0 100px; overflow: hidden; }
.hero .wrap { position: relative; z-index: 2; max-width: 1600px; display: grid; grid-template-columns: minmax(0, 0.93fr) minmax(0, 1.07fr); gap: clamp(40px, 4vw, 80px); align-items: center; }
.hero h1 em { font-style: normal; color: var(--acc); }
.hero .lead { margin-top: 32px; max-width: 34em; font-size: clamp(17px, 1.3vw, 20px); color: var(--text-2); }
.hero .actions { margin-top: 44px; }

.hero h1 { font-size: clamp(36px, 3.6vw, 58px); line-height: 1.3; word-break: keep-all; }
.hero h1 .h1-tail { white-space: nowrap; }
.hero-shot { position: relative; align-self: center; }
.hero-shot::before { content: ""; position: absolute; inset: -12% -8%; z-index: -1; background: radial-gradient(closest-side, rgba(149, 73, 181, 0.28), rgba(149, 73, 181, 0) 100%); pointer-events: none; }
.shot { display: block; margin: 0; border-radius: 16px; overflow: hidden; background: #07090c; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2), 0 0 0 8px rgba(149, 73, 181, 0.1), 0 40px 120px -20px rgba(0, 0, 0, 0.75); }
.shot img { display: block; width: 100%; height: auto; }
.flow-sec { padding-top: 0; padding-bottom: 40px; }
.flow-pin { display: flex; flex-direction: column; justify-content: center; padding: 100px 0 60px; }
.flow-pin .wrap { max-width: 1680px; }
.anim .flow-pin { min-height: 100vh; }
.lanes { position: relative; display: grid; grid-template-columns: 180px repeat(4, minmax(0, 1fr)); gap: 0 20px; }
.lane-label { display: flex; align-items: center; font-size: 15px; font-weight: 700; }
.lane-label.atk { color: var(--red); }
.lane-label.def { color: var(--acc); }
.track { grid-column: 2 / -1; position: relative; height: 4px; margin: 26px 0; border-radius: 4px; background: rgba(255,255,255,0.08); }
.track i { position: absolute; inset: 0; border-radius: 4px; background: linear-gradient(90deg, #9549b5, #c9a3e3); transform-origin: left; }
.stage-atk, .stage-def { position: relative; border-radius: 16px; padding: 24px 24px 26px; transition: opacity .5s var(--ease), box-shadow .5s var(--ease), background .5s var(--ease); }
.stage-atk { background: var(--red-soft); }
.stage-atk .n { font-size: 13px; font-weight: 700; color: var(--red); }
.stage-atk p { margin-top: 6px; color: var(--text); font-size: 17px; line-height: 1.6; }
.stage-def { display: block; text-decoration: none; background: var(--surface); }
.stage-def .n { font-size: 13px; font-weight: 700; color: var(--acc); }
.stage-def h3 { margin-top: 6px; font-size: 21px; }
.stage-def p { margin-top: 8px; font-size: 15px; color: var(--text-2); line-height: 1.7; }
.stage-def:hover { background: var(--surface-2); }
.stage-def.on { background: #2a1f38; box-shadow: 0 0 0 1px rgba(201, 163, 227, 0.55); }
.stage-def.on:hover { background: #35274a; }
.anim .stage-atk, .anim .stage-def { opacity: 0.32; }
.anim .stage-atk.on, .anim .stage-def.on { opacity: 1; }
.flow-foot { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.svc-list { display: grid; gap: clamp(80px, 9vw, 150px); }
.svc, main section[id] { scroll-margin-top: 100px; }
.svc h3 { margin-top: 20px; font-size: clamp(30px, 2.8vw, 46px); }
.svc .desc { margin-top: 16px; max-width: 40em; font-size: 18px; }
.scrolly { display: block; }
.scrolly .sc-intro { max-width: 40em; }
.sc-body { margin-top: 48px; }
.sc-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 56px; }
.sc-step h4 { margin: 20px 0 0; font-size: clamp(20px, 1.6vw, 26px); line-height: 1.45; color: var(--text); font-weight: 700; }
.sc-crop, .sc-frame { position: relative; overflow: hidden; container-type: inline-size; border-radius: 12px; background: #08090d; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16); }
.sc-crop { aspect-ratio: calc(var(--vw) / var(--vh)); }
.sc-crop img, .sc-scene { position: absolute; left: 0; top: 0; max-width: none; height: auto; transform-origin: 0 0; width: calc(100cqw * var(--iw) / var(--vw)); transform: translate(calc(var(--vx) / var(--vw) * -100cqw), calc(var(--vy) / var(--vw) * -100cqw)); }
.sc-log { position: absolute; inset: 0; overflow: hidden; background: #07090c; --u: calc(100cqw / 1280); }
.lg-lines { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: calc(28 * var(--u)) calc(40 * var(--u)); font: calc(14 * var(--u)) / 1.75 ui-monospace, 'SFMono-Regular', 'JetBrains Mono', Menlo, monospace; white-space: nowrap; }
.lg { display: none; flex-shrink: 0; overflow: hidden; text-overflow: ellipsis; color: #a7b4c2; opacity: var(--o, 0.2); }
.lg.on { display: block; }
.lg.c-e { color: #f2a33a; }
.lg.c-s { color: #e5484d; }
.lg .t { margin-right: calc(12 * var(--u)); opacity: 0.6; }
.lg .g { display: inline-block; width: 6.5em; opacity: 0.8; }
.lg-mask { position: absolute; inset: 0; background: radial-gradient(ellipse 44% 24% at 50% 44%, rgb(7 9 12 / 0.97) 0%, rgb(7 9 12 / 0.85) 55%, transparent 100%); }
.lg-input { position: absolute; left: calc(256 * var(--u)); top: calc(320 * var(--u)); width: calc(768 * var(--u)); height: calc(64 * var(--u)); }
.lg-input::before, .lg-input::after { content: ''; position: absolute; border-radius: 9999px; background: linear-gradient(90deg, #7fb5d6, #8b7cf6, #e5484d, #f2a33a, #5fd0c5, #7fb5d6) 0 0 / 200% 100%; }
.lg-input::before { inset: calc(-2 * var(--u)); }
.lg-input::after { inset: calc(-12 * var(--u)); filter: blur(calc(26 * var(--u))); opacity: 0.6; }
.lg-input span { position: relative; z-index: 1; display: flex; align-items: center; height: 100%; padding-left: calc(28 * var(--u)); border-radius: 9999px; background: #111821; color: #d9e4ee; font-size: calc(18 * var(--u)); }
.sc-stage, .sc-note-live { display: none; }
.sc-live .sc-body { display: grid; grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr); gap: clamp(40px, 5vw, 96px); }
.sc-live .sc-stage { order: 2; }
.sc-live.flip .sc-body { grid-template-columns: minmax(0, 1.28fr) minmax(0, 0.72fr); }
.sc-live.flip .sc-stage { order: 0; }
.sc-live .sc-stage { display: block; }
.sc-live .sc-sticky { position: sticky; top: max(96px, calc(50vh - 0.5 * var(--fh, 480px) - 20px)); }
.sc-live .sc-frame { aspect-ratio: var(--far); }
.sc-live .sc-scene { opacity: 0; transition: opacity 0.3s linear; }
.sc-live .sc-scene.on { opacity: 1; }
.sc-live .sc-note-live { display: block; }
.sc-live .sc-note-static, .sc-live .sc-crop { display: none; }
.sc-live .sc-steps { gap: 0; }
.sc-live .sc-step { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; opacity: 0.38; transition: opacity 0.3s linear; }
.sc-live .sc-step.on { opacity: 1; }
.sc-live .sc-step h4 { margin-top: 0; }
.sc-live .sc-gap { min-height: 120vh; }
.sc-live .sc-steps.sc-tall { padding-bottom: 10vh; }
.reasons-sec { background: var(--bg-2); }
.reasons-sec h2 { font-size: var(--fs-h2); margin-bottom: clamp(40px, 5vw, 80px); }
.reasons-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 4vw, 64px); }
.reason { padding-top: 32px; box-shadow: 0 -1px 0 var(--line); }
.reason .no { font-family: "Libre Baskerville", serif; font-size: clamp(44px, 4.2vw, 68px); font-weight: 700; line-height: 1; letter-spacing: 0; color: var(--gold); }
.reason h3 { margin-top: 24px; font-size: var(--fs-h3); }
.reason p { margin-top: 12px; }
.threats { overflow: hidden; }
.threats .wrap { position: relative; max-width: 1600px; }
.threats .sec-title { text-align: center; }
.threats .sec-title > p, .closing .sec-title > p { margin-inline: auto; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.stat { display: flex; flex-direction: column; padding: 8px clamp(24px, 3vw, 56px) 0; }
.stat + .stat { box-shadow: -1px 0 0 var(--line); }
.stat .num { color: var(--text); font-size: clamp(72px, 9vw, 150px); font-weight: 700; line-height: 1; letter-spacing: 0; white-space: nowrap; }
.stat .num small { font-family: inherit; font-size: 0.36em; letter-spacing: 0; margin-left: 6px; color: var(--red); }
.stat p { margin-top: 24px; color: var(--text-2); font-size: 18px; }
.stat cite { margin-top: auto; padding-top: 24px; font-style: normal; font-size: 13px; line-height: 1.7; color: var(--text-3); }
.cases-sec { background: var(--bg-2); }
.cases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.case { position: relative; display: flex; flex-direction: column; padding: clamp(32px, 3vw, 48px); border-radius: 22px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; color: inherit; transition: background .3s, box-shadow .3s; }
.case:hover { background: var(--surface-2); box-shadow: inset 0 0 0 1px rgba(201, 163, 227, 0.55); }
.case .q { font-size: 15px; font-weight: 700; color: var(--gold); }
.case h3 { margin-top: 10px; font-size: var(--fs-h3); }
.case p { margin-top: 14px; }
.case .to { margin-top: auto; padding-top: 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 15px; }
.case .to span { color: var(--text-3); }
.case .to b { font-weight: 700; color: var(--acc); }
.case .to b::after { content: "→"; display: inline-block; margin-left: 0.4em; transition: transform .3s; }
.case:hover .to b::after { transform: translateX(4px); }
.mid-cta { margin-top: 64px; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.doc-sec { background: var(--bg-2); overflow: hidden; }
.doc { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(48px, 7vw, 140px); align-items: center; }
.cover-wrap { display: flex; justify-content: center; perspective: 1400px; }
.cover { display: block; width: min(100%, 420px); height: auto; border-radius: 4px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 40px 100px -30px rgba(0, 0, 0, 0.8); transform: rotateY(14deg) rotateX(4deg); backface-visibility: hidden; }
.doc h2 { font-size: var(--fs-h2); }
.doc h3 { margin-top: 28px; font-size: var(--fs-h3); }
.doc .sub { margin-top: 10px; color: var(--text-2); }
.doc .desc { margin-top: 20px; max-width: 40em; }
.doc .actions { margin-top: 36px; }
.doc .note { margin-top: 16px; }
.closing { overflow: hidden; }
.closing .wrap { position: relative; }
.closing .sec-title { text-align: center; }
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.choice { position: relative; display: flex; flex-direction: column; padding: clamp(36px, 3.5vw, 56px); border-radius: 24px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.choice h3 { font-size: var(--fs-h3); }
.choice p { margin-top: 14px; }
.choice ul { margin: 24px 0 36px; display: grid; gap: 10px; }
.choice li { position: relative; padding-left: 30px; color: var(--text); }
.choice li::before { content: ""; position: absolute; left: 2px; top: 0.55em; width: 12px; height: 7px; border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg); }
.choice .sa-btn { margin-top: auto; align-self: flex-start; }


@media (max-width: 1100px) {
  .flow-sec { padding-top: 80px; }
  .hero { min-height: 0; }
  .hero .wrap, .doc, .reasons-list { grid-template-columns: minmax(0, 1fr); }
  .lanes { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lane-label, .track { display: none; }
  .flow-pin { min-height: 0; padding: 0; }
  .anim .stage-atk, .anim .stage-def { opacity: 1; }
}
@media (max-width: 760px) {
  :root { --fs-body: 16px; }
  .hero { padding: 40px 0 56px; }
  .hero h1 { margin-top: 0; font-size: 34px; }
  .hero h1 .h1-tail { white-space: normal; word-break: auto-phrase; }
  .hero .lead { margin-top: 20px; }
  .hero .actions { margin-top: 28px; }
  .actions .cta, .actions .cta .sa-btn, .mid-cta .sa-btn, .flow-foot .sa-btn, .doc .sa-btn, .choice .sa-btn { width: 100%; }
  .lanes { grid-template-columns: 1fr; gap: 12px; }
  .stage-def { margin-bottom: 20px; }
  .choices, .cases { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; gap: 48px; }
  .stat { padding: 0; }
  .stat + .stat { box-shadow: none; }
  .cover { width: min(100%, 300px); transform: none; }
  .reason { padding-top: 28px; }
  .reason h3 { margin-top: 16px; }
  .mid-cta { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
