:root {
  --bg: #070b12;
  --panel: rgba(11, 18, 32, 0.76);
  --panel-strong: rgba(13, 23, 39, 0.95);
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --accent: #1f4776;
  --accent-bright: #5da2ff;
  --success: #34d399;
  --bubble-user: linear-gradient(135deg, #063365, #335987);
  --bubble-ai: linear-gradient(135deg, #09203c, #0c315b );
  --shadow: 0 30px 100px rgba(0, 0, 0, 0.45);
  --radius: 28px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(circle at top left, rgba(214, 224, 236, 0.22), transparent 38%),
    radial-gradient(circle at bottom right, rgba(126, 170, 226, 0.18), transparent 42%),
    linear-gradient(135deg, #314258 0%, #425874 45%, #5f7694 100%);
  overflow-x: hidden;
}

button, input { font: inherit; }
button { cursor: pointer; }

.shell {
  position: relative;
  width: min(1560px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 28px clamp(20px, 3vw, 56px) 42px;
  isolation: isolate;
}

.ambient {
  position: fixed;
  z-index: -3;
  border-radius: 999px;
  filter: blur(14px);
  opacity: 0.65;
  animation: floatGlow 9s ease-in-out infinite alternate;
}
.ambient-one {
  width: 28rem;
  height: 28rem;
  left: -9rem;
  top: 8rem;
  background: radial-gradient(circle, rgba(31, 71, 118, 0.5), transparent 68%);
}
.ambient-two {
  width: 22rem;
  height: 22rem;
  right: -7rem;
  bottom: 4rem;
  background: radial-gradient(circle, rgba(93, 162, 255, 0.22), transparent 68%);
  animation-delay: -3s;
}
.grid-glow {
  position: fixed;
  inset: 0;
  z-index: -4;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.04) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.72), transparent 90%);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}
.brand-mark, .bot-avatar, .signal-logo {
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), 0 14px 35px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}
.brand-mark {
  width: 54px;
  height: 54px;
  border-radius: 18px;
}
.brand-mark img, .bot-avatar img, .signal-logo img { width: 84%; height: 84%; object-fit: contain; }
.brand strong { display: block; letter-spacing: -0.03em; font-size: 1.08rem; }
.brand small { color: var(--muted); display: block; margin-top: 1px; }
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.66);
  color: var(--soft);
  border-radius: 999px;
  padding: 10px 14px;
  backdrop-filter: blur(16px);
  font-size: 0.92rem;
}
.pulse {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--success);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
  animation: pulse 1.8s infinite;
}

.layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(18px, 3vw, 34px);
  align-items: stretch;
  max-width: 1160px;
  margin: 0 auto;
  min-height: calc(100dvh - 118px);
}
.hero-panel, .chat-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.78), rgba(2, 6, 23, 0.72));
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}
.hero-panel {
  position: relative;
  padding: clamp(24px, 5vw, 46px);
  overflow: hidden;
  min-height: 720px;
}
.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 24%, rgba(93, 162, 255, 0.14), transparent 18rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 42%);
  pointer-events: none;
}
.hero-panel > * { position: relative; }
.eyebrow {
  width: max-content;
  border: 1px solid rgba(93, 162, 255, 0.28);
  color: #bfdbfe;
  background: rgba(31, 71, 118, 0.28);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
h1 {
  margin: 22px 0 18px;
  font-size: clamp(2.5rem, 6vw, 5.2rem);
  line-height: 0.92;
  letter-spacing: -0.075em;
  max-width: 860px;
}
.hero-panel p {
  color: var(--soft);
  line-height: 1.72;
  max-width: 560px;
  font-size: 1.03rem;
}
.signal-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(2, 6, 23, 0.4);
  border-radius: 24px;
  margin: 34px 0 24px;
  padding: 18px;
  overflow: hidden;
}
.signal-logo {
  position: relative;
  z-index: 2;
  width: 82px;
  height: 82px;
  border-radius: 24px;
}
.signal-rings {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.signal-rings span {
  position: absolute;
  width: 13rem;
  height: 13rem;
  border: 1px solid rgba(93, 162, 255, 0.14);
  border-radius: 50%;
  left: -4rem;
  top: -4rem;
  animation: ring 4.8s linear infinite;
}
.signal-rings span:nth-child(2) { animation-delay: -1.6s; }
.signal-rings span:nth-child(3) { animation-delay: -3.2s; }
.signal-copy strong { display: block; font-size: 1.08rem; }
.signal-copy small { display: block; color: var(--muted); margin-top: 6px; line-height: 1.5; }
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.metrics-grid article {
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 22px;
  padding: 18px;
  background: rgba(15, 23, 42, 0.58);
}
.metrics-grid span, .metrics-grid small { color: var(--muted); }
.metrics-grid span { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 800; }
.metrics-grid strong { display: block; font-size: clamp(1.7rem, 4vw, 2.35rem); letter-spacing: -0.05em; margin: 9px 0 2px; }
.metrics-grid small { line-height: 1.4; }

.chat-card {
  display: flex;
  flex-direction: column;
  height: calc(100dvh - 118px);
  min-height: 680px;
  overflow: hidden;
}
.chat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 22px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.3);
}
.chat-identity {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.bot-avatar {
  width: 50px;
  height: 50px;
  border-radius: 17px;
  flex: 0 0 auto;
}
.chat-identity strong { display: block; }
.chat-identity small { display: block; color: var(--muted); margin-top: 2px; }
.slide-chip {
  color: #dbeafe;
  border: 1px solid rgba(93, 162, 255, 0.22);
  background: rgba(31, 71, 118, 0.25);
  border-radius: 999px;
  padding: 10px 14px;
  white-space: nowrap;
  font-size: 0.9rem;
  font-weight: 700;
}
.progress-wrap {
  padding: 16px 28px 4px;
}
.progress-bar {
  height: 7px;
  border-radius: 99px;
  overflow: hidden;
  background: rgba(148, 163, 184, 0.14);
}
.progress-bar span {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #5da2ff, #93c5fd);
  box-shadow: 0 0 22px rgba(93, 162, 255, 0.5);
  transition: width 360ms ease;
}
.progress-dots {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 6px;
  margin-top: 10px;
}
.progress-dots span {
  height: 4px;
  border-radius: 99px;
  background: rgba(148, 163, 184, 0.16);
  transition: background 220ms ease, transform 220ms ease;
}
.progress-dots span.done {
  background: rgba(93, 162, 255, 0.75);
  transform: translateY(-1px);
}
.messages {
  flex: 1;
  overflow-y: auto;
  padding: 30px 28px 16px;
  scroll-behavior: smooth;
  overscroll-behavior: contain;
}
.messages::-webkit-scrollbar { width: 10px; }
.messages::-webkit-scrollbar-thumb { background: rgba(148, 163, 184, 0.2); border-radius: 99px; }
.message-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 16px;
  margin-bottom: 22px;
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  animation: messageIn 360ms ease forwards;
}
.message-row.user {
  grid-template-columns: minmax(0, 1fr) 46px;
}
.avatar {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-weight: 900;
  color: white;
  background: rgba(148, 163, 184, 0.15);
  border: 1px solid rgba(148, 163, 184, 0.17);
  overflow: hidden;
}
.avatar img { width: 84%; height: 84%; object-fit: contain; background: white; border-radius: 10px; }
.message-row.user .avatar { background: linear-gradient(135deg, #334155, #64748b); }
.bubble {
  width: fit-content;
  max-width: min(820px, 100%);
  border-radius: 25px;
  padding: 18px 20px;
  line-height: 1.58;
  border: 1px solid rgba(113, 161, 227, 0.14);
  color: #e5e7eb;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
}
.message-row.ai .bubble {
  background: var(--bubble-ai);
}
.message-row.user .bubble {
  justify-self: end;
  background: var(--bubble-user);
  color: white;
  border-color: rgba(255, 255, 255, 0.12);
  border-bottom-right-radius: 8px;
}
.message-row.ai .bubble { border-bottom-left-radius: 8px; }
.bubble h3 {
  margin: 0 0 8px;
  font-size: 1.06rem;
  letter-spacing: -0.02em;
  color: white;
}
.bubble p { margin: 0; }
.bubble p + p { margin-top: 10px; }
.bubble .quote {
  color: #dbeafe;
  font-weight: 720;
}
.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: 14px;
}
.detail-card {
  border: 1px solid rgba(148, 163, 184, 0.13);
  background: rgba(255, 255, 255, 0.035);
  border-radius: 16px;
  padding: 11px;
}
.detail-card strong { display: block; color: white; font-size: 0.9rem; margin-bottom: 4px; }
.detail-card small { color: var(--muted); line-height: 1.45; }
.steps {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}
.step {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(148, 163, 184, 0.11);
}
.step b {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: rgba(93, 162, 255, 0.16);
  color: #bfdbfe;
}
.step strong { display: block; color: white; margin-bottom: 2px; }
.step small { color: var(--muted); }
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}
.compare article {
  border: 1px solid rgba(148, 163, 184, 0.13);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.035);
}
.compare h4 {
  margin: 0;
  padding: 10px 12px;
  color: white;
  background: rgba(255, 255, 255, 0.04);
}
.compare ul { margin: 0; padding: 10px 14px 14px 28px; color: var(--soft); }
.compare li + li { margin-top: 7px; }
.pricing {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.price {
  border: 1px solid rgba(148, 163, 184, 0.13);
  background: rgba(255, 255, 255, 0.035);
  border-radius: 18px;
  padding: 12px;
}
.price strong { display: block; color: white; }
.price b { display: block; margin: 8px 0; color: #bfdbfe; font-size: 1.25rem; }
.price small { display: block; color: var(--muted); line-height: 1.45; }
.kpis {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.kpis span {
  border: 1px solid rgba(93, 162, 255, 0.22);
  background: rgba(31, 71, 118, 0.18);
  color: #dbeafe;
  border-radius: 999px;
  padding: 8px 11px;
  font-weight: 800;
  font-size: 0.86rem;
}
.contact-strip {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(52, 211, 153, 0.22);
  background: rgba(52, 211, 153, 0.08);
  border-radius: 17px;
}
.contact-strip a {
  color: #bbf7d0;
  font-weight: 900;
  text-decoration: none;
}
.thinking {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
}
.thinking-dots {
  display: inline-flex;
  gap: 4px;
}
.thinking-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #93c5fd;
  animation: dot 1s infinite ease-in-out;
}
.thinking-dots span:nth-child(2) { animation-delay: 0.12s; }
.thinking-dots span:nth-child(3) { animation-delay: 0.24s; }

.composer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 18px 24px 22px;
  border-top: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.52);
}
.input-wrap {
  position: relative;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.78);
  border-radius: 20px;
  padding: 10px 16px 11px;
}
.input-wrap label {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 900;
  margin-bottom: 3px;
}
.input-wrap input {
  width: 100%;
  border: 0;
  outline: 0;
  color: white;
  background: transparent;
  font-size: 1.02rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.send-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 132px;
  min-height: 58px;
  border: 0;
  border-radius: 18px;
  padding: 0 24px;
  color: white;
  background: linear-gradient(135deg, #1f4776, #5da2ff);
  box-shadow: 0 18px 42px rgba(31, 71, 118, 0.36);
  font-weight: 900;
  transition: transform 180ms ease, filter 180ms ease, opacity 180ms ease;
}
.send-button:hover { transform: translateY(-1px); filter: brightness(1.06); }
.send-button:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.send-button svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

@keyframes floatGlow {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(18px, -16px, 0) scale(1.04); }
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}
@keyframes ring {
  from { transform: scale(0.55); opacity: 0.8; }
  to { transform: scale(1.25); opacity: 0; }
}
@keyframes messageIn {
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes dot {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.45; }
  40% { transform: translateY(-5px); opacity: 1; }
}

@media (max-width: 1040px) {
  .layout { max-width: 940px; }
}
@media (max-width: 720px) {
  .shell { padding: 14px 12px 14px; }
  .topbar { align-items: center; margin-bottom: 12px; }
  .brand-mark { width: 44px; height: 44px; border-radius: 15px; }
  .brand small { display: none; }
  .status-pill { display: none; }
  .layout { min-height: calc(100dvh - 70px); }
  .metrics-grid, .detail-grid, .pricing, .compare { grid-template-columns: 1fr; }
  .chat-card { height: calc(100dvh - 84px); min-height: 0; border-radius: 24px; }
  .chat-top { padding: 14px; }
  .slide-chip { font-size: 0.78rem; }
  .messages { padding: 18px 12px 8px; }
  .bubble { font-size: 0.95rem; }
  .composer { grid-template-columns: 1fr; padding: 12px; }
  .send-button { min-height: 52px; }
}


/* Wider, cleaner financial presentation bubble */
.message-row.ai:has(.financial-panel) {
  grid-template-columns: 46px minmax(0, 1fr);
}
.bubble.financial-bubble {
  width: 100%;
  max-width: 1060px;
  padding: clamp(18px, 2vw, 26px);
  background:
    radial-gradient(circle at 15% 0%, rgba(93, 162, 255, 0.10), transparent 30%),
    linear-gradient(180deg, rgba(12, 21, 38, 0.97), rgba(9, 15, 28, 0.98));
  border-color: rgba(132, 168, 255, 0.18);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.32), inset 0 0 0 1px rgba(255,255,255,0.035);
}

/* Platform + financial additions */
.progress-dots { grid-template-columns: repeat(14, 1fr); }
.engine-visual-card {
  margin-top: 14px;
  border: 1px solid rgba(93, 162, 255, 0.2);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.76), rgba(2, 6, 23, 0.68));
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24), inset 0 0 0 1px rgba(255,255,255,0.03);
}
.engine-visual-card img {
  display: block;
  width: 100%;
  height: auto;
}
.engine-caption {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}
.engine-caption span {
  border: 1px solid rgba(93, 162, 255, 0.18);
  background: rgba(31, 71, 118, 0.16);
  border-radius: 16px;
  padding: 10px;
  color: #dbeafe;
  font-weight: 800;
  text-align: center;
  font-size: 0.84rem;
}
.industry-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: 14px;
}
.industry-pill {
  border: 1px solid rgba(93, 162, 255, 0.18);
  background: rgba(31, 71, 118, 0.13);
  border-radius: 16px;
  padding: 10px;
  color: #dbeafe;
  font-weight: 850;
  font-size: 0.86rem;
}
.financial-panel {
  margin-top: 14px;
  display: grid;
  gap: 14px;
}
.financial-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.financial-kpis article {
  border: 1px solid rgba(93, 162, 255, 0.18);
  background: linear-gradient(180deg, rgba(31, 71, 118, 0.18), rgba(15, 23, 42, 0.54));
  border-radius: 18px;
  padding: 12px;
}
.financial-kpis span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 900;
}
.financial-kpis strong {
  display: block;
  margin-top: 7px;
  color: #fff;
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  letter-spacing: -0.04em;
}
.chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.chart-card {
  min-width: 0;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(255, 255, 255, 0.035);
  border-radius: 20px;
  padding: 13px;
  overflow: hidden;
}
.chart-card h4 {
  margin: 0 0 4px;
  color: white;
  font-size: 0.95rem;
}
.chart-card p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.82rem;
}
.chart-wrap {
  position: relative;
  width: 100%;
  height: 230px;
}
.revenue-sensitivity-card {
  display: grid;
  gap: 14px;
}
.revenue-sensitivity-card > p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.6;
}
.revenue-formula-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.revenue-detail-card,
.revenue-scenario-card {
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(255, 255, 255, 0.035);
  border-radius: 16px;
  padding: 12px;
}
.revenue-detail-label,
.revenue-scenario-label,
.revenue-table-title {
  display: block;
  color: #bfdbfe;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 900;
}
.revenue-detail-list {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--soft);
  font-size: 0.84rem;
  line-height: 1.55;
}
.revenue-detail-list li + li {
  margin-top: 6px;
}
.revenue-scenarios {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.revenue-scenario-card strong {
  display: block;
  margin-top: 8px;
  color: white;
  font-size: 1rem;
}
.revenue-scenario-card small {
  display: block;
  margin-top: 6px;
  color: var(--soft);
  line-height: 1.5;
}
.revenue-scenario-card.highlighted {
  border-color: rgba(93, 162, 255, 0.32);
  background: linear-gradient(180deg, rgba(31, 71, 118, 0.28), rgba(15, 23, 42, 0.62));
  box-shadow: inset 0 0 0 1px rgba(147, 197, 253, 0.12);
}
.revenue-table-block {
  display: grid;
  gap: 10px;
}
.revenue-table-wrap {
  overflow-x: auto;
  padding-bottom: 2px;
}
.revenue-table {
  width: 100%;
  min-width: 540px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.84rem;
}
.revenue-table th,
.revenue-table td {
  padding: 11px 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  text-align: left;
}
.revenue-table thead th {
  color: #bfdbfe;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 900;
  background: rgba(31, 71, 118, 0.18);
}
.revenue-table thead th:first-child {
  border-top-left-radius: 14px;
}
.revenue-table thead th:last-child {
  border-top-right-radius: 14px;
}
.revenue-table tbody th {
  color: white;
  font-weight: 800;
  background: rgba(15, 23, 42, 0.58);
}
.revenue-table tbody td {
  color: var(--soft);
  background: rgba(255, 255, 255, 0.03);
}
.revenue-table tbody tr td:nth-child(3),
.revenue-table tbody tr th:nth-child(3) {
  background: rgba(93, 162, 255, 0.08);
}
.revenue-footnote {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}
.assumption-note {
  border: 1px solid rgba(52, 211, 153, 0.18);
  background: rgba(52, 211, 153, 0.07);
  color: #d1fae5;
  border-radius: 16px;
  padding: 12px;
  font-size: 0.86rem;
}
.platform-line {
  margin-top: 12px;
  color: #bfdbfe;
  font-weight: 850;
}
.bubble .mini-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #bfdbfe;
  border: 1px solid rgba(93, 162, 255, 0.2);
  background: rgba(31, 71, 118, 0.16);
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 0.78rem;
  font-weight: 900;
  margin-bottom: 10px;
}


/* Cleaner investor-grade financial cards */
.financial-panel { gap: 18px; }
.financial-kpis article {
  background: linear-gradient(180deg, rgba(31, 71, 118, 0.22), rgba(8, 16, 30, 0.72));
  border-color: rgba(132, 168, 255, 0.18);
  min-height: 92px;
}
.clean-chart-grid {
  grid-template-columns: repeat(2, minmax(320px, 1fr));
  align-items: stretch;
}
.chart-card {
  background:
    radial-gradient(circle at 16% 0%, rgba(93, 162, 255, 0.09), transparent 30%),
    rgba(13, 22, 39, 0.86);
  border-color: rgba(132, 168, 255, 0.13);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.025), 0 16px 40px rgba(0,0,0,0.16);
  padding: 16px;
}
.chart-card h4 { font-size: 1rem; letter-spacing: -0.02em; }
.chart-card p { color: #aebbd0; line-height: 1.55; }
.chart-wrap { height: 280px; }
.revenue-sensitivity-card {
  grid-column: 1 / -1;
  gap: 16px;
}
.valuation-wide { grid-column: 1 / -1; }
.valuation-wide .chart-wrap { height: 300px; }
.section-heading-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}
.section-heading-row h4 { margin-bottom: 5px; }
.clean-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(52, 211, 153, 0.22);
  background: rgba(52, 211, 153, 0.09);
  color: #bbf7d0;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.revenue-scenarios { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.revenue-scenario-card {
  background: linear-gradient(180deg, rgba(12, 22, 40, 0.92), rgba(9, 15, 28, 0.94));
  min-height: 128px;
}
.revenue-scenario-card strong {
  font-size: 1.14rem;
  line-height: 1.35;
}
.revenue-scenario-card small { font-size: 0.92rem; }
.revenue-scenario-card.highlighted {
  background: linear-gradient(180deg, rgba(37, 82, 137, 0.42), rgba(12, 22, 40, 0.96));
  border-color: rgba(93, 162, 255, 0.44);
  box-shadow: 0 0 34px rgba(93, 162, 255, 0.10), inset 0 0 0 1px rgba(147, 197, 253, 0.13);
}
.revenue-formula-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.revenue-detail-card {
  background: rgba(9, 16, 30, 0.74);
  border-color: rgba(132, 168, 255, 0.13);
}
.formula-line {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  margin-top: 10px;
}
.formula-line strong {
  color: #fff;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}
.formula-line span { color: #aebbd0; font-size: 0.88rem; line-height: 1.4; }
.revenue-detail-card p { margin-top: 10px; }
.revenue-table-wrap {
  border: 1px solid rgba(132, 168, 255, 0.12);
  border-radius: 16px;
  overflow: auto;
}
.revenue-table { min-width: 640px; }
.revenue-table th, .revenue-table td { padding: 13px 14px; }
.revenue-table thead th {
  background: rgba(31, 71, 118, 0.28);
  color: #dbeafe;
}
.revenue-table tbody th { background: rgba(7, 13, 26, 0.82); }
.revenue-table tbody td { background: rgba(13, 22, 39, 0.78); }
.revenue-table tbody tr td:nth-child(3) {
  color: #fff;
  font-weight: 900;
  background: rgba(93, 162, 255, 0.12);
}
.revenue-footnote { color: #b8c5d8; }

@media (max-width: 980px) {
  .clean-chart-grid { grid-template-columns: 1fr; }
  .chart-wrap, .valuation-wide .chart-wrap { height: 240px; }
}

@media (max-width: 860px) {
  .financial-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bubble.financial-bubble { padding: 16px; }
  .section-heading-row { flex-direction: column; }
  .chart-grid { grid-template-columns: 1fr; }
  .industry-grid, .engine-caption { grid-template-columns: 1fr; }
  .chart-wrap { height: 220px; }
  .revenue-formula-grid,
  .revenue-scenarios { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .financial-kpis { grid-template-columns: 1fr; }
  .chart-wrap { height: 210px; }
  .revenue-table { min-width: 500px; }
}
