:root {
  --bg: #0b1020;
  --surface: #111827;
  --text: #f8fafc;
  --muted: #94a3b8;
  --accent: #5eead4;
  --border: rgba(148, 163, 184, 0.2);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
}

body {
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button {
  font: inherit;
}

::selection {
  background: var(--accent);
  color: #061017;
}

.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 80% at 15% 15%, rgba(56, 189, 248, 0.13), transparent 60%),
    radial-gradient(ellipse 55% 65% at 85% 85%, rgba(94, 234, 212, 0.1), transparent 62%);
}

.ambient::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.7;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 10%, transparent 78%);
  mask-image: radial-gradient(ellipse at center, #000 10%, transparent 78%);
}

.deck-meta {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: clamp(1.25rem, 3vw, 2.5rem) clamp(1.25rem, 4vw, 3rem);
  pointer-events: none;
}

.deck-label,
.deck-counter {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.deck-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--muted);
}

.deck-label::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(94, 234, 212, 0.7);
}

.deck-counter {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.presentation {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: clamp(5rem, 9vw, 9rem) clamp(1.5rem, 7vw, 7rem);
}

.slide.active {
  display: flex;
}

.slide-content {
  position: relative;
  z-index: 2;
  width: min(100%, 1040px);
  margin: 0 auto;
  text-align: center;
}

.slide--media {
  justify-content: space-between;
  gap: clamp(2rem, 4vw, 4rem);
  padding-block: clamp(4.5rem, 8vh, 6rem);
  padding-inline: clamp(2rem, 5vw, 5rem);
}

.slide--media .slide-content {
  flex: 1 1 0;
  order: 1;
  width: auto;
  min-width: 0;
  max-width: 760px;
  margin: 0;
  text-align: left;
}

.slide-image {
  order: 2;
  flex: 0 0 42vw;
  width: 42vw;
  max-width: 45vw;
  height: clamp(350px, 45vh, 400px);
  object-fit: cover;
  object-position: center;
  border: 2px solid #2e7d32;
  border-radius: 1.5rem;
  background: var(--surface);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.45),
    0 0 32px rgba(46, 125, 50, 0.2);
  pointer-events: none;
}

.slide--eco {
  --accent: #86efac;
}

.slide--eco .slide-kicker {
  border-color: rgba(134, 239, 172, 0.28);
  background: rgba(134, 239, 172, 0.08);
}

.slide--eco .slide-image {
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.45),
    0 0 38px rgba(74, 222, 128, 0.22);
}

@keyframes image-reveal {
  from {
    transform: translate3d(18px, 0, 0) scale(0.98);
  }
  to {
    transform: translate3d(0, 0, 0) scale(1);
  }
}

.slide.active .slide-image {
  animation: image-reveal 0.8s var(--ease-out) both;
}

.slide-kicker {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.95rem;
  border: 1px solid rgba(94, 234, 212, 0.22);
  border-radius: 999px;
  background: rgba(94, 234, 212, 0.06);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.slide h1 {
  margin: 1.5rem 0 0;
  color: #ffffff;
  font-size: clamp(2.7rem, 7.5vw, 6.5rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.slide--compact h1 {
  font-size: clamp(2.3rem, 5.6vw, 5rem);
}

.slide p {
  max-width: 660px;
  margin: 1.75rem auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.22rem);
  line-height: 1.75;
  text-wrap: pretty;
}

.slide--media h1 {
  margin-top: 1.25rem;
  font-size: clamp(2.15rem, 4.2vw, 4rem);
}

.slide--media p {
  max-width: 620px;
  margin: 1.5rem 0 0;
}

.slide--final {
  padding-block: clamp(3.5rem, 6vh, 5.5rem);
}

.slide--final::before {
  content: "";
  position: absolute;
  inset: 10% 8%;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 34%, rgba(94, 234, 212, 0.14), transparent 62%);
  filter: blur(22px);
}

.slide-content--final {
  width: min(100%, 1100px);
}

.slide--final .final-title {
  margin: 0.85rem 0 0;
  color: #e2e8f0;
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.final-total {
  margin-top: 0.55rem;
}

.final-amount {
  display: inline-block;
  margin: 0 auto;
  font-size: clamp(5rem, 8vw, 7rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.075em;
  white-space: nowrap;
  background: linear-gradient(100deg, #86efac 0%, #5eead4 46%, #22d3ee 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-shadow: 0 0 32px rgba(94, 234, 212, 0.24);
  filter: drop-shadow(0 8px 28px rgba(34, 211, 238, 0.14));
}

.final-amount span {
  font-size: 0.34em;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: inherit;
}

.slide--final .final-caption {
  max-width: none;
  margin: 0.6rem 0 0;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.final-breakdown {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(0.55rem, 2.2vw, 1.35rem);
  margin-top: clamp(1rem, 2.4vh, 1.6rem);
}

.final-orb {
  position: relative;
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: clamp(104px, 14vw, 190px);
  aspect-ratio: 1;
  padding: 0.85rem;
  border: 2px solid transparent;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 22%, rgba(94, 234, 212, 0.17), transparent 48%) padding-box,
    linear-gradient(145deg, rgba(23, 37, 61, 0.98), rgba(8, 14, 26, 0.98)) padding-box,
    linear-gradient(145deg, #86efac, #2dd4bf 55%, #22d3ee) border-box;
  box-shadow:
    0 22px 44px rgba(0, 0, 0, 0.42),
    0 0 28px rgba(45, 212, 191, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  text-align: center;
}

.final-orb::after {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 50%;
  pointer-events: none;
}

.final-orb-value {
  color: #ffffff;
  font-size: clamp(1.05rem, 1.65vw, 1.55rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.045em;
  white-space: nowrap;
}

.final-orb-value small {
  color: var(--muted);
  font-size: 0.55em;
  font-weight: 500;
  letter-spacing: 0;
}

.final-orb-label {
  max-width: 84%;
  margin-top: 0.35rem;
  color: #a9b8cc;
  font-size: clamp(0.56rem, 0.75vw, 0.68rem);
  font-weight: 500;
  line-height: 1.25;
}

.final-benefits {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  max-width: 900px;
  margin: clamp(1rem, 2.4vh, 1.5rem) auto 0;
  padding: 0;
  list-style: none;
}

.final-benefits li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid rgba(94, 234, 212, 0.13);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(17, 25, 42, 0.8), rgba(12, 20, 36, 0.8));
  color: #dbe7f4;
  font-size: clamp(0.72rem, 0.8vw, 0.8rem);
  white-space: nowrap;
}

.final-benefits li::before {
  content: "✓";
  display: grid;
  place-items: center;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  background: rgba(94, 234, 212, 0.12);
  color: var(--accent);
  font-size: 0.62rem;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(94, 234, 212, 0.15);
}

.slide-list {
  counter-reset: problem;
  display: grid;
  gap: 0.75rem;
  width: min(100%, 780px);
  margin: 2rem auto 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.slide-list li {
  counter-increment: problem;
  position: relative;
  padding: 1rem 1.25rem 1rem 3.75rem;
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  background: rgba(17, 24, 39, 0.45);
  color: #cbd5e1;
  font-size: clamp(0.95rem, 1.35vw, 1.08rem);
  line-height: 1.6;
}

.slide-list li::before {
  content: counter(problem, decimal-leading-zero);
  position: absolute;
  top: 50%;
  left: 1.25rem;
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  font-variant-numeric: tabular-nums;
  transform: translateY(-50%);
}

.controls {
  position: fixed;
  right: clamp(1.25rem, 4vw, 3rem);
  bottom: clamp(1.25rem, 4vw, 3rem);
  z-index: 20;
  display: flex;
  gap: 0.7rem;
}

.nav-btn {
  display: grid;
  place-items: center;
  width: clamp(3.25rem, 5vw, 3.75rem);
  height: clamp(3.25rem, 5vw, 3.75rem);
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: rgba(17, 24, 39, 0.65);
  color: var(--text);
  cursor: pointer;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition:
    transform 0.25s var(--ease-out),
    background-color 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    box-shadow 0.25s ease;
}

.nav-btn svg {
  width: 1.35rem;
  height: 1.35rem;
}

.nav-btn:hover {
  border-color: transparent;
  background: var(--accent);
  color: #061017;
  box-shadow: 0 12px 30px rgba(94, 234, 212, 0.24);
  transform: translateY(-3px);
}

.nav-btn:active {
  transform: translateY(0) scale(0.96);
}

.nav-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

@media (max-width: 900px) {
  .slide--media {
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
    padding-block: 5rem 7.5rem;
  }

  .slide--media .slide-content {
    flex: 0 1 auto;
    width: 100%;
    max-width: 100%;
    text-align: center;
  }

  .slide--media h1 {
    margin-top: 1rem;
    font-size: clamp(2.2rem, 5.8vw, 3.2rem);
  }

  .slide--media p {
    max-width: 100%;
    margin: 1rem auto 0;
  }

  .slide-image {
    flex: 0 0 auto;
    width: min(100%, 520px);
    max-width: 100%;
    height: clamp(220px, 30vh, 280px);
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .deck-meta {
    padding: 1.25rem;
  }

  .deck-label,
  .deck-counter {
    font-size: 0.62rem;
    letter-spacing: 0.14em;
  }

  .slide {
    padding: 5rem 1.25rem 7.5rem;
  }

  .slide-kicker {
    padding: 0.5rem 0.8rem;
    font-size: 0.64rem;
    letter-spacing: 0.16em;
  }

  .slide h1 {
    margin-top: 1.25rem;
    font-size: clamp(2.4rem, 10vw, 3.8rem);
  }

  .slide p {
    margin-top: 1.35rem;
    font-size: 1rem;
    line-height: 1.65;
  }

  .slide--final {
    padding: 4.5rem 1.25rem 7rem;
  }

  .slide--final::before {
    inset: 6% 0;
    filter: blur(16px);
  }

  .slide--final .final-title {
    margin-top: 0.6rem;
    font-size: 1.15rem;
  }

  .final-total {
    margin-top: 0.4rem;
  }

  .final-amount {
    font-size: clamp(5rem, 22vw, 6.2rem);
  }

  .slide--final .final-caption {
    margin-top: 0.4rem;
    font-size: 0.62rem;
    letter-spacing: 0.12em;
  }

  .final-breakdown {
    gap: 0.45rem;
    margin-top: 0.9rem;
  }

  .final-orb {
    width: clamp(96px, 28vw, 115px);
    padding: 0.35rem;
  }

  .final-orb::after {
    inset: 6px;
  }

  .final-orb-value {
    font-size: clamp(0.92rem, 4.2vw, 1.05rem);
  }

  .final-orb-label {
    max-width: 88%;
    margin-top: 0.22rem;
    font-size: 0.54rem;
    line-height: 1.2;
  }

  .final-benefits {
    gap: 0.4rem;
    margin-top: 0.9rem;
  }

  .final-benefits li {
    gap: 0.35rem;
    padding: 0.38rem 0.6rem;
    font-size: 0.68rem;
  }

  .final-benefits li::before {
    width: 0.9rem;
    height: 0.9rem;
    font-size: 0.55rem;
  }

  .slide-list {
    gap: 0.6rem;
    margin-top: 1.35rem;
  }

  .slide-list li {
    padding: 0.85rem 0.9rem 0.85rem 3rem;
    font-size: 0.94rem;
  }

  .slide-list li::before {
    left: 1rem;
  }

  .controls {
    right: auto;
    bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
    left: 50%;
    gap: 1rem;
    transform: translateX(-50%);
  }

  .nav-btn {
    width: 4.25rem;
    height: 4.25rem;
  }

  .nav-btn svg {
    width: 1.6rem;
    height: 1.6rem;
  }
}

@media (max-height: 700px) {
  .slide {
    padding-top: 4.25rem;
    padding-bottom: 5.25rem;
  }

  .slide h1 {
    margin-top: 1rem;
    font-size: clamp(2.2rem, 6.5vw, 4.5rem);
  }

  .slide p {
    margin-top: 1rem;
  }

  .slide-list {
    gap: 0.45rem;
    margin-top: 1rem;
  }

  .slide-list li {
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
  }
}
