/*
 * Gen H — Deutsche Bank Funder Presentation
 * Dark premium theme inspired by modern pitch decks
 *
 * Deep navy-black base with subtle red accent glow
 * Clean typography, generous whitespace, thin luminous borders
 */

/* --- Local Font Faces --- */

@font-face {
  font-family: 'Tusker Grotesk 8800';
  src: url('../fonts/tusker-grotesk/TuskerGrotesk-8800Super.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Tusker Grotesk 8700';
  src: url('../fonts/tusker-grotesk/TuskerGrotesk-8700Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Sans';
  src: url('../fonts/ibm-plex-sans/IBMPlexSans-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Sans';
  src: url('../fonts/ibm-plex-sans/IBMPlexSans-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Core palette */
  --bg: #06080F;
  --bg-card: #0C0F18;
  --bg-card-hover: #10131F;
  --border: rgba(255,255,255,0.06);
  --border-glow: rgba(200,16,46,0.2);

  /* Brand */
  --red: #C8102E;
  --red-dim: #7A0A1C;
  --red-glow: rgba(200,16,46,0.35);
  --red-soft: #E8384F;

  /* Text */
  --text: #FFFFFF;
  --text-secondary: rgba(255,255,255,0.55);
  --text-tertiary: rgba(255,255,255,0.35);

  /* Misc */
  --yellow: #FFD93D;
}

/* ============================================
   BASE
   ============================================ */

.reveal-viewport {
  background:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(to top right, rgba(200,16,46,0.6) 0%, rgba(200,16,46,0.25) 15%, rgba(200,16,46,0.08) 30%, transparent 50%),
    var(--bg);
  background-size: 60px 60px, 60px 60px, 100% 100%, 100% 100%;
}

.reveal {
  font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 28px;
  font-weight: 400;
  color: var(--text-secondary);
}

.reveal .slides section {
  text-align: left;
  padding: 56px 72px 64px;
  box-sizing: border-box;
}

::selection {
  color: var(--text);
  background: var(--red);
}

/* Subtle top-edge glow on content slides only (not section dividers) */
.reveal .slides section:not(.section-divider)::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--border-glow) 30%, var(--border-glow) 70%, transparent 100%);
  opacity: 0.5;
}

/* ============================================
   HEADINGS
   ============================================ */

/* h1 = Main titles (Tusker 8800 Super) */
.reveal h1 {
  font-family: 'Tusker Grotesk 8800', sans-serif;
  font-weight: 800;
  font-size: 2.6em;
  color: var(--text);
  letter-spacing: 0.02em;
  line-height: 1.05;
  margin: 0 0 0.5em 0;
  text-transform: uppercase;
  text-shadow: none;
}

/* h2 = Slide titles (Tusker 8700 Bold) */
.reveal h2 {
  font-family: 'Tusker Grotesk 8700', sans-serif;
  font-weight: 700;
  font-size: 1.8em;
  color: var(--text);
  letter-spacing: 0.01em;
  line-height: 1.1;
  margin: 0 0 0.6em 0;
  text-transform: uppercase;
  text-shadow: none;
}

/* h3 = Slide titles for content slides (Tusker 8700 Bold) */
.reveal h3 {
  font-family: 'Tusker Grotesk 8700', sans-serif;
  font-weight: 700;
  font-size: 1.15em;
  color: var(--text);
  letter-spacing: 0.01em;
  line-height: 1.15;
  margin: 0 0 0.6em 0;
  text-transform: uppercase;
  text-shadow: none;
}

/* h4 = Subheadings (IBM Plex Sans) */
.reveal h4 {
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 700;
  font-size: 0.85em;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  line-height: 1.3;
  margin: 0 0 0.5em 0;
  text-transform: none;
  text-shadow: none;
}

/* h5, h6 fallback (IBM Plex Sans) */
.reveal h5,
.reveal h6 {
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 700;
  color: var(--text-secondary);
  line-height: 1.3;
  margin: 0 0 0.5em 0;
  text-transform: none;
  text-shadow: none;
}

/* ============================================
   TEXT
   ============================================ */

.reveal p {
  margin: 0 0 0.8em 0;
  line-height: 1.65;
  font-weight: 300;
}

.reveal strong {
  font-weight: 600;
  color: var(--text);
}

.reveal em {
  font-style: italic;
  color: var(--red-soft);
}

.reveal small {
  font-size: 0.65em;
  color: var(--text-tertiary);
}

/* ============================================
   LINKS
   ============================================ */

.reveal a {
  color: var(--red-soft);
  text-decoration: none;
  transition: color 0.2s ease;
}

.reveal a:hover {
  color: var(--text);
}

/* ============================================
   LISTS
   ============================================ */

.reveal ul,
.reveal ol {
  margin: 0 0 0.8em 0;
  text-align: left;
}

.reveal ul { list-style: none; padding-left: 0; }

.reveal ul li {
  position: relative;
  padding-left: 1.4em;
  margin-bottom: 0.5em;
  line-height: 1.55;
  font-weight: 300;
}

.reveal ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 6px var(--red-glow);
}

.reveal ol li {
  margin-bottom: 0.5em;
  line-height: 1.55;
  font-weight: 300;
}

.reveal ul ul { margin-top: 0.3em; }

.reveal ul ul li::before {
  background: var(--text-tertiary);
  box-shadow: none;
  width: 4px;
  height: 4px;
}

/* ============================================
   TABLES
   ============================================ */

.reveal table {
  border-collapse: collapse;
  width: 100%;
  margin: 1em 0;
  font-size: 0.7em;
}

.reveal table th {
  background: transparent;
  color: var(--text-tertiary);
  font-weight: 500;
  font-size: 0.85em;
  padding: 0.6em 1em;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--border);
}

.reveal table td {
  padding: 0.65em 1em;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  font-weight: 300;
}

.reveal table tbody tr:last-child td {
  border-bottom: none;
}

.reveal table tr:hover td {
  background: rgba(255,255,255,0.02);
}

/* ============================================
   IMAGES
   ============================================ */

.reveal img {
  max-width: 90%;
  max-height: 70vh;
  border: none;
  box-shadow: none;
  border-radius: 4px;
}

/* ============================================
   BLOCKQUOTES
   ============================================ */

.reveal blockquote {
  background: transparent;
  border-left: 2px solid var(--red);
  padding: 0.6em 1.2em;
  margin: 1em 0;
  border-radius: 0;
  font-style: italic;
  color: var(--text-secondary);
}

/* ============================================
   CODE
   ============================================ */

.reveal code {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.85em;
  background: rgba(255,255,255,0.05);
  padding: 0.15em 0.4em;
  border-radius: 3px;
  border: 1px solid var(--border);
}

/* ============================================
   TITLE SLIDE
   ============================================ */

.reveal .title-slide {
  text-align: left;
}

.reveal .title-slide h1 {
  font-family: 'Tusker Grotesk 8800', sans-serif;
  font-size: 3.2em;
  margin-bottom: 0.15em;
  line-height: 1;
  text-transform: uppercase;
}

.reveal .title-slide .subtitle {
  font-size: 1em;
  color: var(--text-tertiary);
  font-weight: 300;
  margin-bottom: 1.5em;
}

.reveal .title-slide .meta {
  font-size: 0.55em;
  color: var(--text-tertiary);
  font-weight: 400;
}

/* ============================================
   SECTION DIVIDER
   ============================================ */

.reveal .section-divider {
  text-align: left;
  display: flex !important;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 80px !important;
}

/* No additional glow on dividers — main background gradient is sufficient */

.reveal .section-divider h2 {
  font-family: 'Tusker Grotesk 8800', sans-serif;
  font-size: 2.8em;
  margin-bottom: 0.15em;
  position: relative;
  z-index: 1;
}

.reveal .section-divider .section-number {
  display: inline-block;
  font-size: 0.5em;
  font-weight: 500;
  color: var(--red);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.6em;
  position: relative;
  z-index: 1;
}

.reveal .section-divider .section-desc {
  font-size: 0.65em;
  color: var(--text-tertiary);
  max-width: 550px;
  line-height: 1.6;
  font-weight: 300;
  position: relative;
  z-index: 1;
}

/* ============================================
   GRID LAYOUTS
   ============================================ */

.reveal .two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2em;
  text-align: left;
  align-items: start;
}

.reveal .two-col-wide-left {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2em;
  text-align: left;
  align-items: start;
}

.reveal .two-col-wide-right {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 2em;
  text-align: left;
  align-items: start;
}

.reveal .three-col {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.2em;
  text-align: left;
  align-items: start;
}

.reveal .four-col {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 1em;
  text-align: left;
}

/* ============================================
   CARDS
   ============================================ */

.reveal .card {
  background: var(--bg-card);
  border-radius: 8px;
  padding: 1.1em 1.3em;
  border: 1px solid var(--border);
  text-align: left;
  transition: border-color 0.2s ease;
}

.reveal .card:hover {
  border-color: rgba(255,255,255,0.1);
}

.reveal .card h4 {
  color: var(--text);
  margin-bottom: 0.4em;
  font-size: 0.75em;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
}

.reveal .card p {
  font-size: 0.6em;
  color: var(--text-tertiary);
  margin: 0;
  line-height: 1.55;
}

/* Stat Cards */
.reveal .stat-card {
  background: var(--bg-card);
  border-radius: 8px;
  padding: 1.2em;
  text-align: center;
  border: 1px solid var(--border);
}

.reveal .stat-card .stat-number {
  font-size: 2.2em;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  margin-bottom: 0.15em;
}

.reveal .stat-card .stat-label {
  font-size: 0.5em;
  color: var(--text-tertiary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ============================================
   PROCESS FLOW
   ============================================ */

.reveal .process-flow {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  flex-wrap: wrap;
  margin: 1em 0;
}

.reveal .process-step {
  background: var(--bg-card);
  border-radius: 6px;
  padding: 0.6em 1em;
  text-align: center;
  font-size: 0.6em;
  border: 1px solid var(--border);
  min-width: 100px;
  font-weight: 300;
  color: var(--text-secondary);
}

.reveal .process-step .step-num {
  display: block;
  font-size: 0.7em;
  font-weight: 600;
  color: var(--red);
  margin-bottom: 0.2em;
}

.reveal .process-arrow {
  font-size: 1em;
  color: var(--text-tertiary);
  padding: 0 0.4em;
}

/* ============================================
   HIGHLIGHT BOX
   ============================================ */

.reveal .highlight-box {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: 8px;
  padding: 1.1em 1.5em;
  margin: 0.8em 0;
}

/* ============================================
   TAGS
   ============================================ */

.reveal .tag {
  display: inline-block;
  font-size: 0.45em;
  font-weight: 600;
  padding: 0.3em 0.8em;
  border-radius: 4px;
  background: rgba(200,16,46,0.12);
  color: var(--red-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-right: 0.4em;
  border: 1px solid rgba(200,16,46,0.15);
}

.reveal .tag.teal {
  background: rgba(200,16,46,0.12);
  color: var(--red-soft);
  border-color: rgba(200,16,46,0.15);
}

.reveal .tag.yellow {
  background: rgba(255,217,61,0.08);
  color: var(--yellow);
  border-color: rgba(255,217,61,0.12);
}

/* ============================================
   TIMELINE
   ============================================ */

.reveal .timeline {
  position: relative;
  padding-left: 2em;
  text-align: left;
}

.reveal .timeline::before {
  content: '';
  position: absolute;
  left: 0.4em;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--red) 0%, var(--red-dim) 50%, transparent 100%);
}

.reveal .timeline-item {
  position: relative;
  margin-bottom: 0.8em;
  font-size: 0.7em;
  font-weight: 300;
  color: var(--text-secondary);
}

.reveal .timeline-item::before {
  content: '';
  position: absolute;
  left: -1.75em;
  top: 0.4em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 8px var(--red-glow);
}

.reveal .timeline-item .year {
  font-weight: 600;
  color: var(--text);
  margin-right: 0.5em;
}

/* ============================================
   ACCENT UNDERLINE
   ============================================ */

.reveal .accent-underline {
  display: inline-block;
  border-bottom: 2px solid var(--red);
  padding-bottom: 0.1em;
}

/* ============================================
   PROGRESS BAR & CONTROLS
   ============================================ */

.reveal .progress {
  height: 2px;
  background: rgba(255,255,255,0.04);
}

.reveal .progress span {
  background: var(--red);
  transition: width 0.8s ease;
}

.reveal .controls .navigate-left,
.reveal .controls .navigate-right,
.reveal .controls .navigate-up,
.reveal .controls .navigate-down {
  color: rgba(255,255,255,0.25);
}

.reveal .controls .navigate-left:hover,
.reveal .controls .navigate-right:hover {
  color: rgba(255,255,255,0.5);
}

/* ============================================
   SLIDE NUMBERS
   ============================================ */

.reveal .slide-number {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: var(--text-tertiary);
  background: transparent;
  right: 24px;
  bottom: 20px;
}

/* ============================================
   SPEAKER NOTES
   ============================================ */

.reveal .speaker-notes {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
}

/* ============================================
   PRINT / PDF
   ============================================ */

@media print {
  .reveal-viewport {
    background: #0a0b14;
  }
}

/* ============================================
   UTILITIES
   ============================================ */

.reveal .text-sm { font-size: 0.75em; }
.reveal .text-xs { font-size: 0.6em; }
.reveal .text-lg { font-size: 1.2em; }

.reveal .text-coral { color: var(--red-soft); }
.reveal .text-teal { color: var(--text); }
.reveal .text-yellow { color: var(--yellow); }
.reveal .text-grey { color: var(--text-tertiary); }
.reveal .text-white { color: var(--text); }

.reveal .text-left { text-align: left; }
.reveal .text-center { text-align: center; }
.reveal .text-right { text-align: right; }

.reveal .mt-1 { margin-top: 0.5em; }
.reveal .mt-2 { margin-top: 1em; }
.reveal .mb-1 { margin-bottom: 0.5em; }
.reveal .mb-2 { margin-bottom: 1em; }

/* ============================================
   LOGO BAR
   ============================================ */

.reveal .logo-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2em;
  margin: 1em 0;
}

.reveal .logo-bar img {
  height: 40px;
  box-shadow: none;
  border-radius: 0;
}

/* ============================================
   DIVIDER LINE
   ============================================ */

.reveal hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1em 0;
}

/* ============================================
   SLIDE FOOTER
   ============================================ */

.reveal .slide-footer {
  position: absolute;
  bottom: 16px;
  left: 72px;
  right: 72px;
  font-size: 0.42em;
  color: var(--text-tertiary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 10px;
}

/* ============================================
   PLACEHOLDER NOTE
   ============================================ */

.reveal .placeholder-note {
  background: rgba(255,217,61,0.04);
  border: 1px dashed rgba(255,217,61,0.15);
  border-radius: 6px;
  padding: 0.8em 1.2em;
  font-size: 0.55em;
  color: rgba(255,217,61,0.6);
  font-style: italic;
}

/* ============================================
   LIGHT SLIDE VARIANT
   ============================================ */

.reveal section.light-bg {
  background: #F5F5F7;
  color: #1A1A2E;
}

.reveal section.light-bg h1,
.reveal section.light-bg h2,
.reveal section.light-bg h3 {
  color: #1A1A2E;
}

.reveal section.light-bg p,
.reveal section.light-bg li {
  color: #333;
}

/* ============================================
   FULL-WIDTH VARIANT
   ============================================ */

.reveal .slides section.full-width {
  padding: 56px 48px 64px;
}

/* ============================================
   ORG CHART
   ============================================ */

.org-chart {
  position: relative;
}

.org-node {
  display: inline-block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.5em 0.8em;
  color: var(--text-secondary);
  font-size: 1em;
  line-height: 1.35;
  text-align: center;
  white-space: nowrap;
}

.org-node strong {
  color: var(--text);
  font-weight: 600;
}

.org-node.org-board {
  border-color: var(--border-glow);
  color: var(--text-tertiary);
  font-weight: 500;
  letter-spacing: 0.04em;
  font-size: 0.9em;
}

.org-node.org-ceo {
  border-color: var(--red);
  box-shadow: 0 0 12px var(--red-glow);
  padding: 0.6em 1.2em;
}

.org-node.org-sub {
  font-size: 0.85em;
  color: var(--text-tertiary);
  border-color: rgba(255,255,255,0.03);
  background: rgba(12,15,24,0.6);
  padding: 0.35em 0.6em;
}

.org-vline {
  width: 1px;
  background: rgba(255,255,255,0.1);
  margin: 0 auto;
}

.org-hline {
  height: 1px;
  background: rgba(255,255,255,0.1);
  margin: 0 6.25% ;
}

.org-branch {
  display: flex;
  flex-direction: column;
  align-items: center;
}
