@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:wght@300;400;500;600;700&family=Instrument+Serif:ital@0;1&family=JetBrains+Mono:wght@300;400;500;600&display=swap');

:root {
  --paper:       #FAF5EE;
  --paper-2:     #F3ECDF;
  --ink:         #0F172A;
  --ink-2:       #1E293B;
  --slate:       #475569;
  --slate-2:     #64748B;
  --line:        #D8CFBE;
  --line-soft:   #E8DFCD;
  --line-ink:    #1F2937;

  --signal:      #1863DC;
  --ai:          #7C3AED;
  --recepthor:   #06B6D4;
  --lexio:       #B8742B;
  --prometeo:    #B05C2C;

  --background-color: var(--paper);
  --section-divider-bg: var(--ink);

  --sans:    "Inter Tight", ui-sans-serif, system-ui, sans-serif;
  --serif:   "Instrument Serif", Georgia, serif;
  --mono:    "JetBrains Mono", ui-monospace, monospace;

  --base-font-size: 32px;
  --text-size: 16pt;
  --h1-size: 56pt;
  --h2-size: 36pt;
  --h3-size: 22pt;
  --footnote-size: 10pt;

  --slide-padding: 72px;
  --slide-padding-top: 52px;
  --content-gap: 28px;
}

.reveal { font-family: var(--sans); font-size: var(--base-font-size); }
.reveal strong, .reveal b { font-weight: 600; color: var(--ink); }
.reveal em, .reveal i { font-family: var(--serif); font-style: italic; font-weight: 400; }

.reveal-viewport { background-color: var(--paper); }
.reveal-viewport.is-section-divider .slide-background.present {
  background-color: var(--ink) !important;
}

.reveal h1, .reveal h2, .reveal h3, .reveal h4 {
  font-family: var(--sans);
  color: var(--ink);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-transform: none;
}
.reveal h1 { font-size: var(--h1-size); font-weight: 400; }
.reveal h2 { font-size: var(--h2-size); margin: 0; }
.reveal h3 { font-size: var(--h3-size); font-weight: 500; }

.reveal .serif { font-family: var(--serif); font-weight: 400; font-style: italic; letter-spacing: -0.01em; }

.reveal p, .reveal li, .reveal td, .reveal th, .reveal blockquote {
  font-size: var(--text-size);
  color: var(--ink-2);
  line-height: 1.52;
}
.reveal p + p { margin-top: 14px; }

.reveal ul { list-style: none; padding-left: 0; margin: 14px 0; }
.reveal ul li { position: relative; padding-left: 22px; margin-bottom: 10px; }
.reveal ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 8px;
  height: 8px;
  background: var(--signal);
}
.reveal ul ul li::before { background: var(--slate); width: 6px; height: 6px; }
.reveal ol { padding-left: 22px; margin: 14px 0; }
.reveal ol li { margin-bottom: 10px; }

.reveal .slides section {
  height: 100%;
  display: flex !important;
  flex-direction: column !important;
  padding: var(--slide-padding-top) var(--slide-padding) var(--slide-padding) var(--slide-padding) !important;
  box-sizing: border-box;
  text-align: left;
}
.reveal .slides section.stack { padding: 0 !important; }
.reveal .slides section > .content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: var(--content-gap);
  text-align: left;
}
.reveal .slides section > .footnote {
  position: absolute;
  bottom: 18px;
  left: var(--slide-padding);
  right: var(--slide-padding);
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: var(--footnote-size);
  color: var(--slate-2);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.reveal .slides section.section-divider {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: flex-start !important;
  text-align: left;
  padding: var(--slide-padding) !important;
}
.reveal .slides section.section-divider h1,
.reveal .slides section.section-divider h2,
.reveal .slides section.section-divider h3,
.reveal .slides section.section-divider p,
.reveal .slides section.section-divider li {
  color: var(--paper);
}
.reveal .slides section.section-divider h1 {
  font-family: var(--serif);
  font-size: 88pt;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.0;
  max-width: 18ch;
}
.reveal .slides section.section-divider h2 {
  font-family: var(--serif);
  font-size: 56pt;
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-top: 8px;
  max-width: 22ch;
}
.reveal .slides section.section-divider p {
  font-family: var(--sans);
  font-size: 18pt;
  color: rgba(250, 245, 238, 0.72);
  max-width: 60ch;
  margin-top: 28px;
  line-height: 1.5;
}
.reveal .slides section.section-divider .eyebrow,
.reveal .slides section.section-divider .chapter {
  font-family: var(--mono);
  font-size: 11pt;
  font-weight: 500;
  color: rgba(250, 245, 238, 0.55);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.reveal .slides section.section-divider .accent-rule {
  width: 44px;
  height: 2px;
  background: var(--signal);
  margin: 28px 0 0 0;
}

.reveal .slides section:not(.section-divider) > h1,
.reveal .slides section:not(.section-divider) > h2 {
  flex-shrink: 0;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  position: relative;
  max-width: 28ch;
  font-family: var(--sans);
  font-weight: 400;
}
.reveal .slides section:not(.section-divider) > h2 .serif-accent,
.reveal .slides section:not(.section-divider) > h1 .serif-accent {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--ink);
}

.text-xs { font-size: 12pt !important; }
.text-sm { font-size: 14pt !important; }
.text-lg { font-size: 18pt !important; }
.text-xl { font-size: 20pt !important; }
.text-2xl { font-size: 24pt !important; }
.text-3xl { font-size: 28pt !important; }
.text-4xl { font-size: 34pt !important; }
.text-5xl { font-size: 44pt !important; }

.text-muted    { color: var(--slate) !important; }
.text-slate-2  { color: var(--slate-2) !important; }
.text-signal   { color: var(--signal) !important; }
.text-ai       { color: var(--ai) !important; }
.text-paper    { color: var(--paper) !important; }

.font-serif { font-family: var(--serif) !important; font-weight: 400; }
.font-mono  { font-family: var(--mono) !important; }
.font-light { font-weight: 300; }
.font-bold  { font-weight: 600; }
.italic     { font-style: italic; }

.text-center { text-align: center !important; }

.eyebrow, .chapter {
  font-family: var(--mono);
  font-size: 11pt;
  color: var(--slate);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 14px;
}
.chapter .dot { color: var(--signal); margin: 0 10px; }

.accent-rule {
  width: 40px;
  height: 2px;
  background: var(--signal);
  margin: 14px 0 22px 0;
}
.accent-rule.ai { background: var(--ai); }

.reveal blockquote {
  font-family: var(--serif) !important;
  font-style: italic !important;
  font-size: 30pt !important;
  line-height: 1.18 !important;
  color: var(--ink) !important;
  border-left: 2px solid var(--signal);
  padding-left: 28px !important;
  margin: 18px 0 !important;
  max-width: 26ch;
  background: none !important;
  box-shadow: none !important;
  width: auto !important;
}
.reveal blockquote cite {
  display: block;
  margin-top: 16px;
  font-family: var(--mono);
  font-style: normal;
  font-size: 11pt;
  color: var(--slate);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.card {
  background: #FFFFFF;
  border: 1px solid var(--line);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.card .card-eyebrow {
  font-family: var(--mono);
  font-size: 10pt;
  color: var(--signal);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
}
.card .card-title {
  font-family: var(--sans);
  font-size: 18pt;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.card p, .card li { font-size: 13pt; color: var(--slate); line-height: 1.45; }

.col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--ink);
  padding-top: 14px;
}
.col .col-num {
  font-family: var(--mono);
  font-size: 11pt;
  color: var(--slate);
  letter-spacing: 0.18em;
}
.col .col-title {
  font-family: var(--sans);
  font-size: 20pt;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.col p { font-size: 13.5pt; color: var(--slate); line-height: 1.45; }

.stat { display: flex; flex-direction: column; gap: 6px; }
.stat .stat-num {
  font-family: var(--serif);
  font-size: 84pt;
  color: var(--ink);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.03em;
}
.stat .stat-label {
  font-family: var(--mono);
  font-size: 11pt;
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.pill {
  display: inline-block;
  padding: 5px 12px;
  border: 1px solid var(--ink);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 10pt;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
}
.pill.signal { border-color: var(--signal); color: var(--signal); }
.pill.ai     { border-color: var(--ai); color: var(--ai); }

.layer-row {
  display: grid;
  grid-template-columns: 60px 220px 1fr;
  gap: 22px;
  align-items: baseline;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.layer-row:last-child { border-bottom: none; }
.layer-row .layer-num {
  font-family: var(--mono);
  font-size: 11pt;
  color: var(--signal);
  letter-spacing: 0.2em;
}
.layer-row .layer-name {
  font-family: var(--sans);
  font-size: 18pt;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.layer-row .layer-desc {
  font-size: 13pt;
  color: var(--slate);
  line-height: 1.4;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--line);
}
.split > div { padding: 22px 26px; }
.split > div + div { border-left: 1px solid var(--line); }
.split .split-label {
  font-family: var(--mono);
  font-size: 10.5pt;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 14px;
}
.split .wrong { color: #B03A2E; }
.split .right { color: var(--signal); }
.split p, .split li { font-size: 14pt; line-height: 1.48; }
.split li { margin-bottom: 8px; }

.brand-wordmark { height: 28px; opacity: 0.9; }
.brand-wordmark.inverse { filter: invert(1); }

/* Cover slide (intro) */
.reveal .slides section.cover {
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  align-items: stretch !important;
  text-align: left;
  padding: var(--slide-padding) !important;
}
.reveal-viewport.is-cover .slide-background.present {
  background-color: var(--ink) !important;
}
.cover .cover-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cover .cover-head .brand-wordmark { height: 28px; filter: invert(1); }
.cover .cover-head .cover-meta {
  font-family: var(--mono);
  font-size: 10pt;
  color: rgba(250, 245, 238, 0.6);
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.cover h1 {
  font-family: var(--serif);
  font-size: 96pt;
  font-weight: 400;
  color: var(--paper);
  letter-spacing: -0.035em;
  line-height: 0.95;
  max-width: 16ch;
  margin: 0;
  padding: 0;
  border: none;
}
.cover h1 em { font-style: italic; color: var(--paper); }
.cover .cover-sub {
  font-family: var(--sans);
  font-size: 18pt;
  color: rgba(250, 245, 238, 0.72);
  max-width: 58ch;
  margin-top: 18px;
}
.cover .cover-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-family: var(--mono);
  font-size: 10pt;
  color: rgba(250, 245, 238, 0.55);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.cover .cover-foot .signal-rule { width: 64px; height: 2px; background: var(--signal); }

.reveal .progress { color: var(--signal); height: 2px; }
.reveal .slide-number {
  background: transparent;
  font-family: var(--mono);
  font-size: 9pt;
  letter-spacing: 0.18em;
  color: var(--slate-2);
}

.reveal .slides section.section-divider ul li::before { background: var(--signal); }

/* diagram — stack visualization */
.stack-diagram {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
}
.stack-diagram .layer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border: 1px solid var(--line);
  background: #FFFFFF;
}
.stack-diagram .layer.top    { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.stack-diagram .layer.top .ll-name,
.stack-diagram .layer.top .ll-desc { color: var(--paper); }
.stack-diagram .layer .ll-name {
  font-family: var(--sans);
  font-size: 17pt;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.stack-diagram .layer .ll-desc {
  font-family: var(--mono);
  font-size: 10.5pt;
  color: var(--slate);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* journey pipeline */
.journey {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin-top: 8px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.journey .step {
  padding: 18px 16px;
  border-right: 1px dashed var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.journey .step:last-child { border-right: none; }
.journey .step .s-num {
  font-family: var(--mono);
  font-size: 10pt;
  color: var(--signal);
  letter-spacing: 0.2em;
}
.journey .step .s-name {
  font-family: var(--sans);
  font-size: 15pt;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.journey .step .s-desc {
  font-size: 12pt;
  color: var(--slate);
  line-height: 1.4;
}
