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

:root {
  --bg-main: #FFFFFF;
  --bg-subtle: #F9FAFB;
  --bg-surface: #FFFFFF;
  --bg-card: #FFFFFF;
  
  --border-subtle: #E5E7EB;
  --border-card: #E5E7EB;
  --border-focus: #e9204f;
  --border-pink: #FFE4E9;
  
  --brand-primary: #e9204f;
  --brand-dark: #8a0f2b;
  --brand-light: #ff4d73;
  --brand-tint: #FFF1F3;
  --brand-glow: 0px 4px 14px 0px rgba(233, 32, 79, 0.15);
  
  --ink-primary: #0A0A0A;
  --ink-secondary: #404040;
  --ink-muted: #737373;
  --ink-white: #FFFFFF;
  
  --success: #059669;
  --success-tint: #ECFDF5;
  --success-border: #A7F3D0;
  
  --radius-card: 14px;
  --radius-btn: 8px;
  --radius-pill: 9999px;
  
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-card: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.03);
  --shadow-card-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.06), 0 4px 6px -4px rgba(0, 0, 0, 0.02);
}

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-main);
  color: var(--ink-secondary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

/* Background subtle grid pattern per lamanify.com */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(0, 0, 0, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.025) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}

/* Deck Container */
.deck-container {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  z-index: 1;
  background-color: transparent;
}

/* Header */
.deck-header {
  height: 64px;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  z-index: 20;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  height: 30px;
  width: auto;
  object-fit: contain;
  display: block;
}

.brand-divider {
  width: 1px;
  height: 20px;
  background-color: var(--border-subtle);
}

.header-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-secondary);
  letter-spacing: -0.01em;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.slide-counter {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-primary);
  padding: 6px 14px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-btn);
}

.nav-buttons {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ctrl-btn {
  background: var(--bg-main);
  border: 1px solid var(--border-subtle);
  color: var(--ink-secondary);
  border-radius: var(--radius-btn);
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: var(--shadow-sm);
}

.ctrl-btn svg {
  stroke: var(--ink-secondary);
  transition: stroke 0.15s ease;
}

.ctrl-btn:hover {
  border-color: var(--brand-primary);
  background: var(--brand-tint);
}

.ctrl-btn:hover svg {
  stroke: var(--brand-primary);
}

.ctrl-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  border-color: var(--border-subtle);
  background: var(--bg-main);
}

.ctrl-btn:disabled svg {
  stroke: var(--ink-muted);
}

/* Stage & Slides */
.deck-stage {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 48px;
}

.slide {
  position: absolute;
  inset: 28px 48px;
  display: none;
  flex-direction: column;
  justify-content: center;
  max-width: 1360px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.slide.active {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

/* Slide Header Elements */
.badge-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  background: var(--brand-tint);
  color: var(--brand-primary);
  border: 1px solid var(--border-pink);
  border-radius: var(--radius-pill);
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  background: var(--bg-subtle);
  color: var(--ink-muted);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
}

.slide-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--ink-primary);
  letter-spacing: -0.03em;
  line-height: 1.18;
  margin-bottom: 8px;
}

.slide-subtitle {
  font-size: 15px;
  color: var(--ink-secondary);
  line-height: 1.55;
  max-width: 1000px;
  margin-bottom: 24px;
}

/* Grids */
.cards-grid {
  display: grid;
  gap: 20px;
}

.grid-cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid-cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 22px;
  box-shadow: var(--shadow-card);
  transition: all 0.2s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.card:hover {
  border-color: #CBD5E1;
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.card.card-highlight {
  border-color: var(--border-pink);
  background: linear-gradient(180deg, #FFFFFF 0%, #FFF9FA 100%);
  box-shadow: 0 4px 14px 0 rgba(233, 32, 79, 0.06);
}

.card-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--brand-primary);
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-primary);
  margin-bottom: 8px;
  letter-spacing: -0.015em;
}

.card-desc {
  font-size: 13px;
  color: var(--ink-secondary);
  line-height: 1.55;
  margin-bottom: 16px;
}

.card-metric {
  margin-top: auto;
  padding: 10px 14px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.metric-lbl {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
}

.metric-val {
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 800;
  color: var(--ink-primary);
  letter-spacing: -0.01em;
}

/* Bullet Lists */
.bullet-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.bullet-item {
  font-size: 12.5px;
  color: var(--ink-secondary);
  line-height: 1.45;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.bullet-icon {
  color: var(--brand-primary);
  font-size: 11px;
  font-weight: bold;
  line-height: 1.6;
}

/* Product Cards (Slide 3) */
.product-card {
  padding: 24px 28px;
}

.product-domain {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--brand-primary);
  background: var(--brand-tint);
  border: 1px solid var(--border-pink);
  padding: 3px 9px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.product-stats {
  margin-top: auto;
  padding: 14px 18px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Footer */
.deck-footer {
  height: 56px;
  border-top: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  z-index: 20;
  font-size: 12px;
  color: var(--ink-muted);
}

.deck-footer strong {
  color: var(--ink-primary);
}

.dots-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: #E5E7EB;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dot:hover {
  background: #CBD5E1;
}

.dot.active {
  width: 26px;
  background: var(--brand-primary);
}

.keyboard-hint {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
  background: var(--bg-subtle);
  padding: 4px 10px;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
}

kbd {
  font-family: var(--font-mono);
  background: var(--bg-main);
  border: 1px solid #D1D5DB;
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 10px;
  color: var(--ink-primary);
  box-shadow: 0 1px 1px rgba(0,0,0,0.05);
}

@media (max-width: 1150px) {
  .grid-cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-cols-3 {
    grid-template-columns: repeat(1, 1fr);
  }
  .slide-title {
    font-size: 26px;
  }
}
