/* ============================================
   MISRAJ × SUKUK CAPITAL — Pitch Deck
   Visual system aligned with Misraj brand
   ============================================ */

:root {
  --bg: #050505;
  --bg-soft: #0c0c0e;
  --surface: #111114;
  --surface-2: #16161a;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #f4f4f6;
  --text-dim: #a8a8b0;
  --text-mute: #6c6c75;
  --accent: #ff4d5e;
  --accent-soft: #ff7a87;
  --accent-glow: rgba(255, 77, 94, 0.35);
  --accent-bg: rgba(255, 77, 94, 0.08);
  --warn: #ffb547;
  --ok: #4ade80;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --font-display: 'Tajawal', 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans Arabic', 'Tajawal', system-ui, sans-serif;
  --font-latin: 'Inter', system-ui, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  position: relative;
}

/* ============ DECK & SLIDES ============ */
.deck {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: var(--bg);
}

.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 64px 88px 96px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateX(40px);
  pointer-events: none;
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  background: var(--bg);
  overflow: hidden;
}

.slide.is-active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  z-index: 2;
}

.slide.is-prev {
  transform: translateX(-40px);
}

.slide-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 44px;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding-top: 32px;
}

/* ============ SECTION TAG (top-right) ============ */
.slide-tag {
  position: absolute;
  top: 56px;
  left: 88px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  line-height: 1.2;
  color: var(--accent);
  letter-spacing: 0.5px;
  text-align: left;
  opacity: 0.95;
}

/* ============ SLIDE HEAD ============ */
.slide-head {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 920px;
}

.slide-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 64px;
  line-height: 1.15;
  letter-spacing: -0.5px;
  color: var(--text);
}

.slide-lead {
  font-size: 19px;
  line-height: 1.7;
  color: var(--text-dim);
  font-weight: 400;
  max-width: 820px;
}

/* ============ COVER (Slide 1) ============ */
.slide-cover {
  padding: 0;
  background: #050505;
}

.cover-glow {
  position: absolute;
  width: 1100px;
  height: 1100px;
  left: -350px;
  top: 50%;
  transform: translateY(-50%);
  background: radial-gradient(ellipse at center,
    rgba(255, 77, 94, 0.45) 0%,
    rgba(180, 60, 130, 0.28) 25%,
    rgba(120, 50, 150, 0.15) 45%,
    transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

.cover-fibers {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.fiber {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 100, 130, 0.3) 30%,
    rgba(255, 200, 220, 0.7) 50%,
    rgba(255, 100, 130, 0.3) 70%,
    transparent 100%);
  filter: blur(1px);
  transform-origin: left center;
}

.fiber.f1 { width: 80%; top: 40%; left: -10%; transform: rotate(-18deg); }
.fiber.f2 { width: 70%; top: 55%; left: -5%; transform: rotate(-22deg); height: 1px; opacity: 0.6; }
.fiber.f3 { width: 90%; top: 65%; left: -10%; transform: rotate(-15deg); height: 3px; }
.fiber.f4 { width: 60%; top: 75%; left: 0%; transform: rotate(-25deg); height: 1px; opacity: 0.5; }
.fiber.f5 { width: 75%; top: 85%; left: -5%; transform: rotate(-12deg); height: 2px; opacity: 0.7; }

.cover-brand {
  position: absolute;
  top: 56px;
  right: 88px;
  z-index: 3;
}

.brand-logo {
  height: 42px;
  width: auto;
}

.cover-content {
  position: absolute;
  top: 50%;
  right: 88px;
  transform: translateY(-50%);
  max-width: 880px;
  z-index: 3;
  text-align: right;
}

.cover-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 86px;
  line-height: 1.1;
  letter-spacing: -1px;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cover-title span {
  display: block;
}

.cover-sub {
  margin-top: 28px;
  font-size: 22px;
  line-height: 1.6;
  color: var(--text-dim);
  font-weight: 400;
  max-width: 760px;
  margin-right: 0;
  margin-left: auto;
}

.cover-tags {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 100px;
  backdrop-filter: blur(10px);
}

.cover-footer {
  position: absolute;
  bottom: 56px;
  left: 88px;
  right: 88px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 3;
}

.cover-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: var(--text-mute);
  font-weight: 400;
}

.dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-mute);
}

/* ============ STAT / CHALLENGE / SIGNAL CARDS ============ */
.card-row {
  display: grid;
  gap: 22px;
}

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

.card-grid {
  display: grid;
  gap: 22px;
}

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

.stat-card,
.challenge,
.signal-card {
  position: relative;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 220px;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}

.stat-card::before,
.challenge::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
  filter: blur(40px);
  opacity: 0.5;
  pointer-events: none;
}

.stat-num,
.challenge-num {
  font-family: var(--font-latin);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 1px;
}

.stat-card h3,
.challenge h3,
.signal-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.3;
  color: var(--text);
}

.stat-card p,
.challenge p,
.signal-card p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-dim);
}

.signal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-bottom: 8px;
}

.s-yellow { background: #ffd84d; box-shadow: 0 0 14px rgba(255, 216, 77, 0.6); }
.s-orange { background: #ff9b3d; box-shadow: 0 0 14px rgba(255, 155, 61, 0.6); }
.s-red { background: var(--accent); box-shadow: 0 0 14px var(--accent-glow); }

/* ============ LAYERS (Slide 3) ============ */
.layers {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 1100px;
}

.layer {
  display: flex;
  align-items: stretch;
  gap: 24px;
  padding: 26px 30px;
  background: linear-gradient(90deg, rgba(255, 77, 94, 0.04) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
}

.layer::after {
  content: '';
  position: absolute;
  inset-inline-end: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--accent) 0%, transparent 100%);
}

.layer-num {
  font-family: var(--font-latin);
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  min-width: 60px;
}

.layer-body h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--text);
  margin-bottom: 6px;
}

.layer-body p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-dim);
}

/* ============ SCOPE TABLE (Slide 5) ============ */
.scope-table {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.015);
}

.scope-row {
  display: grid;
  grid-template-columns: 1.2fr 2fr 1.3fr;
  gap: 24px;
  padding: 20px 28px;
  border-bottom: 1px solid var(--line);
  align-items: center;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-dim);
}

.scope-row:last-child { border-bottom: none; }

.scope-row strong {
  color: var(--text);
  font-weight: 700;
}

.scope-head {
  background: rgba(255, 77, 94, 0.06);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.scope-head div {
  color: var(--accent);
}

.pill {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(255, 77, 94, 0.1);
  border: 1px solid rgba(255, 77, 94, 0.25);
  color: var(--accent-soft);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
}

/* ============ ARCH STACK (Slide 6) ============ */
.arch-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.arch-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  align-items: center;
  padding: 18px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.015);
}

.arch-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--accent);
}

.arch-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.arch-items span {
  display: inline-block;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
}

.arch-intel {
  background: linear-gradient(90deg, rgba(255, 77, 94, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
  border-color: rgba(255, 77, 94, 0.2);
}

.arch-base {
  background: linear-gradient(90deg, rgba(255, 77, 94, 0.1) 0%, rgba(255, 77, 94, 0.03) 100%);
  border-color: rgba(255, 77, 94, 0.25);
}

.arch-base .arch-items span {
  background: rgba(255, 77, 94, 0.12);
  border-color: rgba(255, 77, 94, 0.3);
  color: var(--accent-soft);
}

/* ============ SPLIT LAYOUT (Slides 7, 8, 10, 12) ============ */
.split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: center;
}

.split-text {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bullets li {
  position: relative;
  padding-right: 22px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dim);
}

.bullets li::before {
  content: '';
  position: absolute;
  right: 0;
  top: 12px;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 2px;
  transform: rotate(45deg);
}

.callout {
  margin-top: 8px;
  padding: 18px 22px;
  background: rgba(255, 77, 94, 0.06);
  border: 1px solid rgba(255, 77, 94, 0.2);
  border-radius: var(--radius-md);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
}

/* Doc flow visual */
.doc-flow {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.doc-step {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.doc-step.accent {
  background: linear-gradient(135deg, rgba(255, 77, 94, 0.15) 0%, rgba(255, 77, 94, 0.05) 100%);
  border-color: rgba(255, 77, 94, 0.35);
  box-shadow: 0 0 30px rgba(255, 77, 94, 0.1);
}

.step-icon {
  font-size: 28px;
  color: var(--accent);
}

.doc-step h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--text);
  margin-bottom: 2px;
}

.doc-step p {
  font-size: 13px;
  color: var(--text-dim);
}

.doc-arrow {
  font-size: 20px;
  color: var(--accent);
  text-align: center;
  font-weight: 300;
}

/* Chat mock visual */
.chat-mock {
  padding: 28px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.chat-msg {
  padding: 16px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  line-height: 1.7;
  max-width: 92%;
}

.chat-msg.user {
  background: rgba(255, 77, 94, 0.12);
  border: 1px solid rgba(255, 77, 94, 0.25);
  color: var(--text);
  margin-right: auto;
  margin-left: 0;
  font-weight: 500;
}

.chat-msg.bot {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--text-dim);
  margin-left: auto;
  margin-right: 0;
}

.chat-msg.bot p { margin-bottom: 8px; color: var(--text); }
.chat-msg.bot ol,
.chat-msg.bot ul {
  padding-right: 22px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.chat-msg.bot li { font-size: 13px; line-height: 1.7; }

.cite {
  display: block;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--text-mute);
  font-weight: 500;
}

/* Checklist (Slide 10) */
.checklist {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.check-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.check-item.ok .check-icon { background: rgba(74, 222, 128, 0.15); color: var(--ok); border: 1px solid rgba(74, 222, 128, 0.3); }
.check-item.warn .check-icon { background: rgba(255, 181, 71, 0.15); color: var(--warn); border: 1px solid rgba(255, 181, 71, 0.3); }
.check-item.flag .check-icon { background: rgba(255, 77, 94, 0.15); color: var(--accent); border: 1px solid rgba(255, 77, 94, 0.3); }

.check-item strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  margin-bottom: 2px;
}

.check-item p {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ============ APPS GRID (Slide 13) ============ */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.app-card {
  padding: 28px 24px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
}

.app-icon {
  font-size: 32px;
  color: var(--accent);
  font-weight: 300;
  margin-bottom: 4px;
}

.app-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  color: var(--text);
}

.app-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-dim);
}

/* ============ WHY GRID (Slide 14) ============ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.why-card {
  padding: 28px 24px;
  background: linear-gradient(160deg, rgba(255, 77, 94, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.why-num {
  font-size: 28px;
  color: var(--accent);
  font-weight: 700;
}

.why-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  color: var(--text);
}

.why-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-dim);
}

/* ============ STEPS (Slide 15) ============ */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  position: relative;
}

.step {
  padding: 28px 24px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}

.step-num {
  font-family: var(--font-latin);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.step h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  color: var(--text);
  line-height: 1.3;
}

.step-time {
  font-size: 12px;
  color: var(--accent-soft);
  font-weight: 600;
  background: rgba(255, 77, 94, 0.08);
  border: 1px solid rgba(255, 77, 94, 0.2);
  padding: 4px 10px;
  border-radius: 100px;
  align-self: flex-start;
  width: fit-content;
}

.step p:not(.step-time) {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-dim);
  margin-top: 4px;
}

/* ============ VISION (Slide 16) ============ */
.vision-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.vision-card {
  padding: 32px 28px;
  background: linear-gradient(135deg, rgba(255, 77, 94, 0.08) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid rgba(255, 77, 94, 0.18);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.vision-mark {
  font-size: 30px;
  color: var(--accent);
  margin-bottom: 4px;
}

.vision-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--text);
}

.vision-card p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-dim);
}

/* ============ FOOTNOTE ============ */
.footnote {
  margin-top: 20px;
  padding: 16px 22px;
  background: rgba(255, 77, 94, 0.05);
  border-right: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text);
  line-height: 1.7;
}

/* ============ END SLIDE (Slide 17) ============ */
.slide-end {
  padding: 0;
  background: #050505;
}

.slide-end .cover-glow {
  width: 1100px;
  height: 1100px;
  left: -350px;
  top: 50%;
  transform: translateY(-50%);
  background: radial-gradient(ellipse at center,
    rgba(255, 77, 94, 0.45) 0%,
    rgba(180, 60, 130, 0.28) 25%,
    rgba(120, 50, 150, 0.15) 45%,
    transparent 70%);
  filter: blur(40px);
}

.end-content {
  position: absolute;
  top: 50%;
  right: 88px;
  transform: translateY(-50%);
  max-width: 880px;
  z-index: 3;
  text-align: right;
}

.end-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 140px;
  letter-spacing: -3px;
  color: #fff;
  line-height: 1;
}

.end-sub {
  margin-top: 28px;
  font-size: 22px;
  line-height: 1.6;
  color: var(--text-dim);
  font-weight: 400;
  max-width: 620px;
  margin-right: 0;
  margin-left: auto;
}

/* ============ NAV CONTROLS ============ */
.controls {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  background: rgba(20, 20, 22, 0.85);
  border: 1px solid var(--line);
  border-radius: 100px;
  backdrop-filter: blur(20px);
  z-index: 100;
}

.ctrl-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.ctrl-btn:hover {
  background: var(--accent);
  color: #fff;
}

.ctrl-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.ctrl-btn:disabled:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.ctrl-btn svg {
  width: 18px;
  height: 18px;
}

.counter {
  font-family: var(--font-latin);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  padding: 0 14px;
  min-width: 60px;
  text-align: center;
  letter-spacing: 0.5px;
}

.counter .slash {
  color: var(--text-mute);
  margin: 0 4px;
}

/* ============ PROGRESS BAR ============ */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.04);
  z-index: 100;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-soft) 100%);
  width: 0%;
  transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 0 12px var(--accent-glow);
}

/* ============ HINT ============ */
.hint {
  position: fixed;
  bottom: 24px;
  right: 32px;
  font-size: 12px;
  color: var(--text-mute);
  font-family: var(--font-latin);
  z-index: 100;
  opacity: 0;
  transition: opacity 0.4s;
}

.hint.show {
  opacity: 0.7;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1280px) {
  .slide { padding: 56px 64px 88px; }
  .slide-tag { left: 64px; top: 48px; }
  .slide-title { font-size: 52px; }
  .cover-title { font-size: 68px; }
  .end-title { font-size: 110px; }
  .cover-content,
  .end-content { right: 64px; }
  .cover-brand { right: 64px; }
  .cover-footer { left: 64px; right: 64px; }
}

@media (max-width: 1024px) {
  .slide-title { font-size: 42px; }
  .cover-title { font-size: 52px; }
  .end-title { font-size: 88px; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .card-row.three,
  .apps-grid,
  .why-grid,
  .steps { grid-template-columns: repeat(2, 1fr); }
  .vision-grid { grid-template-columns: 1fr; }
  .scope-row { grid-template-columns: 1fr; gap: 8px; }
  .arch-row { grid-template-columns: 1fr; gap: 12px; }
}

/* Mobile: allow scrolling within slides so long content is reachable */
@media (max-width: 900px) {
  .slide {
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 56px 28px 140px;
    height: 100%;
    align-items: stretch;
  }

  .slide-inner {
    padding-top: 56px;
    gap: 28px;
    margin: 0;
  }

  .slide-tag {
    position: static;
    display: inline-block;
    margin-bottom: 8px;
    font-size: 14px;
  }

  .slide-title { font-size: 30px; line-height: 1.2; }
  .slide-lead { font-size: 16px; line-height: 1.7; }

  .cover-title { font-size: 38px; line-height: 1.15; }
  .cover-sub { font-size: 17px; }
  .end-title { font-size: 64px; letter-spacing: -1px; }
  .end-sub { font-size: 17px; margin-top: 18px; }

  .cover-content,
  .end-content {
    position: static;
    transform: none;
    margin-top: 80px;
    margin-bottom: 56px;
    right: auto;
    padding: 0 28px;
    max-width: 100%;
  }

  .slide-cover,
  .slide-end {
    overflow-y: auto;
    padding: 0;
    display: block;
  }

  .cover-brand { right: 28px; left: auto; top: 28px; }
  .brand-logo { height: 32px; }

  .cover-footer {
    position: static;
    margin: 32px 28px 120px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
  }

  .cover-meta {
    flex-wrap: wrap;
    font-size: 12px;
    gap: 8px;
  }

  .cover-tags { gap: 8px; }
  .tag { font-size: 12px; padding: 7px 12px; }

  .card-row.three,
  .card-grid.two,
  .apps-grid,
  .why-grid,
  .steps,
  .vision-grid { grid-template-columns: 1fr; gap: 14px; }

  .stat-card,
  .challenge,
  .signal-card,
  .why-card,
  .app-card,
  .vision-card,
  .step { min-height: auto; padding: 22px 20px; }

  .scope-table { border: none; border-radius: 0; }
  .scope-row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    margin-bottom: 8px;
  }
  .scope-head { display: none; }

  .arch-row {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 16px 18px;
  }

  .layer { padding: 20px 22px; gap: 16px; }
  .layer-num { font-size: 22px; min-width: 44px; }

  .doc-flow,
  .chat-mock,
  .checklist { padding: 20px; }

  .controls {
    bottom: 16px;
    padding: 6px;
  }

  .ctrl-btn { width: 34px; height: 34px; }
  .counter { font-size: 12px; padding: 0 10px; min-width: 50px; }

  .hint { display: none; }
}

@media (max-width: 480px) {
  .slide { padding: 48px 20px 130px; }
  .slide-title { font-size: 26px; }
  .cover-title { font-size: 30px; }
  .end-title { font-size: 52px; }
}
