:root {
  --night: #120e24;
  --deep: #21113b;
  --ink: #f8f4ff;
  --muted: #d7cee8;
  --gold: #f6c85f;
  --mint: #5eead4;
  --pink: #e95ab8;
  --line: rgba(185, 156, 255, 0.42);
  --panel: rgba(40, 26, 68, 0.84);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--night);
  color: var(--ink);
  font-family: Arial, "Apple SD Gothic Neo", "Noto Sans KR", "Microsoft YaHei", sans-serif;
  touch-action: manipulation;
  -webkit-text-size-adjust: 100%;
  -webkit-user-select: none;
  user-select: none;
}

button {
  font: inherit;
}

.deck {
  position: fixed;
  inset: 0;
  background: var(--night);
}

.slide {
  position: absolute;
  inset: 0;
  display: grid;
  opacity: 0;
  pointer-events: none;
  transform: translateX(2.4vw) scale(0.99);
  transition: opacity 420ms ease, transform 420ms ease;
  isolation: isolate;
}

.slide.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0) scale(1);
}

.bg,
.shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.bg {
  object-fit: cover;
  object-position: center center;
  z-index: -3;
  filter: saturate(1.02) contrast(1.02) brightness(0.94);
}

.shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(18, 14, 36, 0.94), rgba(18, 14, 36, 0.72) 45%, rgba(18, 14, 36, 0.24) 74%, rgba(18, 14, 36, 0.34)),
    radial-gradient(circle at 72% 40%, rgba(246, 200, 95, 0.12), transparent 36%),
    rgba(8, 5, 18, 0.16);
}

.shade.left {
  background:
    linear-gradient(90deg, rgba(18, 14, 36, 0.98), rgba(18, 14, 36, 0.94) 39%, rgba(18, 14, 36, 0.42) 63%, rgba(18, 14, 36, 0.2)),
    rgba(8, 5, 18, 0.08);
}

.cover .bg {
  filter: saturate(1.08) contrast(1.04) brightness(1.06);
}

.cover .shade.left {
  background:
    linear-gradient(90deg, rgba(18, 14, 36, 0.98), rgba(18, 14, 36, 0.92) 38%, rgba(18, 14, 36, 0.28) 61%, rgba(18, 14, 36, 0.08)),
    rgba(8, 5, 18, 0.02);
}

.content {
  width: min(1180px, 91vw);
  height: min(660px, 86vh);
  margin: auto;
  position: relative;
  z-index: 1;
}

.cover-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  width: min(500px, 38vw);
  margin-left: 5.4vw;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 168px;
  min-height: 42px;
  padding: 0 22px;
  margin: 0 0 70px;
  border-radius: 8px;
  background: var(--gold);
  color: #1b132f;
  font-size: 16px;
  font-weight: 800;
}

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

h1 {
  font-size: clamp(42px, 5.15vh, 62px);
  line-height: 1.18;
  letter-spacing: 0;
}

.gold-line {
  margin-top: 64px;
  color: var(--gold);
  font-size: clamp(23px, 3vh, 34px);
  font-weight: 800;
}

.meta {
  margin-top: 48px;
  color: var(--muted);
  font-size: clamp(17px, 2.1vh, 23px);
  line-height: 1.35;
  font-weight: 700;
}

.spark {
  position: absolute;
  width: 32px;
  height: 32px;
  background: var(--gold);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  filter: drop-shadow(0 0 14px rgba(246, 200, 95, 0.75));
  z-index: 2;
}

.spark.mint {
  background: var(--mint);
  filter: drop-shadow(0 0 14px rgba(94, 234, 212, 0.78));
}

.s1 { left: 41vw; top: 17vh; }
.s2 { left: 46vw; top: 67vh; transform: scale(0.78); }
.s3 { right: 11vw; top: 14vh; transform: scale(0.92); }

.slide-head {
  padding-top: 10px;
}

.slide-head h2 {
  max-width: 980px;
  font-size: clamp(34px, 5vh, 56px);
  line-height: 1.12;
  letter-spacing: 0;
}

.slide-head p {
  margin-top: 14px;
  color: var(--muted);
  font-size: clamp(18px, 2.4vh, 26px);
  line-height: 1.34;
  font-weight: 700;
}

.agenda {
  display: grid;
  gap: 18px;
  margin-top: 54px;
}

.agenda article,
.speaker-card,
.demo-grid article,
.tool-panel,
.takeaway,
.flow article,
.questions p {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(14px);
}

.agenda article {
  display: grid;
  grid-template-columns: 170px 210px 1fr;
  gap: 24px;
  align-items: center;
  min-height: 78px;
  padding: 16px 28px;
}

.agenda time {
  color: var(--gold);
  font-size: 18px;
  font-weight: 900;
}

.agenda strong {
  font-size: 27px;
}

.agenda span {
  color: var(--muted);
  font-size: 21px;
  font-weight: 700;
}

.two-col {
  display: grid;
  grid-template-columns: 48% 1fr;
  grid-template-rows: auto 1fr;
  gap: 38px 56px;
}

.two-col .slide-head {
  grid-column: 1 / -1;
}

.speaker-card {
  padding: 36px;
  min-height: 350px;
}

.eyebrow,
.placeholder,
.tool-name,
.takeaway p,
.cn {
  color: var(--gold);
  font-weight: 900;
}

.eyebrow {
  font-size: 15px;
  margin-bottom: 14px;
}

.speaker-card h3 {
  font-size: 52px;
  line-height: 1;
}

.placeholder {
  margin-top: 18px;
  font-size: 20px;
}

ul {
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

li {
  position: relative;
  margin: 16px 0 0;
  padding-left: 28px;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.32;
  font-weight: 700;
}

li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--mint);
}

.big-quote {
  align-self: center;
  font-size: clamp(34px, 5vh, 56px);
  line-height: 1.18;
  font-weight: 900;
}

.demo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 76px;
}

.demo-grid article {
  min-height: 318px;
  padding: 34px 30px;
}

.demo-grid b {
  color: var(--gold);
  font-size: 24px;
}

.demo-grid h3 {
  margin-top: 28px;
  font-size: 33px;
  line-height: 1.18;
}

.cn {
  margin-top: 22px;
  color: var(--pink);
  font-size: 22px;
}

.demo-grid span {
  display: block;
  margin-top: 34px;
  color: var(--muted);
  font-size: 21px;
  line-height: 1.35;
  font-weight: 700;
}

.business-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 1120px;
}

.business-grid article {
  min-height: 310px;
}

.tool-layout {
  display: grid;
  grid-template-columns: minmax(420px, 46%) 1fr;
  grid-template-rows: auto 1fr;
  gap: 42px 68px;
}

.tool-layout .slide-head {
  grid-column: 1 / -1;
}

.tool-panel {
  padding: 36px;
  min-height: 345px;
}

.tool-name {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0 18px;
  border-radius: 8px;
  background: rgba(246, 200, 95, 0.15);
  font-size: 18px;
}

.mint .tool-name {
  color: var(--mint);
  background: rgba(94, 234, 212, 0.13);
}

.pink .tool-name {
  color: var(--pink);
  background: rgba(233, 90, 184, 0.13);
}

.tool-panel h3 {
  margin-top: 36px;
  color: var(--ink);
  font-size: 26px;
}

.tool-panel li {
  font-size: 25px;
}

.gold li::before { background: var(--gold); }
.pink li::before { background: var(--pink); }

.takeaway {
  align-self: center;
  min-height: 250px;
  padding: 38px;
}

.takeaway p {
  font-size: 20px;
}

.takeaway strong {
  display: block;
  margin-top: 28px;
  font-size: clamp(32px, 4.5vh, 52px);
  line-height: 1.16;
}

.feature-list {
  display: grid;
  gap: 13px;
  margin-top: 28px;
  padding-left: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding-left: 24px;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.28;
  font-weight: 800;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--mint);
  box-shadow: 0 0 0 5px rgba(147, 224, 200, 0.18);
}

.flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 34px;
}

.flow article {
  min-height: 0;
  padding: 18px 18px;
}

.flow b {
  color: var(--gold);
  font-size: 18px;
}

.flow span {
  display: block;
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 900;
}

.closing-line {
  margin-top: 62px;
  text-align: center;
  color: var(--ink);
  font-size: clamp(28px, 4vh, 46px);
  line-height: 1.22;
  font-weight: 900;
}

.makeup-visual {
  width: min(35vw, 460px);
  aspect-ratio: 16 / 9;
  margin: 20px auto 0;
  overflow: hidden;
  border: 1px solid rgba(255, 244, 202, 0.65);
  border-radius: 8px;
  box-shadow: 0 22px 58px rgba(36, 14, 23, 0.36);
}

.makeup-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.proposal-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-width: 1040px;
  margin: 44px auto 0;
}

.proposal-list article {
  display: grid;
  grid-template-columns: 58px 1fr;
  align-items: center;
  min-height: 88px;
  padding: 18px 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 18px 46px rgba(20, 14, 32, 0.28);
}

.proposal-list b {
  color: var(--gold);
  font-size: 24px;
}

.proposal-list span {
  color: var(--ink);
  font-size: 24px;
  line-height: 1.18;
  font-weight: 900;
}

.gold-text {
  color: var(--gold);
}

.questions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 60px;
}

.questions p {
  min-height: 76px;
  padding: 23px 28px 18px;
  font-size: 24px;
  line-height: 1.22;
  font-weight: 900;
}

.questions p:last-child {
  grid-column: 1 / -1;
  justify-self: center;
  width: 58%;
  border-color: rgba(246, 200, 95, 0.55);
}

.magic-list-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(460px, 1fr);
  align-items: center;
  gap: 54px;
}

.magic-link-list {
  display: grid;
  gap: 14px;
}

.magic-link-list a {
  display: grid;
  gap: 8px;
  min-height: 78px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(14px);
}

.magic-link-list strong {
  color: var(--gold);
  font-size: 27px;
  line-height: 1;
}

.magic-link-list span {
  color: var(--muted);
  font-size: 19px;
  font-weight: 800;
  word-break: break-all;
}

.qr-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  text-align: center;
}

.qr-head {
  align-self: center;
}

.qr-head h2 {
  font-size: clamp(60px, 10vh, 96px);
}

.qr-head p {
  max-width: 760px;
}

.qr-stage {
  display: grid;
  place-items: center;
  width: min(32vw, 360px);
  aspect-ratio: 1;
  padding: 18px;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.35);
}

.qr-stage img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.qr-url {
  position: static;
  max-width: 610px;
  color: var(--gold);
  font-size: 18px;
  font-weight: 900;
}

.controls,
.fullscreen {
  position: fixed;
  z-index: 5;
  color: var(--ink);
  opacity: 0.92;
  transition: opacity 220ms ease, transform 220ms ease;
}

.controls {
  left: 50%;
  bottom: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateX(-50%);
  padding: 8px;
  border-radius: 999px;
  background: rgba(10, 7, 22, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px);
}

.controls button {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--ink);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

#counter {
  min-width: 58px;
  text-align: center;
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
}

.fullscreen {
  right: 22px;
  bottom: 24px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(10, 7, 22, 0.52);
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  backdrop-filter: blur(14px);
}

.progress {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  z-index: 5;
  background: rgba(255, 255, 255, 0.1);
}

.progress span {
  display: block;
  width: 11.111%;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--pink), var(--mint));
  transition: width 260ms ease;
}

body.idle .controls,
body.idle .fullscreen {
  opacity: 0.08;
}

body.idle .controls:hover,
body.idle .fullscreen:hover {
  opacity: 0.92;
}

@media (max-width: 900px) {
  html,
  body {
    height: 100%;
    overflow: hidden;
  }

  .deck {
    position: fixed;
    inset: 0;
    min-height: 100dvh;
  }

  .slide {
    min-height: 100dvh;
    transform: translateY(1.8vh) scale(0.99);
  }

  .slide.active {
    transform: translateY(0) scale(1);
  }

  .bg {
    object-position: 78% center;
    filter: saturate(1.02) contrast(1.04) brightness(0.82);
  }

  .shade,
  .shade.left {
    background:
      linear-gradient(180deg, rgba(18, 14, 36, 0.82), rgba(18, 14, 36, 0.66) 36%, rgba(18, 14, 36, 0.92) 82%),
      linear-gradient(90deg, rgba(18, 14, 36, 0.9), rgba(18, 14, 36, 0.38) 62%, rgba(18, 14, 36, 0.22)),
      rgba(8, 5, 18, 0.2);
  }

  .cover .bg {
    object-position: 78% center;
    filter: saturate(1.08) contrast(1.05) brightness(0.98);
  }

  .cover .shade.left {
    background:
      linear-gradient(180deg, rgba(18, 14, 36, 0.76), rgba(18, 14, 36, 0.5) 36%, rgba(18, 14, 36, 0.82) 82%),
      linear-gradient(90deg, rgba(18, 14, 36, 0.88), rgba(18, 14, 36, 0.24) 62%, rgba(18, 14, 36, 0.08)),
      rgba(8, 5, 18, 0.08);
  }

  .content,
  .cover-copy {
    width: min(92vw, 520px);
    height: calc(100dvh - 82px);
    min-height: 0;
    margin: 18px auto 64px;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 4px 2px 12px;
    scrollbar-width: none;
  }

  .content::-webkit-scrollbar,
  .cover-copy::-webkit-scrollbar {
    display: none;
  }

  .cover-copy {
    justify-content: flex-end;
    align-items: flex-start;
    padding-bottom: 10vh;
  }

  .agenda article,
  .two-col,
  .demo-grid,
  .tool-layout,
  .flow,
  .questions {
    grid-template-columns: 1fr;
  }

  .pill {
    min-width: 126px;
    min-height: 32px;
    padding: 0 14px;
    margin-bottom: 28px;
    font-size: 12px;
  }

  h1 {
    font-size: clamp(32px, 9.6vw, 42px);
    line-height: 1.12;
  }

  .gold-line {
    margin-top: 26px;
    font-size: clamp(20px, 5.6vw, 25px);
  }

  .meta {
    margin-top: 24px;
    font-size: clamp(14px, 3.9vw, 17px);
  }

  .spark {
    width: 24px;
    height: 24px;
  }

  .s1 { left: 73vw; top: 12vh; }
  .s2 { left: 55vw; top: 69vh; }
  .s3 { right: 9vw; top: 19vh; }

  .slide-head {
    padding-top: 2px;
  }

  .slide-head h2 {
    font-size: clamp(22px, 6vw, 28px);
    line-height: 1.1;
  }

  .slide-head p {
    margin-top: 8px;
    font-size: clamp(13px, 3.6vw, 16px);
    line-height: 1.3;
  }

  .agenda {
    gap: 9px;
    margin-top: 18px;
  }

  .agenda article {
    gap: 5px;
    min-height: 0;
    padding: 12px 14px;
  }

  .agenda time {
    font-size: 12px;
  }

  .agenda strong {
    font-size: 19px;
  }

  .agenda span {
    font-size: 13px;
    line-height: 1.28;
  }

  .two-col {
    gap: 22px;
  }

  .speaker-card {
    min-height: 0;
    padding: 18px;
  }

  .speaker-card h3 {
    font-size: 30px;
  }

  .placeholder {
    margin-top: 12px;
    font-size: 16px;
  }

  ul {
    margin-top: 16px;
  }

  li {
    margin-top: 8px;
    padding-left: 18px;
    font-size: 14px;
  }

  li::before {
    width: 8px;
    height: 8px;
  }

  .big-quote {
    font-size: clamp(22px, 6.4vw, 29px);
  }

  .demo-grid {
    gap: 9px;
    margin-top: 17px;
  }

  .business-grid {
    grid-template-columns: 1fr;
    max-width: none;
  }

  .demo-grid article {
    min-height: 0;
    padding: 14px 16px;
  }

  .demo-grid b {
    font-size: 15px;
  }

  .demo-grid h3 {
    margin-top: 8px;
    font-size: 20px;
  }

  .cn {
    margin-top: 7px;
    font-size: 14px;
  }

  .demo-grid span {
    margin-top: 8px;
    font-size: 13px;
  }

  .tool-layout {
    gap: 14px;
    grid-template-rows: auto;
    align-content: start;
  }

  .tool-panel,
  .takeaway {
    min-height: 0;
    padding: 17px;
  }

  .tool-name {
    min-height: 30px;
    padding: 0 12px;
    font-size: 12px;
  }

  .tool-panel h3 {
    margin-top: 15px;
    font-size: 18px;
  }

  .tool-panel li {
    font-size: 14px;
  }

  .takeaway {
    align-self: start;
  }

  .takeaway p {
    font-size: 13px;
  }

  .takeaway strong {
    margin-top: 12px;
    font-size: clamp(21px, 5.8vw, 28px);
  }

  .feature-list {
    gap: 7px;
    margin-top: 13px;
  }

  .feature-list li {
    padding-left: 17px;
    font-size: 13px;
    line-height: 1.24;
  }

  .feature-list li::before {
    top: 0.48em;
    width: 6px;
    height: 6px;
    box-shadow: 0 0 0 4px rgba(147, 224, 200, 0.16);
  }

  .flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
  }

  .flow article {
    min-height: 0;
    padding: 10px 11px;
  }

  .flow b {
    font-size: 12px;
  }

  .flow span {
    margin-top: 6px;
    font-size: 14px;
    line-height: 1.2;
  }

  .makeup-visual {
    width: min(62vw, 270px);
    margin-top: 12px;
    box-shadow: 0 14px 34px rgba(36, 14, 23, 0.28);
  }

  .proposal-list {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 22px;
  }

  .proposal-list article {
    grid-template-columns: 42px 1fr;
    min-height: 0;
    padding: 14px 16px;
  }

  .proposal-list b {
    font-size: 14px;
  }

  .proposal-list span {
    font-size: 14px;
    line-height: 1.18;
  }

  .questions {
    gap: 8px;
    margin-top: 16px;
  }

  .questions p {
    min-height: 0;
    padding: 12px 14px;
    font-size: 14px;
  }

  .questions p:last-child {
    width: 100%;
  }

  .magic-list-layout {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 16px;
  }

  .magic-link-list {
    width: 100%;
    gap: 8px;
  }

  .magic-link-list a {
    min-height: 0;
    padding: 12px 14px;
    gap: 4px;
  }

  .magic-link-list strong {
    font-size: 17px;
  }

  .magic-link-list span {
    font-size: 12px;
  }

  .qr-layout {
    justify-content: center;
    gap: 16px;
  }

  .qr-head h2 {
    font-size: clamp(46px, 14vw, 58px);
  }

  .qr-head p {
    max-width: none;
  }

  .qr-stage {
    width: min(60vw, 270px);
    padding: 12px;
  }

  .qr-url {
    position: static;
    max-width: 100%;
    text-align: center;
    font-size: 12px;
    line-height: 1.3;
    word-break: break-all;
  }

  .controls {
    bottom: max(10px, env(safe-area-inset-bottom));
    gap: 8px;
    padding: 6px;
  }

  body.idle .controls {
    opacity: 0.58;
  }

  .controls button {
    width: 40px;
    height: 40px;
  }

  #counter {
    min-width: 60px;
  }

  .fullscreen {
    display: none;
  }
}

@media print {
  html,
  body {
    overflow: visible;
  }

  .deck,
  .slide {
    position: relative;
  }

  .slide {
    page-break-after: always;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    width: 100vw;
    height: 100vh;
  }

  .controls,
  .fullscreen,
  .progress {
    display: none;
  }
}
