/* financial-model.css — 5-Year Financial Model page styles.
   Owns: hero, assumptions panel, tables, charts, impact cards, revenue breakdown.
   Does NOT own: sidebar, app-shell layout (see sidebar.css). */

/* ── Reset & Container ──────────────────────────────── */
.fm-page { background: #0A0A0A; min-height: 100vh; color: #fff; font-family: 'Inter', sans-serif; }
.fm-container { max-width: 1100px; margin: 0 auto; padding: 2rem 1.5rem 4rem; }

/* ── Hero ────────────────────────────────────────────── */
.fm-hero {
  text-align: center;
  padding: 3rem 0 2.5rem;
  background: radial-gradient(ellipse at 50% 20%, rgba(0,242,234,0.06) 0%, transparent 70%);
}
.fm-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #00F2EA;
  background: rgba(0,242,234,0.08);
  border: 1px solid rgba(0,242,234,0.2);
  border-radius: 4px;
  padding: 4px 12px;
  margin-bottom: 1rem;
}
.fm-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 0.75rem;
}
.fm-hero h1 em { font-style: normal; color: #00F2EA; }
.fm-hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.5);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── Section titles ──────────────────────────────────── */
.fm-section-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 2.5rem 0 0.5rem;
  letter-spacing: -0.02em;
}
.fm-section-sub {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  margin: 0 0 1.25rem;
}

/* ── Assumptions Grid ────────────────────────────────── */
.fm-assumptions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.fm-assume-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 1.25rem;
  transition: border-color 0.2s;
}
.fm-assume-card:hover { border-color: rgba(0,242,234,0.3); }
.fm-assume-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 0.4rem;
}
.fm-assume-value {
  font-size: 1.15rem;
  font-weight: 700;
  color: #00F2EA;
}

/* ── Data Table ──────────────────────────────────────── */
.fm-table-wrap {
  overflow-x: auto;
  margin-bottom: 2.5rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
}
.fm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.fm-table thead th {
  text-align: left;
  padding: 0.9rem 1rem;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.fm-table tbody td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.85);
}
.fm-table tbody tr:last-child td { border-bottom: none; }
.fm-table tbody tr:hover { background: rgba(0,242,234,0.03); }
.fm-table .fm-num { font-weight: 600; font-variant-numeric: tabular-nums; }
.fm-table .fm-profit { color: #00F2EA; font-weight: 700; }
.fm-table .fm-yr { color: #fff; font-weight: 700; white-space: nowrap; }

/* ── Stacked Bar Chart ───────────────────────────────── */
.fm-chart {
  margin-bottom: 2.5rem;
  padding: 1.5rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
}
.fm-chart-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.45);
  margin-bottom: 1.25rem;
}
.fm-chart-bars { display: flex; gap: 1rem; align-items: flex-end; height: 240px; }
.fm-chart-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.fm-bar-group {
  width: 100%;
  max-width: 72px;
  display: flex;
  flex-direction: column;
  border-radius: 6px 6px 0 0;
  overflow: hidden;
  transition: transform 0.2s;
}
.fm-bar-group:hover { transform: scaleY(1.03); transform-origin: bottom; }
.fm-bar-rev {
  background: linear-gradient(180deg, #00F2EA 0%, #00C4BE 100%);
  transition: height 0.6s ease;
}
.fm-bar-cost {
  background: rgba(255,77,109,0.55);
  transition: height 0.6s ease;
}
.fm-bar-label {
  margin-top: 0.6rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
}
.fm-bar-value {
  margin-top: 0.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #00F2EA;
}
.fm-chart-legend {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
  justify-content: center;
}
.fm-legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.5);
}
.fm-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}
.fm-legend-dot--rev { background: #00F2EA; }
.fm-legend-dot--cost { background: rgba(255,77,109,0.55); }
.fm-legend-dot--profit { background: #a78bfa; }

/* ── Revenue Breakdown Grid ──────────────────────────── */
.fm-breakdown-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}
.fm-bk-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
  transition: border-color 0.2s;
}
.fm-bk-card:hover { border-color: rgba(0,242,234,0.25); }
.fm-bk-icon { font-size: 1.5rem; margin-bottom: 0.4rem; }
.fm-bk-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.45);
  margin-bottom: 0.3rem;
}
.fm-bk-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}
.fm-bk-pct {
  font-size: 0.65rem;
  color: rgba(0,242,234,0.7);
  margin-top: 0.2rem;
}

/* ── Impact Summary Cards ────────────────────────────── */
.fm-impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.85rem;
  margin-bottom: 2rem;
}
.fm-impact-card {
  padding: 1.25rem;
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform 0.2s, border-color 0.2s;
}
.fm-impact-card:hover { transform: translateY(-2px); border-color: rgba(0,242,234,0.25); }
.fm-impact-stat {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
}
.fm-impact-stat--cyan { color: #00F2EA; }
.fm-impact-stat--coral { color: #FF4D6D; }
.fm-impact-stat--purple { color: #a78bfa; }
.fm-impact-stat--green { color: #34d399; }
.fm-impact-stat--gold { color: #fbbf24; }
.fm-impact-desc {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  margin-top: 0.35rem;
  line-height: 1.4;
}

/* ── Footer note ─────────────────────────────────────── */
.fm-footer {
  text-align: center;
  padding: 2rem 0 1rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.fm-footer-note {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 768px) {
  .fm-container { padding: 1.25rem 1rem 3rem; }
  .fm-hero { padding: 2rem 0 1.5rem; }
  .fm-chart-bars { height: 180px; gap: 0.5rem; }
  .fm-bar-group { max-width: 48px; }
  .fm-impact-grid { grid-template-columns: 1fr 1fr; }
  .fm-assumptions { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .fm-impact-grid { grid-template-columns: 1fr; }
  .fm-assumptions { grid-template-columns: 1fr; }
  .fm-breakdown-grid { grid-template-columns: 1fr 1fr; }
}
