:root {
  color-scheme: dark;
  --bg: #07111f;
  --bg-elevated: rgba(10, 22, 40, 0.82);
  --bg-soft: rgba(18, 36, 63, 0.66);
  --border: rgba(120, 154, 207, 0.24);
  --text: #eef4ff;
  --muted: #a9bbd5;
  --primary: #67b7ff;
  --accent: #91f2d2;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(103, 183, 255, 0.16), transparent 30%),
    radial-gradient(circle at top right, rgba(145, 242, 210, 0.12), transparent 24%),
    linear-gradient(180deg, #08101b 0%, #0b1627 45%, #0e1b30 100%);
  color: var(--text);
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0 64px;
}

.hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 24px;
}

.hero-copy,
.hero-panel,
.stat-card,
.flow-card,
.feature-card,
.info-card,
.table-shell {
  backdrop-filter: blur(14px);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 36px;
}

.hero h1 {
  margin: 8px 0 16px;
  font-size: clamp(2.5rem, 5vw, 4.8rem);
  line-height: 0.96;
}

.hero-lead,
.hero-sublead,
.section-heading p,
.flow-card p,
.feature-card p,
.info-card p,
.panel-card p,
.stat-card p {
  color: var(--muted);
  line-height: 1.7;
}

.eyebrow,
.panel-label,
.flow-step,
.stat-value {
  display: inline-block;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-size: 0.78rem;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.hero-sublead {
  margin-top: 14px;
}

.hero-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(120, 154, 207, 0.16);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.18s ease, opacity 0.18s ease, border-color 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, var(--primary), #86d4ff);
  color: #04101f;
}

.button-secondary {
  border: 1px solid rgba(145, 242, 210, 0.34);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}

.hero-panel {
  padding: 18px;
  display: grid;
  gap: 14px;
}

.panel-card {
  padding: 18px;
  border-radius: 18px;
  background: var(--bg-soft);
  border: 1px solid rgba(120, 154, 207, 0.16);
}

.panel-card strong {
  display: block;
  margin: 8px 0;
  font-size: 1.45rem;
}

.stats-grid,
.flow-grid,
.feature-grid,
.two-column,
.cockpit-metrics,
.cockpit-grid {
  display: grid;
  gap: 18px;
}

.stats-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 18px;
}

.stat-card,
.flow-card,
.feature-card,
.info-card {
  padding: 24px;
}

.stat-card h2,
.section-heading h2,
.flow-card h3,
.feature-card h3,
.info-card h2 {
  margin: 10px 0 8px;
}

.section {
  margin-top: 18px;
}

.section-heading {
  margin-bottom: 18px;
}

.flow-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.flow-title {
  color: var(--text) !important;
  font-weight: 700;
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.report-section {
  overflow: hidden;
}

.cockpit-section {
  margin-top: 18px;
}

.cockpit-meta {
  margin-bottom: 18px;
}

.cockpit-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
}

.cockpit-metric,
.cockpit-card {
  backdrop-filter: blur(14px);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.cockpit-metric {
  padding: 22px;
}

.cockpit-metric span {
  display: inline-block;
  color: var(--accent);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cockpit-metric strong {
  display: block;
  margin: 10px 0 6px;
  font-size: 1.8rem;
}

.cockpit-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-heading {
  padding: 22px 22px 0;
}

.card-heading h3 {
  margin: 0 0 6px;
}

.card-heading p {
  margin: 0;
  color: var(--muted);
}

.cockpit-card table {
  margin-top: 8px;
}

.positive {
  color: #91f2d2;
}

.negative {
  color: #ff8f8f;
}

.note-list {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.8;
}

.table-shell {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(120, 154, 207, 0.16);
  white-space: nowrap;
}

th {
  color: var(--accent);
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

tr:last-child td {
  border-bottom: none;
}

.two-column {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

pre {
  margin: 14px 0;
  overflow-x: auto;
  padding: 16px;
  border-radius: 16px;
  background: rgba(4, 12, 24, 0.75);
  border: 1px solid rgba(120, 154, 207, 0.14);
}

code {
  font-family: "SFMono-Regular", SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: #d4ecff;
}

.footer {
  margin-top: 28px;
  padding: 8px 4px 0;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 960px) {
  .hero,
  .stats-grid,
  .flow-grid,
  .feature-grid,
  .two-column,
  .cockpit-metrics,
  .cockpit-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .hero-panel,
  .stat-card,
  .flow-card,
  .feature-card,
  .info-card,
  .cockpit-metric,
  .cockpit-card {
    padding: 22px;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 20px;
  }

  .hero h1 {
    line-height: 1.02;
  }

  th,
  td {
    padding: 12px;
  }
}

/* Framer-style shell refresh: shared surface language for the public cockpit. */
.top-nav {
  position: sticky;
  top: 16px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 58px;
  margin-bottom: 20px;
  padding: 8px 10px 8px 18px;
  border: 1px solid rgba(185, 221, 255, 0.18);
  border-radius: 999px;
  background: rgba(7, 17, 31, 0.76);
  backdrop-filter: blur(22px) saturate(150%);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.22);
}

.brand-mark,
.nav-link {
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.brand-mark em {
  color: var(--accent);
  font-style: normal;
}

.brand-orbit,
.status-dot,
.pulse-ring {
  display: inline-block;
  border-radius: 50%;
}

.brand-orbit {
  width: 20px;
  height: 20px;
  border: 1px solid var(--accent);
  box-shadow: inset 0 0 0 4px rgba(145, 242, 210, 0.12), 0 0 16px rgba(145, 242, 210, 0.36);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.nav-link {
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.82rem;
  transition: color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.nav-status,
.mini-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.72rem;
  white-space: nowrap;
}

.status-dot {
  width: 7px;
  height: 7px;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(145, 242, 210, 0.72);
}

.hero-kicker,
.panel-topline {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pulse-ring {
  width: 8px;
  height: 8px;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(145, 242, 210, 0.1), 0 0 18px rgba(145, 242, 210, 0.8);
}

.hero h1 span {
  color: var(--primary);
}

.panel-topline {
  justify-content: space-between;
  padding: 4px 4px 0;
  color: var(--muted);
  font-size: 0.68rem;
}

.mini-status {
  padding: 5px 8px;
  border: 1px solid rgba(145, 242, 210, 0.28);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
}

.hero-meta .meta-label {
  border: 0;
  background: transparent;
  color: var(--accent);
  padding-left: 0;
  padding-right: 0;
}

.operations-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 28px 30px;
  border: 1px solid rgba(145, 242, 210, 0.22);
  border-radius: 22px;
  background: linear-gradient(120deg, rgba(18, 53, 67, 0.7), rgba(10, 22, 40, 0.86));
  box-shadow: var(--shadow);
}

.operations-strip h2 {
  margin: 8px 0;
}

.operations-strip p:not(.eyebrow) {
  max-width: 660px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.ops-flow {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(145, 242, 210, 0.18);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.16);
  color: var(--text);
  font-size: 0.78rem;
  white-space: nowrap;
}

.ops-flow i {
  color: var(--accent);
  font-style: normal;
}

.operations-control-tower {
  padding: 28px 30px 30px;
  border: 1px solid rgba(103, 183, 255, 0.28);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(15, 39, 65, 0.92), rgba(9, 20, 36, 0.94));
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.34);
}

.operations-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.operations-heading h2 { margin: 8px 0; }
.operations-heading p:not(.eyebrow) { max-width: 720px; margin: 0; color: var(--muted); line-height: 1.7; }

.operations-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }

.ops-badge { display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border-radius: 999px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; }
.ops-state-good { color: #051b15; background: var(--accent); }
.ops-state-bad { color: #2b0d12; background: #ff9aa8; }
.ops-state-unknown { color: var(--text); background: rgba(255, 255, 255, 0.12); }

.operations-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }

.ops-primary-card,
.ops-artifact-card,
.ops-harvest-card,
.ops-route-card { min-height: 190px; padding: 20px; border: 1px solid rgba(120, 154, 207, 0.18); border-radius: 18px; background: rgba(3, 12, 25, 0.46); }
.ops-harvest-card strong { display: block; margin-bottom: 8px; font-size: 1.5rem; }
.ops-harvest-card p { color: var(--muted); line-height: 1.6; }
.ops-label { display: block; margin-bottom: 12px; color: var(--accent); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; }
.ops-primary-card strong { display: block; font-size: 1.75rem; }
.ops-primary-card p { min-height: 44px; margin: 8px 0 18px; color: var(--muted); line-height: 1.6; }
.ops-meta-row { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 0.75rem; }
.ops-meta-row span { padding: 6px 8px; border-radius: 8px; background: rgba(255, 255, 255, 0.05); }
.ops-artifact-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 0.78rem; }
.ops-artifact-list li { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ops-route-card { display: grid; align-content: start; gap: 10px; }
.ops-route-step { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 8px; color: var(--text); font-size: 0.78rem; }
.ops-route-step b { color: var(--primary); font-size: 0.7rem; }
.ops-route-step em { color: var(--muted); font-style: normal; font-size: 0.68rem; }

@media (max-width: 760px) {
  .top-nav {
    top: 10px;
    border-radius: 22px;
    flex-wrap: wrap;
    padding: 12px;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: space-between;
  }

  .nav-link {
    flex: 1;
    padding-inline: 7px;
    text-align: center;
  }

  .nav-status {
    margin-left: auto;
  }

  .operations-strip {
    align-items: stretch;
    flex-direction: column;
  }

  .operations-heading {
    flex-direction: column;
  }

  .operations-actions {
    justify-content: flex-start;
  }

  .operations-grid {
    grid-template-columns: 1fr;
  }

  .ops-flow {
    justify-content: space-between;
    white-space: normal;
  }
}

/* Dividend goal ladder */
.goal-hero, .goal-monthly-grid, .goal-tier-grid { display: grid; gap: 18px; }
.goal-hero { grid-template-columns: 1.35fr 0.65fr; margin-bottom: 18px; }
.goal-main-card, .goal-capital-card, .goal-tier { padding: 24px; border: 1px solid var(--border); border-radius: 22px; background: var(--bg-elevated); box-shadow: var(--shadow); }
.goal-main-card h3, .goal-capital-card h3, .goal-tier h3 { margin: 12px 0 8px; }
.goal-main-card p, .goal-capital-card p, .goal-tier p, .goal-note { color: var(--muted); line-height: 1.6; }
.goal-tier-top, .goal-tier-meta, .goal-capital-row { display: flex; justify-content: space-between; gap: 12px; }
.goal-tier-top span, .goal-kpi-grid span, .goal-capital-row span { color: var(--muted); font-size: 0.82rem; }
.goal-tier-top strong { color: var(--accent); font-size: 0.82rem; }
.goal-progress, .month-progress { height: 8px; overflow: hidden; border-radius: 999px; background: rgba(255, 255, 255, 0.09); }
.goal-progress span, .month-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--primary), var(--accent)); }
.goal-progress-large { height: 12px; margin: 20px 0; }
.goal-kpi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.goal-kpi-grid strong, .goal-capital-card > strong { display: block; margin-top: 6px; font-size: 1.45rem; }
.goal-capital-card > strong { color: var(--accent); font-size: 2rem; }
.goal-capital-row { padding: 12px 0; border-top: 1px solid rgba(120, 154, 207, 0.16); }
.goal-tier-grid { grid-template-columns: repeat(3, 1fr); margin-bottom: 18px; }
.goal-tier-meta { margin-top: 12px; color: var(--muted); font-size: 0.78rem; flex-wrap: wrap; }
.goal-monthly-grid { grid-template-columns: 1.4fr 0.6fr; }
.goal-monthly-card { overflow: hidden; }
.goal-task-list { display: grid; gap: 14px; padding: 0; margin: 22px 0; list-style: none; }
.goal-task-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); }
.goal-task-list b { color: var(--accent); font-variant-numeric: tabular-nums; }
@media (max-width: 960px) { .goal-hero, .goal-monthly-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .goal-tier-grid, .goal-kpi-grid { grid-template-columns: 1fr; } }

/* Systematic investment decision contract */
.strategy-section { padding: 28px 30px 30px; border: 1px solid rgba(145, 242, 210, 0.22); border-radius: 24px; background: linear-gradient(135deg, rgba(12, 40, 50, 0.86), rgba(9, 20, 36, 0.94)); }
.strategy-context { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.strategy-context span { padding: 9px 12px; border: 1px solid rgba(145, 242, 210, 0.18); border-radius: 999px; color: var(--muted); font-size: 0.78rem; background: rgba(0, 0, 0, 0.16); }
.strategy-context b { color: var(--text); }
.decision-state-grid, .strategy-grid, .strategy-bottom-grid { display: grid; gap: 14px; }
.decision-state-grid { grid-template-columns: repeat(3, 1fr); margin-bottom: 18px; }
.decision-state { min-height: 150px; padding: 20px; border: 1px solid rgba(120, 154, 207, 0.2); border-radius: 18px; background: rgba(3, 12, 25, 0.46); }
.decision-state > span { color: var(--muted); font: 700 0.68rem/1 monospace; letter-spacing: 0.12em; }
.decision-state h3 { margin: 12px 0 7px; }
.decision-state p { margin: 0; color: var(--muted); line-height: 1.6; font-size: 0.86rem; }
.decision-buy_now { border-color: rgba(145, 242, 210, 0.48); }
.decision-buy_now > span, .decision-buy_now h3 { color: var(--accent); }
.decision-buy_next_month { border-color: rgba(103, 183, 255, 0.42); }
.decision-buy_next_month > span, .decision-buy_next_month h3 { color: var(--primary); }
.decision-no_buy { border-color: rgba(255, 143, 143, 0.34); }
.decision-no_buy > span, .decision-no_buy h3 { color: #ff9a9a; }
.strategy-grid { grid-template-columns: 1.25fr 0.75fr; margin-bottom: 14px; }
.strategy-bottom-grid { grid-template-columns: 1fr 1fr; }
.strategy-card { min-width: 0; }
.strategy-card code { font-size: 0.72rem; color: #c8e7ff; }
.allocation-policy { display: grid; gap: 9px; margin-top: 18px; }
.allocation-policy-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.045); color: var(--muted); }
.allocation-policy-row strong { color: var(--accent); }
.strategy-rule { padding: 14px; border-left: 2px solid var(--accent); background: rgba(145, 242, 210, 0.07); color: var(--text) !important; font-weight: 700; }
@media (max-width: 960px) { .decision-state-grid, .strategy-grid, .strategy-bottom-grid { grid-template-columns: 1fr; } }

/* Monthly decision receipt cockpit */
.decision-section { padding: 28px 30px 30px; border: 1px solid rgba(103, 183, 255, 0.28); border-radius: 24px; background: linear-gradient(135deg, rgba(15, 37, 68, 0.9), rgba(9, 20, 36, 0.96)); }
.decision-hero-card { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: center; padding: 22px; border: 1px solid var(--border); border-radius: 18px; background: rgba(0, 0, 0, 0.18); }
.decision-hero-card h3 { margin: 12px 0 6px; font-size: 1.45rem; }
.decision-hero-card p, .decision-next strong, .decision-grid p { color: var(--muted); line-height: 1.6; }
.decision-state { display: inline-flex; padding: 7px 11px; border-radius: 999px; font: 700 0.72rem/1 monospace; letter-spacing: 0.06em; }
.decision-ready { color: #071b13; background: var(--accent); }
.decision-review { color: #241a05; background: #ffc861; }
.decision-unknown { color: var(--text); background: rgba(255,255,255,.16); }
.decision-next { display: grid; gap: 10px; justify-items: start; }
.decision-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 14px; }
.decision-grid .info-card { padding: 18px; }
.decision-grid .info-card > strong { display: block; margin-top: 9px; font-size: 1.22rem; }
@media (max-width: 760px) { .decision-hero-card, .decision-grid { grid-template-columns: 1fr; } }
