/* =============================================================
   Da ideia à execução — deck styles (miio design system, dark)
   ============================================================= */

deck-stage:not(:defined) { visibility: hidden; }

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: #05100f;
}

deck-stage { background: #05100f; }

/* Every slide runs in miio dark mode */
section[data-theme],
section { color: var(--text-body); }

/* ----------------------------------------------------------------
   SLIDE BASE
   ---------------------------------------------------------------- */
.slide {
  --pad: 104px;
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--pad);
  font-family: var(--font-display);
  color: var(--text-on-dark);
  background-color: #0d1616;
  isolation: isolate;
}

/* default dark canvas with teal bokeh glows */
.slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    radial-gradient(38% 46% at 80% 16%, rgba(43,207,184,0.13), transparent 70%),
    radial-gradient(46% 52% at 96% 64%, rgba(12,125,111,0.16), transparent 72%),
    radial-gradient(50% 56% at 14% 96%, rgba(12,125,111,0.10), transparent 74%);
}
/* fine diagonal weave texture */
.slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: repeating-linear-gradient(135deg,
      rgba(255,255,255,0.014) 0 1px, transparent 1px 8px);
  opacity: 0.9;
}

/* decorative out-of-focus bokeh discs */
.bokeh {
  position: absolute;
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%,
      rgba(43,207,184,0.10) 0 60%, rgba(43,207,184,0.16) 61% 78%, transparent 80%);
}

/* ---- background variants ---- */
.slide.bg-teal {
  background-color: #062320;
}
.slide.bg-teal::before {
  background-image:
    radial-gradient(120% 120% at 8% 116%, rgba(43,207,184,0.55), transparent 46%),
    radial-gradient(90% 90% at 96% -10%, rgba(12,125,111,0.45), transparent 55%),
    radial-gradient(60% 60% at 50% 50%, rgba(7,74,66,0.35), transparent 80%);
}

.slide.bg-crisis {
  background-color: #11090b;
}
.slide.bg-crisis::before {
  background-image:
    radial-gradient(60% 70% at 50% 128%, rgba(210,56,56,0.26), transparent 58%),
    radial-gradient(40% 48% at 86% 8%, rgba(43,207,184,0.06), transparent 70%);
}
.slide.bg-crisis::after { opacity: 1.3; }

/* ----------------------------------------------------------------
   TYPE
   ---------------------------------------------------------------- */
.eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--miio-teal-accent);
  margin: 0 0 var(--space-8);
}
.eyebrow.muted { color: var(--miio-neutral-300); }
.eyebrow.crisis { color: var(--miio-red-400); }

.d-hero {
  font-weight: 800;
  font-size: 150px;
  line-height: 0.96;
  letter-spacing: -0.03em;
  margin: 0;
  color: #fff;
}
.d-statement {
  font-weight: 800;
  font-size: 120px;
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin: 0;
  color: #fff;
  text-wrap: balance;
}
.d-section {
  font-weight: 800;
  font-size: 104px;
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin: 0;
  color: #fff;
  text-wrap: balance;
}
.lead {
  font-weight: 500;
  font-style: italic;
  font-size: 42px;
  line-height: 1.3;
  color: var(--miio-neutral-200);
  margin: var(--space-8) 0 0;
}
.body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 32px;
  line-height: 1.45;
  color: var(--miio-neutral-200);
  margin: 0;
}

.mint { color: var(--miio-teal-accent); }
.teal { color: var(--miio-teal-300); }
.red  { color: var(--miio-red-400); }
.white { color: #fff; }
.ul { text-decoration: underline; text-decoration-color: var(--miio-teal-accent); text-underline-offset: 0.12em; text-decoration-thickness: 5px; }

/* divider */
.rule {
  width: 132px;
  height: 6px;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--miio-teal-accent);
  margin: var(--space-8) 0;
}

/* ghost numeral / word behind content */
.ghost {
  position: absolute;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.8;
  z-index: -1;
  user-select: none;
}

/* ----------------------------------------------------------------
   LAYOUT HELPERS
   ---------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 88px;
  width: 100%;
  height: 100%;
}
.split.wide-l { grid-template-columns: 1.18fr 0.82fr; }
.split.wide-r { grid-template-columns: 0.82fr 1.18fr; }
.stack { display: flex; flex-direction: column; }
.center-slide { align-items: center; text-align: center; }

/* photo frame */
.photo {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 30px 70px rgba(0,0,0,0.5), 0 0 0 1px rgba(43,207,184,0.10);
  background: #0a1313;
}
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* full-bleed half image */
.bleed-right {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 46%;
  z-index: -1;
}
.bleed-right img { width: 100%; height: 100%; object-fit: cover; }
.bleed-right::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, #0d1616 0%, rgba(13,22,22,0.0) 22%);
}

/* ----------------------------------------------------------------
   PRESS CARDS (recreated headlines)
   ---------------------------------------------------------------- */
.press-list { display: flex; flex-direction: column; gap: 22px; }
.press {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: start;
  background: rgba(28,40,40,0.72);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-xl);
  padding: 26px 30px;
}
.press .src-dot {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  display: grid; place-items: center;
  font-family: var(--font-sans);
  font-weight: 700; font-size: 24px;
  color: #fff; margin-top: 2px;
}
.press .src {
  font-family: var(--font-sans);
  font-size: 24px; font-weight: 600;
  color: var(--miio-neutral-300);
  margin: 0 0 8px;
  letter-spacing: 0.01em;
}
.press h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.22;
  color: #fff;
  margin: 0;
  letter-spacing: -0.01em;
}
.press p {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.4;
  color: var(--miio-neutral-300);
  margin: 12px 0 0;
}
.press.compact h4 { font-size: 25px; }

/* ----------------------------------------------------------------
   STAT CARDS
   ---------------------------------------------------------------- */
.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: var(--space-10);
}
.stat {
  position: relative;
  background: rgba(28,40,40,0.70);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-xl);
  padding: 38px 44px 40px 52px;
  overflow: hidden;
}
.stat::before {
  content: "";
  position: absolute; left: 0; top: 22px; bottom: 22px;
  width: 6px; border-radius: var(--radius-pill);
  background: var(--miio-teal-accent);
}
.stat .num {
  font-weight: 800; font-size: 84px; line-height: 1;
  letter-spacing: -0.03em;
  color: var(--miio-teal-accent);
  margin: 0;
}
.stat .lbl {
  font-family: var(--font-sans);
  font-size: 28px; font-weight: 400;
  color: var(--miio-neutral-200);
  margin: 14px 0 0;
}

/* list of "what it is NOT" */
.neg-list { display: flex; flex-direction: column; gap: 24px; margin-top: 56px; }
.neg {
  position: relative;
  background: rgba(28,40,40,0.62);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-xl);
  padding: 34px 40px 34px 48px;
  font-family: var(--font-display);
  font-weight: 700; font-size: 40px;
  color: #fff;
  letter-spacing: -0.01em;
}
.neg::before {
  content: "";
  position: absolute; left: 0; top: 18px; bottom: 18px;
  width: 6px; border-radius: var(--radius-pill);
  background: var(--miio-red-400);
}

/* miio logo pill */
.miio-pill {
  display: inline-flex; align-items: center;
  background: var(--miio-teal-accent);
  color: #062320;
  font-family: var(--font-display);
  font-weight: 700; font-size: 34px;
  letter-spacing: -0.01em;
  padding: 14px 34px;
  border-radius: var(--radius-pill);
}

/* outsystems wordmark chip */
.os-mark {
  display: inline-flex; align-items: center; gap: 16px;
  font-family: var(--font-sans);
  font-weight: 600; font-size: 38px; color: #fff;
  letter-spacing: -0.01em;
}
.os-mark .o {
  width: 46px; height: 46px; border-radius: 50%;
  border: 8px solid var(--miio-red-500);
}

/* author block */
.author { margin-top: 64px; }
.author .name {
  font-weight: 700; font-size: 38px; color: #fff; margin: 0;
  letter-spacing: -0.01em;
}
.author .role {
  font-family: var(--font-sans);
  font-size: 26px; color: var(--miio-neutral-200);
  margin: 8px 0 0; letter-spacing: 0.02em;
}

/* quote marks treatment for big centered quote */
.quote { position: relative; }

/* lesson big number */
.lesson-num {
  position: absolute;
  right: var(--pad);
  top: 50%;
  transform: translateY(-50%);
  font-weight: 800;
  font-size: 540px;
  line-height: 0.7;
  letter-spacing: -0.04em;
  color: rgba(43,207,184,0.92);
  z-index: -1;
}
.lesson-rule {
  height: 2px; border: none;
  background: linear-gradient(90deg, var(--miio-teal-accent), rgba(43,207,184,0));
  margin: 48px 0 0;
  width: 70%;
}
.footnote {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 34px;
  color: var(--miio-teal-accent);
  margin: 0;
  letter-spacing: -0.005em;
}

/* phone device mockup */
.device {
  position: relative;
  width: 478px;
  background: linear-gradient(158deg, #20292a 0%, #0a1010 60%);
  border-radius: 56px;
  padding: 18px 17px;
  box-shadow: 0 46px 90px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.06);
}
.device::before {
  content: "";
  position: absolute; top: 9px; left: 50%; transform: translateX(-50%);
  width: 56px; height: 6px; border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.16);
  z-index: 2;
}
.device::after {
  content: "";
  position: absolute; inset: 6px;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.06);
  pointer-events: none;
}
.device .screen {
  border-radius: 42px;
  overflow: hidden;
  background: #0a1414;
  line-height: 0;
}
.device .screen img { width: 100%; display: block; }
/* side buttons */
.device .btn-r, .device .btn-l { position: absolute; width: 4px; border-radius: 4px; background: #11191a; }
.device .btn-r { right: -4px; top: 196px; height: 96px; }
.device .btn-l { left: -4px; top: 150px; height: 56px; }
.device .btn-l.two { top: 224px; height: 56px; }

/* lesson chips (chapter slide) */
.lesson-chip {
  width: 104px; height: 104px; border-radius: 50%;
  display: grid; place-items: center;
  border: 2px solid rgba(43,207,184,0.55);
  color: var(--miio-teal-accent);
  font-family: var(--font-display);
  font-weight: 800; font-size: 42px;
  letter-spacing: -0.02em;
}

/* full-bleed photo (closing) */
.bleed-full { position: absolute; inset: 0; z-index: -1; }
.bleed-full img { width: 100%; height: 100%; object-fit: cover; }
.bleed-full::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(8,16,15,0.62) 0%, rgba(8,16,15,0.12) 48%, transparent 72%),
    linear-gradient(180deg, rgba(8,16,15,0.30) 0%, rgba(8,16,15,0.48) 40%, rgba(8,16,15,0.97) 92%);
}

/* video thumb chrome (slide 19) */
.video {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 30px 70px rgba(0,0,0,0.5);
}
.video img { display: block; width: 100%; object-fit: cover; }
.video .play {
  position: absolute; left: 28px; bottom: 28px;
  width: 84px; height: 84px; border-radius: 50%;
  background: rgba(43,207,184,0.95);
  display: grid; place-items: center;
  box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}
.video .play::after {
  content: ""; margin-left: 6px;
  border-style: solid; border-width: 16px 0 16px 26px;
  border-color: transparent transparent transparent #062320;
}

/* ----------------------------------------------------------------
   ENTRANCE ANIMATION
   ---------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  [data-deck-active] .rise {
    animation: rise 0.62s var(--ease-emphasized) both;
  }
  [data-deck-active] .rise:nth-child(2) { animation-delay: 0.06s; }
  [data-deck-active] .rise:nth-child(3) { animation-delay: 0.12s; }
  [data-deck-active] .rise:nth-child(4) { animation-delay: 0.18s; }
  [data-deck-active] .rise:nth-child(5) { animation-delay: 0.24s; }
  [data-deck-active] .stagger > * {
    animation: rise 0.6s var(--ease-emphasized) both;
  }
  [data-deck-active] .stagger > *:nth-child(2) { animation-delay: 0.1s; }
  [data-deck-active] .stagger > *:nth-child(3) { animation-delay: 0.2s; }
  [data-deck-active] .stagger > *:nth-child(4) { animation-delay: 0.3s; }
  [data-deck-active] .pop { animation: pop 0.7s var(--ease-emphasized) both; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(34px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pop {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}
