:root {
  --bg: #0c1117;
  --panel: #141a22;
  --panel-2: #19222c;
  --line: rgba(210, 220, 230, 0.16);
  --text: #f4f6f8;
  --muted: #b4c0ca;
  --soft: #71808f;
  --cyan: #50d2c2;
  --blue: #79a7ff;
  --violet: #b6a0f3;
  --green: #8dd59b;
  --amber: #f0b55e;
  --red: #ef8e7d;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(210, 220, 230, 0.035) 1px, transparent 1px) 0 0 / 96px 100%,
    linear-gradient(rgba(210, 220, 230, 0.035) 1px, transparent 1px) 0 0 / 100% 96px,
    var(--bg);
  color: var(--text);
  font-family: "Noto Sans JP", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

.section-rail {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 46px;
  z-index: 25;
  width: 74px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-right: 1px solid var(--line);
  background: rgba(8, 13, 20, 0.72);
}

.rail-brand {
  writing-mode: vertical-rl;
  margin-top: 26px;
  color: #d9e1ea;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.rail-line {
  flex: 1;
  width: 1px;
  margin: 24px 0;
  background: linear-gradient(180deg, transparent, rgba(80, 210, 194, 0.8), transparent);
}

.rail-current {
  writing-mode: vertical-rl;
  margin-bottom: 24px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.08em;
}

button,
summary {
  font: inherit;
}

.deck {
  position: relative;
  height: 100%;
  width: 100%;
}

.slide {
  position: absolute;
  inset: 0;
  display: none;
  padding: 7.5vh 8.5vw 8.5vh calc(8.5vw + 54px);
  overflow: hidden;
}

.slide.active {
  display: block;
}

.slide-inner {
  width: min(1120px, 100%);
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow,
.kicker {
  margin: 0 0 18px;
  color: var(--amber);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 820px;
  margin-bottom: 24px;
  font-size: clamp(44px, 5rem, 82px);
  line-height: 1.06;
  font-weight: 950;
}

h1 span {
  color: var(--cyan);
}

h2 {
  max-width: 1020px;
  margin-bottom: 30px;
  font-size: clamp(30px, 3.2rem, 54px);
  line-height: 1.16;
  font-weight: 900;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.25;
}

p,
li {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.lead {
  max-width: 760px;
  font-size: 21px;
  line-height: 1.8;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  align-items: center;
  gap: 54px;
}

.hero-actions,
.signal-row,
.source-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-actions span,
.signal-row span,
.source-strip span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 13px;
  background: rgba(255, 255, 255, 0.045);
  color: #dbe7ff;
  font-size: 14px;
  font-weight: 750;
}

.ops-board,
.browser-frame {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(24, 34, 44, 0.96), rgba(12, 17, 23, 0.98));
  box-shadow: var(--shadow);
}

.board-header,
.browser-top {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  border-bottom: 1px solid var(--line);
  padding: 0 15px;
}

.board-header span,
.browser-top span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--soft);
}

.board-header span:nth-child(1),
.browser-top span:nth-child(1) {
  background: var(--red);
}

.board-header span:nth-child(2),
.browser-top span:nth-child(2) {
  background: var(--amber);
}

.board-header span:nth-child(3),
.browser-top span:nth-child(3) {
  background: var(--green);
}

.board-header b,
.browser-top b {
  margin-left: 8px;
  color: #c9d7ef;
  font-size: 13px;
}

.board-map {
  position: relative;
  min-height: 355px;
  padding: 28px;
}

.board-map::before {
  content: "";
  position: absolute;
  inset: 55px;
  border: 1px dashed rgba(122, 178, 255, 0.28);
  border-radius: 8px;
}

.node {
  position: absolute;
  width: 132px;
  min-height: 76px;
  border: 1px solid rgba(122, 178, 255, 0.32);
  border-radius: 8px;
  padding: 12px;
  background: rgba(15, 23, 42, 0.86);
  color: var(--text);
  font-weight: 850;
  line-height: 1.35;
}

.node small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.node.hq { top: 28px; left: 32px; }
.node.area { top: 108px; left: 50%; transform: translateX(-50%); }
.node.store { right: 34px; top: 30px; }
.node.frontline { right: 46px; bottom: 42px; }
.node.ai {
  left: 38px;
  bottom: 36px;
  border-color: rgba(94, 234, 212, 0.48);
  box-shadow: 0 0 28px rgba(94, 234, 212, 0.10);
}

.signal-row {
  border-top: 1px solid var(--line);
  padding: 15px;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  align-items: center;
  gap: 56px;
}

.argument-panel {
  border-left: 4px solid var(--amber);
  padding: 26px 28px;
  background: rgba(17, 24, 39, 0.74);
}

.panel-label {
  margin-bottom: 8px;
  color: var(--amber);
  font-size: 14px;
  font-weight: 850;
}

.split-proof {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 22px;
}

.split-proof div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.045);
}

.split-proof strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 22px;
}

.split-proof span {
  color: var(--muted);
  line-height: 1.5;
}

.score-grid,
.case-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

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

.score-card,
.case-card,
.brief-card,
.evidence-stack article,
.value-grid article,
.channel-grid article,
.icp-card,
.timeline article {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 20px;
  background: rgba(17, 24, 39, 0.72);
}

.brief-card {
  min-height: 235px;
}

.brief-card h3,
.evidence-stack h3,
.value-grid h3,
.channel-grid h3 {
  color: var(--text);
}

.score-card {
  min-height: 260px;
}

.score-num {
  display: inline-block;
  margin-bottom: 26px;
  color: var(--amber);
  font-weight: 950;
  letter-spacing: 0.18em;
}

.score-card p,
.case-card p,
.brief-card p,
.evidence-stack p,
.value-grid p,
.channel-grid p,
.timeline p,
.qa-list p,
.icp-card li {
  font-size: 15px;
  line-height: 1.65;
}

.evidence-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  align-items: center;
  gap: 38px;
}

.evidence-stack {
  display: grid;
  gap: 12px;
}

.evidence-stack article {
  padding: 16px 18px;
}

.evidence-stack strong {
  color: var(--text);
}

.evidence-stack a,
.channel-grid a,
.evidence-inline a {
  display: inline-flex;
  width: fit-content;
  margin-top: 4px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.evidence-stack a:hover,
.channel-grid a:hover,
.evidence-inline a:hover {
  text-decoration: underline;
}

.evidence-stack span,
.channel-grid span {
  color: var(--soft);
  font-size: 13px;
  font-weight: 750;
}

.talk-card {
  border-left: 4px solid var(--amber);
  margin-top: 28px;
  padding: 18px 20px;
  background: rgba(240, 181, 94, 0.08);
}

.talk-card b {
  display: block;
  margin-bottom: 8px;
  color: var(--amber);
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.talk-card p {
  margin: 0;
}

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

.value-grid article,
.channel-grid article {
  min-height: 225px;
}

.value-grid b {
  display: block;
  margin-top: 16px;
  color: var(--cyan);
  font-size: 13px;
  line-height: 1.5;
}

.evidence-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 22px;
  border: 1px solid var(--line);
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.04);
}

.evidence-inline span {
  color: var(--muted);
  font-size: 14px;
}

.ai-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.ai-list span {
  border: 1px solid rgba(80, 210, 194, 0.28);
  border-radius: 999px;
  padding: 9px 13px;
  background: rgba(80, 210, 194, 0.08);
  color: #dffcf8;
  font-size: 14px;
  font-weight: 800;
}

.case-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.case-card {
  min-height: 205px;
}

.case-card:nth-child(1),
.case-card:nth-child(2) {
  grid-column: span 2;
}

.case-card:nth-child(n+3) {
  grid-column: span 2;
}

.case-card.strong {
  border-color: rgba(94, 234, 212, 0.36);
  background: rgba(13, 48, 55, 0.45);
}

.case-card.warning {
  border-color: rgba(241, 193, 107, 0.38);
  background: rgba(62, 43, 14, 0.38);
}

.frame-slide {
  display: none;
  padding: 5.5vh 7vw 7.6vh;
}

.frame-slide.active {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.frame-title {
  width: min(1120px, 100%);
  margin: 0 auto 18px;
}

.frame-title h2 {
  margin-bottom: 0;
}

.frame-title span {
  color: var(--cyan);
  font-size: 18px;
}

.browser-frame {
  width: min(1120px, 100%);
  height: min(650px, 72vh);
  margin: 0 auto;
  overflow: hidden;
}

.mock-page {
  height: calc(100% - 42px);
  overflow-y: auto;
  background: #f5f7fb;
  color: #152033;
}

.mock-page h3,
.mock-page h4,
.mock-page p,
.mock-page span,
.mock-page small,
.mock-page li {
  color: #152033;
}

.mock-page p,
.mock-page li {
  font-size: 16px;
}

.mock-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 34px;
  min-height: 360px;
  align-items: center;
  padding: 54px;
  background: #ffffff;
}

.mock-hero small {
  display: block;
  margin-bottom: 14px;
  color: #157a6e;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.mock-hero h3 {
  margin-bottom: 18px;
  font-size: 42px;
  line-height: 1.15;
}

.mock-metrics {
  display: grid;
  gap: 14px;
}

.mock-metrics div,
.mock-dashboard article {
  border: 1px solid #dce4ef;
  border-radius: 8px;
  padding: 18px;
  background: #f8fafc;
}

.mock-metrics b {
  display: block;
  color: #0f766e;
  font-size: 34px;
}

.mock-metrics span {
  color: #536173;
}

.mock-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(180px, 1fr));
  gap: 14px;
  padding: 34px 54px;
  overflow-x: auto;
  background: #edf3f7;
}

.flow-step {
  min-height: 142px;
  border-top: 5px solid #4c7cff;
  border-radius: 8px;
  padding: 18px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(41, 55, 80, 0.08);
}

.flow-step b,
.flow-step span {
  display: block;
}

.flow-step b {
  margin-bottom: 12px;
  font-size: 22px;
}

.flow-step span {
  color: #536173;
  line-height: 1.55;
}

.ai-step {
  border-top-color: #14b8a6;
}

.mock-dashboard {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 40px 54px 64px;
  background: #ffffff;
}

.mock-dashboard ul {
  list-style: none;
  padding: 0;
}

.mock-dashboard li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
}

.mock-dashboard li span {
  width: 13px;
  height: 13px;
  border: 2px solid #94a3b8;
  border-radius: 50%;
}

.mock-dashboard li span.done {
  border-color: #14b8a6;
  background: #14b8a6;
}

.rebuttal-table {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.rebuttal-table .row {
  display: grid;
  grid-template-columns: 1fr 1fr 1.35fr;
  border-top: 1px solid var(--line);
}

.rebuttal-table .row:first-child {
  border-top: 0;
}

.rebuttal-table span {
  min-width: 0;
  padding: 15px 18px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.rebuttal-table .head span {
  color: var(--text);
  font-weight: 850;
  background: rgba(122, 178, 255, 0.09);
}

.rebuttal-table .row span:first-child {
  color: #f2d18a;
}

.rebuttal-table .row span:last-child {
  color: #baf3e8;
}

.icp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.icp-card h3 {
  font-size: 28px;
}

.icp-card ul {
  margin: 0;
  padding-left: 22px;
}

.icp-card.go {
  border-color: rgba(142, 230, 168, 0.38);
}

.icp-card.no {
  border-color: rgba(255, 139, 139, 0.38);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.timeline article {
  min-height: 300px;
  position: relative;
  overflow: hidden;
}

.timeline article::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--cyan), var(--blue), var(--amber));
}

.timeline span {
  display: block;
  margin-bottom: 46px;
  color: var(--cyan);
  font-size: 34px;
  font-weight: 950;
}

.timeline h3 {
  font-size: 26px;
}

.qa-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 24, 39, 0.72);
}

summary {
  cursor: pointer;
  padding: 18px 20px;
  color: var(--text);
  font-size: 18px;
  font-weight: 850;
  line-height: 1.45;
}

details p {
  margin: 0;
  border-top: 1px solid var(--line);
  padding: 16px 20px 20px;
}

.closing {
  max-width: 980px;
}

.closing h2 {
  font-size: clamp(34px, 3.8rem, 60px);
}

.closing > p {
  max-width: 900px;
  font-size: 21px;
}

.source-strip {
  margin-top: 28px;
}

.deck-controls {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(140px, 1fr) auto minmax(180px, 1fr) auto auto;
  align-items: center;
  gap: 16px;
  min-height: 46px;
  border-top: 1px solid var(--line);
  padding: 8px 18px;
  background: rgba(8, 13, 20, 0.88);
  backdrop-filter: blur(10px);
}

.hints,
.counter {
  color: #bdc7d9;
  font-size: 13px;
}

.counter {
  font-weight: 850;
}

.dots {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.dot {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: rgba(168, 180, 199, 0.28);
  cursor: pointer;
}

.dot.active {
  background: var(--amber);
  box-shadow: 0 0 14px rgba(240, 181, 94, 0.68);
}

.nav-btn {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.nav-btn:hover,
.dot:hover {
  border-color: rgba(94, 234, 212, 0.6);
}

@media (max-width: 980px) {
  body {
    overflow: auto;
  }

  .section-rail {
    display: none;
  }

  .deck {
    height: auto;
  }

  .slide,
  .frame-slide {
    position: relative;
    display: block;
    min-height: 100vh;
    padding: 64px 22px 78px;
  }

  .slide:not(.active) {
    display: none;
  }

  .slide-inner,
  .hero-grid,
  .two-col,
  .score-grid,
  .brief-grid,
  .case-grid,
  .evidence-layout,
  .value-grid,
  .channel-grid,
  .icp-grid,
  .timeline,
  .qa-list,
  .mock-hero,
  .mock-dashboard {
    display: grid;
    grid-template-columns: 1fr;
  }

  .slide-inner {
    height: auto;
    min-height: calc(100vh - 142px);
  }

  h1 {
    font-size: 44px;
  }

  h2,
  .closing h2 {
    font-size: 32px;
  }

  p,
  li,
  .lead,
  .closing > p {
    font-size: 16px;
  }

  .ops-board {
    min-width: 0;
  }

  .board-map {
    min-height: 440px;
  }

  .node {
    position: static;
    transform: none !important;
    width: auto;
    margin-bottom: 10px;
  }

  .board-map::before {
    inset: 18px;
  }

  .split-proof {
    grid-template-columns: 1fr;
  }

  .score-card,
  .case-card,
  .case-card:nth-child(1),
  .case-card:nth-child(2),
  .case-card:nth-child(n+3) {
    grid-column: auto;
    min-height: auto;
  }

  .browser-frame {
    height: 68vh;
  }

  .mock-hero,
  .mock-flow,
  .mock-dashboard {
    padding: 28px;
  }

  .mock-hero h3 {
    font-size: 30px;
  }

  .rebuttal-table {
    overflow-x: auto;
  }

  .rebuttal-table .row {
    min-width: 760px;
  }

  .deck-controls {
    grid-template-columns: 1fr auto auto;
  }

  .hints,
  .dots {
    display: none;
  }
}

@media (max-width: 520px) {
  .slide,
  .frame-slide {
    padding-left: 16px;
    padding-right: 16px;
  }

  h1 {
    font-size: 36px;
  }

  h2,
  .closing h2 {
    font-size: 27px;
  }

  .hero-actions span,
  .signal-row span,
  .source-strip span {
    font-size: 12px;
  }

  .timeline span {
    margin-bottom: 24px;
    font-size: 28px;
  }
}
