:root {
  --bg: #07090d;
  --surface: #0c1015;
  --surface-2: #0e1218;
  --surface-soft: rgba(255, 255, 255, 0.025);

  --border: rgba(255, 255, 255, 0.075);
  --border-strong: rgba(255, 255, 255, 0.12);

  --text: #f2f5f8;
  --text-soft: #c8ced8;
  --muted: #8b95a6;
  --muted-2: #626c7c;

  --green: #61e6ad;
  --green-soft: rgba(97, 230, 173, 0.1);

  --red: #ff7486;
  --red-soft: rgba(255, 116, 134, 0.1);

  --radius-sm: 10px;
  --radius-md: 15px;
  --radius-lg: 20px;

  --container: 1440px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;

  background:
    radial-gradient(
      circle at 50% -18%,
      rgba(97, 230, 173, 0.045),
      transparent 30%
    ),
    var(--bg);

  color: var(--text);

  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  font-size: 15px;
  line-height: 1.5;

  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: default;
}

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

.container {
  width: min(calc(100% - 48px), var(--container));
  margin: 0 auto;
}

/* HEADER */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;

  background: rgba(7, 9, 13, 0.9);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);

  border-bottom: 1px solid var(--border);
}

.nav-shell {
  height: 64px;

  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;

  gap: 28px;
}

.brand {
  justify-self: start;

  display: inline-flex;
  align-items: center;

  gap: 10px;

  font-size: 15px;
  font-weight: 700;

  letter-spacing: -0.025em;
}

.brand-mark {
  width: 32px;
  height: 32px;

  display: grid;
  place-items: center;

  border: 1px solid rgba(97, 230, 173, 0.22);
  border-radius: 9px;

  background: rgba(97, 230, 173, 0.08);

  color: var(--green);
}

.brand-mark svg {
  width: 17px;
  height: 17px;
}

.main-nav {
  display: flex;
  align-items: center;

  gap: 4px;
}

.nav-link {
  padding: 8px 12px;

  border: 0;
  border-radius: 8px;

  background: transparent;

  color: var(--muted-2);

  font-size: 12px;
  font-weight: 600;

  transition:
    color 150ms ease,
    background 150ms ease;
}

.nav-link.active {
  color: var(--text);

  background: rgba(255, 255, 255, 0.055);
}

.nav-link:disabled {
  opacity: 0.58;
}

.nav-right {
  justify-self: end;
}

.status-chip {
  display: inline-flex;
  align-items: center;

  gap: 7px;

  padding: 7px 10px;

  border: 1px solid var(--border);
  border-radius: 999px;

  color: var(--muted);

  font-size: 10px;
  font-weight: 650;
}

.status-dot {
  width: 6px;
  height: 6px;

  border-radius: 50%;

  background: var(--green);
  box-shadow: 0 0 10px rgba(97, 230, 173, 0.45);
}

/* HERO */

.hero {
  padding: 50px 0 28px;
}

.hero-inner {
  max-width: 850px;
  margin: 0 auto;

  text-align: center;
}

.hero-kicker {
  margin-bottom: 14px;

  color: var(--green);

  font-size: 10px;
  font-weight: 750;

  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 0 auto;

  font-size: clamp(42px, 4.7vw, 62px);
  line-height: 1.02;

  font-weight: 730;

  letter-spacing: -0.05em;
}

.hero-copy {
  max-width: 590px;
  margin: 17px auto 0;

  color: var(--muted);

  font-size: 14px;
  line-height: 1.7;
}

/* SEARCH */

.search-panel {
  max-width: 700px;
  margin: 25px auto 0;
}

.search-box {
  min-height: 59px;

  display: flex;
  align-items: center;

  gap: 8px;

  padding: 6px;

  border: 1px solid var(--border-strong);
  border-radius: 14px;

  background: rgba(255, 255, 255, 0.025);

  box-shadow:
    0 20px 55px rgba(0, 0, 0, 0.22);

  transition:
    border-color 160ms ease,
    background 160ms ease;
}

.search-box:focus-within {
  border-color: rgba(97, 230, 173, 0.25);
  background: rgba(255, 255, 255, 0.035);
}

.search-icon {
  width: 40px;

  display: grid;
  place-items: center;

  color: var(--muted-2);
}

.search-icon svg {
  width: 17px;
  height: 17px;
}

.search-box input {
  flex: 1;
  min-width: 0;

  padding: 10px 0;

  border: 0;
  outline: 0;

  color: var(--text);
  background: transparent;

  font-size: 13px;
}

.search-box input::placeholder {
  color: #626b79;
}

.search-button {
  min-width: 91px;

  padding: 11px 15px;

  border: 0;
  border-radius: 9px;

  background: #f2f5f8;
  color: #090b0f;

  font-size: 12px;
  font-weight: 750;

  transition:
    transform 140ms ease,
    opacity 140ms ease;
}

.search-button:hover {
  opacity: 0.92;
}

.search-button:active {
  transform: scale(0.98);
}

.quick-search {
  margin-top: 10px;

  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;

  gap: 6px;
}

.quick-label {
  margin-right: 3px;

  color: var(--muted-2);

  font-size: 10px;
}

.ticker-chip {
  padding: 5px 9px;

  border: 1px solid var(--border);
  border-radius: 7px;

  background: transparent;

  color: var(--muted);

  font-size: 10px;
  font-weight: 650;

  transition:
    color 140ms ease,
    border-color 140ms ease,
    background 140ms ease;
}

.ticker-chip:hover {
  color: var(--text);

  border-color: var(--border-strong);

  background: rgba(255, 255, 255, 0.035);
}

/* DASHBOARD */

.dashboard {
  padding: 22px 0 64px;
}

.dashboard-shell {
  border-top: 1px solid var(--border);
}

.stock-header {
  min-height: 90px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 28px;
}

.company-block {
  display: flex;
  align-items: center;

  gap: 14px;
}

.company-logo {
  width: 48px;
  height: 48px;

  display: grid;
  place-items: center;

  border: 1px solid var(--border);
  border-radius: 12px;

  background: var(--surface);

  font-size: 17px;
  font-weight: 750;
}

.company-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;

  gap: 8px;
}

.company-name {
  font-size: 20px;
  font-weight: 690;

  letter-spacing: -0.035em;
}

.ticker-label {
  padding: 4px 7px;

  border: 1px solid var(--border);
  border-radius: 6px;

  color: var(--muted);

  font-size: 9px;
  font-weight: 750;
}

.company-meta {
  margin-top: 4px;

  color: var(--muted);

  font-size: 11px;
}

.market-price {
  text-align: right;
}

.price-row {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;

  gap: 10px;
}

.price {
  font-size: 28px;
  font-weight: 720;

  letter-spacing: -0.045em;
}

.price-change {
  color: var(--green);

  font-size: 12px;
  font-weight: 750;
}

.market-meta {
  margin-top: 3px;

  color: var(--muted-2);

  font-size: 9px;
}

/* CARD SYSTEM */

.card {
  overflow: hidden;

  border: 1px solid var(--border);
  border-radius: var(--radius-md);

  background: var(--surface);
}

.card-inner {
  padding: 21px;
}

.section-eyebrow {
  color: #747f90;

  font-size: 9px;
  font-weight: 750;

  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-title {
  margin-top: 4px;

  color: var(--text);

  font-size: 14px;
  font-weight: 650;
}

.top-grid {
  display: grid;
  grid-template-columns:
    minmax(0, 1.75fr)
    minmax(310px, 0.62fr);

  gap: 14px;
}

/* CHART */

.chart-card {
  min-height: 430px;
}

.chart-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  gap: 18px;
}

.chart-periods {
  display: flex;

  gap: 3px;
}

.period-button {
  min-width: 34px;

  padding: 6px 7px;

  border: 0;
  border-radius: 7px;

  background: transparent;

  color: var(--muted-2);

  font-size: 9px;
  font-weight: 700;

  transition:
    color 130ms ease,
    background 130ms ease;
}

.period-button:hover {
  color: var(--text-soft);
}

.period-button.active {
  color: var(--text);

  background: rgba(255, 255, 255, 0.065);
}

.chart-stats {
  margin-top: 19px;

  display: flex;
  align-items: baseline;

  gap: 10px;
}

.chart-price {
  font-size: 26px;
  font-weight: 710;

  letter-spacing: -0.04em;
}

.chart-change {
  color: var(--green);

  font-size: 11px;
  font-weight: 750;
}

.chart-area {
  position: relative;

  height: 277px;

  margin-top: 5px;
}

.chart-area svg {
  width: 100%;
  height: 100%;

  display: block;
}

#chartLine,
#chartAreaPath {
  transition: d 260ms ease;
}

.chart-axis {
  position: absolute;

  top: 11px;
  right: 0;
  bottom: 2px;

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  color: #667181;

  font-size: 9px;

  pointer-events: none;
}

.chart-bottom-axis {
  margin-top: 7px;

  padding-right: 38px;

  display: flex;
  justify-content: space-between;

  color: #667181;

  font-size: 9px;
}

/* AI */

.ai-card {
  min-height: 430px;
}

.ai-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  gap: 10px;
}

.demo-tag {
  padding: 5px 8px;

  border: 1px solid var(--border);
  border-radius: 999px;

  color: var(--muted);

  font-size: 8px;
  font-weight: 700;
}

.score-wrap {
  margin: 24px 0 18px;

  display: grid;
  place-items: center;
}

.score-ring {
  width: 138px;
  height: 138px;

  display: grid;
  place-items: center;

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      #0b0f14 60%,
      transparent 61%
    ),
    conic-gradient(
      var(--green) 0deg 284deg,
      rgba(255, 255, 255, 0.075) 284deg 360deg
    );
}

.score-content {
  text-align: center;
}

.score-number {
  font-size: 38px;
  line-height: 1;

  font-weight: 760;

  letter-spacing: -0.05em;
}

.score-caption {
  margin-top: 5px;

  color: var(--green);

  font-size: 8px;
  font-weight: 800;

  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.ai-heading {
  color: var(--text-soft);

  font-size: 11px;
  font-weight: 700;
}

.ai-summary {
  margin-top: 8px;

  color: var(--muted);

  font-size: 11px;
  line-height: 1.72;
}

.ai-signals {
  margin-top: 16px;
  padding-top: 14px;

  border-top: 1px solid var(--border);

  display: grid;

  gap: 9px;
}

.signal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 15px;

  color: var(--muted);

  font-size: 9px;
}

.signal-value {
  color: var(--text-soft);

  font-weight: 700;
}

.signal-value.positive {
  color: var(--green);
}

/* METRICS */

.metrics-grid {
  margin-top: 14px;

  display: grid;
  grid-template-columns: repeat(6, 1fr);

  gap: 10px;
}

.metric-card {
  min-height: 107px;

  padding: 16px;

  border: 1px solid var(--border);
  border-radius: 11px;

  background: var(--surface-soft);
}

.metric-name {
  color: var(--muted);

  font-size: 10px;
  font-weight: 500;
}

.metric-value {
  margin-top: 7px;

  font-size: 18px;
  font-weight: 690;

  letter-spacing: -0.025em;
}

.metric-context {
  margin-top: 5px;

  color: #667181;

  font-size: 9px;
}

/* LOWER */

.lower-grid {
  margin-top: 14px;

  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    minmax(0, 1fr)
    minmax(330px, 0.72fr);

  gap: 14px;
}

.case-card,
.factor-card {
  min-height: 257px;
}

.case-heading {
  display: flex;
  align-items: center;

  gap: 10px;
}

.case-icon {
  width: 28px;
  height: 28px;

  display: grid;
  place-items: center;

  border-radius: 7px;

  font-size: 13px;
  font-weight: 800;
}

.bull .case-icon {
  color: var(--green);
  background: var(--green-soft);
}

.bear .case-icon {
  color: var(--red);
  background: var(--red-soft);
}

.case-title {
  margin-top: 2px;

  font-size: 13px;
  font-weight: 680;
}

.case-list {
  max-width: 92%;

  margin-top: 18px;

  display: grid;

  gap: 14px;
}

.case-item {
  display: grid;
  grid-template-columns: 6px 1fr;

  gap: 10px;

  color: var(--muted);

  font-size: 11px;
  line-height: 1.65;
}

.case-dot {
  width: 5px;
  height: 5px;

  margin-top: 7px;

  border-radius: 50%;
}

.bull .case-dot {
  background: var(--green);
}

.bear .case-dot {
  background: var(--red);
}

/* FACTORS */

.factor-list {
  margin-top: 19px;

  display: grid;

  gap: 15px;
}

.factor-row {
  display: grid;
  grid-template-columns: 105px 1fr 27px;

  align-items: center;

  gap: 10px;
}

.factor-name {
  color: var(--muted);

  font-size: 9px;
}

.factor-track {
  height: 5px;

  overflow: hidden;

  border-radius: 999px;

  background: rgba(255, 255, 255, 0.065);
}

.factor-fill {
  height: 100%;

  border-radius: inherit;

  background: var(--green);
}

.factor-score {
  text-align: right;

  color: var(--text-soft);

  font-size: 9px;
  font-weight: 700;
}

/* NOTE */

.research-note {
  margin-top: 14px;

  padding: 14px 16px;

  border: 1px solid var(--border);
  border-radius: 11px;

  background: rgba(255, 255, 255, 0.018);

  color: #768191;

  font-size: 10px;
  line-height: 1.55;
}

.research-note strong {
  color: #a1aab7;
  font-weight: 700;
}

/* FOOTER */

.site-footer {
  padding-bottom: 28px;
}

.footer-inner {
  padding-top: 18px;

  border-top: 1px solid var(--border);

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;

  color: #6f7988;

  font-size: 10px;
}

/* TOAST */

.toast {
  position: fixed;

  right: 20px;
  bottom: 20px;
  z-index: 200;

  max-width: 320px;

  padding: 12px 14px;

  border: 1px solid var(--border-strong);
  border-radius: 11px;

  background: rgba(12, 16, 21, 0.97);

  color: var(--text-soft);

  font-size: 11px;

  box-shadow:
    0 20px 55px rgba(0, 0, 0, 0.4);

  opacity: 0;

  transform: translateY(8px);

  pointer-events: none;

  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE */

@media (max-width: 1120px) {
  .metrics-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .factor-card {
    grid-column: 1 / -1;
  }

  .factor-list {
    grid-template-columns: 1fr 1fr;
    column-gap: 28px;
  }
}

@media (max-width: 900px) {
  .nav-shell {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    display: none;
  }

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

  .ai-card {
    min-height: auto;
  }
}

@media (max-width: 700px) {
  .container {
    width: min(calc(100% - 24px), var(--container));
  }

  .status-chip {
    display: none;
  }

  .hero {
    padding-top: 40px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero-copy {
    font-size: 13px;
  }

  .stock-header {
    padding: 17px 0;

    flex-direction: column;
    align-items: flex-start;

    gap: 14px;
  }

  .market-price {
    text-align: left;
  }

  .price-row {
    justify-content: flex-start;
  }

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

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

  .factor-card {
    grid-column: auto;
  }

  .factor-list {
    grid-template-columns: 1fr;
  }

  .chart-area {
    height: 230px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 37px;
  }

  .search-icon {
    display: none;
  }

  .search-box {
    padding-left: 12px;
  }

  .search-button {
    min-width: 82px;
  }

  .card-inner {
    padding: 17px;
  }

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

/* =========================================
   V2.2 — FINAL POLISH
   ========================================= */

.hero {
  padding-top: 42px;
  padding-bottom: 20px;
}

.hero-inner {
  max-width: 810px;
}

.hero h1 {
  max-width: 720px;
  font-size: clamp(40px, 4.4vw, 58px);
  line-height: 1.01;
}

.hero-copy {
  max-width: 570px;
  margin-top: 15px;
  color: #939dad;
}

.search-panel {
  margin-top: 22px;
}

.dashboard {
  padding-top: 16px;
  padding-bottom: 36px;
}

.stock-header {
  min-height: 82px;
}

.card {
  background: #0b0f14;

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.012);
}

.metric-card {
  background: #0a0e13;
}

.card,
.metric-card {
  transition:
    border-color 160ms ease,
    background 160ms ease;
}

@media (hover: hover) {
  .card:hover,
  .metric-card:hover {
    border-color: rgba(255, 255, 255, 0.105);
  }
}

.company-meta,
.metric-name,
.ai-summary,
.case-item,
.factor-name,
.signal-row {
  color: #8f99a9;
}

.metric-context,
.market-meta {
  color: #717b8b;
}

.research-note {
  color: #7f8999;
}

.research-note strong {
  color: #aeb6c1;
}

.nav-link:disabled {
  opacity: 0.72;
  color: #596271;
}

.chart-area svg {
  width: calc(100% - 46px);
}

.chart-axis {
  width: 40px;
  right: 0;
  align-items: flex-end;
}

.chart-bottom-axis {
  padding-right: 46px;
}

.chart-area::after {
  content: "";

  position: absolute;

  top: 0;
  right: 40px;
  bottom: 0;

  width: 18px;

  pointer-events: none;

  background:
    linear-gradient(
      90deg,
      rgba(11, 15, 20, 0),
      rgba(11, 15, 20, 0.35)
    );
}

.score-wrap {
  margin-top: 21px;
  margin-bottom: 16px;
}

.score-ring {
  width: 134px;
  height: 134px;
}

.ai-summary {
  line-height: 1.68;
}

.case-list {
  max-width: 90%;
}

.factor-track {
  background: rgba(255, 255, 255, 0.075);
}

.site-footer {
  padding-bottom: 22px;
}

.footer-inner {
  padding-top: 15px;
}

button:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 2px solid rgba(97, 230, 173, 0.75);
  outline-offset: 3px;
}

@media (max-width: 700px) {
  .hero {
    padding-top: 36px;
    padding-bottom: 20px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .dashboard {
    padding-top: 14px;
    padding-bottom: 30px;
  }

  .chart-area svg {
    width: calc(100% - 38px);
  }

  .chart-axis {
    width: 34px;
  }

  .chart-bottom-axis {
    padding-right: 38px;
  }

  .case-list {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 36px;
  }
}
/* =========================================
   V2.3 — SCORE METHODOLOGY
   ========================================= */

.methodology-card {
  margin-top: 14px;
}


.methodology-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  gap: 18px;
}


.methodology-version {
  flex-shrink: 0;

  padding: 5px 8px;

  border: 1px solid var(--border);
  border-radius: 999px;

  background: rgba(255, 255, 255, 0.018);

  color: var(--muted);

  font-size: 8px;
  font-weight: 700;

  letter-spacing: 0.04em;
}


.methodology-intro {
  max-width: 760px;

  margin-top: 9px;

  color: #8f99a9;

  font-size: 11px;
  line-height: 1.68;
}


.methodology-table {
  margin-top: 20px;

  border-top: 1px solid var(--border);
}


.methodology-row {
  min-height: 46px;

  display: grid;

  grid-template-columns:
    minmax(180px, 1fr)
    90px
    90px
    125px;

  align-items: center;

  gap: 16px;

  border-bottom: 1px solid rgba(255, 255, 255, 0.055);

  color: var(--text-soft);

  font-size: 10px;
}


.methodology-row > :not(:first-child) {
  text-align: right;
}


.methodology-header {
  min-height: 37px;

  color: #687383;

  font-size: 8px;
  font-weight: 750;

  letter-spacing: 0.09em;
  text-transform: uppercase;
}


.methodology-factor-name {
  color: #9ca6b5;

  font-weight: 600;
}


.methodology-factor-score {
  color: var(--text);

  font-weight: 720;
}


.methodology-factor-weight {
  color: #7d8797;
}


.methodology-factor-contribution {
  color: var(--green);

  font-weight: 700;

  font-variant-numeric: tabular-nums;
}


.methodology-total {
  margin-top: 18px;

  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;

  gap: 8px;

  color: var(--muted);

  font-size: 10px;
}


.methodology-total strong {
  min-width: 42px;

  color: var(--text);

  font-size: 13px;
  font-weight: 740;

  text-align: right;

  font-variant-numeric: tabular-nums;
}


.methodology-total #finalScore {
  color: var(--green);
}


.methodology-arrow {
  margin: 0 3px;

  color: #56606f;
}


.methodology-note {
  margin-top: 15px;
  padding-top: 14px;

  border-top: 1px solid var(--border);

  color: #727d8d;

  font-size: 9px;
  line-height: 1.6;
}


/* =========================================
   METHODOLOGY — RESPONSIVE
   ========================================= */

@media (max-width: 700px) {

  .methodology-row {
    grid-template-columns:
      minmax(120px, 1fr)
      52px
      58px
      82px;

    gap: 8px;
  }


  .methodology-intro {
    max-width: 100%;
  }


  .methodology-total {
    justify-content: flex-start;
  }
}


@media (max-width: 480px) {

  .methodology-top {
    gap: 12px;
  }


  .methodology-row {
    min-height: 43px;

    grid-template-columns:
      minmax(100px, 1fr)
      42px
      50px
      69px;

    gap: 6px;

    font-size: 9px;
  }


  .methodology-header {
    font-size: 7px;
  }


  .methodology-total {
    gap: 6px;

    font-size: 9px;
  }


  .methodology-total strong {
    min-width: 35px;

    font-size: 12px;
  }
}
/* =========================================
   V2.4 — FACTOR CALCULATIONS
   ========================================= */

.factor-details-card {
  margin-top: 14px;
}

.factor-details-intro {
  max-width: 760px;
  margin-top: 9px;
  color: #8f99a9;
  font-size: 11px;
  line-height: 1.68;
}

.factor-details-list {
  margin-top: 20px;
  display: grid;
  gap: 12px;
}


/* =========================================
   FACTOR BLOCK
   ========================================= */

.factor-detail {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.012);
}

.factor-detail-top {
  min-height: 58px;
  padding: 15px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.factor-detail-name {
  color: var(--text);
  font-size: 12px;
  font-weight: 720;
  letter-spacing: -0.01em;
}

.factor-detail-result {
  display: flex;
  align-items: baseline;
  gap: 7px;
  flex-shrink: 0;
}

.factor-detail-unrounded {
  color: #747f8e;
  font-size: 9px;
  font-variant-numeric: tabular-nums;
}

.factor-detail-arrow {
  color: #56606f;
  font-size: 9px;
}

.factor-detail-final {
  min-width: 24px;
  color: var(--green);
  font-size: 15px;
  font-weight: 760;
  text-align: right;
  font-variant-numeric: tabular-nums;
}


/* =========================================
   COMPONENT TABLE
   ========================================= */

.factor-components {
  border-top: 1px solid var(--border);
}

.factor-component-row {
  min-height: 48px;
  padding: 0 16px;
  display: grid;
  grid-template-columns:
    minmax(190px, 1fr)
    105px
    115px
    85px
    115px;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-soft);
  font-size: 10px;
}

.factor-component-row:last-child {
  border-bottom: 0;
}

.factor-component-row > :not(:first-child) {
  text-align: right;
}

.factor-component-header {
  min-height: 36px;
  color: #687383;
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.factor-component-name {
  min-width: 0;
  color: #9ca6b5;
  font-weight: 600;
}

.factor-component-raw,
.factor-component-score,
.factor-component-weight,
.factor-component-contribution {
  font-variant-numeric: tabular-nums;
}

.factor-component-raw {
  color: #8993a2;
}

.factor-component-score {
  color: var(--text);
  font-weight: 700;
}

.factor-component-weight {
  color: #7d8797;
}

.factor-component-contribution {
  color: var(--green);
  font-weight: 700;
}


/* =========================================
   MISSING COMPONENT
   ========================================= */

.factor-component-missing {
  color: #5f6977;
}

.factor-component-missing .factor-component-raw,
.factor-component-missing .factor-component-score,
.factor-component-missing .factor-component-weight,
.factor-component-missing .factor-component-contribution {
  color: #5f6977;
}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 700px) {
  .factor-details-intro {
    max-width: 100%;
  }

  .factor-detail-top {
    min-height: 54px;
    padding: 14px;
  }

  .factor-component-header {
    display: none;
  }

  .factor-component-row {
    min-height: 0;
    padding: 13px 14px;
    grid-template-columns:
      minmax(0, 1fr)
      minmax(0, 1fr);
    gap: 10px 14px;
  }

  .factor-component-row > :not(:first-child) {
    text-align: left;
  }

  .factor-component-name {
    grid-column: 1 / -1;
    padding-bottom: 2px;
    color: var(--text);
    font-size: 10px;
  }

  .factor-component-raw::before,
  .factor-component-score::before,
  .factor-component-weight::before,
  .factor-component-contribution::before {
    display: block;
    margin-bottom: 3px;
    color: #616c7b;
    font-size: 7px;
    font-weight: 750;
    letter-spacing: 0.07em;
    text-transform: uppercase;
  }

  .factor-component-raw::before {
    content: "Metric";
  }

  .factor-component-score::before {
    content: "Component score";
  }

  .factor-component-weight::before {
    content: "Weight";
  }

  .factor-component-contribution::before {
    content: "Contribution";
  }

  .factor-component-contribution {
    text-align: left;
  }
}


@media (max-width: 480px) {
  .factor-details-list {
    gap: 10px;
  }

  .factor-detail-top {
    align-items: flex-start;
    gap: 10px;
  }

  .factor-detail-name {
    font-size: 11px;
  }

  .factor-detail-result {
    gap: 5px;
  }

  .factor-detail-unrounded {
    font-size: 8px;
  }

  .factor-detail-final {
    font-size: 14px;
  }

  .factor-component-row {
    padding: 12px;
    gap: 9px 12px;
    font-size: 9px;
  }
}
/* =========================================
   V2.5 — INTRO EXPERIENCE
   ========================================= */
body.intro-pending {
  overflow: hidden;
}

.intro-screen[hidden] {
  display: none;
}
.intro-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: grid;
  place-items: center;

  overflow: hidden;

  background:
    radial-gradient(
      circle at 50% 45%,
      rgba(97, 230, 173, 0.035),
      transparent 34%
    ),
    linear-gradient(
      180deg,
      #06080b 0%,
      #07090d 55%,
      #05070a 100%
    );

  opacity: 1;

  transition:
    opacity 520ms ease;
}


/* =========================================
   ACTIVE / EXIT STATES
   ========================================= */

.intro-screen.is-active {
  opacity: 1;
}

.intro-screen.is-exiting {
  opacity: 0;
  pointer-events: none;
}


/* =========================================
   AMBIENT LIGHT
   ========================================= */

.intro-ambient {
  position: absolute;

  width: 520px;
  height: 520px;

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(97, 230, 173, 0.075) 0%,
      rgba(97, 230, 173, 0.028) 32%,
      transparent 70%
    );

  filter: blur(18px);

  opacity: 0;

  pointer-events: none;
}

.intro-ambient-left {
  top: -220px;
  left: -180px;
}

.intro-ambient-right {
  right: -220px;
  bottom: -250px;
}


/* =========================================
   CONTENT
   ========================================= */

.intro-content {
  position: relative;
  z-index: 2;

  width:
    min(
      calc(100% - 48px),
      620px
    );

  display: flex;
  flex-direction: column;
  align-items: center;

  text-align: center;

  transform:
    translateY(8px);

  opacity: 0;
}


/* =========================================
   SIGNAL
   ========================================= */

.intro-signal {
  height: 18px;

  display: flex;
  align-items: flex-end;
  justify-content: center;

  gap: 4px;

  margin-bottom: 22px;
}

.intro-signal span {
  width: 2px;

  border-radius: 999px;

  background:
    rgba(
      97,
      230,
      173,
      0.8
    );

  box-shadow:
    0 0 12px
    rgba(
      97,
      230,
      173,
      0.22
    );

  transform-origin: bottom;

  opacity: 0;
}

.intro-signal span:nth-child(1) {
  height: 7px;
}

.intro-signal span:nth-child(2) {
  height: 15px;
}

.intro-signal span:nth-child(3) {
  height: 10px;
}


/* =========================================
   TYPOGRAPHY
   ========================================= */

.intro-eyebrow {
  color:
    #697483;

  font-size:
    9px;

  font-weight:
    720;

  letter-spacing:
    0.19em;

  text-transform:
    uppercase;

  opacity: 0;

  transform:
    translateY(5px);
}

.intro-wordmark {
  margin-top: 12px;

  color:
    #f4f7f8;

  font-size:
    clamp(
      32px,
      5vw,
      46px
    );

  font-weight:
    760;

  line-height:
    1;

  letter-spacing:
    -0.045em;

  opacity: 0;

  transform:
    translateY(8px);

  text-shadow:
    0 1px 24px
    rgba(
      255,
      255,
      255,
      0.025
    );
}

.intro-wordmark span {
  color:
    #61e6ad;

  font-weight:
    690;
}


/* =========================================
   RULE
   ========================================= */

.intro-rule {
  width:
    min(
      260px,
      58vw
    );

  height:
    1px;

  margin-top:
    24px;

  overflow:
    hidden;

  background:
    rgba(
      255,
      255,
      255,
      0.045
    );
}

.intro-rule span {
  display:
    block;

  width:
    100%;

  height:
    100%;

  background:
    linear-gradient(
      90deg,
      transparent 0%,
      rgba(
        97,
        230,
        173,
        0.35
      ) 25%,
      #61e6ad 50%,
      rgba(
        97,
        230,
        173,
        0.35
      ) 75%,
      transparent 100%
    );

  transform:
    translateX(-105%);
}


/* =========================================
   TAGLINE
   ========================================= */

.intro-tagline {
  margin-top:
    17px;

  color:
    #7f8998;

  font-size:
    11px;

  font-weight:
    500;

  letter-spacing:
    0.015em;

  opacity:
    0;

  transform:
    translateY(5px);
}


/* =========================================
   INTRO ANIMATION
   ========================================= */

.intro-screen.is-active
.intro-content {
  animation:
    intro-content-enter
    620ms
    cubic-bezier(
      0.22,
      1,
      0.36,
      1
    )
    120ms
    forwards;
}

.intro-screen.is-active
.intro-ambient-left {
  animation:
    intro-ambient-enter
    1100ms
    ease
    100ms
    forwards;
}

.intro-screen.is-active
.intro-ambient-right {
  animation:
    intro-ambient-enter
    1100ms
    ease
    250ms
    forwards;
}

.intro-screen.is-active
.intro-signal span {
  animation:
    intro-signal-enter
    420ms
    cubic-bezier(
      0.22,
      1,
      0.36,
      1
    )
    forwards;
}

.intro-screen.is-active
.intro-signal span:nth-child(1) {
  animation-delay:
    260ms;
}

.intro-screen.is-active
.intro-signal span:nth-child(2) {
  animation-delay:
    330ms;
}

.intro-screen.is-active
.intro-signal span:nth-child(3) {
  animation-delay:
    400ms;
}

.intro-screen.is-active
.intro-eyebrow {
  animation:
    intro-text-enter
    500ms
    cubic-bezier(
      0.22,
      1,
      0.36,
      1
    )
    350ms
    forwards;
}

.intro-screen.is-active
.intro-wordmark {
  animation:
    intro-wordmark-enter
    650ms
    cubic-bezier(
      0.22,
      1,
      0.36,
      1
    )
    430ms
    forwards;
}

.intro-screen.is-active
.intro-rule span {
  animation:
    intro-rule-enter
    720ms
    cubic-bezier(
      0.22,
      1,
      0.36,
      1
    )
    600ms
    forwards;
}

.intro-screen.is-active
.intro-tagline {
  animation:
    intro-text-enter
    520ms
    cubic-bezier(
      0.22,
      1,
      0.36,
      1
    )
    760ms
    forwards;
}


/* =========================================
   KEYFRAMES
   ========================================= */

@keyframes intro-content-enter {
  from {
    opacity: 0;

    transform:
      translateY(8px);
  }

  to {
    opacity: 1;

    transform:
      translateY(0);
  }
}


@keyframes intro-ambient-enter {
  from {
    opacity: 0;

    transform:
      scale(0.94);
  }

  to {
    opacity: 1;

    transform:
      scale(1);
  }
}


@keyframes intro-signal-enter {
  from {
    opacity: 0;

    transform:
      scaleY(0.15);
  }

  to {
    opacity: 1;

    transform:
      scaleY(1);
  }
}


@keyframes intro-text-enter {
  from {
    opacity: 0;

    transform:
      translateY(5px);
  }

  to {
    opacity: 1;

    transform:
      translateY(0);
  }
}


@keyframes intro-wordmark-enter {
  from {
    opacity: 0;

    transform:
      translateY(8px)
      scale(0.985);

    filter:
      blur(3px);
  }

  to {
    opacity: 1;

    transform:
      translateY(0)
      scale(1);

    filter:
      blur(0);
  }
}


@keyframes intro-rule-enter {
  from {
    transform:
      translateX(-105%);
  }

  to {
    transform:
      translateX(0);
  }
}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 600px) {
  .intro-content {
    width:
      calc(100% - 40px);
  }

  .intro-signal {
    margin-bottom:
      19px;
  }

  .intro-eyebrow {
    font-size:
      8px;

    letter-spacing:
      0.17em;
  }

  .intro-wordmark {
    margin-top:
      11px;

    font-size:
      34px;
  }

  .intro-rule {
    width:
      210px;

    margin-top:
      21px;
  }

  .intro-tagline {
    margin-top:
      15px;

    font-size:
      10px;
  }

  .intro-ambient {
    width:
      390px;

    height:
      390px;
  }
}


/* =========================================
   REDUCED MOTION
   ========================================= */

@media (
  prefers-reduced-motion:
  reduce
) {
  .intro-screen,
  .intro-content,
  .intro-ambient,
  .intro-signal span,
  .intro-eyebrow,
  .intro-wordmark,
  .intro-rule span,
  .intro-tagline {
    animation:
      none !important;

    transition:
      none !important;
  }

  .intro-screen.is-active,
  .intro-screen.is-active
  .intro-content,
  .intro-screen.is-active
  .intro-ambient,
  .intro-screen.is-active
  .intro-signal span,
  .intro-screen.is-active
  .intro-eyebrow,
  .intro-screen.is-active
  .intro-wordmark,
  .intro-screen.is-active
  .intro-tagline {
    opacity:
      1;
  }

  .intro-screen.is-active
  .intro-content,
  .intro-screen.is-active
  .intro-signal span,
  .intro-screen.is-active
  .intro-eyebrow,
  .intro-screen.is-active
  .intro-wordmark,
  .intro-screen.is-active
  .intro-tagline {
    transform:
      none;
  }

  .intro-screen.is-active
  .intro-rule span {
    transform:
      translateX(0);
  }
}
