:root {
  color: #18212f;
  background: #f4f6f8;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

.hero {
  background:
    linear-gradient(135deg, rgba(9, 31, 45, 0.94), rgba(20, 80, 92, 0.88)),
    url("https://images.unsplash.com/photo-1642543348745-03b1219733d9?auto=format&fit=crop&w=1800&q=80");
  background-position: center;
  background-size: cover;
  color: #fff;
  min-height: 82vh;
}

.hero-inner,
.section-inner {
  margin: 0 auto;
  max-width: 1160px;
  padding: 28px 24px;
}

.public-nav {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 13vh;
}

.public-nav a,
.hero a {
  color: #fff;
}

.brand {
  font-weight: 800;
}

.nav-button,
.primary-button,
.secondary-button {
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 6px;
  display: inline-flex;
  font-weight: 750;
  margin-left: 14px;
  padding: 10px 14px;
}

.primary-button {
  background: #fff;
  color: #0f3f4d !important;
  margin-left: 0;
}

.secondary-button {
  background: rgba(255, 255, 255, 0.08);
}

.eyebrow {
  color: #a7f3d0;
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(42px, 7vw, 86px);
  line-height: 0.96;
  margin: 0;
  max-width: 860px;
}

.hero-lead {
  color: #e6fffb;
  font-size: 21px;
  line-height: 1.55;
  max-width: 760px;
}

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

.public-section {
  background: #fff;
  padding: 52px 0;
}

.public-section.muted {
  background: #eef6f6;
}

.seo-hero {
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.93), rgba(21, 94, 117, 0.88)),
    url("https://images.unsplash.com/photo-1611974789855-9c2a0a7236a3?auto=format&fit=crop&w=1800&q=80");
  background-position: center;
  background-size: cover;
  color: #fff;
  min-height: 64vh;
}

.about-hero {
  background:
    linear-gradient(135deg, rgba(9, 31, 45, 0.94), rgba(88, 28, 135, 0.78)),
    url("https://images.unsplash.com/photo-1642790106117-e829e14a795f?auto=format&fit=crop&w=1800&q=80");
  background-position: center;
  background-size: cover;
}

.seo-nav {
  margin-bottom: 10vh;
}

.seo-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.seo-grid article {
  border-top: 4px solid #155e75;
  padding-top: 14px;
}

.seo-grid p {
  color: #425466;
  line-height: 1.6;
}

.keyword-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 24px;
}

.keyword-links a {
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  color: #155e75;
  padding: 8px 12px;
}

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

.feature-list {
  display: grid;
  gap: 14px;
  line-height: 1.6;
  padding-left: 20px;
}

.disclaimer {
  color: #425466;
  font-size: 16px;
  line-height: 1.6;
  max-width: 940px;
}

.risk-panel {
  background: #fff;
  border: 1px solid #fecaca;
  border-left: 6px solid #dc2626;
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  margin-bottom: 20px;
  padding: 22px;
}

.risk-panel h2 {
  margin-top: 0;
}

body {
  margin: 0;
}

body.app-shell {
  background:
    radial-gradient(circle at top left, rgba(14, 165, 233, 0.22), transparent 28%),
    radial-gradient(circle at 85% 12%, rgba(245, 158, 11, 0.22), transparent 26%),
    linear-gradient(135deg, #08111f 0%, #102033 42%, #f5f7fb 42%, #eef2f7 100%);
  color: #101827;
  min-height: 100vh;
}

a {
  color: #155e75;
  font-weight: 650;
  text-decoration: none;
}

.container {
  margin: auto;
  max-width: 1400px;
  padding: 24px;
}

.opportunity-container {
  max-width: 1180px;
}

.app-layout {
  margin: auto;
  max-width: 1480px;
  padding: 28px;
}

header {
  margin-bottom: 24px;
}

.app-header {
  align-items: flex-start;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

.app-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.app-nav a {
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  color: #334155;
  padding: 8px 12px;
}

.app-nav a.active {
  background: #155e75;
  border-color: #155e75;
  color: #fff;
}

.product-header {
  align-items: flex-start;
  color: #fff;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin: 0 0 24px;
  padding: 8px 0 10px;
}

.product-header h1 {
  font-size: clamp(38px, 6vw, 78px);
  line-height: 0.95;
  margin: 0;
}

.product-header p {
  color: #dbeafe;
  font-size: 18px;
  max-width: 720px;
}

.app-kicker {
  color: #f59e0b;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.product-nav a {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.26);
  color: #fff;
}

.market-strip {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-bottom: 18px;
}

.market-strip article {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
  padding: 18px;
}

.market-strip span,
.run-pill,
.muted-copy {
  color: #64748b;
}

.market-strip strong {
  color: #0f172a;
  display: block;
  font-size: 38px;
  line-height: 1;
  margin: 6px 0;
}

.market-strip p {
  margin: 0;
}

.dashboard-section {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 8px;
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.14);
  margin-bottom: 18px;
  padding: 22px;
}

.section-heading {
  align-items: flex-start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 18px;
}

.section-heading h2 {
  font-size: clamp(25px, 3vw, 38px);
  margin: 0;
}

.run-pill {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  padding: 8px 12px;
}

.news-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.36fr);
}

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

.focus-card,
.source-panel,
.opportunity-card,
.empty-state,
.portfolio-teaser {
  border-radius: 8px;
}

.focus-card {
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: #fff;
  min-height: 210px;
  padding: 18px;
  position: relative;
  overflow: hidden;
}

.focus-card::after {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  content: "";
  height: 120px;
  position: absolute;
  right: -36px;
  top: -44px;
  width: 120px;
}

.color-0 { background: linear-gradient(135deg, #0f766e, #14b8a6); }
.color-1 { background: linear-gradient(135deg, #1d4ed8, #38bdf8); }
.color-2 { background: linear-gradient(135deg, #9333ea, #f472b6); }
.color-3 { background: linear-gradient(135deg, #c2410c, #f59e0b); }
.color-4 { background: linear-gradient(135deg, #be123c, #fb7185); }

.focus-top {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.ticker-badge {
  background: #0f172a;
  border-radius: 6px;
  color: #fff;
  display: inline-flex;
  font-weight: 900;
  padding: 6px 9px;
}

.focus-card h3,
.opportunity-card h3 {
  margin: 14px 0 8px;
}

.focus-card p,
.opportunity-card p {
  line-height: 1.5;
}

.focus-card a {
  color: #fff;
  font-weight: 900;
}

.source-panel {
  background: #0f172a;
  color: #fff;
  padding: 18px;
}

.source-link {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  display: block;
  padding: 12px 0;
}

.source-link span {
  color: #93c5fd;
  display: block;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.source-link strong {
  display: block;
  line-height: 1.35;
  margin-top: 3px;
}

.radar-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.table-tools {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 14px;
}

.instant-search {
  background: #fff;
  border-color: #cbd5e1;
  max-width: 520px;
  width: 100%;
}

.data-table {
  display: grid;
  gap: 8px;
}

.data-row {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: 0.34fr 0.78fr 0.24fr 0.42fr 0.38fr 0.32fr 1.35fr;
  padding: 12px;
}

.data-row small {
  color: #64748b;
  display: block;
  font-size: 12px;
  font-weight: 750;
  margin-top: 3px;
}

.data-head {
  background: #0f172a;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.data-head span,
.data-head a {
  color: #fff;
}

.opportunity-card {
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  border: 1px solid #dbe4ef;
  display: grid;
  gap: 14px;
  grid-template-columns: 86px 1fr;
  padding: 16px;
}

.score-ring {
  align-items: center;
  background:
    radial-gradient(circle at center, #fff 0 54%, transparent 55%),
    conic-gradient(#22c55e calc(var(--score) * 1%), #e2e8f0 0);
  border-radius: 50%;
  display: flex;
  height: 78px;
  justify-content: center;
  width: 78px;
}

.score-ring span {
  color: #0f172a;
  font-size: 22px;
  font-weight: 900;
}

.status-dot {
  background: #e0f2fe;
  border-radius: 999px;
  color: #075985;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 9px;
}

.mini-bars {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

.mini-bars span {
  background:
    linear-gradient(90deg, #38bdf8 var(--bar), #e2e8f0 0);
  border-radius: 999px;
  color: #0f172a;
  font-size: 12px;
  font-weight: 900;
  padding: 5px 8px;
}

.follow-table {
  display: grid;
  gap: 8px;
}

.follow-row {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: 0.45fr 0.45fr 0.55fr 1.8fr;
  padding: 12px;
}

.follow-head {
  background: #0f172a;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.positive {
  color: #15803d;
  font-weight: 900;
}

.negative {
  color: #b91c1c;
  font-weight: 900;
}

.empty-state {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  padding: 20px;
}

.empty-state.wide {
  grid-column: 1 / -1;
}

.portfolio-teaser {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(8, 47, 73, 0.92), rgba(21, 128, 61, 0.86)),
    url("https://images.unsplash.com/photo-1554224155-6726b3ff858f?auto=format&fit=crop&w=1600&q=80");
  background-position: center;
  background-size: cover;
  color: #fff;
  display: flex;
  justify-content: space-between;
}

.about-teaser {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(88, 28, 135, 0.8)),
    url("https://images.unsplash.com/photo-1642790106117-e829e14a795f?auto=format&fit=crop&w=1600&q=80");
  background-position: center;
  background-size: cover;
  color: #fff;
  display: flex;
  gap: 24px;
  justify-content: space-between;
}

.about-teaser p {
  color: #ede9fe;
  line-height: 1.6;
  max-width: 860px;
}

.portfolio-teaser p {
  color: #dcfce7;
  max-width: 760px;
}

.big-action {
  background: #fff;
  border-radius: 8px;
  color: #14532d;
  display: inline-flex;
  font-weight: 900;
  padding: 14px 18px;
}

h1,
h2 {
  letter-spacing: 0;
}

.panel {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin-bottom: 20px;
  padding: 20px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

select,
input,
button {
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  color: #18212f;
  font: inherit;
  min-height: 38px;
  padding: 7px 10px;
}

button {
  background: #155e75;
  color: #fff;
  cursor: pointer;
}

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

th,
td {
  border-bottom: 1px solid #e8eaed;
  padding: 10px;
  text-align: left;
  vertical-align: top;
}

th {
  white-space: nowrap;
}

.detail-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
}

.chart-panel {
  margin-left: auto;
  margin-right: auto;
  max-width: 1020px;
  overflow: hidden;
}

.chart-toolbar {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin-bottom: 14px;
}

.chart-toolbar strong {
  font-size: 28px;
}

.chart-range-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.chart-range-controls button {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #334155;
  font-size: 13px;
  font-weight: 850;
  min-height: 34px;
  padding: 6px 10px;
}

.chart-range-controls button.active {
  background: #0f172a;
  border-color: #0f172a;
  color: #fff;
}

.chart-range-controls button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.price-chart-wrap {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  width: 100%;
}

.price-chart-wrap canvas {
  display: block;
  height: 420px;
  max-width: 100%;
  width: 100%;
}

.meta {
  display: grid;
  gap: 8px 16px;
  grid-template-columns: max-content 1fr;
}

pre {
  overflow-x: auto;
  white-space: pre-wrap;
}

.advisor-panel {
  max-width: 860px;
}

.advisor-form fieldset {
  border: 0;
  border-top: 1px solid #e2e8f0;
  margin: 0;
  padding: 18px 0;
}

.advisor-form fieldset:first-child {
  border-top: 0;
  padding-top: 0;
}

.advisor-form legend {
  font-weight: 800;
  margin-bottom: 10px;
}

.choice {
  align-items: flex-start;
  display: flex;
  gap: 10px;
  line-height: 1.45;
  padding: 7px 0;
}

.choice input {
  margin-top: 4px;
}

.result-hero {
  align-items: center;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(220px, 0.7fr) minmax(260px, 1fr);
}

.score {
  font-size: 56px;
  font-weight: 850;
  line-height: 1;
  margin: 12px 0;
}

.score span {
  color: #64748b;
  font-size: 24px;
  font-weight: 650;
}

.status-pill {
  border-radius: 999px;
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  padding: 5px 10px;
}

.status-good {
  background: #dcfce7;
  color: #166534;
}

.status-warning {
  background: #fef3c7;
  color: #92400e;
}

.status-serious {
  background: #fee2e2;
  color: #991b1b;
}

.meter-track,
.allocation-bar {
  background: #e2e8f0;
  border-radius: 999px;
  height: 14px;
  overflow: hidden;
}

.meter-fill {
  height: 100%;
}

.meter-good {
  background: #16a34a;
}

.meter-warning {
  background: #f59e0b;
}

.meter-serious {
  background: #ef4444;
}

.summary-grid {
  display: grid;
  gap: 6px 16px;
  grid-template-columns: max-content 1fr;
}

.summary-grid dt {
  color: #64748b;
  font-weight: 700;
}

.summary-grid dd {
  margin: 0;
}

.allocation-bar {
  display: flex;
  height: 18px;
  margin: 18px 0;
}

.allocation-liquidity {
  background: #2563eb;
}

.allocation-fixed {
  background: #059669;
}

.allocation-equity {
  background: #d97706;
}

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

.allocation-grid article,
.tool-card {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 14px;
}

.allocation-grid p,
.tool-card p,
.fine-print {
  color: #64748b;
  line-height: 1.5;
}

.swatch {
  border-radius: 3px;
  display: inline-block;
  height: 12px;
  margin-right: 7px;
  width: 12px;
}

.tool-card span {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.tool-card h3 {
  margin: 7px 0;
}

.tool-card.highlighted {
  border-color: #155e75;
  box-shadow: inset 0 3px 0 #155e75;
}

.risk-1 {
  border-left: 4px solid #ca8a04;
}

.risk-2 {
  border-left: 4px solid #ea580c;
}

.risk-3 {
  border-left: 4px solid #dc2626;
}

.risk-4 {
  border-left: 4px solid #9f1239;
}

.faq-item {
  border-top: 1px solid #e2e8f0;
  padding: 12px 0;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 800;
}

.button-link {
  background: #155e75;
  border-radius: 6px;
  color: #fff;
  display: inline-flex;
  font-weight: 750;
  padding: 10px 14px;
}

@media (max-width: 900px) {
  .container {
    padding: 12px;
  }

  .panel {
    overflow-x: auto;
  }

  .chart-panel {
    overflow-x: hidden;
  }

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

  .app-header,
  .result-hero,
  .product-header,
  .section-heading,
  .portfolio-teaser,
  .about-teaser {
    grid-template-columns: 1fr;
  }

  .app-header,
  .product-header,
  .section-heading,
  .portfolio-teaser,
  .about-teaser {
    display: grid;
  }

  .allocation-grid,
  .tool-grid,
  .market-strip,
  .news-grid,
  .focus-board,
  .radar-grid {
    grid-template-columns: 1fr;
  }

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

  .data-row {
    grid-template-columns: 1fr;
    min-width: 0;
  }

  .table-tools {
    align-items: stretch;
    display: grid;
  }

  .opportunity-card {
    grid-template-columns: 1fr;
  }

  .public-nav {
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 8vh;
  }

  .public-nav,
  .two-column,
  .seo-grid {
    grid-template-columns: 1fr;
  }

  .two-column,
  .seo-grid {
    display: grid;
  }

  .hero {
    min-height: 88vh;
  }

  .app-layout {
    padding: 16px;
  }

  .dashboard-section,
  .panel {
    padding: 16px;
  }

  .product-header h1 {
    font-size: clamp(36px, 12vw, 56px);
  }

  .product-header p,
  .hero-lead {
    font-size: 17px;
  }

  .chart-toolbar {
    align-items: flex-start;
    display: grid;
  }

  .chart-toolbar strong {
    font-size: 24px;
  }

  .chart-range-controls {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .price-chart-wrap canvas {
    height: 300px;
  }
}

@media (max-width: 520px) {
  .container,
  .app-layout,
  .hero-inner,
  .section-inner {
    padding-left: 12px;
    padding-right: 12px;
  }

  .dashboard-section,
  .panel {
    border-radius: 6px;
    padding: 14px;
  }

  .market-strip strong {
    font-size: 30px;
  }

  .run-pill,
  .app-nav a,
  .big-action,
  .chart-range-controls button {
    width: 100%;
  }

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

  .price-chart-wrap canvas {
    height: 260px;
  }
}
