/* ===============================================================
   HYRO · GROWTH CAPITAL RAISE
   Design system
   =============================================================== */

:root {
  --bg:        #050505;
  --bg-2:      #0c0c0d;
  --bg-3:      #131315;
  --ink:       #f6f4ee;
  --ink-2:     #c8c5bd;
  --ink-3:     #8a877f;
  --line:      rgba(255,255,255,0.08);
  --line-2:    rgba(255,255,255,0.14);
  --red:       #FB0D1B;
  --red-soft:  rgba(251,13,27,0.12);
  --gold:      #E8C77B;
  --green:     #34D399;
  --blue:      #60A5FA;
  --shadow-1:  0 8px 40px rgba(0,0,0,0.45);

  --display:   "Fraunces", "Times New Roman", serif;
  --sans:      "Inter", -apple-system, system-ui, sans-serif;

  --slide-pad-x: clamp(24px, 5vw, 80px);
  --slide-pad-y: clamp(24px, 5vh, 60px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; background: var(--bg); color: var(--ink); font-family: var(--sans); }
button { font-family: inherit; cursor: pointer; }
.hidden { display: none !important; }

/* ============================ AUTH GATE ============================ */
.gate {
  position: fixed; inset: 0; z-index: 1000;
  background: radial-gradient(circle at 50% 30%, #1a0608, #050505 70%);
  display: grid; place-items: center; padding: 24px;
}
.gate-card {
  width: 100%; max-width: 420px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 40px 32px;
  text-align: center;
  box-shadow: var(--shadow-1);
}
.gate-mark {
  font-family: var(--display); font-weight: 800; letter-spacing: 0.18em;
  color: var(--red); font-size: 14px; margin-bottom: 18px;
}
.gate-card h1 {
  font-family: var(--display); font-weight: 600;
  font-size: 28px; margin: 0 0 6px;
}
.gate-sub { color: var(--ink-3); font-size: 13px; margin: 0 0 24px; }
.gate-card form { display: flex; flex-direction: column; gap: 10px; }
.gate-card input {
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  color: var(--ink);
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 15px;
  text-align: center;
  letter-spacing: 0.04em;
  transition: border-color 120ms;
}
.gate-card input:focus { outline: none; border-color: var(--red); }
.gate-card button {
  background: var(--red); color: white; border: 0;
  padding: 14px 16px; border-radius: 10px; font-weight: 600;
  font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase;
  transition: transform 80ms, opacity 120ms;
}
.gate-card button:hover { opacity: 0.9; }
.gate-card button:active { transform: scale(0.98); }
.gate-err { color: var(--red); font-size: 12px; min-height: 16px; margin: 12px 0 0; }

/* ============================ DECK ============================ */
.deck {
  position: fixed; inset: 0; overflow: hidden;
  display: flex; flex-direction: column;
}

.hud-top {
  display: flex; align-items: center; gap: 20px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(5,5,5,0.85);
  backdrop-filter: blur(8px);
  z-index: 50;
}
.hud-brand {
  font-family: var(--display); font-weight: 800;
  letter-spacing: 0.22em; color: var(--red); font-size: 14px;
}
.hud-progress {
  flex: 1; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden;
}
#progress-bar {
  height: 100%; width: 5%; background: var(--red);
  transition: width 320ms cubic-bezier(.2,.8,.2,1);
}
.hud-meta { display: flex; gap: 12px; align-items: center; color: var(--ink-3); font-size: 12px; letter-spacing: 0.1em; }
.hud-btn {
  background: transparent; color: var(--ink-3);
  border: 1px solid var(--line-2);
  width: 32px; height: 32px; border-radius: 6px;
  font-size: 14px;
}
.hud-btn:hover { color: var(--ink); border-color: var(--ink-3); }

.slides {
  flex: 1; position: relative; overflow: hidden;
}
.slide {
  position: absolute; inset: 0;
  padding: var(--slide-pad-y) var(--slide-pad-x);
  opacity: 0; transform: translateY(12px);
  transition: opacity 360ms ease, transform 360ms ease;
  pointer-events: none;
  overflow: auto;
}
.slide.active { opacity: 1; transform: none; pointer-events: auto; }
.slide.exit-left { transform: translateX(-30px); }
.slide.exit-right { transform: translateX(30px); }

/* shared slide elements */
.eyebrow {
  font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--red); font-weight: 600;
  margin-bottom: 18px;
}
.slide h1 {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(32px, 5vw, 72px);
  line-height: 1.05; letter-spacing: -0.015em;
  margin: 0 0 24px;
}
.slide h2 {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(26px, 3.6vw, 48px);
  line-height: 1.1; letter-spacing: -0.01em;
  margin: 0 0 20px;
}
.slide h3 {
  font-family: var(--sans); font-weight: 600;
  font-size: clamp(16px, 1.4vw, 18px);
  letter-spacing: 0.02em; margin: 0 0 12px;
  color: var(--ink-2);
}
.slide p {
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.55; color: var(--ink-2);
  margin: 0 0 14px;
  max-width: 60ch;
}
.slide .lede {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(20px, 2.2vw, 30px);
  line-height: 1.35; color: var(--ink);
  max-width: 28ch;
}
.slide ul { padding-left: 1em; margin: 0 0 16px; }
.slide ul li { margin-bottom: 8px; color: var(--ink-2); }

/* layout helpers */
.row { display: grid; gap: clamp(20px, 3vw, 48px); }
.row.cols-2 { grid-template-columns: 1.1fr 1fr; align-items: center; }
.row.cols-3 { grid-template-columns: repeat(3, 1fr); }
.row.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .row.cols-2, .row.cols-3, .row.cols-4 { grid-template-columns: 1fr; }
}

/* image placeholder */
.img-ph {
  position: relative; border-radius: 14px; overflow: hidden;
  background: linear-gradient(135deg, #1c0608 0%, #2a1a13 50%, #0a0a0c 100%);
  border: 1px solid var(--line);
  min-height: 320px;
  display: grid; place-items: center;
  color: rgba(255,255,255,0.25);
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
}
.img-ph::after {
  content: ""; position: absolute; inset: 12px;
  border: 1px dashed rgba(255,255,255,0.14); border-radius: 8px; pointer-events: none;
}
.img-ph.tall { min-height: 480px; }
.img-ph.wide { min-height: 220px; }

/* metric tiles */
.metric {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px 22px;
  position: relative; overflow: hidden;
}
.metric::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--red);
}
.metric .label {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 10px;
}
.metric .value {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(28px, 3.5vw, 44px); line-height: 1; color: var(--ink);
}
.metric .delta {
  font-size: 12px; margin-top: 8px; color: var(--green);
}
.metric .sub { font-size: 12px; color: var(--ink-3); margin-top: 6px; }

/* tag pill */
.pill {
  display: inline-block;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  background: var(--red-soft); color: var(--red);
  font-weight: 600;
}
.pill.gold { background: rgba(232,199,123,0.12); color: var(--gold); }
.pill.green { background: rgba(52,211,153,0.12); color: var(--green); }
.pill.muted { background: rgba(255,255,255,0.05); color: var(--ink-3); }

/* chart frame */
.chart-frame {
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 14px; padding: 20px; min-height: 360px;
  position: relative;
}
.chart-frame.tall { min-height: 500px; }
.chart-frame canvas { width: 100% !important; height: 100% !important; }

/* table */
.table {
  width: 100%; border-collapse: collapse; font-size: 14px;
}
.table th, .table td {
  border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left;
}
.table th { color: var(--ink-3); font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; font-size: 11px; }
.table td { color: var(--ink); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }

/* bottom nav */
.hud-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; border-top: 1px solid var(--line);
  background: rgba(5,5,5,0.85);
  backdrop-filter: blur(8px);
  z-index: 50;
}
.nav-btn {
  background: transparent; color: var(--ink); border: 1px solid var(--line-2);
  width: 42px; height: 42px; border-radius: 50%;
  font-size: 18px;
  transition: all 120ms;
}
.nav-btn:hover { background: var(--red); border-color: var(--red); }
.nav-dots { display: flex; gap: 6px; flex: 1; justify-content: center; flex-wrap: wrap; }
.nav-dots .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--line-2); cursor: pointer; transition: all 160ms;
}
.nav-dots .dot.active { background: var(--red); width: 22px; border-radius: 6px; }
.nav-dots .dot:hover { background: var(--ink-3); }

/* cover slide */
.cover {
  display: grid; grid-template-columns: 1.1fr 1fr;
  height: 100%;
  align-items: stretch;
  padding: 0; gap: 0;
}
.cover .copy {
  padding: var(--slide-pad-y) var(--slide-pad-x);
  display: flex; flex-direction: column; justify-content: space-between;
}
.cover .hero-img {
  background: linear-gradient(135deg, #4d0710 0%, #1c0a0a 50%, #0a0a0c 100%);
  position: relative;
  display: grid; place-items: center;
}
.cover .hero-img::before {
  content: "[ HERO IMAGE ]";
  color: rgba(255,255,255,0.18); font-size: 12px; letter-spacing: 0.32em;
}
.cover .hero-img::after {
  content: ""; position: absolute; inset: 24px;
  border: 1px solid rgba(255,255,255,0.08);
}
.cover h1.cover-title {
  font-size: clamp(48px, 7vw, 110px);
  line-height: 0.96;
  margin-top: auto;
}
.cover .meta-line {
  font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--ink-3); margin-top: 28px;
}
@media (max-width: 900px) {
  .cover { grid-template-columns: 1fr; }
  .cover .hero-img { min-height: 280px; order: -1; }
}

/* problem / insight */
.big-quote {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(28px, 4vw, 56px);
  line-height: 1.15; max-width: 22ch;
}
.big-quote .accent { color: var(--red); }

/* unit econ scorecard */
.scorecard {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

/* timeline */
.timeline { display: grid; gap: 14px; }
.timeline .row {
  display: grid; grid-template-columns: 120px 1fr;
  gap: 24px; align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.timeline .row .when {
  color: var(--red); font-weight: 600;
  font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase;
}
.timeline .row .what h4 { margin: 0 0 4px; font-size: 16px; }
.timeline .row .what p { margin: 0; color: var(--ink-3); font-size: 14px; }

/* team */
.team-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
}
.team-card {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px;
  padding: 18px;
}
.team-card .photo {
  background: linear-gradient(135deg, #2a1a13 0%, #0a0a0c 100%);
  aspect-ratio: 1; border-radius: 10px;
  margin-bottom: 14px;
  display: grid; place-items: center;
  color: rgba(255,255,255,0.18); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
}
.team-card h4 { margin: 0 0 4px; font-size: 16px; }
.team-card .role { color: var(--ink-3); font-size: 13px; margin-bottom: 8px; }
.team-card .bio { color: var(--ink-2); font-size: 12px; line-height: 1.5; }

/* compare cards (IM8 / Gruns) */
.compare {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
@media (max-width: 900px) { .compare { grid-template-columns: 1fr; } }
.compare-card {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px;
  padding: 28px; position: relative;
}
.compare-card .num {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(40px, 5vw, 72px); line-height: 1;
  color: var(--red); margin-bottom: 8px;
}
.compare-card h4 { margin: 0 0 12px; font-size: 18px; }
.compare-card p { font-size: 14px; }

/* ask slide */
.ask-block {
  background: linear-gradient(135deg, var(--red) 0%, #8a0612 100%);
  border-radius: 18px; padding: 40px;
  color: white;
}
.ask-block .raise-amount {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(60px, 9vw, 130px); line-height: 0.95;
  margin: 0 0 16px;
}
.ask-block .terms {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 18px; margin-top: 28px;
}
.ask-block .terms .t-label {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  opacity: 0.7; margin-bottom: 4px;
}
.ask-block .terms .t-value {
  font-family: var(--display); font-weight: 600;
  font-size: 22px;
}

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info p { font-size: 16px; }
.contact-info .row {
  display: flex; gap: 12px; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.contact-info .row .label {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-3); width: 80px;
}

/* mobile */
@media (max-width: 700px) {
  .slide { padding: 16px; }
  .hud-top, .hud-bottom { padding: 8px 14px; }
}

/* print (so investors can pdf-print) */
@media print {
  .hud-top, .hud-bottom, .gate { display: none !important; }
  .slide { position: relative !important; opacity: 1 !important; transform: none !important; page-break-after: always; }
}
