:root {
  --bg: #f6f8fb;
  --paper: #ffffff;
  --ink: #121826;
  --muted: #5d6b82;
  --line: #d8e0ea;
  --blue: #0c63ce;
  --blue-dark: #073f91;
  --green: #16a36a;
  --red: #dc4c4c;
  --shadow: 0 22px 70px rgba(23, 41, 70, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px),
    var(--bg);
  background-size: 40px 40px;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

.deck {
  min-height: 100vh;
  padding: 32px 88px;
  display: grid;
  gap: 36px;
}

.rail {
  position: fixed;
  top: 50%;
  left: 22px;
  z-index: 20;
  display: grid;
  gap: 8px;
  transform: translateY(-50%);
}

.rail a,
.controls button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--blue-dark);
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(23, 41, 70, 0.1);
}

.slide {
  position: relative;
  min-height: calc(100vh - 64px);
  padding: 58px 64px;
  border: 1px solid rgba(12, 99, 206, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.slide::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(12, 99, 206, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(12, 99, 206, 0.055) 1px, transparent 1px);
  background-size: 32px 32px;
}

.slide > * {
  position: relative;
  z-index: 1;
}

.slide-number {
  position: absolute;
  top: 0;
  left: 0;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  background: var(--blue);
  color: white;
  font-size: 20px;
  font-weight: 900;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(54px, 6vw, 82px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1.03;
  letter-spacing: 0;
}

h3 {
  font-size: 24px;
  line-height: 1.2;
}

header p,
.lead {
  max-width: 760px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 22px;
  line-height: 1.55;
}

.course {
  margin-bottom: 22px;
  color: var(--blue-dark);
  font-size: 20px;
  font-weight: 800;
}

.title-slide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  align-items: center;
  gap: 42px;
}

.domain {
  width: max-content;
  margin-top: 42px;
  padding: 18px 24px;
  border-radius: 8px;
  background: var(--blue);
  color: white;
  font-size: 30px;
  font-weight: 900;
}

.brand-visual {
  min-height: 0;
  height: min(62vh, 520px);
  position: relative;
  display: grid;
  place-items: center;
  border-left: 2px solid var(--line);
  padding-left: 38px;
  overflow: visible;
}

.brand-visual img {
  width: 100%;
  max-width: 400px;
  height: 100%;
  max-height: 500px;
  object-fit: contain;
  border-radius: 8px;
  filter: drop-shadow(0 24px 42px rgba(23, 41, 70, 0.12));
}

.chart-card.mini {
  position: absolute;
  right: 8px;
  bottom: 18px;
  width: 180px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 20px 50px rgba(12, 99, 206, 0.15);
}

.chart-card b {
  display: block;
  color: var(--green);
  font-size: 42px;
}

.three-columns,
.deploy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 56px;
}

.three-columns article,
.deploy-grid article,
.metric,
.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.three-columns article,
.deploy-grid article {
  min-height: 230px;
  padding: 30px;
}

.three-columns p,
.deploy-grid p,
.note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.55;
}

blockquote {
  margin: 42px 0 0;
  padding: 24px 30px;
  border: 1px solid rgba(12, 99, 206, 0.22);
  border-left: 8px solid var(--blue);
  border-radius: 8px;
  background: #f2f7ff;
  font-size: 24px;
  font-weight: 800;
}

.pipeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  margin: 58px 0 0;
  padding: 0;
  list-style: none;
}

.pipeline li {
  position: relative;
  min-height: 260px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.pipeline li:not(:last-child)::after {
  content: none;
}

.pipeline strong {
  display: block;
  color: var(--blue-dark);
  font-size: 26px;
}

.pipeline span {
  display: block;
  margin-top: 20px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.45;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 42px;
}

.metric {
  padding: 22px;
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 16px;
  font-weight: 800;
}

.metric b {
  display: block;
  margin-top: 12px;
  font-size: 38px;
}

.metric.good b { color: var(--green); }
.metric.bad b { color: var(--red); }

.panel {
  min-height: 300px;
  padding: 28px;
}

.panel.wide {
  grid-column: span 3;
}

.line-chart {
  height: 190px;
  margin-top: 44px;
  display: flex;
  align-items: end;
  gap: 18px;
  border-bottom: 2px solid var(--line);
}

.line-chart span {
  flex: 1;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, var(--green), var(--blue));
}

.panel ul {
  margin: 26px 0 0;
  padding-left: 22px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.8;
}

.architecture {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-top: 60px;
}

.architecture div {
  min-height: 180px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
  border: 2px solid rgba(12, 99, 206, 0.22);
  border-radius: 8px;
  background: white;
  color: var(--blue-dark);
  font-size: 23px;
  font-weight: 900;
}

.architecture span {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
}

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

.roadmap {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 56px;
}

.roadmap div {
  min-height: 240px;
  padding: 28px;
  border: 1px solid rgba(22, 163, 106, 0.32);
  border-radius: 8px;
  background: #f5fff9;
}

.roadmap b {
  display: block;
  color: var(--green);
  font-size: 28px;
}

.roadmap span {
  display: block;
  margin-top: 24px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.55;
}

.closing {
  display: block;
  margin-top: 46px;
  padding: 28px;
  border-radius: 8px;
  background: var(--blue);
  color: white;
  font-size: 30px;
  text-align: center;
}

.controls {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 40px rgba(23, 41, 70, 0.14);
  backdrop-filter: blur(10px);
}

.controls button {
  cursor: pointer;
  font-size: 28px;
}

#status {
  min-width: 56px;
  color: var(--muted);
  font-weight: 900;
  text-align: center;
}

@media (max-width: 900px) {
  .deck {
    padding: 16px;
  }

  .rail {
    display: none;
  }

  .slide {
    min-height: auto;
    padding: 52px 22px 32px;
  }

  h1 {
    font-size: 42px;
    line-height: 1.08;
  }

  h2 {
    font-size: 38px;
  }

  header p,
  .lead {
    font-size: 19px;
  }

  .title-slide,
  .three-columns,
  .pipeline,
  .dashboard-grid,
  .architecture,
  .deploy-grid,
  .roadmap {
    grid-template-columns: 1fr;
  }

  .brand-visual {
    height: 300px;
    padding-left: 0;
    border-left: 0;
  }

  .brand-visual img {
    max-width: 300px;
  }

  .domain {
    width: 100%;
    font-size: 25px;
    text-align: center;
  }

  .panel.wide {
    grid-column: auto;
  }

  .pipeline li:not(:last-child)::after {
    display: none;
  }

  .controls {
    right: 12px;
    bottom: 12px;
  }
}
