:root {
  --ink: #071632;
  --ink-2: #0d1d38;
  --muted: #5f6f86;
  --muted-dark: #9eabc1;
  --line: #d7e1ef;
  --line-dark: rgba(255, 255, 255, 0.14);
  --blue: #155cff;
  --blue-soft: #7aa7ff;
  --green: #0c8f54;
  --soft: #f3f7fd;
  --white: #ffffff;
  --hero: #000205;
  --hero-2: #020812;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  overflow-y: auto;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =========================================================
   HEADER
========================================================= */

.top {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 11px clamp(18px, 3vw, 58px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(16, 20, 29, 0.96);
  color: #ffffff;
  backdrop-filter: blur(18px);
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
  text-decoration:none;
}

.brand-lockup{
  width:58px;
  height:58px;
  flex:0 0 58px;
  display:grid;
  place-items:center;
  overflow:visible;
  border:none;
  border-radius:0;
  background:transparent;
}

.brand-lockup img{
  display:block;
  width:64px;
  height:64px;
  object-fit:contain;
}

.brand-copy{
  display:grid;
  gap:1px;
  min-width:0;
}

.brand-copy b {
  font-size: 13px;
  line-height: 1.1;
}

.brand-copy small {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.58);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  flex-wrap: wrap;
}

.top nav a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 10px;
  font-weight: 800;
  text-decoration: none;
}

.top nav a:hover {
  color: #ffffff;
}

main {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* =========================================================
   HERO · BRAND LEFT / MOVING BUSINESS GRAPH / TOTAL RIGHT
========================================================= */

.hero {
  position: relative;
  width: 100%;
  min-height: clamp(880px, 90vh, 1180px);
  overflow: hidden;
  border-top: 0;
  border-right: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  border-left: 0;
  border-radius: 0;
  background:
    radial-gradient(circle at 50% 45%, rgba(20, 63, 136, 0.09), transparent 34rem),
    linear-gradient(180deg, #000103 0%, #000205 58%, #01050b 100%);
  color: #ffffff;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.46), transparent 17%, transparent 83%, rgba(0, 0, 0, 0.46)),
    radial-gradient(circle at 50% 50%, transparent 0 44%, rgba(0, 0, 0, 0.24) 84%);
}

.hero-shell {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.15fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(20px, 2vw, 50px);
  width: 100%;
  min-height: inherit;
  padding: clamp(44px, 4.5vw, 96px) clamp(24px, 2.8vw, 76px) clamp(74px, 6vw, 120px);
}

.hero-brand-panel {
  align-self: center;
  width: 100%;
  max-width: none;
}

.hero-brand-kicker {
  display: block;
  margin-bottom: 17px;
  color: #76a4ff;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-brand-panel > strong {
  display: block;
  width: 100%;
  max-width: none;
  font-size: clamp(66px, 5.55vw, 112px);
  font-weight: 640;
  line-height: 0.94;
  letter-spacing: -0.058em;
}

.hero-brand-panel > p {
  width: 100%;
  max-width: none;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: clamp(18px, 1.35vw, 25px);
  line-height: 1.62;
}

.hero-brand-flow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 30px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.hero-brand-flow span:nth-of-type(2) {
  color: #8eb6ff;
}

.hero-brand-flow i {
  color: rgba(255, 255, 255, 0.25);
  font-style: normal;
}

.hero-sphere-stage {
  position: relative;
  align-self: stretch;
  min-height: clamp(880px, 88vh, 1120px);
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 50%, rgba(16, 54, 120, 0.07), transparent 58%),
    #000205;
}

.hero-sphere {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 1;
  background: #000205;
  transition: opacity 260ms ease;
}

.hero-sphere-halo {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 98%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
  opacity: 1;
  box-shadow:
    0 0 110px rgba(33, 94, 210, 0.10),
    inset 0 0 110px rgba(31, 91, 210, 0.04);
  transition: opacity 260ms ease;
}

.hero-metrics {
  display: grid;
  align-content: center;
  gap: 24px;
  width: 100%;
  max-width: none;
  justify-self: stretch;
}

.hero-metrics article {
  padding: 24px 0 23px 24px;
  border-left: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-metrics article > span {
  display: block;
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero-metrics article > strong {
  display: block;
  margin-top: 8px;
  font-size: clamp(62px, 5.4vw, 104px);
  font-weight: 540;
  line-height: 0.94;
  letter-spacing: -0.06em;
}

.hero-metrics article > small {
  display: block;
  width: 100%;
  max-width: none;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
  line-height: 1.6;
}

.hero-metrics .hero-protocol-metric > strong {
  font-size: clamp(26px, 2.45vw, 42px);
  letter-spacing: -0.04em;
}

.hero-data-note {
  margin: 2px 0 0;
  color: rgba(255, 255, 255, 0.42);
  font-size: 9px;
  line-height: 1.6;
}

.hero-sphere-toggle {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 5;
  min-height: 38px;
  padding: 0 14px;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: 999px;
  background: rgba(3, 9, 19, 0.82);
  color: rgba(255, 255, 255, 0.78);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.06em;
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.hero-sphere-toggle:hover,
.hero-sphere-toggle:focus-visible {
  border-color: rgba(94, 160, 255, 0.72);
  color: #ffffff;
  outline: none;
}

.hero.graph-hidden .hero-shell {
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
}

.hero.graph-hidden .hero-sphere-stage {
  display: none;
}

.hero.graph-hidden .hero-metrics {
  grid-column: 2;
}

/* =========================================================
   INTRO · HEAVY TEXT + SEARCH + EXPLANATION
========================================================= */

.market-intro {
  width: 100%;
  margin: 0;
  padding: clamp(54px, 6vw, 112px) clamp(22px, 4vw, 92px) clamp(42px, 5vw, 88px);
  border-top: 0;
  border-right: 0;
  border-bottom: 1px solid var(--line);
  border-left: 0;
  border-radius: 0;
  background:
    radial-gradient(circle at 94% 8%, rgba(21, 92, 255, 0.12), transparent 30rem),
    #ffffff;
}

.market-intro-copy {
  width: 100%;
  max-width: none;
  margin: 0;
}

.section-kicker {
  display: block;
  color: var(--blue);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.market-intro h1 {
  max-width: none;
  margin: 14px 0 18px;
  font-size: clamp(50px, 6.4vw, 104px);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: -0.07em;
}

.market-intro-lead {
  max-width: none;
  margin: 0;
  color: #52627a;
  font-size: clamp(15px, 1.25vw, 20px);
  line-height: 1.75;
}

.market-search {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  width: 100%;
  max-width: none;
  min-height: 62px;
  margin-top: 34px;
  overflow: visible;
  border: 1px solid #bfcee2;
  border-radius: 17px;
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(13, 38, 79, 0.08);
}

.market-search:focus-within {
  border-color: #8bb2ff;
  box-shadow: 0 18px 54px rgba(21, 92, 255, 0.12);
}

.market-search-icon {
  padding-left: 19px;
  color: #6680a5;
  font-size: 23px;
  line-height: 1;
}

.market-search input[type="search"] {
  width: 100%;
  min-width: 0;
  min-height: 60px;
  padding: 0 17px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
}

.market-search input[type="search"]::placeholder {
  color: #8997aa;
}

.market-search button {
  min-height: 48px;
  margin-right: 7px;
  padding: 0 20px;
  border: 0;
  border-radius: 12px;
  background: var(--ink);
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.market-search button:hover {
  background: var(--blue);
}

.market-intro-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.intro-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 11px;
  font-size: 10px;
  font-weight: 900;
  text-decoration: none;
}

.intro-btn-primary {
  border-color: var(--blue);
  background: var(--blue);
  color: #ffffff;
}

.intro-btn-secondary {
  background: #ffffff;
  color: var(--ink);
}

.market-explainer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  max-width: none;
  margin: 50px 0 0;
}

.market-explainer article {
  min-height: 220px;
  padding: clamp(22px, 2vw, 34px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(248, 251, 255, 0.84);
}

.market-explainer article > span {
  color: var(--blue);
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.11em;
}

.market-explainer h2 {
  margin: 18px 0 10px;
  font-size: clamp(23px, 2vw, 32px);
  line-height: 1;
  letter-spacing: -0.045em;
}

.market-explainer p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.market-filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: none;
  margin: 34px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.market-filter-row > span {
  color: #73829a;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.filters {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: #263b58;
  font-size: 10px;
  font-weight: 850;
  text-decoration: none;
}

.filter:hover {
  border-color: #9ab8e6;
  background: #f4f8ff;
}

.filter.active {
  border-color: var(--ink);
  background: var(--ink);
  color: #ffffff;
}

/* =========================================================
   SEARCH SUGGESTIONS
========================================================= */

.directory-search-form {
  position: relative;
}

.search-suggestions {
  position: absolute;
  top: calc(100% + 9px);
  left: 0;
  right: 0;
  z-index: 90;
  max-height: min(62vh, 560px);
  overflow-y: auto;
  padding: 7px;
  border: 1px solid #b9c9e0;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(7, 22, 50, 0.22);
}

.search-suggestion {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 12px;
  border-radius: 11px;
  color: #071632;
  text-decoration: none;
}

.search-suggestion:hover,
.search-suggestion.active {
  outline: none;
  background: #edf4ff;
}

.search-suggestion-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.search-suggestion-copy b {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-suggestion-copy small {
  overflow: hidden;
  color: #67758c;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-suggestion-badge {
  flex: 0 0 auto;
  padding: 5px 7px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.search-suggestion-badge.live {
  background: #e8f8ef;
  color: #087344;
}

.search-suggestion-badge.directory-badge {
  background: #eef4ff;
  color: #164aa7;
}

.search-suggestion-badge.preparing-badge {
  background: #f0f2f5;
  color: #65738a;
}

.search-suggestion-message {
  padding: 13px;
  color: #667085;
  font-size: 12px;
}

/* =========================================================
   SHARED SECTION HEADINGS
========================================================= */

.section-heading {
  margin: 4px 0 22px;
}

.section-heading > span,
.section-heading > div > span {
  color: var(--blue);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-heading h2 {
  margin: 8px 0 7px;
  font-size: clamp(31px, 3.4vw, 54px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.section-heading p {
  max-width: none;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

/* =========================================================
   PREMIUM / LIVE AIG MARKET
========================================================= */

.premium-market {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(42px, 5vw, 88px) clamp(22px, 4vw, 92px);
  overflow: hidden;
  border-top: 1px solid rgba(96, 155, 255, 0.45);
  border-right: 0;
  border-bottom: 1px solid rgba(96, 155, 255, 0.45);
  border-left: 0;
  border-radius: 0;
  background:
    radial-gradient(circle at 90% 0, rgba(48, 116, 255, 0.3), transparent 34rem),
    linear-gradient(135deg, #06142d 0%, #0a3e9d 65%, #155cff 100%);
  color: #ffffff;
  box-shadow: 0 28px 80px rgba(7, 22, 50, 0.2);
}

.premium-heading {
  width: 100%;
  max-width: none;
  margin: 0 0 22px;
}

.premium-heading > span,
.premium-heading h2 {
  color: #ffffff;
}

.premium-heading p {
  max-width: none;
  color: rgba(255, 255, 255, 0.74);
}

.premium-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(410px, 1fr));
  gap: 16px;
  width: 100%;
  max-width: none;
  margin: 0;
}

/* =========================================================
   COMPANY CARDS
========================================================= */

.company {
  display: grid;
  align-content: start;
  min-height: 230px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #ffffff;
  box-shadow: 0 9px 24px rgba(9, 24, 54, 0.045);
}

.company.live {
  border-top: 5px solid var(--green);
}

.company.directory-entry {
  border-top: 5px solid var(--blue);
}

.company.soon {
  border-top: 5px solid #9ca9bc;
}

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

.status {
  display: inline-flex;
  padding: 6px 9px;
  border-radius: 999px;
  background: #eef4ff;
  color: #164aa7;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.live .status {
  background: #eafaf2;
  color: #087344;
}

.directory-entry .status {
  background: #eef4ff;
  color: #164aa7;
}

.soon .status {
  background: #f0f2f5;
  color: #65738a;
}

.company code {
  color: #748198;
  font-size: 9px;
}

.company-identity {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.company-identity h2 {
  margin: 0 0 5px !important;
  font-size: 20px;
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.company-logo {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  overflow: hidden;
  border: 1px solid #d7e1ef;
  border-radius: 12px;
  background: #f7faff;
  color: #34506f;
  font-size: 13px;
  font-weight: 950;
}

.company-logo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 4px;
  object-fit: contain;
  background: #ffffff;
}

.company-logo b {
  position: relative;
  z-index: 0;
}

.company-logo:not(.company-logo-fallback) b {
  opacity: 0;
}

.company-logo.company-logo-fallback b {
  opacity: 1;
}

.industry {
  margin: 0;
  color: var(--blue);
  font-size: 10px;
  font-weight: 850;
}

.summary {
  min-height: 56px;
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.directory-machine {
  display: grid;
  gap: 9px;
  margin-top: 12px;
  padding: 11px;
  border: 1px solid #c7d8ef;
  border-radius: 12px;
  background: linear-gradient(145deg, #f7faff, #eef5ff);
}

.directory-machine-head {
  display: grid;
  gap: 2px;
}

.directory-machine-head b {
  color: #183b72;
  font-size: 11px;
}

.directory-machine-head span {
  color: #667792;
  font-size: 9px;
  line-height: 1.35;
}

.directory-machine-routes {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.directory-machine-routes a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 8px;
  border: 1px solid #bdd0e9;
  border-radius: 8px;
  background: #ffffff;
  color: #1556b5;
  font-size: 9px;
  font-weight: 900;
  text-decoration: none;
}

.directory-machine-routes a:hover {
  border-color: #6e9fe4;
  background: #edf4ff;
}

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

.link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 10px;
  font-weight: 900;
  text-decoration: none;
}

.link.primary {
  border-color: var(--blue);
  background: var(--blue);
  color: #ffffff;
}

.link.secondary {
  background: #ffffff;
}

.company.premium-company {
  min-height: 700px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.075));
  color: #ffffff;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(16px);
}

.premium-company .status {
  background: #ffffff;
  color: #0a3e9d;
}

.premium-company code {
  color: rgba(255, 255, 255, 0.58);
}

.premium-company .industry {
  color: #8eb8ff;
}

.premium-company .summary {
  min-height: auto;
  color: rgba(255, 255, 255, 0.76);
}

.premium-company .company-logo {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.premium-capabilities {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin: 12px 0;
}

.premium-capabilities span {
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.premium-routes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 4px;
}

.premium-route {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 11px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  text-decoration: none;
}

.premium-route:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.15);
}

.premium-route b {
  font-size: 11px;
}

.premium-route span {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.62);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.premium-company .actions {
  margin-top: auto;
}

.premium-company .link.secondary {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.premium-company .premium-primary {
  border-color: #ffffff;
  background: #ffffff;
  color: #071632;
}

/* =========================================================
   AIG DIRECTORY SECTION
========================================================= */

.directory-index {
  width: 100%;
  margin: 0;
  padding: clamp(44px, 5vw, 88px) 0 0;
  border-top: 0;
  border-right: 0;
  border-bottom: 1px solid var(--line);
  border-left: 0;
  border-radius: 0;
  background: transparent;
}

.directory-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  width: 100%;
  margin: 0;
  padding: 0 clamp(22px, 4vw, 92px) 22px;
}

.directory-canonical-link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid #b7c8e0;
  border-radius: 11px;
  background: #ffffff;
  color: #18304f;
  font-size: 10px;
  font-weight: 900;
  text-decoration: none;
}

.directory {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  padding: 0 clamp(22px, 4vw, 92px) clamp(28px, 4vw, 72px);
  overflow: visible;
}

.empty {
  grid-column: 1 / -1;
  padding: 40px;
  border: 1px dashed #b8c7dc;
  border-radius: 18px;
  background: #ffffff;
  text-align: center;
}

.empty h2 {
  margin: 0 0 8px;
  font-size: 24px;
  letter-spacing: -0.035em;
}

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

.empty a {
  display: inline-flex;
  margin-top: 14px;
  color: var(--blue);
  font-weight: 900;
}

.directory-pagination {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 0 clamp(22px, 4vw, 92px) clamp(42px, 5vw, 82px);
}

.page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 38px;
  padding: 0 11px;
  border: 1px solid #cbd8e9;
  border-radius: 10px;
  background: #ffffff;
  color: #18304f;
  font-size: 11px;
  font-weight: 900;
  text-decoration: none;
}

.page-link:hover {
  border-color: #8db5f5;
  background: #f3f7ff;
  color: var(--blue);
}

.page-link.active {
  border-color: var(--blue);
  background: var(--blue);
  color: #ffffff;
}

.page-link.disabled {
  pointer-events: none;
  opacity: 0.38;
}

.page-gap {
  color: #7a899e;
}

.page-summary {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

/* =========================================================
   PROTOCOL MARKET
========================================================= */

.protocol-market {
  width: 100%;
  margin: 0;
  padding: clamp(44px, 5vw, 90px) clamp(22px, 4vw, 92px);
  border-top: 1px solid #b9cbea;
  border-right: 0;
  border-bottom: 1px solid #b9cbea;
  border-left: 0;
  border-radius: 0;
  background: linear-gradient(145deg, #ffffff 0%, #edf4ff 100%);
}

.protocol-market-head {
  max-width: none;
}

.protocol-market-head > span,
.discovery > div > span {
  color: var(--blue);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.protocol-market h2 {
  margin: 8px 0;
  font-size: clamp(32px, 4vw, 58px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.protocol-market-head p {
  color: var(--muted);
  line-height: 1.65;
}

.protocol-market-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.protocol-market-grid article {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
}

.protocol-market-grid b {
  color: var(--blue);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.protocol-market-grid h3 {
  margin: 12px 0 7px;
  font-size: 23px;
  letter-spacing: -0.04em;
}

.protocol-market-grid p {
  min-height: 70px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.protocol-market-grid code {
  display: block;
  overflow: auto;
  padding: 10px;
  border-radius: 11px;
  background: #071632;
  color: #ffffff;
  font-size: 10px;
}

.router-note {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 15px;
  border: 1px solid #c6d4e8;
  border-radius: 15px;
  background: #071632;
  color: #ffffff;
}

.router-note span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  line-height: 1.5;
}

.router-note a {
  padding: 9px 11px;
  border-radius: 10px;
  background: #ffffff;
  color: #071632;
  font-size: 11px;
  font-weight: 900;
  text-decoration: none;
}

/* =========================================================
   MACHINE DISCOVERY
========================================================= */

.discovery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  width: 100%;
  margin: 0;
  padding: clamp(42px, 5vw, 82px) clamp(22px, 4vw, 92px);
  border-top: 0;
  border-right: 0;
  border-bottom: 1px solid var(--line);
  border-left: 0;
  border-radius: 0;
  background: #ffffff;
}

.discovery h2 {
  margin: 8px 0 0;
  font-size: clamp(28px, 3vw, 42px);
  letter-spacing: -0.045em;
}

.discovery-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.discovery-links a {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #f8fbff;
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
}

footer {
  padding: 22px clamp(22px, 4vw, 70px);
  border-top: 1px solid var(--line);
  background: #ffffff;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (min-width: 1500px) {
  .directory {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (min-width: 2600px) {
  .directory {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }
}

@media (max-width: 1250px) {
  .hero-shell {
    grid-template-columns: minmax(280px, 0.9fr) minmax(520px, 1.7fr) minmax(230px, 0.78fr);
  }

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

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

@media (max-width: 1030px) {
  .top {
    align-items: flex-start;
  }

  .top nav {
    justify-content: flex-end;
  }

  .hero-shell {
    grid-template-columns: 0.8fr 1.4fr;
  }

  .hero-metrics {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: none;
    width: 100%;
  }

  .hero.graph-hidden .hero-shell {
    grid-template-columns: 1fr;
  }

  .hero.graph-hidden .hero-metrics {
    grid-column: 1 / -1;
  }

  .hero-metrics article {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-left: 0;
    padding: 17px 0;
  }

  .hero-data-note {
    grid-column: 1 / -1;
  }

  .market-explainer {
    grid-template-columns: 1fr;
  }

  .market-explainer article {
    min-height: 0;
  }

  .protocol-market-grid {
    grid-template-columns: 1fr;
  }

  .router-note {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .top {
    position: relative;
    display: grid;
  }

  .top nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: auto;
  }

  .hero-shell {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 46px;
    padding-bottom: 46px;
  }

  .hero-brand-panel {
    width: 100%;
  }

  .hero-brand-panel > strong {
    width: 100%;
  }

  .hero-sphere-stage {
    min-height: min(96vw, 760px);
  }

  .hero-metrics {
    grid-column: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-self: stretch;
  }

  .hero.graph-hidden .hero-shell {
    grid-template-columns: 1fr;
  }

  .hero.graph-hidden .hero-metrics {
    grid-column: auto;
  }


  .market-intro h1 {
    font-size: clamp(48px, 10vw, 78px);
  }

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

  .directory-heading {
    align-items: flex-start;
    flex-direction: column;
  }

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

@media (max-width: 700px) {
  .top nav {
    gap: 12px;
  }

  .top nav a {
    font-size: 9px;
  }

  .hero-shell {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-brand-panel > strong {
    font-size: 46px;
  }

  .hero-sphere-stage {
    min-height: 560px;
  }

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

  .hero-protocol-metric {
    grid-column: auto;
  }

  .market-intro {
    padding-left: 16px;
    padding-right: 16px;
  }

  .market-search {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .market-search button {
    grid-column: 1 / -1;
    width: calc(100% - 14px);
    margin: 0 7px 7px;
  }

  .market-filter-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .filters {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  .filter {
    flex: 0 0 auto;
  }

  .search-suggestions {
    position: fixed;
    top: auto;
    left: 12px;
    right: 12px;
    max-height: 55vh;
  }

  .premium-market {
    padding: 36px 16px;
  }

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

  .company.premium-company {
    min-height: auto;
  }

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

  .directory-heading {
    padding-left: 16px;
    padding-right: 16px;
  }

  .directory {
    grid-template-columns: 1fr;
    padding-left: 16px;
    padding-right: 16px;
  }

  .directory-pagination {
    grid-template-columns: 1fr 1fr;
    padding-left: 16px;
    padding-right: 16px;
  }

  .page-numbers {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .page-summary {
    grid-column: 1 / -1;
    text-align: center;
  }

  .page-prev,
  .page-next {
    width: 100%;
  }

  .protocol-market,
  .discovery {
    padding-left: 16px;
    padding-right: 16px;
  }

  .discovery-links {
    grid-template-columns: 1fr;
  }
}

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