@import url("https://db.onlinewebfonts.com/c/8cb707a9b8a73f8a7403336b861c3074?family=BubbledotICG-FinePos");
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");

@font-face {
  font-family: "Geist Pixel Circle";
  src: url("fonts/GeistPixel-Circle.woff2") format("woff2");
  font-display: swap;
}

:root {
  --ink: #000;
  --white: #fff;
  --muted: rgba(255, 255, 255, 0.6);
  --faint: rgba(255, 255, 255, 0.4);
  --font-ui: "Inter", system-ui, -apple-system, sans-serif;
  --font-display: "BubbledotICG-FinePos", "Geist Pixel Circle", monospace;

  --glass: rgba(255, 255, 255, 0.055);
  --glass-strong: rgba(255, 255, 255, 0.085);
  --glass-line: rgba(255, 255, 255, 0.11);
  --glass-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  --r-lg: 34px;
  --r-md: 24px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------- background ---------- */
.bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  pointer-events: none;
}

.bg-veil {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 90% at 50% 40%, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0.82) 100%),
    rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.page {
  position: relative;
  z-index: 5;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 40px);
}

/* ---------- header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px clamp(18px, 4vw, 48px);
  animation: slide-down 0.8s cubic-bezier(0.22, 0.8, 0.2, 1) both;
}

.logo-btn {
  height: 42px;
  border-radius: 999px;
  background: var(--white);
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
  padding: 0 18px;
  overflow: hidden;
}

.logo-mark {
  font-family: var(--display), system-ui, sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--bg, #050507);
  white-space: nowrap;
  line-height: 1;
}

.logo-btn img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid var(--glass-line);
  border-radius: 999px;
  padding: 6px;
}

.nav a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  padding: 9px 18px;
  border-radius: 999px;
  transition:
    color 0.2s ease,
    background 0.2s ease;
}

.nav a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.07);
}

.nav a.is-active {
  color: #0b0b0b;
  background: var(--white);
}

.signin {
  border: 1px solid var(--glass-line);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: var(--white);
  font-family: var(--font-ui);
  font-size: 13.5px;
  font-weight: 500;
  padding: 11px 22px;
  border-radius: 999px;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.signin:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.12);
}

.burger {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--glass-line);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  cursor: pointer;
  padding: 0;
  place-items: center;
}

.burger span {
  display: block;
  width: 15px;
  height: 1.5px;
  background: var(--white);
  margin: 3px auto;
}

/* ---------- hero ---------- */
.hero {
  min-height: calc(100svh - 82px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: clamp(20px, 3vh, 34px);
  padding: clamp(30px, 6vh, 70px) clamp(20px, 5vw, 40px) clamp(40px, 8vh, 90px);
}

.eyebrow {
  font-size: 10.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.headline {
  font-family: var(--font-display);
  font-weight: 400;
  margin: 0;
  font-size: clamp(2.9rem, 8.4vw, 6.6rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
}

.headline .line {
  display: block;
}

.subhead {
  margin: 0;
  max-width: 540px;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.2vw, 1.06rem);
  font-weight: 300;
  line-height: 1.65;
}

.cta {
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 600;
  color: #000;
  background: var(--white);
  border: 0;
  border-radius: 999px;
  padding: 16px 34px;
  cursor: pointer;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 50px rgba(255, 255, 255, 0.28);
}

.cta-ghost {
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 500;
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-line);
  backdrop-filter: blur(20px);
  border-radius: 999px;
  padding: 15px 30px;
  cursor: pointer;
  transition: background 0.25s ease;
}

.cta-ghost:hover {
  background: rgba(255, 255, 255, 0.13);
}

/* one subtle intelligence strip */
.strip {
  margin-top: clamp(14px, 4vh, 46px);
  width: 100%;
  max-width: 900px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-line);
  border-radius: 999px;
  box-shadow: var(--glass-shadow);
  padding: 18px 10px;
}

.strip .cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  position: relative;
}

.strip .cell + .cell::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12%;
  height: 76%;
  width: 1px;
  background: rgba(255, 255, 255, 0.09);
}

.strip .num {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.1vw, 1.6rem);
  line-height: 1;
}

.strip .lab {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}

/* ---------- sections ---------- */
.section {
  padding: clamp(90px, 14vh, 170px) 0;
}

.sec-head {
  max-width: 640px;
  margin-bottom: clamp(38px, 6vh, 64px);
}

.sec-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.sec-head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4.4vw, 3.3rem);
  line-height: 1.08;
  margin: 14px 0 0;
}

.sec-head p {
  color: var(--muted);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.7;
  margin: 16px 0 0;
  max-width: 520px;
}

.sec-head.center p {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- glass ---------- */
.glass {
  background: var(--glass);
  backdrop-filter: blur(26px);
  -webkit-backdrop-filter: blur(26px);
  border: 1px solid var(--glass-line);
  border-radius: var(--r-lg);
  box-shadow: var(--glass-shadow);
}

/* ---------- platform dashboard preview ---------- */
.dash {
  overflow: hidden;
}

.dash-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 16px clamp(16px, 2.4vw, 26px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow-x: auto;
  scrollbar-width: none;
}

.dash-bar::-webkit-scrollbar {
  display: none;
}

.tab {
  flex: none;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  padding: 9px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition:
    color 0.2s ease,
    background 0.2s ease;
}

.tab:hover {
  color: var(--white);
}

.tab.on {
  color: #0b0b0b;
  background: var(--white);
}

.dash-body {
  padding: clamp(20px, 3vw, 34px);
  display: grid;
  gap: clamp(16px, 2vw, 24px);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 1.6vw, 20px);
}

.metric {
  background: var(--glass-strong);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--r-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.metric .k {
  font-size: 10.5px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--faint);
}

.metric .v {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1;
}

.metric .v small {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 400;
  color: var(--faint);
  margin-left: 6px;
}

.delta {
  font-size: 12px;
  font-weight: 500;
  color: rgba(180, 255, 214, 0.9);
}

.delta.down {
  color: rgba(255, 190, 190, 0.9);
}

/* chart */
.panel {
  background: var(--glass-strong);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--r-md);
  padding: clamp(18px, 2.4vw, 28px);
}

.panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.panel-head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.panel-head span {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}

.chart {
  width: 100%;
  height: clamp(180px, 26vh, 260px);
  display: block;
}

.chart .grid-l {
  stroke: rgba(255, 255, 255, 0.07);
  stroke-width: 1;
}

.chart .area {
  fill: url(#g1);
}

.chart .line {
  fill: none;
  stroke: rgba(255, 255, 255, 0.92);
  stroke-width: 2;
  stroke-linecap: round;
}

.chart .line.dim {
  stroke: rgba(255, 255, 255, 0.3);
  stroke-dasharray: 4 5;
  stroke-width: 1.5;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 16px;
  font-size: 11.5px;
  color: var(--faint);
}

.chart-legend i {
  display: inline-block;
  width: 16px;
  height: 2px;
  background: var(--white);
  margin-right: 8px;
  vertical-align: middle;
  border-radius: 2px;
}

.chart-legend .dim i {
  background: rgba(255, 255, 255, 0.3);
}

.x-axis {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.32);
}

/* two column */
.split {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(16px, 2vw, 24px);
}

/* model rows */
.model-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
  padding: 13px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.model-row:first-of-type {
  border-top: 0;
}

.model-row .top {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
}

.model-row .top b {
  font-weight: 500;
}

.model-row .top span {
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}

.bar {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.95));
}

/* chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-line);
  border-radius: 999px;
  padding: 9px 16px;
}

/* table */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.table th {
  text-align: left;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 500;
  padding: 0 0 12px;
}

.table td {
  padding: 13px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.85);
  font-variant-numeric: tabular-nums;
}

.table td:first-child {
  font-weight: 500;
}

.table th:not(:first-child),
.table td:not(:first-child) {
  text-align: right;
}

.trend-up {
  color: rgba(180, 255, 214, 0.9);
}

.trend-flat {
  color: var(--faint);
}

/* ---------- workflow ---------- */
.flow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: clamp(34px, 5vh, 56px);
}

.flow .step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 11px 18px;
  backdrop-filter: blur(18px);
}

.flow .step em {
  font-style: normal;
  font-family: var(--font-display);
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
}

.flow .arw {
  color: rgba(255, 255, 255, 0.25);
  font-size: 13px;
}

/* ---------- insights ---------- */
.insights {
  display: grid;
  gap: clamp(18px, 3vw, 30px);
}

.feature {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: end;
  padding: clamp(28px, 4vw, 48px);
  border-radius: var(--r-lg);
}

.feature .cat,
.article .cat {
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.feature h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.7rem, 3.6vw, 2.7rem);
  line-height: 1.1;
  margin: 16px 0 0;
}

.feature p {
  color: var(--muted);
  font-weight: 300;
  line-height: 1.7;
  margin: 18px 0 0;
  max-width: 520px;
}

.meta {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 18px;
}

.articles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 44px);
}

.article {
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.article h4 {
  font-size: 1.16rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin: 14px 0 0;
}

.article p {
  color: var(--muted);
  font-weight: 300;
  font-size: 0.92rem;
  line-height: 1.65;
  margin: 12px 0 0;
}

/* ---------- contact ---------- */
.contact-card {
  padding: clamp(30px, 5vw, 64px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.contact-card h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.1;
  margin: 0;
}

.contact-card p {
  color: var(--muted);
  font-weight: 300;
  line-height: 1.7;
  margin: 18px 0 0;
}

.form {
  display: grid;
  gap: 12px;
}

.form input {
  width: 100%;
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-line);
  border-radius: 16px;
  padding: 15px 18px;
  outline: none;
  transition: border-color 0.2s ease;
}

.form input::placeholder {
  color: rgba(255, 255, 255, 0.34);
}

.form input:focus {
  border-color: rgba(255, 255, 255, 0.34);
}

.form button {
  margin-top: 4px;
  justify-self: start;
}

.form-note {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

/* ---------- footer ---------- */
.footer {
  padding: 40px 0 56px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.38);
}

.footer nav {
  display: flex;
  gap: 20px;
}

.footer a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
}

.footer a:hover {
  color: var(--white);
}

/* ---------- fixed social icons (bottom-right) ---------- */
.social-fixed {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-decoration: none;
  transition:
    color 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}

.social-btn svg {
  width: 17px;
  height: 17px;
  display: block;
}

.social-btn:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-2px);
}

@media (max-width: 720px) {
  .social-fixed {
    right: 16px;
    bottom: 16px;
  }
  .social-btn {
    width: 36px;
    height: 36px;
  }
  .social-btn svg {
    width: 15px;
    height: 15px;
  }
}

/* ---------- mobile menu ---------- */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(14px);
  display: none;
  padding: 20px;
  align-items: flex-start;
  justify-content: center;
}

.overlay.open {
  display: flex;
}

.sheet {
  width: 100%;
  max-width: 420px;
  margin-top: 76px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--glass-line);
  backdrop-filter: blur(30px);
  border-radius: 30px;
  padding: 14px;
  box-shadow: var(--glass-shadow);
  animation: sheet-in 0.28s ease both;
}

@keyframes sheet-in {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
  }
}

.sheet a {
  display: block;
  padding: 15px 18px;
  color: var(--white);
  text-decoration: none;
  font-size: 16.5px;
  font-weight: 500;
  border-radius: 18px;
}

.sheet a:active {
  background: rgba(255, 255, 255, 0.08);
}

.sheet a.sheet-signin {
  margin-top: 6px;
  background: var(--white);
  color: #0b0b0b;
  text-align: center;
}

/* ---------- motion ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  filter: blur(6px);
  animation: reveal 0.9s cubic-bezier(0.22, 0.8, 0.2, 1) forwards;
  animation-delay: var(--d, 0s);
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes slide-down {
  from {
    opacity: 0;
    transform: translateY(-14px);
  }
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .split,
  .feature,
  .contact-card {
    grid-template-columns: 1fr;
  }

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

  .articles {
    grid-template-columns: 1fr;
    gap: 26px;
  }
}

@media (max-width: 720px) {
  .nav,
  .signin {
    display: none;
  }

  .burger {
    display: grid;
  }

  .headline {
    font-size: clamp(2.7rem, 13vw, 4rem);
  }

  .strip {
    grid-template-columns: repeat(2, 1fr);
    border-radius: 30px;
    gap: 22px 0;
    padding: 24px 12px;
  }

  .strip .cell:nth-child(3)::before,
  .strip .cell:nth-child(2n + 1)::before {
    display: none;
  }

  .table th:nth-child(3),
  .table td:nth-child(3) {
    display: none;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

/* ---------- dashboard status + tab-specific visuals ---------- */
.dash-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.dash-purpose {
  font-size: 12px;
  color: var(--faint);
  letter-spacing: 0.02em;
}

.demo-tag {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--glass-line);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  padding: 5px 12px;
}

.metrics.three {
  grid-template-columns: repeat(3, 1fr);
}

.metric .v {
  overflow-wrap: anywhere;
}

.trend-down {
  color: rgba(255, 190, 190, 0.9);
  font-style: normal;
}

.trend-up {
  font-style: normal;
}

/* donut */
.donut-wrap {
  display: flex;
  align-items: center;
  gap: clamp(20px, 4vw, 48px);
  flex-wrap: wrap;
}

.donut {
  width: 180px;
  height: 180px;
  flex: none;
}

.donut-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 18;
}

.donut-value {
  fill: none;
  stroke: rgba(255, 255, 255, 0.92);
  stroke-width: 18;
  stroke-linecap: butt;
}

.donut-num {
  fill: #fff;
  font-family: var(--font-display);
  font-size: 34px;
  text-anchor: middle;
}

.donut-cap {
  fill: rgba(255, 255, 255, 0.45);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-anchor: middle;
}

.donut-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.donut-legend li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
}

.donut-legend i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.18);
}

.donut-legend i.on {
  background: rgba(255, 255, 255, 0.92);
}

.donut-legend b {
  font-weight: 500;
}

.donut-legend span {
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}

/* ranking distribution */
.rank-dist {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: end;
  gap: clamp(12px, 2vw, 24px);
  height: 210px;
}

.rank-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  gap: 8px;
}

.rank-n {
  font-size: 12.5px;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}

.rank-bar {
  width: 100%;
  border-radius: 8px 8px 2px 2px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.28));
  min-height: 6px;
}

.rank-lab {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
}

/* citation source ranking */
.src-head,
.src-row {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr 0.6fr;
  align-items: center;
  gap: 16px;
}

.src-head {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  padding-bottom: 12px;
}

.src-head span:last-child,
.src-row .influence {
  text-align: right;
}

.src-row {
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 13.5px;
}

.src-name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.src-name em {
  font-style: normal;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  font-variant-numeric: tabular-nums;
}

.src-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  position: relative;
}

.src-bar i {
  display: block;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.95));
}

.src-bar b {
  position: absolute;
  right: -52px;
  font-weight: 500;
  font-size: 12.5px;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}

.influence {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
}

.influence.high {
  color: rgba(180, 255, 214, 0.9);
}

.influence.medium {
  color: rgba(255, 255, 255, 0.8);
}

/* competitive matrix */
.matrix {
  display: grid;
  grid-template-columns: 18px 1fr;
  grid-template-areas: "y svg" ". x";
  gap: 10px;
  align-items: center;
}

.matrix-svg {
  grid-area: svg;
  width: 100%;
  height: clamp(240px, 34vh, 320px);
}

.matrix .axis-y {
  grid-area: y;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  justify-self: center;
}

.matrix .axis-x {
  grid-area: x;
  text-align: center;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}

.matrix-svg .grid-l {
  stroke: rgba(255, 255, 255, 0.07);
}

.matrix-svg .dot circle {
  fill: rgba(255, 255, 255, 0.4);
}

.matrix-svg .dot text {
  fill: rgba(255, 255, 255, 0.6);
  font-size: 11px;
}

.matrix-svg .dot.you circle {
  fill: #fff;
}

.matrix-svg .dot.you text {
  fill: #fff;
  font-weight: 600;
}

.table .row-you td {
  color: #fff;
  font-weight: 500;
}

@media (max-width: 860px) {
  .metrics.three {
    grid-template-columns: 1fr 1fr;
  }
  .src-head,
  .src-row {
    grid-template-columns: 1fr 1fr;
  }
  .src-head span:nth-child(2),
  .src-row .src-bar {
    display: none;
  }
}
