/* ═══════════════════════════════════════════════════════════
   style_benchmarks.css  —  Fractal Benchmarks slide deck
   Loaded after style_common.css, before style_theme.css
   ═══════════════════════════════════════════════════════════ */

/* ─── BENCHMARK TOKENS ─── */
:root {
  --bg:        #07070d;
  --bg2:       #0d0d1a;
  --bg3:       #131325;
  --red:       #e8583c;
  --red-dim:   rgba(232,88,60,0.12);
  --red-glow:  rgba(232,88,60,0.22);
  --cyan:      #00d4ff;
  --cyan-dim:  rgba(0,212,255,0.10);
  --cyan-glow: rgba(0,212,255,0.20);
  --purple:    #a855f7;
  --bm-white:  #ffffff;
  --bm-muted:  rgba(255,255,255,0.42);
  --bm-border: rgba(255,255,255,0.07);
  --grid:      rgba(255,255,255,0.028);
  --bebas:     'Bebas Neue', sans-serif;
  /* nav height — used to offset the fullscreen deck */
  --nav-h:     135px;
}

/* ─── OVERRIDE COMMON BODY FOR FULLSCREEN PRESENTATION ─── */
html, body { height: 100%; overflow: hidden; font-size: 18px; }
body        { background: var(--bg); color: var(--bm-white); }

/* ─── GRID BACKGROUND (replaces style_common noise texture) ─── */
body::before {
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 1;
}

/* ─── PROGRESS BAR ─── */
#progress {
  position: fixed; top: var(--nav-h); left: 0; height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--cyan));
  transition: width 0.4s cubic-bezier(0.4,0,0.2,1);
  z-index: 300;
}

/* ─── DECK ─── */
.deck {
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  height: calc(100vh - var(--nav-h));
  width: 100vw;
  z-index: 1;
}

/* ─── SLIDES ─── */
.slide {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  padding: 3.5vh 5vw 7vh;
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s ease;
}
.slide.active { opacity: 1; pointer-events: all; }

/* ─── AMBIENT GLOW ─── */
.slide::after {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none; z-index: -1;
}
.glow-red::after  { background: radial-gradient(ellipse 60% 50% at 15% 85%, var(--red-glow),  transparent); }
.glow-cyan::after { background: radial-gradient(ellipse 60% 50% at 85% 85%, var(--cyan-glow), transparent); }
.glow-both::after { background:
  radial-gradient(ellipse 40% 40% at 10% 90%, var(--red-glow),  transparent),
  radial-gradient(ellipse 40% 40% at 90% 90%, var(--cyan-glow), transparent); }

/* ─── SLIDE HEADER ─── */
.slide-header {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 2.5vh; flex-shrink: 0;
}
.section-tag {
  font-size: 0.6rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  padding: 0.28em 0.8em; border-radius: 2px;
}
.tag-ent  { background: var(--red-dim);  color: var(--red);  border: 1px solid rgba(232,88,60,0.28); }
.tag-mac  { background: var(--cyan-dim); color: var(--cyan); border: 1px solid rgba(0,212,255,0.25); }
.slide-num { font-family: var(--bebas); font-size: 0.8rem; letter-spacing: 0.1em; color: var(--bm-muted); margin-left: auto; }

/* ─── TYPOGRAPHY ─── */
.slide-title {
  font-family: var(--bebas);
  font-size: clamp(2.2rem, 4.2vw, 4rem);
  letter-spacing: 0.04em; line-height: 1;
  margin-bottom: 0.4rem;
}
.slide-sub {
  font-size: 0.78rem; color: var(--bm-muted);
  font-weight: 400; margin-bottom: 2.5vh;
  letter-spacing: 0.02em;
}
.col-r { color: var(--red);    }
.col-c { color: var(--cyan);   }
.col-p { color: var(--purple); }
.label-tag {
  font-size: 0.58rem; font-weight: 700;
  letter-spacing: 0.17em; text-transform: uppercase;
}

/* ═══════════════════════════════════════════
   SLIDE 1 — BILL CYCLE RUNTIME
═══════════════════════════════════════════ */
.s1-layout {
  display: grid; grid-template-columns: 1fr 240px;
  gap: 3vw; flex: 1; align-items: center;
}
.bar-section { display: flex; flex-direction: column; gap: 3vh; }
.bar-row { display: flex; flex-direction: column; gap: 0.6rem; }
.bar-row-head {
  display: flex; justify-content: space-between; align-items: baseline;
}
.bar-row-head-label { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.bar-track {
  height: 44px; background: rgba(255,255,255,0.035);
  border-radius: 3px; position: relative; overflow: visible;
}
.bar {
  height: 100%; border-radius: 3px; width: 0;
  transition: width 1.4s cubic-bezier(0.16,1,0.3,1);
  position: relative; display: flex; align-items: center;
  min-width: 3px;
}
.bar-b { background: linear-gradient(90deg, #a83520, var(--red)); }
.bar-a { background: linear-gradient(90deg, #006b80, var(--cyan)); }
.bar-inner-val {
  font-family: var(--bebas); font-size: 1.05rem;
  letter-spacing: 0.04em; padding: 0 12px; white-space: nowrap;
}
.bar-outer-val {
  position: absolute; left: calc(100% + 10px);
  font-family: var(--bebas); font-size: 1.05rem;
  letter-spacing: 0.04em; color: var(--cyan); white-space: nowrap;
}
.s1-aside {
  background: var(--bg2); border: 1px solid var(--bm-border);
  border-radius: 6px; padding: 2.5vh 1.6vw;
  display: flex; flex-direction: column; gap: 2vh;
}
.aside-stat { display: flex; flex-direction: column; gap: 0.3rem; }
.aside-stat-val { font-family: var(--bebas); font-size: clamp(2rem, 3vw, 2.8rem); letter-spacing: 0.03em; line-height: 1; }
.aside-stat-label { font-size: 0.65rem; color: var(--bm-muted); font-weight: 500; letter-spacing: 0.04em; }
.aside-divider { height: 1px; background: var(--bm-border); }

/* ═══════════════════════════════════════════
   SLIDE 2 — INFRASTRUCTURE COST
═══════════════════════════════════════════ */
.s2-layout {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 2.5vw; flex: 1; align-items: stretch;
}
.cost-card {
  border-radius: 8px; padding: 3vh 2.2vw;
  display: flex; flex-direction: column;
}
.cost-card-b { background: var(--red-dim);  border: 1px solid rgba(232,88,60,0.22); }
.cost-card-a { background: var(--cyan-dim); border: 1px solid rgba(0,212,255,0.18); }
.cost-card-tag { margin-bottom: 1.5vh; }
.cost-big {
  font-family: var(--bebas);
  font-size: clamp(3rem, 5.5vw, 5.5rem);
  letter-spacing: 0.02em; line-height: 1; margin-bottom: 0.3rem;
}
.cost-sub { font-size: 0.72rem; color: var(--bm-muted); margin-bottom: 2.5vh; }
.cost-items { display: flex; flex-direction: column; gap: 0.9vh; margin-top: auto; }
.cost-item {
  display: flex; align-items: flex-start; gap: 0.65rem;
  font-size: 0.75rem; color: rgba(255,255,255,0.65); line-height: 1.4;
}
.ci-dot { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; margin-top: 5px; }
.cost-savings-bar {
  height: 3px; border-radius: 2px; margin-top: 2.5vh;
  background: linear-gradient(90deg, var(--purple), var(--cyan));
  width: 0; transition: width 1.2s cubic-bezier(0.16,1,0.3,1);
}

/* ═══════════════════════════════════════════
   SLIDE 3 — TEAM & TIMELINE
═══════════════════════════════════════════ */
.s3-layout {
  display: grid; grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr; gap: 1.8vw; flex: 1;
}
.quad {
  background: var(--bg2); border: 1px solid var(--bm-border);
  border-radius: 6px; padding: 2.5vh 2vw;
  display: flex; flex-direction: column; justify-content: center;
}
.quad-tag { margin-bottom: 1vh; }
.quad-num {
  font-family: var(--bebas);
  font-size: clamp(3rem, 5vw, 4.8rem);
  letter-spacing: 0.02em; line-height: 1;
}
.quad-desc { font-size: 0.72rem; color: var(--bm-muted); margin-top: 0.4rem; line-height: 1.4; }
.quad-accent-line { height: 2px; width: 32px; border-radius: 1px; margin-bottom: 1.2vh; }

/* ═══════════════════════════════════════════
   SLIDE 4 — RELIABILITY & LICENSING SCORECARD
═══════════════════════════════════════════ */
.scorecard { flex: 1; display: flex; flex-direction: column; gap: 0; }
.sc-head {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1vw; padding-bottom: 1.2vh;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 0.5vh;
}
.sc-col-label { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.sc-row {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1vw; padding: 1.8vh 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  align-items: center;
}
.sc-row:last-child { border-bottom: none; }
.sc-dim   { font-size: 0.82rem; font-weight: 600; color: rgba(255,255,255,0.85); }
.sc-b-val { font-size: 0.76rem; color: rgba(232,88,60,0.88); line-height: 1.4; }
.sc-a-val { font-size: 0.76rem; color: rgba(0,212,255,0.92); line-height: 1.4; }
.sc-pill {
  display: inline-block; font-size: 0.58rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.2em 0.6em; border-radius: 2px; margin-top: 0.3rem;
}
.sc-pill-b { background: rgba(232,88,60,0.12); color: var(--red); }
.sc-pill-a { background: rgba(0,212,255,0.1);  color: var(--cyan); }

/* ═══════════════════════════════════════════
   SLIDE 5 — DATA CORRUPTION RISK (HERO)
═══════════════════════════════════════════ */
.s5-split {
  flex: 1; display: grid; grid-template-columns: 1fr 1px 1fr;
  gap: 4vw; align-items: center;
}
.s5-divider { background: rgba(255,255,255,0.1); align-self: stretch; margin: 2vh 0; }
.s5-panel { display: flex; flex-direction: column; gap: 1.8vh; }
.s5-tag { margin-bottom: 0.5vh; }
.s5-big {
  font-family: var(--bebas);
  font-size: clamp(5rem, 11vw, 10rem);
  letter-spacing: 0.01em; line-height: 0.95;
}
.s5-body { font-size: 0.82rem; color: var(--bm-muted); line-height: 1.65; max-width: 340px; }
.s5-arch {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; margin-top: 0.5vh;
}
.s5-items { display: flex; flex-direction: column; gap: 0.7vh; margin-top: 0.5vh; }
.s5-item {
  display: flex; align-items: flex-start; gap: 0.6rem;
  font-size: 0.72rem; color: rgba(255,255,255,0.55); line-height: 1.4;
}
.s5-bullet { width: 4px; height: 4px; border-radius: 50%; margin-top: 5px; flex-shrink: 0; }

/* ═══════════════════════════════════════════
   SLIDE 6 — ENTERPRISE FOOTPRINT
═══════════════════════════════════════════ */
.s6-layout {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3vw; flex: 1; align-items: center;
}
.fp-panel { display: flex; flex-direction: column; gap: 1.5vh; }
.fp-panel-tag { margin-bottom: 0.3vh; }
.fp-panel-title { font-family: var(--bebas); font-size: clamp(1.6rem, 2.8vw, 2.5rem); letter-spacing: 0.06em; line-height: 1; margin-bottom: 1vh; }
.rack-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; margin: 0.8vh 0; }
.rack-u {
  aspect-ratio: 1.8; border-radius: 2px;
  background: rgba(232,88,60,0.18); border: 1px solid rgba(232,88,60,0.28);
}
.fractal-boxes { display: flex; gap: 6px; flex-wrap: wrap; margin: 0.8vh 0; }
.f-box {
  width: 34px; height: 34px; border-radius: 3px;
  background: rgba(0,212,255,0.14); border: 1px solid rgba(0,212,255,0.36);
}
.fp-stats { display: flex; flex-direction: column; }
.fp-stat {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 1vh 0; border-bottom: 1px solid rgba(255,255,255,0.05);
}
.fp-stat:last-child { border-bottom: none; }
.fp-stat-label { font-size: 0.7rem; color: var(--bm-muted); }
.fp-stat-b { font-family: var(--bebas); font-size: 1.25rem; letter-spacing: 0.04em; color: var(--red); }
.fp-stat-a { font-family: var(--bebas); font-size: 1.25rem; letter-spacing: 0.04em; color: var(--cyan); }
.fp-vs { font-size: 0.6rem; color: var(--bm-muted); margin: 0 0.4rem; }

/* ═══════════════════════════════════════════
   SLIDE 7 — DATA CENTER EQUATION
═══════════════════════════════════════════ */
.s7-layout {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2vw; flex: 1; align-items: stretch;
}
.macro-card {
  background: var(--bg2); border: 1px solid var(--bm-border);
  border-radius: 8px; padding: 3vh 2vw;
  display: flex; flex-direction: column; gap: 1.4vh;
  position: relative; overflow: hidden;
}
.macro-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
}
.mc-energy::before  { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.mc-carbon::before  { background: linear-gradient(90deg, #10b981, #34d399); }
.mc-cost::before    { background: linear-gradient(90deg, var(--purple), var(--cyan)); }
.mc-icon { font-size: 1.4rem; }
.mc-num {
  font-family: var(--bebas);
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  letter-spacing: 0.02em; line-height: 1; color: var(--cyan);
}
.mc-energy .mc-num  { color: #fbbf24; }
.mc-carbon .mc-num  { color: #34d399; }
.mc-cost   .mc-num  { color: var(--purple); }
.mc-label  { font-size: 0.82rem; font-weight: 700; color: var(--bm-white); }
.mc-ctx    { font-size: 0.68rem; color: var(--bm-muted); line-height: 1.55; }
.mc-source { font-size: 0.58rem; color: rgba(255,255,255,0.25); margin-top: auto; font-style: italic; }

/* ═══════════════════════════════════════════
   SLIDE 8 — THE CHOICE
═══════════════════════════════════════════ */
.s8-layout {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 2.5vw; flex: 1; align-items: stretch;
}
.choice-col {
  border-radius: 8px; padding: 3vh 2.5vw;
  display: flex; flex-direction: column; gap: 0;
}
.choice-b { background: rgba(232,88,60,0.06); border: 1px solid rgba(232,88,60,0.18); }
.choice-a { background: rgba(0,212,255,0.05);  border: 1px solid rgba(0,212,255,0.18); }
.choice-title {
  font-family: var(--bebas);
  font-size: clamp(1.4rem, 2.4vw, 2.2rem);
  letter-spacing: 0.06em; margin-bottom: 2vh;
}
.choice-item {
  display: flex; align-items: flex-start; gap: 0.8rem;
  font-size: 0.78rem; color: rgba(255,255,255,0.7);
  line-height: 1.45; padding: 0.85vh 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.choice-item:last-of-type { border-bottom: none; }
.ci-marker { width: 4px; height: 4px; border-radius: 50%; margin-top: 6px; flex-shrink: 0; }
.s8-tagline {
  grid-column: 1 / -1; text-align: center;
  padding-top: 2vh; margin-top: 1vh;
  border-top: 1px solid var(--bm-border);
  font-family: var(--bebas);
  font-size: clamp(1.1rem, 2vw, 1.7rem);
  letter-spacing: 0.08em; color: var(--bm-muted);
}

/* ─── NAV DOTS ─── */
.nav-dots {
  position: fixed; bottom: 2.2vh; left: 50%; transform: translateX(-50%);
  display: flex; gap: 7px; z-index: 200; align-items: center;
}
.dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,0.18); cursor: pointer;
  transition: all 0.3s ease;
}
.dot:hover { background: rgba(255,255,255,0.4); }
.dot.active { background: var(--cyan); width: 22px; border-radius: 3px; }

/* ─── WORDMARK & HINT ─── */
.wordmark {
  position: fixed; bottom: 1.8vh; left: 2vw;
  font-family: var(--bebas); font-size: 0.9rem;
  letter-spacing: 0.3em; color: rgba(255,255,255,0.13); z-index: 200;
}
.key-hint {
  position: fixed; bottom: 1.8vh; right: 2vw;
  font-size: 0.58rem; color: rgba(255,255,255,0.15);
  letter-spacing: 0.06em; z-index: 200;
}

/* ─── ENTRY ANIMATION ─── */
.fa {
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.slide.active .fa          { opacity: 1; transform: none; }
.slide.active .fa:nth-child(1) { transition-delay: 0.04s; }
.slide.active .fa:nth-child(2) { transition-delay: 0.13s; }
.slide.active .fa:nth-child(3) { transition-delay: 0.22s; }
.slide.active .fa:nth-child(4) { transition-delay: 0.31s; }
.slide.active .fa:nth-child(5) { transition-delay: 0.40s; }
.slide.active .fa:nth-child(6) { transition-delay: 0.49s; }
.slide.active .fa:nth-child(7) { transition-delay: 0.58s; }

/* ─── MOBILE ─── */
@media (max-width: 767px) {
  :root { --nav-h: 127px; }
}

/* ══════════════════════════════════════════════════════════
   LIGHT MODE — benchmark-specific token overrides
   ══════════════════════════════════════════════════════════ */
[data-theme="light"] {
  --bg:        #f0f0e8;
  --bg2:       #e6e6de;
  --bg3:       #dcdcd4;
  --red:       #c93820;
  --red-dim:   rgba(201,56,32,0.10);
  --red-glow:  rgba(201,56,32,0.16);
  --cyan:      #0089a6;
  --cyan-dim:  rgba(0,137,166,0.10);
  --cyan-glow: rgba(0,137,166,0.18);
  --purple:    #7c3aed;
  --bm-white:  #07070d;
  --bm-muted:  rgba(0,0,0,0.45);
  --bm-border: rgba(0,0,0,0.10);
  --grid:      rgba(0,0,0,0.025);
}

/* Light mode: keep grid overlay at full opacity */
[data-theme="light"] body::before { opacity: 1; }

/* Light mode: slides with hardcoded rgba white values */
[data-theme="light"] .cost-item         { color: rgba(0,0,0,0.6); }
[data-theme="light"] .choice-item       { color: rgba(0,0,0,0.65); }
[data-theme="light"] .s5-item           { color: rgba(0,0,0,0.5); }
[data-theme="light"] .bar-track         { background: rgba(0,0,0,0.06); }
[data-theme="light"] .sc-row            { border-bottom-color: rgba(0,0,0,0.05); }
[data-theme="light"] .sc-head           { border-bottom-color: rgba(0,0,0,0.12); }
[data-theme="light"] .sc-dim            { color: rgba(0,0,0,0.8); }
[data-theme="light"] .sc-b-val          { color: var(--red); }
[data-theme="light"] .sc-a-val          { color: var(--cyan); }
[data-theme="light"] .sc-pill-b         { background: rgba(201,56,32,0.10); }
[data-theme="light"] .sc-pill-a         { background: rgba(0,137,166,0.10); }
[data-theme="light"] .s5-divider        { background: rgba(0,0,0,0.12); }
[data-theme="light"] .s8-tagline        { border-top-color: rgba(0,0,0,0.1); }
[data-theme="light"] .fp-stat           { border-bottom-color: rgba(0,0,0,0.06); }
[data-theme="light"] .mc-label          { color: var(--bm-white); }
[data-theme="light"] .mc-source         { color: rgba(0,0,0,0.25); }
[data-theme="light"] .aside-divider     { background: rgba(0,0,0,0.1); }
[data-theme="light"] .wordmark          { color: rgba(0,0,0,0.12); }
[data-theme="light"] .key-hint          { color: rgba(0,0,0,0.18); }
[data-theme="light"] .dot               { background: rgba(0,0,0,0.18); }
[data-theme="light"] .dot:hover         { background: rgba(0,0,0,0.4); }
[data-theme="light"] .dot.active        { background: var(--cyan); }
[data-theme="light"] #progress          { background: linear-gradient(90deg, var(--purple), var(--cyan)); }
