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

:root {
  --bg: #09090b;
  --bg-card: rgba(255,255,255,0.03);
  --bg-card-hover: rgba(255,255,255,0.06);
  --border: rgba(255,255,255,0.08);
  --text: #fafafa;
  --text-muted: #a1a1aa;
  --text-dim: #71717a;
  --gold: #c4a35a;
  --gold-dim: rgba(196,163,90,0.15);
  --gold-glow: rgba(196,163,90,0.3);
  --red: #ef4444;
  --red-dim: rgba(239,68,68,0.15);
  --green: #22c55e;
  --green-dim: rgba(34,197,94,0.15);
  --blue: #3b82f6;
  --blue-dim: rgba(59,130,246,0.15);
}

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

html, body {
  height: 100%;
  font-family: 'Montserrat', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Slide container */
.deck {
  width: 100vw;
  height: 100vh;
  position: relative;
}

.slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5vh 8vw;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
  overflow-y: auto;
}

.slide.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.slide.exit {
  opacity: 0;
  transform: translateY(-20px);
}

/* Typography */
h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 1.2rem;
}

h3 {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.8rem;
}

p, li {
  font-size: clamp(0.9rem, 1.4vw, 1.15rem);
  line-height: 1.7;
  color: var(--text-muted);
  font-weight: 400;
}

.subtitle {
  font-size: clamp(1rem, 1.8vw, 1.4rem);
  color: var(--text-muted);
  font-weight: 400;
  margin-bottom: 2rem;
  max-width: 700px;
}

.gold { color: var(--gold); }
.red { color: var(--red); }
.green { color: var(--green); }
.blue { color: var(--blue); }
.dim { color: var(--text-dim); }
.bold { font-weight: 700; color: var(--text); }
.mono { font-family: 'JetBrains Mono', monospace; font-size: 0.9em; }

/* Cards and grids */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin: 1.5rem 0; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1.5rem; margin: 1.5rem 0; }
.grid-4 { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 1rem; margin: 1.5rem 0; }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: background 0.3s;
}

.card:hover { background: var(--bg-card-hover); }

.card h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.card p { font-size: 0.85rem; line-height: 1.5; }
.card .big-number {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.3rem;
}

.card-gold { border-color: var(--gold); background: var(--gold-dim); }
.card-red { border-color: var(--red); background: var(--red-dim); }
.card-green { border-color: var(--green); background: var(--green-dim); }
.card-blue { border-color: var(--blue); background: var(--blue-dim); }

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: clamp(0.75rem, 1.2vw, 0.95rem);
}

th {
  text-align: left;
  padding: 0.6rem 1rem;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
}

td {
  padding: 0.6rem 1rem;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

tr:hover td { color: var(--text); }

/* Blockquote */
blockquote {
  border-left: 3px solid var(--gold);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--gold-dim);
  border-radius: 0 8px 8px 0;
  font-size: clamp(0.95rem, 1.5vw, 1.2rem);
  color: var(--text);
  font-weight: 500;
  line-height: 1.6;
}

blockquote.red-quote {
  border-left-color: var(--red);
  background: var(--red-dim);
}

/* Tags / badges */
.tag {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tag-gold { background: var(--gold-dim); color: var(--gold); border: 1px solid rgba(196,163,90,0.3); }
.tag-red { background: var(--red-dim); color: var(--red); border: 1px solid rgba(239,68,68,0.3); }
.tag-green { background: var(--green-dim); color: var(--green); border: 1px solid rgba(34,197,94,0.3); }
.tag-blue { background: var(--blue-dim); color: var(--blue); border: 1px solid rgba(59,130,246,0.3); }

/* Lists */
ul { list-style: none; padding-left: 0; }
ul li { padding: 0.3rem 0; padding-left: 1.2rem; position: relative; }
ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

/* Divider */
.divider {
  height: 1px;
  background: var(--border);
  margin: 1.5rem 0;
}

/* Navigation */
.nav {
  position: fixed;
  bottom: 2rem;
  right: 3rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 100;
}

.nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(9,9,11,0.8);
  backdrop-filter: blur(10px);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  font-size: 1rem;
}

.nav-btn:hover { border-color: var(--gold); color: var(--gold); }

.slide-counter {
  font-size: 0.8rem;
  color: var(--text-dim);
  font-weight: 500;
  font-family: 'JetBrains Mono', monospace;
}

/* Progress bar */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.4s ease;
  z-index: 100;
}

/* Title slide special */
.slide-title {
  justify-content: center;
  align-items: center;
  text-align: center;
}

.slide-title h1 { font-size: clamp(2.5rem, 6vw, 5rem); margin-bottom: 1rem; }
.slide-title .subtitle { margin: 0 auto 2rem; }

/* Section divider slide */
.slide-section {
  justify-content: center;
  align-items: flex-start;
}

.slide-section h2 {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
}

.section-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 0.5rem;
  letter-spacing: 0.1em;
}

/* Comparison layout */
.vs-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: start;
  margin: 1.5rem 0;
}

.vs-divider {
  width: 1px;
  height: 100%;
  min-height: 200px;
  background: var(--border);
  position: relative;
}

.vs-divider::after {
  content: 'VS';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--bg);
  padding: 0.5rem 0;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.1em;
}

/* Responsive */
@media (max-width: 768px) {
  .slide { padding: 3vh 5vw; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .vs-grid { grid-template-columns: 1fr; }
  .vs-divider { display: none; }
  .nav { bottom: 1rem; right: 1.5rem; }
  table { font-size: 0.7rem; }
  th, td { padding: 0.4rem 0.5rem; }
}

/* Back button */
.back-link {
  position: fixed;
  top: 2rem;
  left: 3rem;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  z-index: 100;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.back-link img { height: 24px; width: auto; opacity: 0.7; transition: opacity 0.2s; }
.back-link:hover img { opacity: 1; }
.back-link:hover { color: var(--gold); }

/* Logo watermark */
.logo-watermark {
  position: fixed;
  bottom: 2rem;
  left: 3rem;
  z-index: 100;
  opacity: 0.3;
  transition: opacity 0.3s;
}
.logo-watermark:hover { opacity: 0.7; }
.logo-watermark img { height: 28px; width: auto; }

/* Footer info */
.deck-footer {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.65rem;
  color: var(--text-dim);
  font-family: 'JetBrains Mono', monospace;
  z-index: 100;
  letter-spacing: 0.05em;
}

/* Animate stagger for cards */
.slide.active .card { animation: fadeUp 0.5s ease forwards; opacity: 0; }
.slide.active .card:nth-child(1) { animation-delay: 0.1s; }
.slide.active .card:nth-child(2) { animation-delay: 0.2s; }
.slide.active .card:nth-child(3) { animation-delay: 0.3s; }
.slide.active .card:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}
