/* ==========================================================================
   INVEST v3 · Modern High-Tech Fintech Stylesheet
   ========================================================================== */

:root {
  --bg-primary: #06080e;
  --bg-surface: #0c101d;
  --bg-surface-elevated: #11172a;
  --bg-card: rgba(14, 19, 34, 0.75);
  --bg-card-hover: rgba(20, 27, 48, 0.85);

  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.14);
  --border-accent: rgba(16, 185, 129, 0.35);

  --accent-emerald: #10b981;
  --accent-emerald-glow: rgba(16, 185, 129, 0.22);
  --accent-cyan: #38bdf8;
  --accent-cyan-glow: rgba(56, 189, 248, 0.2);
  --accent-amber: #f59e0b;
  --accent-amber-glow: rgba(245, 158, 11, 0.2);
  --accent-indigo: #6366f1;

  --pess-color: #fbbf24;
  --base-color: #10b981;
  --opt-color: #38bdf8;

  --font-main: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Plus Jakarta Sans", sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-card: 0 12px 32px -4px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --shadow-glow: 0 0 35px rgba(16, 185, 129, 0.18);
  --shadow-glow-cyan: 0 0 35px rgba(56, 189, 248, 0.18);

  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base & Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  background-color: var(--bg-primary);
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

/* Ambient Background Lights */
.ambient-glow {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(120px);
  z-index: 0;
  opacity: 0.45;
}

.glow-top {
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 750px;
  height: 480px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, rgba(56, 189, 248, 0.08) 50%, transparent 75%);
}

.glow-middle {
  top: 1300px;
  right: -100px;
  width: 600px;
  height: 500px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, rgba(16, 185, 129, 0.06) 60%, transparent 80%);
}

.ambient-grid {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1200px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black 30%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 30%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

/* Typography Helpers */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 8, 14, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: border-color var(--transition-fast);
}

.header-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(56, 189, 248, 0.15));
  border: 1px solid rgba(16, 185, 129, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-emerald);
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.2);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.05em;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-ver {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--accent-emerald);
  border-radius: 4px;
  letter-spacing: 0;
}

.brand-sub {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Status Pulse Badge in Header */
.round-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.status-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* Nav Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.nav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.nav-btn {
  margin-left: 8px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  color: #06080e;
  background: linear-gradient(135deg, #10b981, #34d399);
  border-radius: 100px;
  box-shadow: 0 0 18px rgba(16, 185, 129, 0.3);
  transition: all var(--transition-fast);
}

.nav-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 24px rgba(16, 185, 129, 0.45);
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  width: 40px;
  height: 40px;
  border-radius: 8px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 0;
}

.mobile-toggle span {
  width: 20px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: all var(--transition-fast);
}

/* Mobile Drawer */
.mobile-drawer {
  display: none;
  background: rgba(6, 8, 14, 0.98);
  border-bottom: 1px solid var(--border-subtle);
  padding: 20px 24px 28px;
  backdrop-filter: blur(20px);
}

.mobile-drawer.open {
  display: block;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-nav-link {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.mobile-nav-link:hover {
  color: #ffffff;
}

.mobile-nav-btn {
  margin-top: 10px;
  text-align: center;
  padding: 12px;
  font-weight: 700;
  color: #06080e;
  background: linear-gradient(135deg, #10b981, #34d399);
  border-radius: var(--radius-md);
}

/* Main Container */
main {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

/* Hero Section */
.hero-section {
  padding: 64px 0 36px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-emerald);
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-emerald);
}

.hero-main-title {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.ticket-callout {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  color: #ffffff;
}

.ticket-currency {
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 700;
  color: var(--accent-emerald);
}

.ticket-value {
  font-size: clamp(72px, 12vw, 130px);
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #ffffff 40%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ticket-unit {
  font-size: clamp(24px, 3.5vw, 44px);
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: -0.02em;
}

.hero-headline {
  font-size: clamp(28px, 4.2vw, 52px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.12;
  max-width: 900px;
}

.headline-gradient {
  display: block;
  background: linear-gradient(135deg, #10b981 0%, #38bdf8 60%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--text-muted);
  max-width: 780px;
  line-height: 1.6;
  margin-bottom: 32px;
}

/* Quick Hero Scenarios Bar */
.hero-scenarios-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 48px;
}

.hero-scen-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  text-align: left;
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.hero-scen-item:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-light);
  transform: translateY(-2px);
}

.hero-scen-item.active {
  border-color: var(--border-accent);
  background: rgba(16, 185, 129, 0.08);
  box-shadow: 0 0 24px rgba(16, 185, 129, 0.12);
}

.hero-scen-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.hero-scen-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-scen-rate {
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-mono);
  padding: 2px 8px;
  border-radius: 4px;
}

.pess .hero-scen-rate { color: var(--pess-color); background: rgba(251, 191, 36, 0.12); }
.base .hero-scen-rate { color: var(--base-color); background: rgba(16, 185, 129, 0.12); }
.opt .hero-scen-rate { color: var(--opt-color); background: rgba(56, 189, 248, 0.12); }

.hero-scen-val {
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
  display: block;
  font-variant-numeric: tabular-nums;
  margin-bottom: 2px;
}

.hero-scen-sub {
  font-size: 13px;
  color: var(--text-muted);
}

/* Key Pillars / Deal Architecture */
.deal-pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  backdrop-filter: blur(12px);
}

.pillar-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
}

.pillar-card.highlight-pillar {
  border-color: rgba(16, 185, 129, 0.4);
  background: linear-gradient(160deg, rgba(16, 185, 129, 0.12) 0%, rgba(14, 19, 34, 0.8) 100%);
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.1);
}

.pillar-glow {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.pillar-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.highlight-icon {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.35);
  color: var(--accent-emerald);
}

.pillar-tag {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.highlight-tag {
  color: var(--accent-emerald);
}

.pillar-title {
  font-size: 19px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
  line-height: 1.25;
}

.pillar-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Common Section Layout */
.section-container {
  padding-top: 84px;
}

.section-header {
  margin-bottom: 36px;
}

.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-emerald);
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 10px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 680px;
  line-height: 1.5;
}

/* Interactive Timeline Roadmap */
.interactive-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  position: relative;
}

.timeline-step {
  display: flex;
  flex-direction: column;
}

.step-marker {
  display: flex;
  align-items: center;
  position: relative;
  height: 24px;
  margin-bottom: 16px;
}

.marker-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-surface-elevated);
  border: 2px solid var(--text-dim);
  z-index: 2;
  transition: all var(--transition-fast);
}

.pulse-dot {
  background: var(--accent-emerald);
  border-color: #ffffff;
  box-shadow: 0 0 16px var(--accent-emerald);
}

.marker-line {
  position: absolute;
  left: 14px;
  right: -16px;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 1;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}

.step-card:hover {
  border-color: var(--border-light);
  background: var(--bg-card-hover);
}

.step-card.highlight-card {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.08);
}

.step-time {
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--accent-emerald);
  margin-bottom: 8px;
}

.step-title {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.step-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
  flex: 1;
}

.step-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

.highlight-badge {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  border-color: rgba(16, 185, 129, 0.35);
}

/* Three Scenarios Section */
.scenarios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.scenario-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  cursor: pointer;
  text-align: left;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.scenario-card:hover {
  border-color: var(--border-light);
  transform: translateY(-3px);
}

.scenario-card.active {
  border-color: var(--scenario-color, var(--accent-emerald));
  background: rgba(14, 19, 34, 0.95);
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.7), 0 0 30px var(--scenario-glow, rgba(16, 185, 129, 0.15));
}

.scen-top-tag {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.scen-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 6px;
}

.scen-rate-pill {
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-mono);
}

.scen-name {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
}

.scen-income {
  font-size: clamp(30px, 3vw, 38px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin: 12px 0 6px;
  font-variant-numeric: tabular-nums;
}

.scen-gain {
  font-size: 14px;
  font-weight: 600;
  color: var(--scenario-color, var(--accent-emerald));
  margin-bottom: 20px;
}

.scen-meta-list {
  border-top: 1px solid var(--border-subtle);
  padding-top: 16px;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.scen-meta-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.scen-meta-label {
  color: var(--text-dim);
}

.scen-meta-val {
  font-weight: 600;
  color: #ffffff;
  font-family: var(--font-mono);
}

/* Dashboard Header & Active Status */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px;
  padding: 24px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
}

.active-scenario-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 100px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
  margin-bottom: 10px;
}

.dashboard-title {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 6px;
}

.dashboard-lead {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 650px;
}

.dashboard-target-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 10px 18px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.target-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

.target-value {
  font-size: 18px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--accent-emerald);
}

/* KPI Grid */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.kpi-val {
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 800;
  color: #ffffff;
  display: block;
  font-variant-numeric: tabular-nums;
  margin-bottom: 4px;
}

.kpi-label {
  font-size: 13px;
  color: var(--text-muted);
  display: block;
}

/* Analytics Row (Sources + SVG Dynamic Chart) */
.analytics-row {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 20px;
  margin-bottom: 24px;
}

.analytics-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
}

.card-title svg {
  color: var(--accent-emerald);
}

.card-sub {
  font-size: 12px;
  color: var(--text-dim);
}

/* Sources List */
.sources-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.source-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.source-top-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.source-name {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
}

.source-amt {
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: #ffffff;
}

.source-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 100px;
  overflow: hidden;
}

.source-fill {
  height: 100%;
  border-radius: 100px;
  background: var(--accent-emerald);
  transition: width 0.5s ease-out;
}

.source-note {
  font-size: 12px;
  color: var(--text-dim);
}

.sources-total-line {
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sources-total-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
}

.sources-total-val {
  font-size: 18px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--accent-emerald);
}

/* SVG Chart Box */
.chart-wrapper {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.chart-container {
  width: 100%;
  position: relative;
}

.svg-chart {
  width: 100%;
  height: auto;
  display: block;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  font-size: 12px;
  color: var(--text-dim);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot-invest { background: #ef4444; }
.dot-div { background: var(--accent-emerald); }
.dot-breakeven { background: #38bdf8; }

/* Tables Layout & Cards */
.table-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  overflow: hidden;
}

.table-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.table-title {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.table-subtitle {
  font-size: 13px;
  color: var(--text-muted);
}

.table-badge {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 4px 12px;
  border-radius: 100px;
}

.table-scroll-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  white-space: nowrap;
}

th, td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-subtle);
  text-align: left;
}

th {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(255, 255, 255, 0.02);
}

.col-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-family: var(--font-mono);
}

td.col-num {
  color: #ffffff;
  font-size: 13px;
}

tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.row-total td {
  font-weight: 700;
  border-top: 1px solid var(--border-light);
  background: rgba(16, 185, 129, 0.06);
  color: var(--accent-emerald);
}

.badge-risk {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 600;
}

.badge-risk.open {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
}

.badge-risk.half {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
}

.badge-risk.closed {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
}

/* Calculator Section */
.calc-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}

.calc-inputs {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.calc-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
}

.calc-label {
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
}

.calc-value-display {
  font-size: 22px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--accent-emerald);
}

.calc-slider {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-emerald);
  cursor: pointer;
  box-shadow: 0 0 14px var(--accent-emerald);
  transition: transform 0.1s ease;
}

.calc-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.calc-presets {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.preset-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.preset-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.preset-btn.active {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
  color: var(--accent-emerald);
}

.calc-scenario-toggle {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toggle-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.toggle-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.calc-scen-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.calc-scen-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.calc-scen-btn.active {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
  color: var(--accent-emerald);
}

/* Calculator Results Grid */
.calc-results-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.calc-res-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.calc-res-item.highlight-res {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(56, 189, 248, 0.08));
  border-color: rgba(16, 185, 129, 0.35);
}

.res-label {
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.res-num {
  font-size: 20px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: #ffffff;
  margin-bottom: 2px;
  font-variant-numeric: tabular-nums;
}

.res-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.text-cyan { color: var(--accent-cyan); }
.text-emerald { color: var(--accent-emerald); }
.text-amber { color: var(--accent-amber); }
.text-glow {
  color: #ffffff;
  font-size: 26px;
  text-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

/* Compare Table Styling */
.compare-table th.highlight-col, .compare-table td.highlight-col {
  background: rgba(16, 185, 129, 0.06);
  border-left: 1px solid rgba(16, 185, 129, 0.2);
  border-right: 1px solid rgba(16, 185, 129, 0.2);
}

.compare-table th.highlight-col {
  color: var(--accent-emerald);
}

/* Security & Risk Grid */
.security-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.sec-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.sec-card.highlight-sec {
  border-color: rgba(16, 185, 129, 0.3);
  background: linear-gradient(160deg, rgba(16, 185, 129, 0.1) 0%, rgba(14, 19, 34, 0.8) 100%);
}

.sec-num {
  font-size: 14px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--text-dim);
  margin-bottom: 14px;
}

.sec-title {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
  line-height: 1.35;
}

.sec-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* FAQ Accordion */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.faq-item:hover {
  border-color: var(--border-light);
}

.faq-summary {
  list-style: none;
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-icon {
  font-size: 20px;
  font-weight: 400;
  color: var(--accent-emerald);
  transition: transform var(--transition-fast);
}

.faq-item[open] .faq-icon {
  transform: rotate(45deg);
}

.faq-body {
  padding: 0 24px 22px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 14px;
}

/* Call To Action Banner */
.cta-banner {
  margin-top: 24px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(14, 19, 34, 0.95) 100%);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--radius-xl);
  padding: 64px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 50px rgba(16, 185, 129, 0.12);
}

.cta-glow {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 300px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.3) 0%, transparent 70%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
}

.cta-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-emerald);
  margin-bottom: 12px;
}

.cta-title {
  font-size: clamp(28px, 3.8vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  color: #ffffff;
}

.cta-desc {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 32px;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 100px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-primary {
  background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
  color: #06080e;
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(16, 185, 129, 0.55);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-light);
  color: #ffffff;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.cta-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-dim);
  flex-wrap: wrap;
}

.meta-separator {
  color: rgba(255, 255, 255, 0.2);
}

/* Disclaimer Section */
.disclaimer-section {
  padding-top: 48px;
  margin-top: 48px;
  border-top: 1px solid var(--border-subtle);
}

.disclaimer-content h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.disclaimer-content p {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.6;
  max-width: 900px;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-subtle);
  background: #040509;
  padding: 32px 24px;
}

.footer-container {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-logo {
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.08em;
}

.footer-copy {
  font-size: 12px;
  color: var(--text-dim);
}

.footer-links {
  display: flex;
  gap: 20px;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: #ffffff;
}

/* ==========================================================================
   Responsive Breakpoints & Mobile Optimization
   ========================================================================== */

@media (max-width: 1080px) {
  .deal-pillars, .interactive-timeline, .security-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .marker-line {
    display: none;
  }

  .analytics-row {
    grid-template-columns: 1fr;
  }

  .calc-box {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 840px) {
  .hero-scenarios-bar, .scenarios-grid, .kpi-grid {
    grid-template-columns: 1fr;
  }

  .nav-menu, .round-status {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .dashboard-target-pill {
    align-items: flex-start;
    width: 100%;
  }

  .cta-banner {
    padding: 40px 24px;
  }
}

@media (max-width: 600px) {
  main {
    padding: 0 16px 60px;
  }

  .hero-section {
    padding-top: 36px;
  }

  .deal-pillars, .interactive-timeline, .security-grid, .calc-presets, .calc-results-grid {
    grid-template-columns: 1fr;
  }

  .ticket-value {
    font-size: 84px;
  }

  .toggle-buttons {
    grid-template-columns: 1fr;
  }

  .cta-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .footer-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 12px 18px;
  }
}
