:root {
  --bg: #0b1220;
  --orb: #0f1c30;
  --card: #152238;
  --icon-bg: #0f2a3a;
  --cyan: #22d3ee;
  --muted: #94a3b8;
  --soft: #e2e8f0;
  --white: #ffffff;
}

html,
body {
  background: var(--bg);
}

.reveal {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--soft);
  font-size: clamp(18px, 2.1vw, 32px);
  background: transparent;
  width: 100%;
  height: 100%;
}

.reveal .slides {
  text-align: left;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  left: 0 !important;
  top: 0 !important;
  transform: none !important;
}

.reveal .slides > section {
  display: none !important;
  padding: 5.2vh 5.5vw 4.5vh;
  box-sizing: border-box;
  height: 100% !important;
  width: 100% !important;
  left: 0 !important;
  top: 0 !important;
  transform: none !important;
  opacity: 1 !important;
}

.reveal .slides > section.present {
  display: flex !important;
  flex-direction: column;
}

.reveal h1,
.reveal h2,
.reveal h3 {
  font-family: Arial, Helvetica, sans-serif;
  text-transform: none;
  letter-spacing: -0.02em;
  color: var(--white);
  text-shadow: none;
}

.reveal h1 {
  font-size: 2.55em;
  font-weight: 700;
  margin: 0 0 0.28em;
  color: var(--white);
}

.reveal h2 {
  font-size: 1.55em;
  font-weight: 700;
  margin: 0 0 0.55em;
  color: var(--white);
}

.reveal h3 {
  font-size: 0.82em;
  font-weight: 700;
  margin: 0 0 0.25em;
  color: var(--white);
}

.reveal p {
  color: var(--soft);
  line-height: 1.35;
  margin: 0;
}

.starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: var(--bg);
}

.starfield::before,
.starfield::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: var(--orb);
}

.starfield::before {
  width: 520px;
  height: 520px;
  left: -220px;
  bottom: -240px;
}

.starfield::after {
  width: 460px;
  height: 460px;
  right: -180px;
  top: -200px;
}

.stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.6px 1.6px at 8% 18%, #fff 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 16% 72%, #fff 50%, transparent 51%),
    radial-gradient(1.8px 1.8px at 28% 12%, #fff 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 41% 38%, #dbeafe 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 52% 8%, #fff 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 63% 64%, #fff 50%, transparent 51%),
    radial-gradient(1.6px 1.6px at 74% 22%, #fff 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 82% 78%, #fff 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 91% 16%, #fff 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 12% 48%, #fff 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 36% 86%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 58% 92%, #fff 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 88% 48%, #fff 50%, transparent 51%);
  opacity: 0.55;
}

.file-protocol-hint {
  display: none;
  position: fixed;
  z-index: 80;
  left: 16px;
  right: 16px;
  bottom: 16px;
  max-width: 720px;
  margin: 0 auto;
  background: #1b1304;
  color: #ffe9a8;
  border: 1px solid #f1c40f;
  border-radius: 10px;
  padding: 14px 16px;
  font: 15px/1.4 Arial, Helvetica, sans-serif;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.file-protocol-hint.visible {
  display: block;
}

.file-protocol-hint code {
  display: block;
  margin-top: 6px;
  color: #fff;
  font-size: 14px;
}

.reveal .subtitle {
  font-size: 1.05em;
  color: var(--cyan);
  font-weight: 700;
  margin: 0 0 1.1em;
}

.reveal .authors {
  font-size: 0.82em;
  color: var(--soft);
  font-weight: 500;
}

.reveal .footer-line {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6.5vh;
  text-align: center;
  font-size: 0.62em;
  color: var(--muted);
}

.slide-num {
  position: absolute;
  right: 7.5vw;
  bottom: 2.2vh;
  font-size: 0.48em;
  color: var(--muted);
  margin: 0;
}

.icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 148px;
  height: 148px;
  border-radius: 50%;
  background: var(--icon-bg);
  margin: 0 auto 28px;
  flex-shrink: 0;
}

.icon-wrap img {
  width: 86px;
  height: 86px;
  object-fit: contain;
}

.icon-wrap.sm {
  width: 78px;
  height: 78px;
  margin: 0;
}

.icon-wrap.sm img {
  width: 46px;
  height: 46px;
}

.icon-wrap.md {
  width: 92px;
  height: 92px;
  margin: 0 22px 0 0;
}

.icon-wrap.md img {
  width: 52px;
  height: 52px;
}

.cards-3,
.cards-2 {
  display: grid;
  gap: 1.6vw;
  margin-top: 0.4em;
  flex: 1 1 auto;
  min-height: 0;
}

.cards-3 {
  grid-template-columns: repeat(3, 1fr);
}

.cards-2 {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  background: var(--card);
  border-radius: 22px;
  padding: 36px 28px 32px;
}

.card-center {
  text-align: center;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 7vh 1.4vw 4vh;
}

.card-center h3 {
  font-size: 0.95em;
  margin: 0 0 18px;
}

.card-center p {
  font-size: 0.62em;
  color: var(--muted);
  max-width: 16em;
  line-height: 1.4;
}

.rows {
  display: flex;
  flex-direction: column;
  gap: 1.6vh;
  flex: 1 1 auto;
  justify-content: center;
}

.row-card {
  display: flex;
  align-items: center;
  gap: 22px;
  background: var(--card);
  border-radius: 18px;
  padding: 18px 28px;
}

.row-card .num {
  color: var(--cyan);
  font-weight: 700;
  font-size: 0.78em;
  min-width: 1.6em;
}

.row-card h3 {
  font-size: 0.78em;
  margin: 0 0 4px;
}

.row-card p {
  font-size: 0.58em;
  color: var(--muted);
}

.panel {
  background: var(--card);
  border-radius: 22px;
  padding: 7vh 4.2vw 6vh;
  flex: 1 1 auto;
}

.panel .lead {
  color: var(--cyan);
  font-size: 1.15em;
  font-weight: 700;
  margin: 0 0 1.4em;
}

.panel p {
  font-size: 0.78em;
  color: var(--soft);
  margin: 0 0 0.7em;
  line-height: 1.45;
}

.stat-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4vw;
  flex: 1 1 auto;
  min-height: 0;
  margin: 0 0 1.6em;
}

.stat-card {
  background: var(--card);
  border-radius: 22px;
  text-align: center;
  padding: 4.5vh 1.2vw 3vh;
  height: 100%;
  max-height: 58vh;
}

.stat-card .label {
  display: block;
  color: var(--muted);
  font-size: 0.55em;
  margin-bottom: 8px;
}

.stat-card .stat {
  display: block;
  color: var(--cyan);
  font-size: 0.95em;
  font-weight: 700;
  margin-bottom: 8px;
}

.stat-card .hint {
  color: var(--soft);
  font-size: 0.55em;
}

.example-line {
  font-size: 0.62em;
  color: var(--soft);
  margin: 0 0 10px;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.example-line.muted {
  color: var(--muted);
}

.solution-card {
  background: var(--card);
  border-radius: 22px;
  text-align: center;
  padding: 6vh 2vw 4vh;
  height: 100%;
}

.solution-card .icon-wrap {
  width: 176px;
  height: 176px;
  margin-bottom: 36px;
}

.solution-card .icon-wrap img {
  width: 104px;
  height: 104px;
}

.solution-card h3 {
  font-size: 0.92em;
  margin: 0 0 28px;
}

.solution-card p {
  font-size: 0.62em;
  color: var(--muted);
  max-width: 18em;
  margin: 0 auto;
  line-height: 1.45;
}

.help-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1.6vh 1.4vw;
  flex: 1 1 auto;
  min-height: 0;
  padding-bottom: 1.2vh;
}

.help-card {
  background: var(--card);
  border-radius: 22px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 4vh 1.8vw;
}

.help-card h3 {
  color: var(--cyan);
  font-size: 0.78em;
  margin: 8px 0 10px;
}

.help-card p {
  font-size: 0.58em;
  color: var(--soft);
  line-height: 1.4;
  max-width: 16em;
}

.center-slide {
  text-align: center;
  justify-content: center;
}

.center-slide h1,
.center-slide h2,
.center-slide p {
  text-align: center;
}

.center-slide h2 {
  font-size: 2.2em;
  margin-bottom: 0.4em;
}

.center-slide .roles p {
  font-size: 0.78em;
  color: var(--soft);
  margin: 0.12em 0;
}

.center-slide .ready {
  margin-top: 1.4em;
  color: var(--cyan);
  font-size: 0.82em;
  font-weight: 700;
}

.reveal .slides > section.how-slide.present {
  padding: 1.6vh 1.4vw 1.8vh;
  justify-content: flex-start;
}

.how-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex: 0 0 auto;
  margin-bottom: 10px;
}

.how-title h2 {
  margin: 0;
  font-size: 1.15em;
}

.how-title .subtitle {
  margin: 2px 0 0;
  font-size: 0.42em;
  font-weight: 700;
}

.how-process {
  text-align: right;
}

.process {
  font-size: 0.52em;
  color: var(--cyan);
  margin: 0;
  font-weight: 700;
}

.process-note {
  font-size: 0.38em;
  color: var(--muted);
  margin: 4px 0 0;
}

.reveal iframe.demo-frame {
  display: block;
  flex: 1 1 auto;
  align-self: stretch;
  width: 100%;
  max-width: none;
  max-height: none;
  height: auto;
  min-width: 0;
  min-height: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: #000;
}

.reveal .controls {
  color: var(--cyan);
}

.reveal .progress {
  color: var(--cyan);
}
