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

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: #020408;
  overflow: hidden;
  font-family: 'Inter', sans-serif;
  color: #c0d0e0;
  width: 100vw;
  height: 100vh;
}

/* ── Helix Area ──────────────────────────────────────────── */
.helix-area {
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  z-index: 1;
  transition: width 0.8s ease, opacity 0.8s ease;
}
.helix-area canvas { display: block; }

/* ── Content Area ────────────────────────────────────────── */
.content-area {
  position: fixed;
  top: 0;
  height: 100vh;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 48px 50px 110px 36px;
  overflow-y: auto;
  overflow-x: hidden;
  transition: width 0.8s ease, left 0.8s ease;
}

/* scrollbar */
.content-area::-webkit-scrollbar { width: 4px; }
.content-area::-webkit-scrollbar-track { background: transparent; }
.content-area::-webkit-scrollbar-thumb { background: rgba(0,200,255,0.15); border-radius: 2px; }

/* ── Layout Modes ────────────────────────────────────────── */
body.helix-hero .helix-area   { width: 42%; opacity: 1; overflow: visible; pointer-events: none; }
body.helix-hero .content-area { left: 42%; width: 58%; }

body.helix-aside .helix-area   { width: 28%; opacity: 1; }
body.helix-aside .content-area { left: 28%; width: 72%; }

body.helix-backdrop .helix-area   { width: 100%; opacity: 0.10; }
body.helix-backdrop .content-area { left: 0; width: 100%; padding-left: 10%; padding-right: 10%; }

body.helix-hidden .helix-area   { width: 0; opacity: 0; }
body.helix-hidden .content-area { left: 0; width: 100%; padding-left: 10%; padding-right: 10%; }

/* ── Top Image (above slide-panel) ───────────────────────── */
.slide-image-top {
  width: 100%;
  max-width: 860px;
  margin-bottom: 12px;
}
.slide-image-top img {
  width: 100%;
  border-radius: 4px;
  border: 1px solid rgba(0, 200, 255, 0.15);
  display: block;
}
.slide-image-top .caption {
  text-align: center;
  font-size: 13px;
  color: #607080;
  margin-top: 6px;
  letter-spacing: 0.5px;
}

/* ── Slide Panel ─────────────────────────────────────────── */
.slide-panel {
  background: rgba(5, 15, 30, 0.88);
  border-left: 1px solid rgba(0, 200, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 40px 40px 32px;
  border-radius: 4px;
  width: 100%;
  max-width: 860px;
  margin-top: 10px;
  transition: opacity 0.4s ease;
}

body.helix-backdrop .slide-panel,
body.helix-hidden .slide-panel {
  background: rgba(5, 15, 30, 0.92);
  max-width: 920px;
}

.slide-panel.fade-out { opacity: 0; }

/* ── Title ───────────────────────────────────────────────── */
.slide-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 28px;
  line-height: 1.25;
  text-shadow: 0 0 30px rgba(0, 200, 255, 0.2);
}

/* ── Step Items ──────────────────────────────────────────── */
.step-item {
  margin-bottom: 10px;
  transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.5s ease,
              max-height 0.5s ease;
  position: relative;
  transform: translateY(0);
}

.step-item.future {
  opacity: 0.2;
  color: #607080;
}

.step-item.past {
  opacity: 1;
}

.step-item.active {
  opacity: 1;
}

/* ── Bullet ──────────────────────────────────────────────── */
.step-bullet {
  font-size: 22px;
  line-height: 1.65;
  padding: 8px 16px;
  border-left: 3px solid transparent;
  border-radius: 2px;
  transition: border-color 0.4s ease, background 0.4s ease, color 0.4s ease;
}

.step-item.active .step-bullet {
  color: #ffffff;
  border-left-color: #00e5ff;
  background: rgba(0, 200, 255, 0.04);
  text-shadow: 0 0 20px rgba(0, 229, 255, 0.1);
}

.step-item.past .step-bullet {
  color: #ffffff;
  border-left-color: #00e5ff;
  background: rgba(0, 200, 255, 0.04);
  text-shadow: 0 0 20px rgba(0, 229, 255, 0.1);
}

/* ── Heading (sub-heading within slide) ──────────────────── */
.step-heading {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: #00e5ff;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 16px;
  margin-top: 6px;
}

.step-item.past .step-heading { color: #00e5ff; }

/* ── Big text ────────────────────────────────────────────── */
.step-big {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  padding: 20px 16px;
  text-shadow: 0 0 40px rgba(0, 200, 255, 0.3);
  letter-spacing: 2px;
}

.step-item.future .step-big { color: #607080; text-shadow: none; }
.step-item.past .step-big { }

/* ── Code Block ──────────────────────────────────────────── */
.step-code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  line-height: 1.55;
  background: rgba(0, 10, 20, 0.7);
  border: 1px solid rgba(0, 200, 255, 0.1);
  border-radius: 4px;
  padding: 16px 20px;
  white-space: pre;
  overflow-x: auto;
  color: #a0b8c8;
  margin: 4px 0;
}

.step-item.active .step-code {
  border-color: rgba(0, 200, 255, 0.25);
  color: #c0dce8;
}

.step-code .hl-key { color: #00e5ff; }
.step-code .hl-val { color: #44ff88; }
.step-code .hl-warn { color: #ff4444; }
.step-code .hl-dim { color: #556677; }
.step-code .hl-accent { color: #ffaa00; }

/* ── Image ───────────────────────────────────────────────── */
.step-image {
  text-align: center;
  padding: 4px 0;
}

.step-image img {
  max-width: 100%;
  max-height: 340px;
  border-radius: 4px;
  border: 1px solid rgba(0, 200, 255, 0.1);
  object-fit: contain;
}

.step-item.active .step-image img {
  border-color: rgba(0, 200, 255, 0.25);
  box-shadow: 0 0 20px rgba(0, 200, 255, 0.08);
}

.step-image .caption {
  font-size: 13px;
  color: #607080;
  margin-top: 6px;
  letter-spacing: 1px;
}

/* ── Cards Grid ──────────────────────────────────────────── */
.step-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  padding: 4px 0;
}

.card-item {
  background: rgba(0, 20, 40, 0.5);
  border: 1px solid rgba(0, 200, 255, 0.08);
  border-radius: 4px;
  padding: 12px 14px;
  font-size: 15px;
  line-height: 1.45;
  transition: border-color 0.4s, background 0.4s;
}

.step-item.active .card-item {
  border-color: rgba(0, 200, 255, 0.2);
  background: rgba(0, 30, 50, 0.5);
}

.card-item .card-icon {
  font-size: 22px;
  margin-bottom: 4px;
  display: block;
}

.card-item .card-label {
  font-weight: 600;
  color: #ffffff;
  display: block;
  margin-bottom: 2px;
  font-size: 14px;
}

.card-item .card-desc {
  font-size: 13px;
  color: #8898a8;
}

/* ── Table ───────────────────────────────────────────────── */
.step-table {
  width: 100%;
  overflow-x: auto;
  padding: 4px 0;
}

.step-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.step-table th {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #00e5ff;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(0, 200, 255, 0.2);
  text-align: left;
}

.step-table td {
  padding: 8px 12px;
  border-bottom: 1px solid rgba(0, 200, 255, 0.06);
  color: #a0b8c8;
}

.step-table tr:last-child td { border-bottom: none; }
.step-table tr.dim td { color: #556677; font-style: italic; }

/* ── Two-column layout ───────────────────────────────────── */
.step-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 4px 0;
}

.col-box {
  background: rgba(0, 20, 40, 0.4);
  border: 1px solid rgba(0, 200, 255, 0.08);
  border-radius: 4px;
  padding: 14px 16px;
}

.col-box.fail { border-color: rgba(255, 68, 68, 0.2); }
.col-box.success { border-color: rgba(68, 255, 136, 0.2); }

.col-box .col-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.col-box.fail .col-title { color: #ff6666; }
.col-box.success .col-title { color: #44ff88; }

.col-box p {
  font-size: 14px;
  line-height: 1.55;
  color: #8898a8;
}

/* ── Highlighted stat ────────────────────────────────────── */
.step-stat {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 8px 16px;
  flex-wrap: wrap;
}

.stat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 42px;
  font-weight: 700;
  color: #00e5ff;
  text-shadow: 0 0 20px rgba(0, 200, 255, 0.3);
}

.stat-label {
  font-size: 18px;
  color: #8898a8;
}

.step-item.past .stat-num { }

/* ── Highlight box ───────────────────────────────────────── */
.step-highlight {
  background: rgba(0, 200, 255, 0.06);
  border: 1px solid rgba(0, 200, 255, 0.15);
  border-radius: 4px;
  padding: 14px 18px;
  font-size: 18px;
  line-height: 1.6;
  color: #e0f0ff;
  margin: 4px 0;
}

.step-item.past .step-highlight { }

/* ── Flowchart (styled pre) ──────────────────────────────── */
.step-flow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  line-height: 1.4;
  padding: 16px 20px;
  white-space: pre;
  overflow-x: auto;
  color: #6a8a9a;
}

.step-item.active .step-flow { color: #90b8c8; }
.step-flow .fl-blue { color: #00aaff; }
.step-flow .fl-green { color: #44dd88; }
.step-flow .fl-red { color: #ff5566; }
.step-flow .fl-yellow { color: #ffaa44; }

/* ── Flowchart ───────────────────────────────────────────── */
.flow-chart {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 8px 0;
  width: 100%;
}
.flow-node {
  padding: 9px 18px;
  border-radius: 6px;
  font-size: 14px;
  text-align: center;
  max-width: 440px;
  width: 100%;
  line-height: 1.4;
}
.flow-input {
  background: rgba(0, 229, 255, 0.10);
  border: 1.5px solid rgba(0, 229, 255, 0.5);
  color: #00e5ff;
  font-weight: 700;
  font-size: 15px;
}
.flow-seq {
  background: rgba(0, 229, 255, 0.05);
  border: 1px solid rgba(0, 229, 255, 0.25);
  color: #c0e8f0;
}
.flow-par {
  background: rgba(68, 255, 136, 0.06);
  border: 1px solid rgba(68, 255, 136, 0.3);
  color: #a0f0c0;
  font-size: 13px;
  padding: 7px 8px;
  flex: 1;
  min-width: 0;
}
.flow-output {
  background: rgba(255, 68, 68, 0.10);
  border: 1.5px solid rgba(255, 68, 68, 0.5);
  color: #ff7777;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.5px;
}
.flow-result {
  background: rgba(68, 255, 136, 0.10);
  border: 1.5px solid rgba(68, 255, 136, 0.5);
  color: #44ff88;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.5px;
}
.flow-connector {
  width: 2px;
  height: 16px;
  background: rgba(0, 229, 255, 0.3);
}
.flow-connector::after {
  content: '';
  display: block;
  width: 0; height: 0;
  margin-left: -4px;
  margin-top: -1px;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid rgba(0, 229, 255, 0.4);
}
.flow-split {
  width: 82%;
  height: 14px;
  border-left: 2px solid rgba(0, 229, 255, 0.25);
  border-right: 2px solid rgba(0, 229, 255, 0.25);
  border-top: 2px solid rgba(0, 229, 255, 0.25);
  border-radius: 6px 6px 0 0;
}
.flow-parallel {
  display: flex;
  gap: 6px;
  width: 82%;
}
.flow-merge {
  width: 82%;
  height: 14px;
  border-left: 2px solid rgba(0, 229, 255, 0.25);
  border-right: 2px solid rgba(0, 229, 255, 0.25);
  border-bottom: 2px solid rgba(0, 229, 255, 0.25);
  border-radius: 0 0 6px 6px;
}

/* ── Navigation ──────────────────────────────────────────── */
.nav-bar {
  position: fixed;
  top: 26px;
  right: 26px;
  display: flex;
  gap: 10px;
  z-index: 20;
  align-items: center;
}

.nav-btn {
  background: transparent;
  border: 1px solid rgba(0, 200, 255, 0.25);
  color: rgba(0, 200, 255, 0.63);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  transition: all 0.25s ease;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-btn:hover {
  background: rgba(0, 200, 255, 0.1);
  border-color: rgba(0, 200, 255, 0.6);
  color: #00e5ff;
  box-shadow: 0 0 12px rgba(0, 200, 255, 0.1);
}

.nav-btn.slide-nav {
  border-color: rgba(0, 200, 255, 0.13);
  color: rgba(0, 200, 255, 0.38);
  font-size: 14px;
  width: 36px;
  height: 36px;
}

.nav-btn.slide-nav:hover {
  border-color: rgba(0, 200, 255, 0.4);
  color: rgba(0, 200, 255, 0.8);
}

.nav-sep {
  width: 1px;
  height: 24px;
  background: rgba(0, 200, 255, 0.13);
  margin: 0 4px;
}

.nav-caption {
  position: fixed;
  top: 78px;
  right: 26px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  color: rgba(0, 200, 255, 0.25);
  letter-spacing: 0.5px;
  z-index: 20;
  text-align: right;
}

.slide-counter {
  position: fixed;
  bottom: 34px;
  right: 36px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  letter-spacing: 3px;
  color: rgba(0, 200, 255, 0.3);
  z-index: 20;
}

.step-dots {
  position: fixed;
  bottom: 34px;
  left: 36px;
  display: flex;
  gap: 6px;
  z-index: 20;
}

.step-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(0, 200, 255, 0.15);
  transition: background 0.3s, transform 0.3s;
}

.step-dot.active {
  background: #00e5ff;
  transform: scale(1.4);
}

.step-dot.past {
  background: rgba(0, 200, 255, 0.35);
}

/* ── Overlays ────────────────────────────────────────────── */
.scan-line {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: repeating-linear-gradient(
    0deg, transparent, transparent 2px,
    rgba(0, 0, 0, 0.03) 2px, rgba(0, 0, 0, 0.03) 4px
  );
  pointer-events: none;
  z-index: 50;
}

.vignette {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.65) 100%);
  pointer-events: none;
  z-index: 49;
}

/* ── Inline text styling ─────────────────────────────────── */
strong, b { color: #ffffff; font-weight: 600; }
em, i { color: #00ccdd; font-style: normal; }
.cyan { color: #00e5ff; }
.green { color: #44ff88; }
.red { color: #ff5566; }
.yellow { color: #ffaa44; }
.dim { color: #556677; }
