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

:root {
  --bg: #0a0a0f;
  --surface: #12121a;
  --border: #1e1e2e;
  --text: #e4e4e7;
  --text-dim: #71717a;
  --accent: #14b8a6;
  --accent-light: #2dd4bf;
  --accent-dark: #0d9488;
  --green: #22c55e;
  --amber: #f59e0b;
  --red: #ef4444;
}

.reveal { font-family: 'Inter', sans-serif; color: var(--text); }
.reveal h1, .reveal h2, .reveal h3 { font-weight: 700; color: #fff; text-transform: none; letter-spacing: -0.02em; }
.reveal h1 { font-size: 2.8em; }
.reveal h2 { font-size: 1.8em; margin-bottom: 0.6em; }
.reveal h3 { font-size: 1.2em; color: var(--accent-light); font-weight: 600; }
.reveal p { font-weight: 400; line-height: 1.6; }
.reveal code { font-family: 'JetBrains Mono', monospace; font-size: 0.85em; }
.reveal .slides { text-align: center; }
.reveal .slides section { padding: 40px 60px; }

/* Title slide */
.title-slide { text-align: center !important; }
.title-slide h1 { font-size: 2.8em !important; font-weight: 900; background: linear-gradient(135deg, #0d9488, #14b8a6, #2dd4bf); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 0.1em; }
.title-slide .tagline { font-size: 1.3em; color: var(--text); font-weight: 400; margin-bottom: 0.3em; }
.title-slide .subtitle { font-size: 1.0em; color: var(--text-dim); font-weight: 400; margin-bottom: 2em; }
.title-slide .founder { font-size: 0.9em; color: var(--text-dim); }
.title-slide .logo { margin-bottom: 16px; }

/* Stat callouts */
.stat-row { display: flex; gap: 40px; justify-content: center; margin: 30px 0; flex-wrap: wrap; }
.stat { text-align: center; }
.stat .number { font-size: 2.4em; font-weight: 800; color: var(--accent-light); display: block; line-height: 1.1; }
.stat .label { font-size: 0.75em; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 4px; }

/* Cards / boxes */
.card-row { display: flex; gap: 20px; margin: 20px 0; flex-wrap: wrap; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px; flex: 1; min-width: 180px; text-align: left; }
.card h3 { margin: 0 0 6px 0; font-size: 0.85em; }
.card p, .card ul { font-size: 0.65em; color: var(--text-dim); margin: 0; }
.card ul { padding-left: 16px; }
.card ul li { margin-bottom: 4px; }

/* Tier table */
.tier-table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 0.75em; }
.tier-table th { text-align: left; padding: 10px 16px; border-bottom: 2px solid var(--accent); color: var(--accent-light); font-weight: 600; }
.tier-table td { padding: 10px 16px; border-bottom: 1px solid var(--border); }
.tier-table tr:last-child td { border-bottom: none; }
.tier-table .price { color: var(--green); font-weight: 700; font-size: 1.1em; }

/* Check list */
.check-list { list-style: none; padding: 0; margin: 16px 0; text-align: left; }
.check-list li { padding: 4px 0; font-size: 0.75em; color: var(--text); }
.check-list li::before { content: '✓'; color: var(--green); font-weight: 700; margin-right: 10px; }

/* Timeline */
.timeline { display: flex; gap: 0; margin: 24px 0; }
.timeline .step { flex: 1; padding: 16px; border-top: 3px solid var(--accent); position: relative; }
.timeline .step::before { content: ''; position: absolute; top: -8px; left: 0; width: 12px; height: 12px; background: var(--accent); border-radius: 50%; }
.timeline .step .month { font-size: 0.7em; color: var(--accent-light); font-weight: 700; margin-bottom: 4px; }
.timeline .step .desc { font-size: 0.65em; color: var(--text-dim); }

/* Team */
.team-grid { display: flex; gap: 30px; margin: 20px 0; }
.team-member { flex: 1; text-align: left; }
.team-member .name { font-size: 1.1em; font-weight: 700; color: #fff; margin-bottom: 2px; }
.team-member .role { font-size: 0.8em; color: var(--accent-light); margin-bottom: 8px; }
.team-member .bio { font-size: 0.65em; color: var(--text-dim); line-height: 1.5; }
.team-member .logos { font-size: 0.6em; color: var(--text-dim); margin-top: 8px; font-style: italic; }

/* Big quote */
.big-quote { font-size: 1.4em; font-weight: 300; color: var(--text); text-align: center; line-height: 1.5; font-style: italic; margin: 40px 0; }
.big-quote em { color: var(--accent-light); font-style: normal; font-weight: 600; }

/* Flow diagram */
.flow { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 24px 0; flex-wrap: wrap; }
.flow .box { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 14px 20px; text-align: center; font-size: 0.7em; min-width: 120px; }
.flow .box.highlight { border-color: var(--accent); background: rgba(20,184,166,0.08); }
.flow .arrow { color: var(--accent-light); font-size: 1.2em; }

/* Business model flow */
.bm-flow { display: flex; align-items: stretch; justify-content: center; gap: 0; margin: 8px 0 0 0; }
.bm-card { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 10px 10px 8px; text-align: center; width: 170px; }
.bm-card.primary { border: 2px solid var(--accent); background: linear-gradient(170deg, rgba(20,184,166,0.12) 0%, var(--surface) 70%); box-shadow: 0 0 20px rgba(20,184,166,0.10); transform: scale(1.04); z-index: 1; }
.bm-card .bm-icon { width: 24px; height: 24px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 3px; }
.bm-card .bm-icon.free { background: rgba(113,113,122,0.15); }
.bm-card .bm-icon.edge { background: rgba(99,102,241,0.18); }
.bm-card .bm-icon.host { background: rgba(20,184,166,0.18); }
.bm-card .bm-icon.promo { background: rgba(245,158,11,0.15); }
.bm-card .bm-label { font-size: 0.52em; font-weight: 600; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 1px; }
.bm-card.primary .bm-label { color: var(--accent-light); }
.bm-card .bm-price { font-size: 1.2em; font-weight: 800; line-height: 1.1; margin: 2px 0 3px; }
.bm-card .bm-price small { font-size: 0.4em; font-weight: 400; color: var(--text-dim); }
.bm-card .bm-desc { font-size: 0.46em; color: var(--text-dim); line-height: 1.35; }
.bm-arrow { display: flex; align-items: center; padding: 0 3px; color: var(--accent); opacity: 0.5; }
.bm-strip { display: flex; gap: 24px; justify-content: center; margin-top: 8px; padding: 6px 0; border-top: 1px solid var(--border); }
.bm-strip .bm-stat .num { font-size: 1.1em; font-weight: 800; color: var(--green); line-height: 1; }
.bm-strip .bm-stat .lbl { font-size: 0.42em; color: var(--text-dim); margin-top: 1px; }

/* Margin table */
.margin-table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 0.7em; }
.margin-table th { text-align: left; padding: 8px 12px; border-bottom: 2px solid var(--accent); color: var(--accent-light); }
.margin-table td { padding: 8px 12px; border-bottom: 1px solid var(--border); }
.margin-table .highlight-cell { color: var(--green); font-weight: 700; }

/* Slide number styling */
.reveal .slide-number { font-family: 'Inter', sans-serif; font-size: 0.7em; color: var(--text-dim); }

/* Responsive */
.reveal .slides section .small { font-size: 0.7em; color: var(--text-dim); }
.reveal .slides section .accent { color: var(--accent-light); }
.reveal .slides section .green { color: var(--green); }
.reveal .slides section .dim { color: var(--text-dim); }

/* D3 chart containers */
.d3-chart { display: flex; justify-content: center; }
.d3-chart text { font-family: 'Inter', sans-serif; }

/* ── Mobile: Slide 3 ── */
@media (max-width: 768px) {
  #phone { transform: translate(-50%,-50%) scale(1.35) !important; top: 42% !important; }
  #term  { font-size: 0.55em !important; }
}
