:root {
  /* Bizi Office brand tokens (bizioffice.com) */
  --primary: #7c3aed;
  --primary-dark: #5b21b6;
  --secondary: #3b82f6;
  --brand-accent: #06b6d4;
  --gradient: linear-gradient(135deg, #7c3aed 0%, #3b82f6 100%);

  --bg: #0a0e1a;
  --bg-elevated: #151b2e;
  --panel: rgba(21, 27, 46, 0.82);
  --text: #ffffff;
  --muted: #94a3b8;
  --faint: #64748b;
  --accent: #06b6d4;
  --accent-2: #7c3aed;
  --accent-3: #3b82f6;
  --warning: #fbbf24;
  --danger: #fb7185;
  --ok: #34d399;
  --border: rgba(124, 58, 237, 0.22);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  --radius: 22px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  overflow: hidden;
}

body {
  background:
    radial-gradient(1200px 700px at 10% -10%, rgba(124, 58, 237, 0.18), transparent 55%),
    radial-gradient(900px 600px at 90% 0%, rgba(59, 130, 246, 0.16), transparent 50%),
    radial-gradient(800px 500px at 70% 100%, rgba(6, 182, 212, 0.10), transparent 45%),
    var(--bg);
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, black 30%, transparent 85%);
  pointer-events: none;
  z-index: 0;
}

.deck {
  position: relative;
  z-index: 1;
  width: 100vw;
  height: 100vh;
}

.slide {
  position: absolute;
  inset: 0;
  display: none;
  padding: clamp(1.25rem, 3vw, 2.75rem);
  padding-bottom: 5.5rem;
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.slide.active {
  display: flex;
  flex-direction: column;
  opacity: 1;
  transform: none;
}

.slide-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.25rem;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: var(--gradient);
  box-shadow: 0 0 18px rgba(124, 58, 237, 0.8);
}

h1, h2, h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  max-width: 16ch;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  max-width: 22ch;
}

h3 {
  font-size: 1.15rem;
  font-weight: 700;
}

.subtitle {
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  max-width: 48ch;
  line-height: 1.55;
}

.lead {
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.6;
  max-width: 60ch;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.9rem;
}

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

.grid {
  display: grid;
  gap: 1rem;
}

.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 960px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  h1 { max-width: none; }
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.card.soft {
  background: rgba(255, 255, 255, 0.025);
  box-shadow: none;
}

.card .label {
  color: var(--faint);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}

.card p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.card ul {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
  line-height: 1.55;
}

.card li + li { margin-top: 0.35rem; }

.stat {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-note {
  color: var(--muted);
  margin-top: 0.35rem;
  line-height: 1.45;
}

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.25rem;
  align-items: stretch;
}

@media (max-width: 960px) {
  .two-col { grid-template-columns: 1fr; }
}

.list-check {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.7rem;
}

.list-check li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  color: var(--muted);
  line-height: 1.45;
}

.list-check li::before {
  content: "✓";
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 0.5rem;
  display: grid;
  place-items: center;
  background: rgba(124, 58, 237, 0.18);
  color: #c4b5fd;
  font-weight: 800;
  font-size: 0.85rem;
}

.flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (max-width: 900px) {
  .flow { grid-template-columns: 1fr 1fr; }
}

.flow-step {
  position: relative;
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  min-height: 150px;
}

.flow-step .n {
  font-family: var(--mono);
  color: var(--accent);
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}

.tag {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tag.teal { background: rgba(94,234,212,0.12); color: var(--accent); }
.tag.indigo { background: rgba(129,140,248,0.14); color: #a5b4fc; }
.tag.pink { background: rgba(244,114,182,0.14); color: #f9a8d4; }
.tag.amber { background: rgba(251,191,36,0.14); color: #fcd34d; }

.quote {
  border-left: 3px solid var(--accent-2);
  padding: 0.25rem 0 0.25rem 1rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
  max-width: 50ch;
}

.table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--border);
  font-size: 0.95rem;
}

.table th, .table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.table th {
  background: rgba(124, 58, 237, 0.18);
  color: var(--text);
  font-weight: 700;
}

.table td { color: var(--muted); background: rgba(255,255,255,0.02); }
.table tr:last-child td { border-bottom: none; }

.big-number-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

@media (max-width: 800px) {
  .big-number-row { grid-template-columns: 1fr; }
}

.footer-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.25rem 1rem;
  background: linear-gradient(to top, rgba(10, 14, 26, 0.98), rgba(10, 14, 26, 0.75), transparent);
  backdrop-filter: blur(8px);
}

.progress-wrap {
  grid-column: 1 / -1;
  height: 4px;
  background: rgba(148,163,184,0.15);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.35rem;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #7c3aed, #3b82f6, #06b6d4);
  transition: width 0.25s ease;
}

.brand-mini {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--faint);
  font-size: 0.85rem;
}

.controls {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  justify-content: center;
}

.controls button {
  appearance: none;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  border-radius: 12px;
  padding: 0.55rem 0.9rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: 0.15s ease;
}

.controls button:hover {
  border-color: rgba(124, 58, 237, 0.55);
  background: rgba(124, 58, 237, 0.14);
}

.slide-count {
  min-width: 4.5rem;
  text-align: center;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-family: var(--mono);
  font-size: 0.9rem;
}

.help {
  justify-self: end;
  color: var(--faint);
  font-size: 0.82rem;
}

.help kbd {
  font-family: var(--mono);
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: 0.1rem 0.35rem;
  background: rgba(255,255,255,0.03);
  color: var(--muted);
}

.title-hero {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 1.5rem;
  align-items: center;
}

@media (max-width: 960px) {
  .title-hero { grid-template-columns: 1fr; }
}

.hero-panel {
  border-radius: 28px;
  border: 1px solid var(--border);
  background:
    linear-gradient(160deg, rgba(124, 58, 237, 0.18), transparent 40%),
    linear-gradient(320deg, rgba(59, 130, 246, 0.16), transparent 45%),
    rgba(21, 27, 46, 0.9);
  padding: 1.4rem;
  box-shadow: var(--shadow);
}

.hero-panel .row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
}

.hero-panel .row:last-child { border-bottom: none; }
.hero-panel .row strong { color: var(--text); }

.accent-text { color: var(--accent); }
.warn-text { color: var(--warning); }
.danger-text { color: var(--danger); }

.sources a {
  color: #93c5fd;
  text-decoration: none;
}
.sources a:hover { text-decoration: underline; }

.sources ol {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--muted);
  line-height: 1.55;
}

.sources li + li { margin-top: 0.45rem; }

.activity-box {
  border: 1px dashed rgba(124, 58, 237, 0.5);
  background: rgba(124, 58, 237, 0.08);
}

.footnote {
  color: var(--faint);
  font-size: 0.85rem;
}

.logo-mark {
  display: none;
}

.brand-logo {
  display: block;
  height: clamp(3.25rem, 7vw, 4.5rem);
  width: auto;
  margin-bottom: 1rem;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(124, 58, 237, 0.35));
}

.brand-logo.footer-logo {
  height: 1.75rem;
  margin: 0;
  filter: drop-shadow(0 2px 10px rgba(124, 58, 237, 0.25));
}

.tag.teal { background: rgba(6, 182, 212, 0.14); color: #67e8f9; }
.tag.indigo { background: rgba(124, 58, 237, 0.18); color: #c4b5fd; }
.tag.pink { background: rgba(59, 130, 246, 0.16); color: #93c5fd; }
.tag.amber { background: rgba(251, 191, 36, 0.14); color: #fcd34d; }

.quote {
  border-left-color: var(--primary);
}
