:root {
  --ink: #101215;
  --ink-soft: #2f3338;
  --paper: #f2f0e9;
  --paper-bright: #fbfaf6;
  --line: #d8d4c8;
  --line-dark: #34383c;
  --yellow: #f2c94c;
  --yellow-bright: #ffd84d;
  --bear: #e76f51;
  --base: #e9b949;
  --bull: #4f9d69;
  --muted: #77766f;
  --shadow: 0 18px 45px rgba(16, 18, 21, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 92% 1%, rgba(242, 201, 76, 0.17), transparent 24rem),
    var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--yellow-bright);
  outline-offset: 4px;
}

.site-shell {
  min-height: 100vh;
}

.topbar {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1440px;
  padding: 24px 40px;
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 12px;
  text-decoration: none;
}

.brand-taxi {
  filter: saturate(1.08);
  font-size: 24px;
  line-height: 1;
  transform: translateY(-1px);
}

.brand-wordmark {
  color: var(--ink);
  display: inline-block;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -0.65px;
  padding-bottom: 7px;
  position: relative;
  white-space: nowrap;
}

.brand-wordmark::after {
  background: var(--yellow);
  bottom: 0;
  content: "";
  height: 4px;
  left: 1px;
  position: absolute;
  transform: skewX(-18deg);
  width: 38px;
}

.topbar-actions {
  align-items: center;
  display: flex;
  gap: 22px;
}

.updated-label {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  text-transform: uppercase;
}

.dashboard-link {
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.dashboard-link:hover {
  text-decoration: underline;
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}

.x-link {
  align-items: center;
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  gap: 8px;
  text-decoration: none;
}

.x-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hero {
  padding: 58px 40px 0;
}

.hero-grid {
  align-items: center;
  display: grid;
  gap: 54px;
  grid-template-columns: minmax(0, 1.38fr) minmax(360px, 1fr);
  margin: 0 auto;
  max-width: 1280px;
}

.eyebrow {
  color: #6b5a18;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.11em;
  margin: 0 0 20px;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(46px, 4vw, 60px);
  letter-spacing: -0.062em;
  line-height: 0.94;
  margin: 0;
  max-width: 760px;
}

.headline-desktop {
  display: block;
  white-space: nowrap;
}

.headline-mobile {
  display: none;
}

.hero-deck {
  color: var(--ink-soft);
  font-size: 18px;
  letter-spacing: -0.015em;
  line-height: 1.52;
  margin: 30px 0 0;
  max-width: 680px;
}

.hero-deck-secondary {
  margin-top: 14px;
}

.hero-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin-top: 34px;
}

.primary-button {
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 2px;
  color: var(--paper-bright);
  cursor: pointer;
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  justify-content: center;
  padding: 15px 20px;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.primary-button:hover {
  background: var(--yellow-bright);
  color: var(--ink);
  transform: translateY(-2px);
}

.text-button {
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.text-button span {
  display: inline-block;
  margin-left: 6px;
  transition: transform 160ms ease;
}

.text-button:hover span {
  transform: translateX(4px);
}

.hero-visual {
  margin: 0;
  min-width: 0;
  position: relative;
}

.hero-visual img {
  display: block;
  height: auto;
  transform: translateX(-2%);
  width: 108%;
}

.hero-visual figcaption {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.11em;
  margin: 2px 0 0 6%;
  text-transform: uppercase;
}

.proof-strip {
  border-top: 1px solid var(--ink);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(180px, 0.8fr);
  margin: 52px auto 0;
  max-width: 1280px;
  padding: 22px 0 24px;
}

.proof-metric,
.proof-status {
  min-height: 62px;
  padding: 0 28px;
}

.proof-metric:first-child {
  padding-left: 0;
}

.proof-metric + .proof-metric,
.proof-status {
  border-left: 1px solid var(--line);
}

.proof-metric {
  align-items: baseline;
  display: flex;
  gap: 16px;
}

.proof-metric strong {
  font-size: 38px;
  letter-spacing: -0.06em;
  line-height: 1;
}

.proof-metric span,
.proof-status span:last-child {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
}

.proof-status {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.live-dot {
  background: var(--bull);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(79, 157, 105, 0.18);
  height: 7px;
  width: 7px;
}

.stack-preview {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: grid;
  gap: 44px;
  grid-template-columns: minmax(320px, 0.8fr) minmax(540px, 1.2fr);
  margin: 0 auto;
  max-width: 1440px;
  padding: 70px 80px;
}

.stack-preview-copy h2 {
  font-size: clamp(38px, 4vw, 58px);
  letter-spacing: -0.058em;
  line-height: 0.98;
  margin: 0;
  max-width: 560px;
}

  .stack-path {
    align-items: center;
  align-self: end;
  border-bottom: 1px solid var(--ink);
  border-top: 1px solid var(--ink);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.stack-path li {
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.07em;
  padding: 22px 15px;
  position: relative;
  text-align: center;
  text-transform: uppercase;
}

.stack-path li:not(:last-child)::after {
  color: #9d7a09;
  content: "→";
  font-size: 16px;
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-52%);
}

.universe-section {
  margin: 0 auto;
  max-width: 1440px;
  padding: 110px 40px 130px;
}

.section-heading {
  align-items: end;
  display: grid;
  gap: 50px;
  grid-template-columns: 1fr minmax(300px, 520px);
  margin: 0 auto 48px;
  max-width: 1280px;
}

.section-heading h2,
.methodology-header h2,
.cta-section h2 {
  font-size: clamp(40px, 5vw, 72px);
  letter-spacing: -0.065em;
  line-height: 0.98;
  margin: 0;
}

.section-intro,
.methodology-header > p:last-child,
.cta-section > div > p:last-child {
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.55;
  margin: 0;
}

.explorer-toolbar {
  align-items: stretch;
  display: flex;
  gap: 12px;
  margin: 0 auto;
  max-width: 1280px;
}

.search-wrap {
  align-items: center;
  background: var(--paper-bright);
  border: 1px solid var(--ink);
  display: flex;
  flex: 1;
  gap: 12px;
  padding: 0 16px;
}

.search-wrap svg {
  fill: none;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.8;
  width: 18px;
}

.search-wrap input {
  background: transparent;
  border: 0;
  color: var(--ink);
  font-size: 15px;
  outline: 0;
  padding: 15px 0;
  width: 100%;
}

.search-wrap input::placeholder {
  color: #8c8a82;
}

.view-toggle {
  border: 1px solid var(--ink);
  display: flex;
}

.view-button {
  background: transparent;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  font-weight: 800;
  padding: 0 18px;
  text-transform: uppercase;
}

.view-button + .view-button {
  border-left: 1px solid var(--ink);
}

.view-button.is-active {
  background: var(--ink);
  color: var(--paper-bright);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px auto 0;
  max-width: 1280px;
}

.pricing-filters {
  margin-top: 10px;
}

.filter-chip {
  background: transparent;
  border: 1px solid #a6a299;
  border-radius: 999px;
  color: #575850;
  cursor: pointer;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  padding: 9px 13px;
}

.filter-chip:hover,
.filter-chip.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
}

.filter-chip[data-pricing="Bear"].is-active {
  background: var(--bear);
  border-color: var(--bear);
}

.filter-chip[data-pricing="Base"].is-active {
  background: var(--base);
  border-color: var(--base);
  color: var(--ink);
}

.filter-chip[data-pricing="Bull"].is-active {
  background: var(--bull);
  border-color: var(--bull);
}

.results-meta {
  align-items: center;
  border-bottom: 1px solid var(--ink);
  display: flex;
  justify-content: space-between;
  margin: 34px auto 0;
  max-width: 1280px;
  padding-bottom: 12px;
}

.results-meta p {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  margin: 0;
  text-transform: uppercase;
}

.ranking-note {
  color: var(--muted);
  font-size: 9px;
}

.clear-button {
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 12px;
  padding: 4px 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.company-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 18px auto 0;
  max-width: 1280px;
}

.company-card {
  align-self: start;
  background: var(--paper-bright);
  border: 1px solid var(--line);
  min-width: 0;
  overflow: hidden;
  position: relative;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.company-grid:not(.list-view) .company-card:not(.is-open) {
  height: 250px;
}

.company-grid:not(.list-view) .company-card:not(.is-open) .card-summary {
  height: 184px;
}

.company-grid:not(.list-view) .company-card:not(.is-open) .company-summary {
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  display: -webkit-box;
  overflow: hidden;
}

.company-logo-watermark {
  filter: grayscale(0.15);
  height: 190px;
  opacity: 0.035;
  pointer-events: none;
  position: absolute;
  right: -28px;
  top: 34px;
  transform: rotate(-7deg);
  width: 190px;
  object-fit: contain;
}

.company-card:hover,
.company-card.is-open {
  border-color: var(--ink);
  box-shadow: 0 13px 30px rgba(16, 18, 21, 0.08);
  transform: translateY(-2px);
}

.card-summary {
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  display: block;
  padding: 22px;
  text-align: left;
  width: 100%;
  position: relative;
  z-index: 1;
}

.card-topline,
.company-title-row {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.layer-kicker {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.card-badges {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.pricing-badge {
  border-radius: 999px;
  color: white;
  display: inline-flex;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.06em;
  min-height: 22px;
  padding: 6px 8px 5px;
  text-transform: uppercase;
}

.pricing-badge.bear {
  background: var(--bear);
}

.pricing-badge.base {
  background: var(--base);
  color: var(--ink);
}

.pricing-badge.bull {
  background: var(--bull);
}

.company-title-row {
  margin-top: 20px;
}

.company-identity {
  align-items: center;
  display: flex;
  gap: 14px;
  min-width: 0;
}

.company-title-copy {
  min-width: 0;
}

.company-logo-shell {
  align-items: center;
  background: #eeece4;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: inline-flex;
  flex: 0 0 48px;
  height: 48px;
  justify-content: center;
  overflow: hidden;
  position: relative;
  width: 48px;
}

.company-logo {
  filter: saturate(0.88);
  height: 32px;
  object-fit: contain;
  opacity: 0;
  transition: opacity 180ms ease;
  width: 32px;
}

.company-logo-shell.has-logo .company-logo {
  opacity: 0.82;
}

.company-logo-fallback {
  color: #6b5a18;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: -0.02em;
  position: absolute;
}

.company-logo-shell.has-logo .company-logo-fallback {
  display: none;
}

.company-name {
  display: block;
  font-size: 25px;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.company-ticker {
  color: #5f615c;
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  margin-top: 8px;
}

.expand-icon {
  height: 24px;
  margin-left: 12px;
  position: relative;
  width: 24px;
}

.expand-icon::before,
.expand-icon::after {
  background: var(--ink);
  content: "";
  height: 1px;
  left: 4px;
  position: absolute;
  top: 12px;
  transition: transform 160ms ease;
  width: 16px;
}

.expand-icon::after {
  transform: rotate(90deg);
}

.company-card.is-open .expand-icon::after {
  transform: rotate(0);
}

.company-summary {
  color: var(--ink-soft);
  display: block;
  font-size: 14px;
  line-height: 1.55;
  margin-top: 20px;
  max-width: 570px;
}

.collapsed-pack-action {
  align-items: center;
  background: linear-gradient(100deg, #fff7cf 0%, #f4e7a1 100%);
  border-top: 1px solid #d9c86a;
  bottom: 0;
  color: var(--ink);
  display: flex;
  gap: 11px;
  height: 66px;
  left: 0;
  padding: 10px 12px 10px 20px;
  position: absolute;
  right: 0;
  z-index: 3;
}

.collapsed-pack-action[hidden],
.company-card.is-open .collapsed-pack-action {
  display: none;
}

.collapsed-pack-mark {
  align-items: center;
  background: var(--ink);
  border-radius: 3px;
  color: var(--yellow-bright);
  display: inline-flex;
  flex: 0 0 34px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  letter-spacing: -0.03em;
}

.collapsed-pack-copy {
  display: block;
  margin-right: auto;
  min-width: 0;
}

.collapsed-pack-copy strong,
.collapsed-pack-copy small {
  display: block;
}

.collapsed-pack-copy strong {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: -0.015em;
}

.collapsed-pack-copy small {
  color: #625b36;
  font-size: 8px;
  line-height: 1.3;
  margin-top: 4px;
}

.collapsed-buy-pack-button {
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 2px;
  color: var(--paper-bright);
  cursor: pointer;
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 900;
  min-width: 118px;
  padding: 10px 12px;
}

.collapsed-buy-pack-button:hover:not(:disabled) {
  background: #282b2e;
  border-color: #282b2e;
}

.collapsed-buy-pack-button:disabled {
  background: rgba(255, 255, 255, 0.42);
  border-color: rgba(16, 18, 21, 0.26);
  color: #696751;
  cursor: not-allowed;
}

.scenario-panel {
  border-top: 1px solid var(--line);
  padding: 0 22px 12px;
  position: relative;
  z-index: 1;
}

.scenario {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 20px;
  grid-template-columns: 50px 1fr;
  padding: 17px 0;
}

.scenario:last-child {
  border-bottom: 0;
}

.scenario > span {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10px;
  font-weight: 900;
  padding-top: 3px;
  text-transform: uppercase;
}

.scenario-bear > span {
  color: var(--bear);
}

.scenario-base > span {
  color: #8a6711;
}

.scenario-bull > span {
  color: var(--bull);
}

.scenario p {
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}

.company-grid.list-view {
  display: block;
}

.company-grid.list-view .company-card {
  margin-top: 10px;
}

.company-grid.list-view .card-summary {
  align-items: center;
  display: grid;
  gap: 16px;
  grid-template-columns: 150px 260px minmax(0, 1fr);
}

.company-grid.list-view .card-topline {
  display: block;
}

.company-grid.list-view .pricing-badge {
  margin-top: 10px;
}

.company-grid.list-view .card-badges {
  display: flex;
  justify-content: flex-start;
  margin-top: 10px;
}

.company-grid.list-view .card-badges .pricing-badge {
  margin-top: 0;
}

.company-grid.list-view .company-title-row {
  margin: 0;
}

.company-grid.list-view .company-summary {
  margin: 0;
}

.company-grid.list-view .collapsed-pack-action {
  position: static;
}

.empty-state {
  border: 1px dashed #99968d;
  margin: 18px auto 0;
  max-width: 1280px;
  padding: 80px 24px;
  text-align: center;
}

.empty-state h3 {
  font-size: 28px;
  margin: 0 0 26px;
}

.methodology-section {
  background: var(--ink);
  color: var(--paper-bright);
  padding: 120px 40px;
}

.methodology-header,
.methodology-grid,
.methodology-footnote {
  margin-left: auto;
  margin-right: auto;
  max-width: 1280px;
}

.methodology-header {
  display: grid;
  gap: 28px 60px;
  grid-template-columns: 1.2fr 0.8fr;
}

.methodology-header .eyebrow {
  color: var(--yellow);
  grid-column: 1 / -1;
  margin-bottom: -5px;
}

.methodology-header > p:last-child {
  align-self: end;
  color: #b8b8b3;
}

.methodology-grid {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 70px;
}

.method-card {
  background: #171a1d;
  border-top: 4px solid;
  min-height: 270px;
  padding: 28px;
}

.bear-card {
  border-color: var(--bear);
}

.base-card {
  border-color: var(--base);
}

.bull-card {
  border-color: var(--bull);
}

.case-index {
  color: #73777b;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
}

.method-card h3 {
  font-size: 30px;
  margin: 62px 0 16px;
}

.method-card p {
  color: #b8b8b3;
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
}

.methodology-footnote {
  border-top: 1px solid var(--line-dark);
  color: #8e918f;
  font-size: 12px;
  line-height: 1.55;
  margin-top: 28px;
  padding-top: 22px;
}

.methodology-footnote p {
  margin: 0;
  max-width: 850px;
}

.pricing-basis {
  background: #eeece4;
  border-top: 1px solid var(--line);
  padding: 16px 22px 18px;
}

.pricing-basis > span {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pricing-basis p {
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.5;
  margin: 8px 0 0;
}

.card-action-bar {
  align-items: center;
  background: var(--ink);
  color: var(--paper-bright);
  display: flex;
  gap: 20px;
  justify-content: flex-end;
  margin: 12px -22px -12px;
  padding: 18px 22px;
}

.save-card-button {
  background: transparent;
  border: 1px solid #686b6d;
  border-radius: 2px;
  color: var(--paper-bright);
  cursor: pointer;
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 900;
  padding: 8px 10px;
}

.save-card-button:hover {
  background: var(--paper-bright);
  border-color: var(--paper-bright);
  color: var(--ink);
}

.save-card-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.research-pack-copy {
  display: block;
  margin-right: auto;
  min-width: 0;
}

.research-pack-copy[hidden],
.buy-pack-button[hidden] {
  display: none;
}

.research-pack-copy strong,
.research-pack-copy small {
  display: block;
}

.card-action-buttons {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.research-pack-copy strong {
  font-size: 12px;
  letter-spacing: -0.01em;
}

.research-pack-copy small {
  color: #b9bab6;
  font-size: 9px;
  line-height: 1.45;
  margin-top: 5px;
}

.buy-pack-button {
  background: var(--yellow-bright);
  border: 1px solid var(--yellow-bright);
  border-radius: 2px;
  color: var(--ink);
  cursor: pointer;
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 900;
  padding: 10px 12px;
}

.buy-pack-button:hover:not(:disabled) {
  background: var(--paper-bright);
  border-color: var(--paper-bright);
}

.buy-pack-button:disabled {
  background: transparent;
  border-color: #4d5052;
  color: #aaa;
  cursor: not-allowed;
}

.cta-section {
  align-items: end;
  display: flex;
  gap: 40px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1360px;
  padding: 120px 40px;
}

.cta-section > div {
  max-width: 780px;
}

.cta-section h2 {
  margin-bottom: 24px;
}

footer {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1360px;
  padding: 32px 40px 50px;
}

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

.footer-brand .brand-wordmark {
  font-size: 16px;
}

.footer-brand > span:last-child {
  color: var(--muted);
  font-size: 11px;
}

footer > p {
  color: var(--muted);
  font-size: 11px;
  margin: 0;
  text-align: right;
}

.visually-hidden {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

@media (max-width: 980px) {
  .section-heading,
  .methodology-header {
    grid-template-columns: 1fr;
  }

  .stack-path li:not(:last-child)::after {
    right: 0;
  }

  .hero {
    padding-left: 28px;
    padding-right: 28px;
  }

  .hero-grid {
    gap: 30px;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  }

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

  .hero-deck {
    font-size: 16px;
  }

  .stack-preview {
    gap: 34px;
    grid-template-columns: minmax(280px, 0.75fr) minmax(460px, 1.25fr);
    padding-left: 40px;
    padding-right: 40px;
  }

  .company-grid.list-view .card-summary {
    grid-template-columns: 120px 220px minmax(0, 1fr);
  }
}

@media (max-width: 860px) {
  .hero-grid,
  .stack-preview {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 42px;
  }

  .hero-copy {
    max-width: 720px;
  }

  .hero h1 {
    font-size: clamp(50px, 8vw, 64px);
  }

  .hero-visual {
    margin: -10px auto 0;
    max-width: 680px;
    width: 100%;
  }

  .hero-visual img {
    transform: none;
    width: 100%;
  }

  .stack-preview-copy h2 {
    max-width: 680px;
  }
}

@media (max-width: 720px) {
  .topbar,
  .hero,
  .universe-section,
  .methodology-section,
  .cta-section,
  footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .topbar {
    padding-top: 18px;
  }

  .topbar-actions {
    gap: 12px;
  }

  .dashboard-link,
  .updated-label {
    display: none;
  }

  .brand-wordmark {
    font-size: 17px;
  }

  .hero {
    padding-bottom: 0;
    padding-top: 46px;
  }

  .hero h1 {
    font-size: clamp(34px, 8.8vw, 50px);
    line-height: 0.98;
  }

  .headline-desktop {
    display: none;
  }

  .headline-mobile {
    display: block;
    white-space: nowrap;
  }

  .hero-deck {
    font-size: 17px;
    margin-top: 26px;
  }

  .hero-deck-secondary {
    margin-top: 13px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 22px;
    margin-top: 30px;
  }

  .hero-visual {
    margin-top: 2px;
  }

  .hero-visual figcaption {
    margin-left: 0;
  }

  .proof-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 36px;
    padding-bottom: 12px;
    padding-top: 12px;
  }

  .proof-metric,
  .proof-status {
    min-height: 74px;
    padding: 16px 14px;
  }

  .proof-metric:first-child {
    padding-left: 0;
  }

  .proof-metric:nth-child(2) {
    border-left: 1px solid var(--line);
  }

  .proof-metric:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
  }

  .proof-status {
    border-left: 1px solid var(--line);
    border-top: 1px solid var(--line);
    justify-content: flex-start;
  }

  .proof-metric strong {
    font-size: 34px;
  }

  .stack-preview {
    gap: 36px;
    padding: 58px 20px;
  }

  .stack-preview-copy h2 {
    font-size: 42px;
  }

  .stack-path {
    grid-template-columns: 1fr;
  }

  .stack-path li {
    border-bottom: 1px solid var(--line);
    padding: 15px 10px;
  }

  .stack-path li:last-child {
    border-bottom: 0;
  }

  .stack-path li:not(:last-child)::after {
    bottom: -10px;
    left: 50%;
    right: auto;
    top: auto;
    transform: translateX(-50%) rotate(90deg);
  }

  .universe-section {
    padding-bottom: 90px;
    padding-top: 85px;
  }

  .section-heading {
    gap: 24px;
  }

  .explorer-toolbar {
    display: block;
  }

  .view-toggle {
    display: none;
  }

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

  .company-grid:not(.list-view) .company-card:not(.is-open) {
    height: 250px;
  }

  .collapsed-pack-copy small {
    display: none;
  }

  .company-grid.list-view {
    display: grid;
  }

  .company-grid.list-view .card-summary {
    display: block;
  }

  .company-grid.list-view .card-topline,
  .company-grid.list-view .company-title-row {
    display: flex;
  }

  .company-grid.list-view .pricing-badge {
    margin-top: 0;
  }

  .company-grid.list-view .card-badges {
    justify-content: flex-end;
    margin-top: 0;
  }

  .company-grid.list-view .company-title-row {
    margin-top: 20px;
  }

  .company-grid.list-view .company-summary {
    margin-top: 20px;
  }

  .ranking-note {
    display: none;
  }

  .card-action-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .card-action-buttons {
    justify-content: flex-end;
    width: 100%;
  }

  .methodology-section {
    padding-bottom: 90px;
    padding-top: 90px;
  }

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

  .method-card {
    min-height: 220px;
  }

  .method-card h3 {
    margin-top: 45px;
  }

  .cta-section,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .cta-section {
    padding-bottom: 90px;
    padding-top: 90px;
  }

  footer {
    gap: 28px;
  }

  footer > p {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
