/* TwinGP Pitch Deck — fresh visual system */
:root {
  --bg0: #06101c;
  --bg1: #0a1829;
  --panel: rgba(255, 255, 255, 0.06);
  --panel-strong: rgba(12, 28, 48, 0.88);
  --line: rgba(120, 190, 255, 0.22);
  --line-soft: rgba(255, 255, 255, 0.08);
  --text: #f3f7fc;
  --muted: #c5d4e8;
  --blue: #3b92e1;
  --blue-bright: #6eb6ff;
  --cyan: #2ec4b6;
  --mint: #5eead4;
  --amber: #f5c451;
  --edu: #4ade80;
  --avatar: #38bdf8;
  --agent: #93a4ff;
  --radius: 18px;
  --font: "Segoe UI", Calibri, "Helvetica Neue", Arial, sans-serif;
  --nav-h: 56px;
  --pad-x: 32px;
  --pad-bottom: 36px;
  --content-h: calc(100dvh - var(--nav-h) - var(--pad-bottom) - 12px);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --glow: 0 0 0 1px rgba(110, 182, 255, 0.25), 0 20px 60px rgba(30, 111, 232, 0.18);
}

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

html, body {
  margin: 0;
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  font-family: var(--font);
  font-size: 18px;
  background: var(--bg0);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue-bright); text-decoration: none; }
em { font-style: normal; color: var(--blue-bright); }
.logo-mark { display: block; object-fit: contain; }

/* Ambient — fresher layered light */
.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(900px 500px at 8% -5%, rgba(59, 146, 225, 0.28), transparent 55%),
    radial-gradient(700px 480px at 95% 15%, rgba(46, 196, 182, 0.16), transparent 50%),
    radial-gradient(600px 400px at 70% 100%, rgba(147, 164, 255, 0.12), transparent 45%),
    linear-gradient(165deg, #050d18 0%, #0b1a2e 45%, #071320 100%);
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.4;
  animation: floaty 16s ease-in-out infinite alternate;
}
.orb-a { width: 420px; height: 420px; background: #1e6fe8; top: -100px; left: -80px; }
.orb-b { width: 340px; height: 340px; background: #14b8a6; bottom: -120px; right: -60px; animation-delay: -5s; }
.grid-fx {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at 50% 40%, black 15%, transparent 70%);
  opacity: 0.55;
}
@keyframes floaty {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(30px, 24px) scale(1.06); }
}

/* Nav — glass */
.topnav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 40;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 22px;
  background: rgba(6, 16, 28, 0.72);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-soft);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
}
.brand img { width: 30px; height: 30px; object-fit: contain; }
.brand em {
  font-style: normal;
  font-weight: 500;
  font-size: 14px;
  color: var(--muted);
  margin-left: 4px;
  padding-left: 12px;
  border-left: 1px solid var(--line);
}
.nav-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 14px;
}
.slide-label { color: var(--text); font-weight: 650; }
.slide-count { font-variant-numeric: tabular-nums; opacity: 0.85; }
.nav-actions { display: flex; gap: 8px; }
.nav-btn {
  appearance: none;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  color: var(--text);
  border-radius: 999px;
  padding: 8px 16px;
  font: 600 14px var(--font);
  cursor: pointer;
  transition: transform 0.15s, border-color 0.2s, background 0.2s;
}
.nav-btn:hover {
  border-color: var(--blue-bright);
  background: rgba(59, 146, 225, 0.22);
}
.nav-btn.ghost { color: var(--muted); }

.progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 50;
  background: rgba(255,255,255,0.06);
}
.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  box-shadow: 0 0 16px rgba(46, 196, 182, 0.55);
  transition: width 0.3s ease;
}

/* Deck */
.deck { position: relative; z-index: 1; height: 100dvh; width: 100%; overflow: hidden; }

.slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: calc(var(--nav-h) + 10px) var(--pad-x) var(--pad-bottom);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  overflow: hidden;
}
.slide.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  animation: fadeIn 0.35s ease;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.slide-inner {
  width: min(1180px, 100%);
  height: var(--content-h);
  max-height: var(--content-h);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 12px;
  padding-bottom: 4px;
}

.eyebrow {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mint);
  flex-shrink: 0;
}

h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  font-weight: 750;
  letter-spacing: -0.025em;
  line-height: 1.2;
  max-width: 38ch;
  flex-shrink: 0;
  color: #fff;
}

/* Shared glass card */
.glass {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

/* Title / hero */
.slide-hero { padding: 0; }
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(1.05) brightness(0.55);
  transform: scale(1.02);
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(5, 12, 24, 0.92) 18%, rgba(5, 12, 24, 0.55) 55%, rgba(5, 18, 32, 0.78) 100%),
    linear-gradient(to top, rgba(5, 12, 24, 0.9), transparent 40%);
}
.slide-hero .slide-inner {
  position: relative;
  z-index: 1;
  padding: calc(var(--nav-h) + 12px) var(--pad-x) 36px;
  height: 100%;
  max-height: 100%;
  justify-content: center;
}

.title-slide {
  text-align: center;
  align-items: center;
  gap: 16px;
}
.logo-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
}
.logo-hero .logo-mark { width: 74px; height: 74px; filter: drop-shadow(0 8px 24px rgba(59,146,225,0.45)); }
.logo-text { display: flex; flex-direction: column; gap: 2px; }
.logo-hero h1 {
  margin: 0;
  font-size: clamp(3rem, 6.5vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: #fff;
  line-height: 1;
  text-shadow: 0 10px 40px rgba(0,0,0,0.45);
}
.byline {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 650;
  color: var(--blue-bright);
}
.hero-line {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 750;
  color: #fff;
  letter-spacing: -0.02em;
  text-shadow: 0 6px 24px rgba(0,0,0,0.4);
}
.tagline {
  margin: 0;
  max-width: 48rem;
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  color: #dce7f6;
  line-height: 1.5;
  text-shadow: 0 4px 20px rgba(0,0,0,0.35);
}
.slide-lead {
  margin: 0;
  max-width: 58rem;
  font-size: 17px;
  color: var(--muted);
  line-height: 1.45;
  flex-shrink: 0;
}
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.pill {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(110, 182, 255, 0.35);
  background: rgba(14, 32, 56, 0.65);
  backdrop-filter: blur(10px);
  font-weight: 650;
  font-size: 16px;
  color: #fff;
  box-shadow: var(--glow);
}
.submeta {
  margin: 4px 0 0;
  font-size: 14px;
  color: #a9bdd8;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-thumbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 180px));
  gap: 14px;
  margin-top: 6px;
}
.hero-thumbs figure {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.35);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease;
}
.hero-thumbs figure:hover { transform: translateY(-4px); }
.hero-thumbs img {
  display: block;
  width: 100%;
  height: 92px;
  object-fit: cover;
}
.hero-thumbs figcaption {
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 650;
  text-align: center;
  color: var(--text);
  background: rgba(8, 18, 32, 0.9);
}

/* Problem stats */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  flex: 1;
  min-height: 0;
}
.stat-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(165deg, rgba(59,146,225,0.16), rgba(255,255,255,0.04));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: var(--shadow);
}
.stat-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-bright), var(--cyan));
}
.stat-num {
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(120deg, #fff, var(--blue-bright));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 10px;
}
.stat-card p { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.45; }
.src { display: block; margin-top: 12px; font-size: 13px; color: #8eabcb; }

.pain-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  flex-shrink: 0;
}
.pain {
  padding: 14px 14px;
  border-radius: 14px;
  border: 1px solid var(--line-soft);
  background: rgba(255,255,255,0.04);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pain strong { font-size: 16px; color: #fff; }
.pain span { font-size: 15px; color: var(--muted); line-height: 1.4; }

/* Why now */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  flex: 1;
  min-height: 0;
}
.why-card {
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    linear-gradient(160deg, rgba(46,196,182,0.12), transparent 55%),
    rgba(255,255,255,0.04);
  box-shadow: var(--shadow);
}
.why-idx { font-weight: 800; font-size: 13px; color: var(--cyan); letter-spacing: 0.12em; }
.why-card h3 { margin: 10px 0 8px; font-size: 1.3rem; color: #fff; }
.why-card p { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.45; }
.why-card strong { color: #fff; }
.callout {
  margin: 0;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgba(46,196,182,0.35);
  background: linear-gradient(90deg, rgba(46,196,182,0.14), rgba(59,146,225,0.08));
  color: var(--muted);
  font-size: 17px;
  line-height: 1.45;
  flex-shrink: 0;
}
.callout strong { color: #fff; }

/* Architecture */
.arch {
  display: grid;
  grid-template-columns: 0.9fr 1.25fr;
  gap: 14px;
  flex: 1 1 auto;
  min-height: 0;
  max-height: 100%;
  overflow: hidden;
}
.arch-core {
  background: linear-gradient(180deg, rgba(59,146,225,0.18), rgba(255,255,255,0.04));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  box-shadow: var(--glow);
}
.core-ring {
  width: 140px; height: 140px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: conic-gradient(from 200deg, #3b92e1, #2ec4b6, #93a4ff, #3b92e1);
  position: relative;
  flex-shrink: 0;
  box-shadow: 0 0 40px rgba(59,146,225,0.35);
}
.core-ring::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: #0a1628;
}
.core-ring strong, .core-ring span { position: relative; z-index: 1; }
.core-ring strong { font-size: 1rem; color: #fff; }
.core-ring span { font-size: 12px; color: var(--muted); margin-top: 4px; max-width: 8rem; }
.core-list { list-style: none; margin: 0; padding: 0; width: 100%; display: grid; gap: 6px; }
.core-list li {
  font-size: 15px;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(0,0,0,0.22);
  border: 1px solid var(--line-soft);
}
.arch-spokes { display: grid; gap: 10px; min-height: 0; }
.spoke {
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.045);
  border-left-width: 4px;
}
.spoke-media {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px 14px 12px 12px;
}
.spoke-media img {
  width: 88px;
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line-soft);
}
.spoke h3 { margin: 0 0 6px; font-size: 1.2rem; color: #fff; }
.spoke p { margin: 0; font-size: 17px; color: var(--muted); line-height: 1.45; }
.s-agent { border-left-color: var(--agent); }
.s-avatar { border-left-color: var(--avatar); }
.s-edu { border-left-color: var(--edu); }
.one-liner {
  margin: 0;
  font-size: 16px;
  color: var(--muted);
  line-height: 1.45;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px dashed var(--line);
  background: rgba(255,255,255,0.03);
  flex-shrink: 0;
}

/* Products with media */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  flex: 1 1 auto;
  min-height: 0;
  max-height: 100%;
  overflow: hidden;
}
.product-card {
  padding: 0;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel-strong);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 0;
}
.product-card.featured {
  border-color: rgba(56,189,248,0.5);
  box-shadow: var(--glow);
}
.card-media {
  height: 88px;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}
.card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8,18,32,0.55), transparent 50%);
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.product-card:hover .card-media img { transform: scale(1.05); }
.product-card > :not(.card-media) { padding-left: 16px; padding-right: 16px; }
.product-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 12px;
}
.product-head h3 { margin: 0; font-size: 1.05rem; color: #fff; line-height: 1.25; }
.spoke h3 { font-size: 1.05rem !important; line-height: 1.25; }
.comp-table { font-size: 15px; }
.comp-note { font-size: 15px; }
.dot {
  width: 9px; height: 9px; border-radius: 50%;
  box-shadow: 0 0 12px currentColor;
}
.dot.agent { background: var(--agent); color: var(--agent); }
.dot.avatar { background: var(--avatar); color: var(--avatar); }
.dot.edu { background: var(--edu); color: var(--edu); }
.value { margin: 6px 0 0; font-size: 16px; color: var(--text); line-height: 1.4; }
.icp-tag {
  margin-top: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--cyan);
}
.icp { margin: 4px 0 0; font-size: 15px; color: var(--muted); line-height: 1.35; }
.product-card ul {
  margin: 6px 0 12px;
  padding: 0 0 0 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.4;
  overflow: hidden;
}

/* Avatar layout */
.avatar-layout {
  display: grid !important;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 18px;
  align-items: stretch;
}
.avatar-copy {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  justify-content: center;
}
.usecase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  flex: 1;
  min-height: 0;
  align-content: start;
}
.uc {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line-soft);
  background: rgba(255,255,255,0.045);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.uc strong { font-size: 15px; color: var(--avatar); }
.uc span { font-size: 14px; color: var(--muted); line-height: 1.35; }
.foot-note { margin: 0; font-size: 15px; color: var(--muted); }
.avatar-visual {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--glow);
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #000;
}
.avatar-visual img {
  width: 100%;
  flex: 1;
  object-fit: cover;
  min-height: 0;
}
.avatar-visual figcaption {
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 650;
  color: var(--text);
  background: rgba(8, 18, 32, 0.95);
}

/* Moat */
.moat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  flex: 1;
  min-height: 0;
}
.moat-card {
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  box-shadow: var(--shadow);
}
.moat-card h3 { margin: 0 0 8px; font-size: 1.2rem; color: #fff; }
.moat-card p { margin: 0; font-size: 17px; color: var(--muted); line-height: 1.45; }
.kill-test {
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(245,196,81,0.14), rgba(255,255,255,0.03));
  border: 1px solid rgba(245,196,81,0.35);
  font-size: 16px;
  color: var(--muted);
  line-height: 1.45;
  flex-shrink: 0;
}
.kill-test strong { color: var(--amber); }

/* Market */
.market-layout {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 14px;
  flex: 1;
  min-height: 0;
}
.funnels { display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.funnel {
  border-radius: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: 64px 1fr;
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-items: center;
  flex: 1;
  box-shadow: var(--shadow);
}
.funnel.tam { background: linear-gradient(90deg, rgba(59,146,225,0.22), rgba(255,255,255,0.03)); }
.funnel.sam { background: linear-gradient(90deg, rgba(46,196,182,0.18), rgba(255,255,255,0.03)); margin-inline: 14px; }
.funnel.som { background: linear-gradient(90deg, rgba(147,164,255,0.18), rgba(255,255,255,0.03)); margin-inline: 28px; }
.f-label { grid-row: span 2; font-weight: 800; font-size: 1.05rem; color: var(--blue-bright); }
.f-val { font-size: 1.35rem; font-weight: 750; color: #fff; }
.f-desc { font-size: 14px; color: var(--muted); grid-column: 2; }
.market-side {
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel-strong);
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: var(--shadow);
}
.market-side h3 { margin: 0 0 10px; font-size: 1.15rem; color: #fff; }
.market-side ul { margin: 0 0 12px; padding-left: 18px; color: var(--muted); font-size: 16px; line-height: 1.5; }
.note-box {
  font-size: 14px;
  color: #9db4d0;
  padding: 12px;
  border-radius: 10px;
  background: rgba(0,0,0,0.28);
  border: 1px dashed var(--line);
}

/* ICP */
.icp-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 14px;
  flex: 1;
  min-height: 0;
}
.icp-primary {
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid rgba(59,146,225,0.45);
  background: linear-gradient(160deg, rgba(30,111,232,0.28), rgba(14,22,38,0.75));
  box-shadow: var(--glow);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mint);
  margin-bottom: 6px;
}
.icp-primary h3 { margin: 0 0 8px; font-size: 1.35rem; color: #fff; }
.icp-primary > p { margin: 0 0 10px; color: var(--muted); font-size: 16px; }
.icp-primary ul { margin: 0 0 10px; padding-left: 18px; color: var(--text); font-size: 16px; line-height: 1.45; }
.trigger { margin: 0; font-size: 15px; color: var(--muted); line-height: 1.4; }
.icp-expand { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; min-height: 0; }
.icp-expand article {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.045);
}
.icp-expand h4 { margin: 0 0 6px; font-size: 15px; color: var(--blue-bright); }
.icp-expand p { margin: 0; font-size: 15px; color: var(--muted); line-height: 1.4; }

/* Competition */
.comp-wrap {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.comp-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 16px;
  flex: 1;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
}
.comp-table th, .comp-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-soft);
  text-align: center;
}
.comp-table th {
  font-size: 14px;
  color: var(--muted);
  font-weight: 650;
  background: rgba(59,146,225,0.12);
}
.comp-table td:first-child, .comp-table th:first-child {
  text-align: left;
  color: var(--text);
  font-weight: 650;
}
.comp-table .hl {
  background: rgba(59,146,225,0.16);
  color: var(--blue-bright);
  font-weight: 750;
}
.weak { color: #7f93ad; }
.mid { color: var(--amber); }
.strong { color: var(--edu); }
.comp-note { margin: 0; font-size: 15px; color: var(--muted); line-height: 1.4; flex-shrink: 0; }

/* Traction */
.traction-split {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr;
  gap: 12px;
  flex: 1 1 auto;
  min-height: 0;
  max-height: 100%;
  overflow: hidden;
}
.traction-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  min-height: 0;
}
.trac {
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.045);
  box-shadow: var(--shadow);
  min-height: 0;
  overflow: hidden;
}
.trac h3 { margin: 0 0 8px; font-size: 1.15rem; color: #fff; }
.trac ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 16px; line-height: 1.45; }
.trac.highlight {
  background: linear-gradient(160deg, rgba(245,196,81,0.14), rgba(255,255,255,0.03));
  border-color: rgba(245,196,81,0.4);
}
.trac.highlight p { margin: 0 0 10px; font-size: 16px; color: var(--muted); line-height: 1.45; }
.metric-placeholders { display: flex; flex-wrap: wrap; gap: 8px; }
.metric-placeholders span {
  font-size: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(245,196,81,0.45);
  color: var(--amber);
  background: rgba(245,196,81,0.08);
  font-weight: 650;
}
.side-visual {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--glow);
  display: flex;
  flex-direction: column;
  background: #000;
  min-height: 0;
}
.side-visual img {
  width: 100%;
  flex: 1;
  object-fit: cover;
  min-height: 0;
}
.side-visual figcaption {
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 650;
  background: rgba(8,18,32,0.95);
}

/* Business */
.biz-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  flex: 1;
  min-height: 0;
}
.biz-grid article {
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(59,146,225,0.12), rgba(255,255,255,0.03));
  box-shadow: var(--shadow);
}
.biz-grid h3 { margin: 0 0 10px; font-size: 1.2rem; color: var(--blue-bright); }
.biz-grid ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 16px; line-height: 1.5; }
.biz-grid strong { color: #fff; }
.biz-foot { margin: 0; font-size: 16px; color: var(--muted); flex-shrink: 0; }

/* GTM */
.gtm-phases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  flex: 1;
  min-height: 0;
}
.phase {
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.045);
  position: relative;
  box-shadow: var(--shadow);
}
.phase::before {
  content: "";
  position: absolute;
  top: 0; left: 18px; right: 18px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}
.phase span {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--cyan);
  text-transform: uppercase;
}
.phase h3 { margin: 8px 0 8px; font-size: 1.25rem; color: #fff; }
.phase p { margin: 0; font-size: 16px; color: var(--muted); line-height: 1.4; }
.gtm-lead {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(59,146,225,0.12);
  font-size: 16px;
  color: var(--muted);
  flex-shrink: 0;
}
.gtm-lead strong { color: #fff; }

/* Team */
.team-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.2fr;
  gap: 14px;
  flex: 1;
  min-height: 0;
}
.company-card {
  padding: 24px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(30,111,232,0.28), rgba(14,22,38,0.85));
  box-shadow: var(--glow);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.company-card .logo-mark { width: 52px; height: 52px; }
.company-card h3 { margin: 12px 0 4px; font-size: 1.55rem; color: #fff; }
.company-card .byline { color: var(--blue-bright); font-weight: 650; margin-bottom: 10px; font-size: 1.05rem; }
.company-card p { margin: 0 0 8px; color: var(--muted); font-size: 16px; line-height: 1.4; }
.company-card .muted { font-size: 15px; }
.team-points { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; min-height: 0; }
.tp {
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.045);
}
.tp h4 { margin: 0 0 6px; font-size: 1.1rem; color: #fff; }
.tp p { margin: 0; font-size: 15px; color: var(--muted); line-height: 1.4; }

/* Ask */
.ask-hero {
  display: grid;
  grid-template-columns: 0.85fr 1.25fr;
  gap: 12px;
  flex: 1 1 auto;
  min-height: 0;
  max-height: 100%;
  overflow: hidden;
}
.ask-amount {
  padding: 24px 20px;
  border-radius: var(--radius);
  border: 1px solid rgba(59,146,225,0.5);
  background:
    linear-gradient(160deg, rgba(30,111,232,0.35), rgba(14,22,38,0.85)),
    url("images/visual-growth.jpg") center/cover;
  background-blend-mode: multiply;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: var(--glow);
}
.ask-label {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mint);
}
.ask-num {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 850;
  letter-spacing: -0.03em;
  margin: 10px 0;
  color: #fff;
  text-shadow: 0 8px 30px rgba(0,0,0,0.4);
}
.ask-sub { font-size: 17px; color: #d7e6f8; }
.ask-sub strong { color: var(--amber); font-size: 1.1em; }
.funds {
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel-strong);
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: var(--shadow);
}
.funds h3 { margin: 0 0 10px; font-size: 1.15rem; color: #fff; }
.fund-bar {
  display: flex;
  height: 34px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 12px;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}
.seg {
  width: var(--w);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 750;
  color: #061018;
}
.s1 { background: linear-gradient(90deg, #5eb0ff, #3b92e1); }
.s2 { background: linear-gradient(90deg, #5eead4, #2ec4b6); }
.s3 { background: linear-gradient(90deg, #a5b4fc, #818cf8); color: #fff; }
.s4 { background: #64748b; color: #fff; }
.funds ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 15px; line-height: 1.45; }
.funds strong { color: #fff; }
.milestones {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  flex-shrink: 0;
}
.ms {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.045);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.ms span {
  font-weight: 800;
  font-size: 14px;
  color: var(--blue-bright);
  min-width: 52px;
}
.ms p { margin: 0; font-size: 15px; color: var(--muted); line-height: 1.35; }
.close-line {
  margin: 0;
  text-align: center;
  font-size: 16px;
  color: #fff;
  font-weight: 650;
  flex-shrink: 0;
}

/* Overview */
.overview-panel {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(4, 10, 18, 0.94);
  backdrop-filter: blur(16px);
  padding: 28px;
  overflow: auto;
}
.overview-panel[hidden] { display: none; }
.overview-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.overview-head h3 { margin: 0; }
.overview-head button {
  appearance: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
  font: 600 14px var(--font);
}
.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
.ov-card {
  appearance: none;
  text-align: left;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  cursor: pointer;
  font: inherit;
}
.ov-card:hover, .ov-card.current {
  border-color: rgba(59,146,225,0.6);
  background: rgba(59,146,225,0.16);
}
.ov-card small { display: block; color: var(--muted); margin-bottom: 4px; font-size: 12px; }
.ov-card strong { font-size: 14px; }

.hint {
  position: fixed;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  font-size: 12px;
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--line-soft);
  transition: opacity 0.6s;
  pointer-events: none;
}
.hint.hide { opacity: 0; }

@media (max-width: 980px) {
  :root { --pad-x: 16px; }
  h2 { max-width: none; }
  .stat-grid, .why-grid, .product-grid, .biz-grid, .gtm-phases, .milestones { grid-template-columns: 1fr 1fr; }
  .pain-row { grid-template-columns: 1fr 1fr; }
  .arch, .market-layout, .icp-layout, .team-layout, .ask-hero,
  .avatar-layout, .traction-split { grid-template-columns: 1fr; }
  .funnel.sam, .funnel.som { margin-inline: 0; }
  .moat-grid, .icp-expand, .team-points, .traction-grid { grid-template-columns: 1fr 1fr; }
  .brand em, .nav-btn.ghost { display: none; }
  .side-visual, .avatar-visual { max-height: 180px; }
  .hero-thumbs { grid-template-columns: repeat(3, minmax(0, 120px)); }
  .hero-thumbs img { height: 70px; }
}

@media (max-width: 640px) {
  .stat-grid, .why-grid, .product-grid, .biz-grid, .gtm-phases, .milestones,
  .pain-row, .moat-grid, .icp-expand, .team-points, .traction-grid, .usecase-grid {
    grid-template-columns: 1fr;
  }
  .hero-thumbs { display: none; }
}
