/* ============================================================
   FORIS PRESENTATION — Dark Theme
   Intentional deviation from default Cloudflare warm palette.
   
   Dark navy background, Cloudflare orange accents, white text.
   Designed for: Neet (Clement Wong) → Foris / Crypto.com
   May 2026
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600;700&family=DM+Mono:wght@400;500&display=swap');

/* ── VARIABLES ────────────────────────────────────────────── */
:root {
  /* Dark palette */
  --cf-bg-page:    #0d1117;
  --cf-bg-content: #1a1a2e;
  --cf-bg-card:    #16213e;
  --cf-bg-card2:   #0f3460;

  /* Text */
  --cf-text:       #f0f0f0;
  --cf-text-muted: #a0a8b8;
  --cf-text-dim:   #6b7280;

  /* Cloudflare orange accents */
  --cf-orange:     #F38020;
  --cf-orange-bright: #FF6633;
  --cf-orange-muted: rgba(243, 128, 32, 0.15);
  --cf-orange-border: rgba(243, 128, 32, 0.3);

  /* Semantic */
  --cf-blue:   #3b82f6;
  --cf-green:  #22c55e;
  --cf-purple: #a855f7;
  --cf-red:    #ef4444;
  --cf-yellow: #f59e0b;

  /* Borders */
  --cf-border: rgba(255,255,255,0.08);
  --cf-border-accent: rgba(243,128,32,0.25);
}

/* ── RESET & BASE ─────────────────────────────────────────── */
.reveal-viewport {
  background: var(--cf-bg-page);
}

.reveal {
  font-family: 'DM Sans', 'Segoe UI', sans-serif;
  font-size: 18pt;
  color: var(--cf-text);
}

.reveal .slides section {
  text-align: left;
  box-sizing: border-box;
  padding: 48px 60px;
  height: 100%;
}

/* Remove default reveal margins */
.reveal .slides {
  text-align: left;
}

/* ── TYPOGRAPHY ───────────────────────────────────────────── */
.reveal h1 {
  font-family: 'DM Sans', sans-serif;
  font-size: 42pt;
  font-weight: 700;
  color: var(--cf-text);
  line-height: 1.15;
  margin: 0 0 12px 0;
  text-transform: none;
  letter-spacing: -0.5px;
}

.reveal h2 {
  font-family: 'DM Sans', sans-serif;
  font-size: 28pt;
  font-weight: 600;
  color: var(--cf-text);
  line-height: 1.2;
  margin: 0 0 10px 0;
  text-transform: none;
  letter-spacing: -0.3px;
}

.reveal h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 18pt;
  font-weight: 600;
  color: var(--cf-orange);
  line-height: 1.3;
  margin: 0 0 8px 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.reveal p {
  font-size: 14pt;
  line-height: 1.65;
  color: var(--cf-text-muted);
  margin: 0 0 12px 0;
}

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

.reveal ul li {
  font-size: 14pt;
  line-height: 1.7;
  color: var(--cf-text-muted);
  padding-left: 20px;
  position: relative;
  margin-bottom: 6px;
}

.reveal ul li::before {
  content: '→';
  color: var(--cf-orange);
  position: absolute;
  left: 0;
  font-weight: 600;
}

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

.reveal em {
  color: var(--cf-orange);
  font-style: normal;
  font-weight: 500;
}

code, .mono {
  font-family: 'DM Mono', 'Courier New', monospace;
  font-size: 12pt;
  background: var(--cf-bg-card);
  border: 1px solid var(--cf-border);
  border-radius: 4px;
  padding: 2px 6px;
  color: var(--cf-orange);
}

/* ── ORANGE ACCENT LINE ───────────────────────────────────── */
.accent-bar {
  width: 56px;
  height: 4px;
  background: linear-gradient(90deg, var(--cf-orange), var(--cf-orange-bright));
  border-radius: 2px;
  margin-bottom: 20px;
}

/* ── SLIDE LABEL / EYEBROW ────────────────────────────────── */
.slide-label {
  font-family: 'DM Mono', monospace;
  font-size: 9pt;
  font-weight: 500;
  color: var(--cf-orange);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  margin-bottom: 16px;
  opacity: 0.9;
}

/* ── SUBTITLE TEXT ────────────────────────────────────────── */
.subtitle {
  font-size: 16pt;
  color: var(--cf-text-muted);
  font-style: italic;
  margin-bottom: 24px;
  line-height: 1.4;
}

/* ── QUOTE / KEY LINE ─────────────────────────────────────── */
.quote-line {
  font-size: 15pt;
  color: var(--cf-orange);
  font-style: italic;
  border-left: 3px solid var(--cf-orange);
  padding-left: 16px;
  margin: 16px 0;
  line-height: 1.5;
}

.big-quote {
  font-size: 22pt;
  font-weight: 500;
  color: var(--cf-text);
  line-height: 1.35;
  margin: 20px 0;
  text-align: center;
}

/* ── CARDS ────────────────────────────────────────────────── */
.card {
  background: var(--cf-bg-card);
  border: 1px solid var(--cf-border);
  border-radius: 10px;
  padding: 20px 24px;
  margin-bottom: 12px;
}

.card.accent {
  border-left: 3px solid var(--cf-orange);
  border-color: var(--cf-border-accent);
  background: var(--cf-orange-muted);
}

.card-title {
  font-family: 'DM Mono', monospace;
  font-size: 9pt;
  font-weight: 500;
  color: var(--cf-orange);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.card h4 {
  font-size: 14pt;
  font-weight: 600;
  color: var(--cf-text);
  margin: 0 0 6px 0;
}

.card p {
  font-size: 12pt;
  color: var(--cf-text-muted);
  margin: 0;
}

/* ── STAT CARDS ───────────────────────────────────────────── */
.stat-card {
  background: var(--cf-bg-card);
  border: 1px solid var(--cf-border);
  border-radius: 10px;
  padding: 18px 20px;
  text-align: center;
}

.stat-number {
  font-family: 'DM Mono', monospace;
  font-size: 26pt;
  font-weight: 700;
  color: var(--cf-orange);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 11pt;
  color: var(--cf-text-muted);
  line-height: 1.4;
}

/* ── NUMBERED LIST ────────────────────────────────────────── */
.numbered-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: item;
}

.numbered-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 12px;
  padding-left: 0;
}

.numbered-list li::before {
  display: none;
}

.num-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--cf-orange);
  color: white;
  font-family: 'DM Mono', monospace;
  font-size: 11pt;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.num-content {
  flex: 1;
}

.num-title {
  font-size: 13pt;
  font-weight: 600;
  color: var(--cf-text);
  margin-bottom: 2px;
}

.num-desc {
  font-size: 12pt;
  color: var(--cf-text-muted);
  line-height: 1.5;
}

/* ── COLUMNS ──────────────────────────────────────────────── */
.cols-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.cols-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 18px;
}

.col-divider {
  border-left: 1px solid var(--cf-border);
  padding-left: 24px;
}

/* ── LAYER DIAGRAM ────────────────────────────────────────── */
.layer-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0;
}

.layer-block {
  background: var(--cf-bg-card);
  border: 1px solid var(--cf-border);
  border-radius: 10px;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.layer-block.observe {
  border-color: rgba(168, 85, 247, 0.4);
  background: rgba(168, 85, 247, 0.07);
}

.layer-block.scope {
  border-color: rgba(243, 128, 32, 0.35);
  background: rgba(243, 128, 32, 0.07);
}

.layer-block.connect {
  border-color: rgba(59, 130, 246, 0.4);
  background: rgba(59, 130, 246, 0.07);
}

.layer-icon {
  font-size: 28pt;
  width: 48px;
  text-align: center;
  flex-shrink: 0;
}

.layer-info {
  flex: 1;
}

.layer-name {
  font-family: 'DM Mono', monospace;
  font-size: 10pt;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 3px;
}

.layer-block.observe .layer-name { color: var(--cf-purple); }
.layer-block.scope .layer-name { color: var(--cf-orange); }
.layer-block.connect .layer-name { color: var(--cf-blue); }

.layer-desc {
  font-size: 12pt;
  color: var(--cf-text-muted);
  line-height: 1.4;
}

/* ── FLOW DIAGRAM ─────────────────────────────────────────── */
.flow-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin: 16px 0;
  overflow: hidden;
}

.flow-step {
  flex: 1;
  text-align: center;
  position: relative;
}

.flow-step:not(:last-child)::after {
  content: '→';
  position: absolute;
  right: -8px;
  top: 20px;
  color: var(--cf-orange);
  font-size: 14pt;
  font-weight: 700;
  z-index: 2;
}

.flow-bubble {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--cf-orange);
  color: white;
  font-family: 'DM Mono', monospace;
  font-size: 13pt;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
}

.flow-step.highlight .flow-bubble {
  background: var(--cf-blue);
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.4);
}

.flow-step.highlight2 .flow-bubble {
  background: var(--cf-red);
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.4);
}

.flow-label {
  font-size: 10pt;
  color: var(--cf-text-muted);
  line-height: 1.3;
}

.flow-tag {
  font-family: 'DM Mono', monospace;
  font-size: 8pt;
  color: var(--cf-orange);
  font-weight: 600;
  display: block;
  margin-top: 3px;
}

/* ── MECHANISM PANELS ─────────────────────────────────────── */
.mechanism-row {
  display: flex;
  gap: 16px;
  margin: 12px 0;
}

.mechanism {
  flex: 1;
  background: var(--cf-bg-card);
  border: 1px solid var(--cf-border);
  border-radius: 10px;
  padding: 16px;
}

.mech-num {
  font-family: 'DM Mono', monospace;
  font-size: 22pt;
  font-weight: 700;
  color: var(--cf-orange);
  line-height: 1;
  margin-bottom: 6px;
}

.mech-title {
  font-size: 11pt;
  font-weight: 700;
  color: var(--cf-text);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mech-desc {
  font-size: 11pt;
  color: var(--cf-text-muted);
  line-height: 1.5;
}

/* ── COMPARISON (split screen) ────────────────────────────── */
.split-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.compare-box {
  background: var(--cf-bg-card);
  border-radius: 10px;
  padding: 20px;
  border: 1px solid var(--cf-border);
}

.compare-box.bad {
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.05);
}

.compare-box.good {
  border-color: rgba(34, 197, 94, 0.3);
  background: rgba(34, 197, 94, 0.05);
}

.compare-label {
  font-family: 'DM Mono', monospace;
  font-size: 9pt;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.compare-box.bad .compare-label { color: var(--cf-red); }
.compare-box.good .compare-label { color: var(--cf-green); }

/* ── CHECKLIST ────────────────────────────────────────────── */
.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.checklist li {
  font-size: 13pt;
  color: var(--cf-text);
  padding-left: 28px;
  position: relative;
  margin-bottom: 10px;
  line-height: 1.5;
}

.checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--cf-green);
  font-weight: 700;
  font-size: 14pt;
}

.checklist li span.sub {
  display: block;
  font-size: 11pt;
  color: var(--cf-text-muted);
  margin-top: 2px;
}

/* ── GUARDRAIL GRID ───────────────────────────────────────── */
.guardrail-group {
  margin-bottom: 14px;
}

.guardrail-group-title {
  font-family: 'DM Mono', monospace;
  font-size: 9pt;
  font-weight: 700;
  color: var(--cf-orange);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--cf-border-accent);
}

.guardrail-items {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.guardrail-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12pt;
  color: var(--cf-text-muted);
}

.g-num {
  font-family: 'DM Mono', monospace;
  font-size: 10pt;
  font-weight: 700;
  color: var(--cf-orange);
  background: var(--cf-orange-muted);
  border: 1px solid var(--cf-orange-border);
  border-radius: 4px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.g-text strong {
  color: var(--cf-text);
}

/* ── STARTING POINT CARDS ─────────────────────────────────── */
.start-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 10px;
}

.start-card {
  background: var(--cf-bg-card);
  border: 1px solid var(--cf-border);
  border-radius: 12px;
  padding: 18px 22px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.start-num {
  font-family: 'DM Mono', monospace;
  font-size: 28pt;
  font-weight: 700;
  color: var(--cf-orange);
  line-height: 1;
  flex-shrink: 0;
  width: 40px;
}

.start-body {}
.start-title {
  font-size: 14pt;
  font-weight: 700;
  color: var(--cf-text);
  margin-bottom: 4px;
}

.start-desc {
  font-size: 12pt;
  color: var(--cf-text-muted);
  line-height: 1.5;
}

.start-tag {
  display: inline-block;
  font-family: 'DM Mono', monospace;
  font-size: 9pt;
  background: var(--cf-orange);
  color: white;
  border-radius: 4px;
  padding: 2px 8px;
  margin-top: 6px;
  letter-spacing: 0.5px;
}

/* ── LANDSCAPE COLUMNS ────────────────────────────────────── */
.landscape-col {
  background: var(--cf-bg-card);
  border: 1px solid var(--cf-border);
  border-radius: 10px;
  padding: 18px;
}

.landscape-col.highlight {
  border-color: var(--cf-orange-border);
  background: var(--cf-orange-muted);
}

.landscape-col-title {
  font-family: 'DM Mono', monospace;
  font-size: 9pt;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
  color: var(--cf-text-muted);
}

.landscape-col.highlight .landscape-col-title {
  color: var(--cf-orange);
}

.landscape-item {
  font-size: 11pt;
  color: var(--cf-text-muted);
  margin-bottom: 8px;
  line-height: 1.4;
}

.landscape-item strong {
  display: block;
  font-size: 12pt;
  color: var(--cf-text);
  font-weight: 600;
}

/* ── TITLE SLIDE ──────────────────────────────────────────── */
.title-slide {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
}

.title-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--cf-orange-muted);
  border: 1px solid var(--cf-orange-border);
  border-radius: 6px;
  padding: 6px 14px;
  font-family: 'DM Mono', monospace;
  font-size: 9pt;
  color: var(--cf-orange);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 28px;
  width: fit-content;
}

.title-main {
  font-size: 46pt;
  font-weight: 700;
  color: var(--cf-text);
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.title-main span {
  color: var(--cf-orange);
}

.title-meta {
  font-size: 13pt;
  color: var(--cf-text-muted);
  line-height: 1.8;
}

.title-meta strong {
  color: var(--cf-text);
  font-size: 14pt;
}

/* ── CLOSE SLIDE ──────────────────────────────────────────── */
.close-quote {
  font-size: 22pt;
  font-weight: 500;
  color: var(--cf-text);
  line-height: 1.45;
  text-align: center;
  margin: 30px 0;
}

.close-quote em {
  color: var(--cf-orange);
}

.contact-block {
  background: var(--cf-bg-card);
  border: 1px solid var(--cf-border);
  border-radius: 10px;
  padding: 20px 28px;
  margin-top: 20px;
}

.contact-name {
  font-size: 16pt;
  font-weight: 700;
  color: var(--cf-text);
  margin-bottom: 6px;
}

.contact-links {
  font-size: 12pt;
  color: var(--cf-text-muted);
  line-height: 1.8;
}

.contact-links a {
  color: var(--cf-orange);
  text-decoration: none;
}

/* ── BOTTOM NOTE ──────────────────────────────────────────── */
.bottom-note {
  font-size: 11pt;
  color: var(--cf-text-dim);
  font-style: italic;
  margin-top: 16px;
}

/* ── SLIDE FOOTER ─────────────────────────────────────────── */
.slide-footer {
  position: absolute;
  bottom: 18px;
  left: 60px;
  right: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'DM Mono', monospace;
  font-size: 8pt;
  color: var(--cf-text-dim);
  border-top: 1px solid var(--cf-border);
  padding-top: 10px;
}

/* ── TAGS / BADGES ────────────────────────────────────────── */
.tag {
  display: inline-block;
  font-family: 'DM Mono', monospace;
  font-size: 9pt;
  border-radius: 4px;
  padding: 2px 8px;
  margin-right: 6px;
  font-weight: 600;
}

.tag.orange { background: var(--cf-orange); color: white; }
.tag.blue   { background: var(--cf-blue); color: white; }
.tag.green  { background: var(--cf-green); color: white; }
.tag.red    { background: var(--cf-red); color: white; }
.tag.outline {
  background: transparent;
  border: 1px solid var(--cf-orange);
  color: var(--cf-orange);
}

/* ── HIGHLIGHT BOX ────────────────────────────────────────── */
.highlight-box {
  background: var(--cf-orange-muted);
  border: 1px solid var(--cf-orange-border);
  border-radius: 8px;
  padding: 14px 20px;
  margin-top: 16px;
}

.highlight-box p {
  color: var(--cf-text);
  font-size: 13pt;
  font-weight: 500;
  margin: 0;
  line-height: 1.5;
}

/* ── REVEAL OVERRIDES ─────────────────────────────────────── */
.reveal .progress {
  background: rgba(255,255,255,0.1);
  height: 3px;
}

.reveal .progress span {
  background: var(--cf-orange);
}

.reveal .controls {
  color: var(--cf-orange);
}

.reveal .slide-number {
  background: transparent;
  color: var(--cf-text-dim);
  font-family: 'DM Mono', monospace;
  font-size: 10pt;
}

/* Speaker notes */
.reveal aside.notes {
  display: none;
}
