/* ============================================
   BYBIT HACK PRESENTATION — STYLES
   Aesthetic: Dark Cyber / Acid Neon
   Palette: #0D0D0D, #1A1A2E, #CCFF00, #FF3CAC
   Fonts: Syne (display) + Space Mono (code/body)
   ============================================ */

:root {
  --bg-deep: #0A0A0F;
  --bg-card: #111118;
  --bg-panel: #16161F;
  --accent-green: #CCFF00;
  --accent-pink: #FF3CAC;
  --accent-blue: #00D4FF;
  --text-primary: #F0EEE8;
  --text-secondary: #8A8A9A;
  --text-code: #CCFF00;
  --border: rgba(204, 255, 0, 0.15);
  --border-bright: rgba(204, 255, 0, 0.4);
  --glow-green: 0 0 20px rgba(204, 255, 0, 0.3);
  --glow-pink: 0 0 20px rgba(255, 60, 172, 0.3);
}

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

html, body {
  width: 100%; height: 100%;
  overflow: hidden;
  background: var(--bg-deep);
  font-family: 'Space Mono', monospace;
  color: var(--text-primary);
}

/* ── GRID BACKGROUND ── */
.grid-bg {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(204,255,0,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(204,255,0,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

/* ── SCAN LINE ── */
.scan-line {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(204,255,0,0.03) 50%,
    transparent 100%
  );
  animation: scan 6s linear infinite;
  pointer-events: none;
}
@keyframes scan {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

/* ── SLIDES ── */
.slide {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  padding: 48px 64px 80px;
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
  overflow: hidden;
}
.slide.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: all;
}
.slide.exit {
  opacity: 0;
  transform: translateX(-60px);
}

/* ── ACCENT ── */
.accent { color: var(--accent-green); }

/* ── SLIDE NUMBER ── */
.slide-number {
  position: absolute; bottom: 28px; right: 64px;
  font-family: 'Space Mono', monospace;
  font-size: 11px; letter-spacing: 3px;
  color: var(--text-secondary);
  z-index: 10;
}

/* ── SLIDE HEADER ── */
.slide-header { margin-bottom: 32px; z-index: 2; }
.slide-tag {
  display: inline-block;
  font-size: 10px; letter-spacing: 4px;
  color: var(--accent-green);
  border: 1px solid var(--border-bright);
  padding: 4px 12px; margin-bottom: 12px;
  text-transform: uppercase;
}
.slide-header h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800; line-height: 1.1;
  color: var(--text-primary);
}

/* ══════════════════════════════════════
   SLIDE 1 — TITLE
══════════════════════════════════════ */
.slide-title { justify-content: center; }

.title-content { position: relative; z-index: 2; max-width: 700px; }

.tag-line {
  font-size: 10px; letter-spacing: 5px;
  color: var(--accent-green);
  margin-bottom: 20px;
  display: flex; align-items: center; gap: 8px;
}
.tag-line::before {
  content: ''; display: inline-block;
  width: 32px; height: 1px;
  background: var(--accent-green);
}

.main-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(52px, 8vw, 96px);
  font-weight: 800; line-height: 0.95;
  letter-spacing: -2px;
  color: var(--text-primary);
  margin-bottom: 24px;
}
.main-title .accent {
  color: var(--accent-green);
  text-shadow: var(--glow-green);
}

.subtitle {
  font-family: 'Space Mono', monospace;
  font-size: clamp(13px, 1.4vw, 16px);
  color: var(--text-secondary);
  line-height: 1.7; margin-bottom: 40px;
}

.title-meta {
  display: flex; flex-direction: column; gap: 10px;
}
.meta-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: 2px;
  color: var(--text-secondary);
}
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  flex-shrink: 0;
}
.dot.red { background: #FF3CAC; box-shadow: 0 0 8px #FF3CAC; }
.dot.yellow { background: #FFD700; box-shadow: 0 0 8px #FFD700; }
.dot.green { background: var(--accent-green); box-shadow: var(--glow-green); }

/* Hex decorations */
.hex-decoration { position: absolute; right: 60px; top: 50%; transform: translateY(-50%); z-index: 1; }
.hex {
  position: absolute;
  border: 1px solid var(--border);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}
.hex.h1 { width: 280px; height: 280px; top: -140px; right: 0; border-color: rgba(204,255,0,0.08); background: rgba(204,255,0,0.02); }
.hex.h2 { width: 180px; height: 180px; top: -40px; right: 60px; border-color: rgba(255,60,172,0.12); background: rgba(255,60,172,0.02); animation: pulse 4s ease-in-out infinite; }
.hex.h3 { width: 100px; height: 100px; top: 60px; right: 20px; border-color: rgba(0,212,255,0.15); background: rgba(0,212,255,0.03); animation: pulse 3s ease-in-out infinite 1s; }
@keyframes pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

/* ══════════════════════════════════════
   SLIDE 2 — WHAT HAPPENED
══════════════════════════════════════ */
.what-layout {
  display: grid; grid-template-columns: 1fr 280px;
  gap: 40px; flex: 1; z-index: 2; align-items: start;
}
.lead-text {
  font-family: 'Syne', sans-serif;
  font-size: clamp(14px, 1.5vw, 17px);
  line-height: 1.7; color: var(--text-primary);
  margin-bottom: 20px;
}
.body-text {
  font-size: 13px; line-height: 1.8;
  color: var(--text-secondary); margin-bottom: 16px;
}
.body-text strong { color: var(--text-primary); }

.what-stats {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 20px 16px; text-align: center;
  position: relative; overflow: hidden;
}
.stat-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: var(--accent-green);
}
.stat-value {
  font-family: 'Syne', sans-serif;
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 800; color: var(--text-primary);
  margin-bottom: 6px;
}
.stat-value.accent { color: var(--accent-green); text-shadow: var(--glow-green); }
.stat-label {
  font-size: 9px; letter-spacing: 2px;
  color: var(--text-secondary); text-transform: uppercase;
}

/* ══════════════════════════════════════
   SLIDE 3 — ATTACK VECTOR
══════════════════════════════════════ */
.vector-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px; flex: 1; z-index: 2;
}
.vector-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 24px 20px;
  transition: border-color 0.3s, transform 0.3s;
  position: relative; overflow: hidden;
}
.vector-card:hover {
  border-color: var(--border-bright);
  transform: translateY(-3px);
}
.vector-card.primary {
  border-color: rgba(204,255,0,0.3);
  background: linear-gradient(135deg, rgba(204,255,0,0.05), var(--bg-card));
}
.vector-card::after {
  content: ''; position: absolute;
  bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-green), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.vector-card:hover::after { opacity: 1; }
.vector-icon { font-size: 28px; margin-bottom: 12px; }
.vector-card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 14px; font-weight: 700;
  color: var(--text-primary); margin-bottom: 10px;
}
.vector-card p {
  font-size: 11.5px; line-height: 1.7;
  color: var(--text-secondary);
}
.vector-card code {
  font-family: 'Space Mono', monospace;
  font-size: 10px; color: var(--accent-green);
  background: rgba(204,255,0,0.08);
  padding: 1px 5px;
}

/* ══════════════════════════════════════
   SLIDE 4 — ATTACK FLOW
══════════════════════════════════════ */
.slide-flow { padding-bottom: 80px; }
.flow-timeline {
  display: flex; flex-direction: column;
  gap: 0; flex: 1; z-index: 2;
  overflow-y: auto; padding-right: 8px;
}
.flow-timeline::-webkit-scrollbar { width: 3px; }
.flow-timeline::-webkit-scrollbar-track { background: transparent; }
.flow-timeline::-webkit-scrollbar-thumb { background: var(--border-bright); }

.flow-step {
  display: flex; gap: 20px; align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-green);
  padding: 16px 20px;
  transition: background 0.2s;
}
.flow-step:hover { background: var(--bg-panel); }
.step-num {
  font-family: 'Syne', sans-serif;
  font-size: 22px; font-weight: 800;
  color: var(--accent-green);
  opacity: 0.4; min-width: 36px;
  line-height: 1;
}
.step-content { flex: 1; }
.step-date {
  font-size: 9px; letter-spacing: 3px;
  color: var(--accent-pink); margin-bottom: 4px;
}
.step-content h4 {
  font-family: 'Syne', sans-serif;
  font-size: 14px; font-weight: 700;
  color: var(--text-primary); margin-bottom: 6px;
}
.step-content p {
  font-size: 11.5px; line-height: 1.6;
  color: var(--text-secondary);
}
.step-content code {
  font-family: 'Space Mono', monospace;
  font-size: 10px; color: var(--accent-green);
  background: rgba(204,255,0,0.08); padding: 1px 5px;
}
.flow-arrow {
  text-align: center; color: var(--border-bright);
  font-size: 14px; line-height: 1; padding: 2px 0;
}

/* ══════════════════════════════════════
   SLIDE 5 — ROOT CAUSES
══════════════════════════════════════ */
.causes-layout {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px; flex: 1; z-index: 2;
}
.cause-item {
  display: flex; gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 20px;
  transition: border-color 0.3s;
}
.cause-item:hover { border-color: var(--border-bright); }
.cause-num {
  font-family: 'Syne', sans-serif;
  font-size: 32px; font-weight: 800;
  color: var(--accent-green); opacity: 0.2;
  line-height: 1; min-width: 44px;
}
.cause-body h4 {
  font-family: 'Syne', sans-serif;
  font-size: 13px; font-weight: 700;
  color: var(--text-primary); margin-bottom: 8px;
}
.cause-body p {
  font-size: 11px; line-height: 1.7;
  color: var(--text-secondary);
}

/* ══════════════════════════════════════
   SLIDE 6 — PREVENTION
══════════════════════════════════════ */
.prevention-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 12px; flex: 1; z-index: 2;
}
.prev-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 18px 16px;
  display: flex; flex-direction: column; gap: 8px;
  transition: border-color 0.3s, transform 0.3s;
  position: relative;
}
.prev-card:hover {
  border-color: var(--border-bright);
  transform: translateY(-4px);
  box-shadow: var(--glow-green);
}
.prev-icon { font-size: 24px; }
.prev-card h4 {
  font-family: 'Syne', sans-serif;
  font-size: 12px; font-weight: 700;
  color: var(--text-primary); line-height: 1.3;
}
.prev-card p {
  font-size: 10.5px; line-height: 1.6;
  color: var(--text-secondary); flex: 1;
}
.prev-tag {
  font-size: 8px; letter-spacing: 2px;
  color: var(--accent-green);
  border: 1px solid var(--border);
  padding: 2px 6px; align-self: flex-start;
  margin-top: auto;
}

/* ══════════════════════════════════════
   SLIDE 7 — KEY TAKEAWAYS
══════════════════════════════════════ */
.takeaways-layout {
  display: grid; grid-template-columns: 340px 1fr;
  gap: 40px; flex: 1; z-index: 2; align-items: start;
}
.takeaway-big {
  background: linear-gradient(135deg, rgba(204,255,0,0.08), rgba(255,60,172,0.05));
  border: 1px solid var(--border-bright);
  padding: 32px 28px;
  position: relative;
}
.takeaway-big::before {
  content: '"'; position: absolute;
  top: -20px; left: 20px;
  font-family: 'Syne', sans-serif;
  font-size: 80px; color: var(--accent-green);
  opacity: 0.3; line-height: 1;
}
.takeaway-quote {
  font-family: 'Syne', sans-serif;
  font-size: clamp(15px, 1.6vw, 18px);
  font-weight: 700; line-height: 1.5;
  color: var(--text-primary);
  font-style: italic;
}

.takeaways-list {
  display: flex; flex-direction: column; gap: 16px;
}
.tk-item {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: border-color 0.3s;
}
.tk-item:hover { border-color: var(--border-bright); }
.tk-icon {
  font-size: 10px; color: var(--text-secondary);
  margin-top: 4px; flex-shrink: 0;
}
.tk-icon.accent { color: var(--accent-green); }
.tk-text {
  font-size: 12px; line-height: 1.6;
  color: var(--text-secondary);
}
.tk-text strong { color: var(--text-primary); }

/* ══════════════════════════════════════
   SLIDE 8 — CONCLUSION
══════════════════════════════════════ */
.slide-conclusion { justify-content: center; }
.conclusion-content {
  position: relative; z-index: 2;
  max-width: 820px; margin: 0 auto;
}
.conclusion-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 800; line-height: 1.15;
  color: var(--text-primary);
  margin: 16px 0 28px;
}
.conclusion-body {
  font-size: 13px; line-height: 1.8;
  color: var(--text-secondary); margin-bottom: 16px;
}
.conclusion-body strong { color: var(--text-primary); }

.conclusion-cta {
  display: flex; gap: 16px; margin: 32px 0 28px;
  flex-wrap: wrap;
}
.cta-item {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  padding: 14px 20px;
  font-size: 12px; color: var(--text-primary);
  flex: 1; min-width: 200px;
  transition: background 0.3s, box-shadow 0.3s;
}
.cta-item:hover {
  background: rgba(204,255,0,0.05);
  box-shadow: var(--glow-green);
}
.cta-icon { font-size: 20px; }

.conclusion-footer { margin-top: 24px; }
.footer-tag {
  font-size: 9px; letter-spacing: 3px;
  color: var(--text-secondary);
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

/* ══════════════════════════════════════
   NAVIGATION
══════════════════════════════════════ */
.nav-controls {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: 56px;
  display: flex; align-items: center; justify-content: center;
  gap: 24px;
  background: rgba(10,10,15,0.95);
  border-top: 1px solid var(--border);
  z-index: 100;
  backdrop-filter: blur(10px);
}
.nav-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-family: 'Space Mono', monospace;
  font-size: 10px; letter-spacing: 2px;
  padding: 8px 20px; cursor: pointer;
  transition: all 0.2s;
}
.nav-btn:hover {
  border-color: var(--accent-green);
  color: var(--accent-green);
  box-shadow: var(--glow-green);
}
.nav-btn:disabled {
  opacity: 0.3; cursor: not-allowed;
}
.nav-btn:disabled:hover {
  border-color: var(--border);
  color: var(--text-secondary);
  box-shadow: none;
}
.nav-dots {
  display: flex; gap: 8px; align-items: center;
}
.nav-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--border-bright);
  cursor: pointer; transition: all 0.2s;
  border: none;
}
.nav-dot.active {
  background: var(--accent-green);
  box-shadow: var(--glow-green);
  width: 20px; border-radius: 3px;
}

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 1100px) {
  .slide { padding: 36px 40px 72px; }
  .vector-grid { grid-template-columns: repeat(2, 1fr); }
  .prevention-grid { grid-template-columns: repeat(2, 1fr); }
  .what-layout { grid-template-columns: 1fr; }
  .what-stats { grid-template-columns: repeat(4, 1fr); }
  .takeaways-layout { grid-template-columns: 1fr; }
  .takeaway-big { max-width: 100%; }
  .causes-layout { grid-template-columns: 1fr; }
  .hex-decoration { display: none; }
}

@media (max-width: 768px) {
  .slide { padding: 24px 24px 64px; }
  .vector-grid { grid-template-columns: 1fr; }
  .prevention-grid { grid-template-columns: 1fr 1fr; }
  .what-stats { grid-template-columns: repeat(2, 1fr); }
  .flow-step { flex-direction: column; gap: 8px; }
}