:root {
  color-scheme: dark;
  --bg: #05060a;
  --bg-soft: #0c0e16;
  --panel: #111423;
  --panel-soft: #1a1d2f;
  --text: #f4f6fb;
  --muted: #8f96b5;
  --border: rgba(255,255,255,0.08);
  --brand: #7b5cff;
  --brand-2: #23b6ff;
  --success: #2ecc71;
  --warn: #ffb347;
  --danger: #ff6464;
  --radius: 20px;
  --shadow: 0 26px 60px rgba(0,0,0,0.55);
  --font: 'Space Grotesk', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
  box-sizing: border-box;
}

.hidden {
  display: none !important;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(123,92,255,0.12), transparent 45%),
    radial-gradient(circle at 80% 10%, rgba(35,182,255,0.12), transparent 50%),
    radial-gradient(circle at 50% 80%, rgba(123,92,255,0.1), transparent 45%);
  filter: blur(40px);
  opacity: 0.9;
  pointer-events: none;
  z-index: 0;
}

.background-grid {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(transparent calc(100% - 1px), rgba(255,255,255,0.05) 1px),
    linear-gradient(90deg, transparent calc(100% - 1px), rgba(255,255,255,0.05) 1px);
  background-size: 120px 120px;
  opacity: 0.15;
  pointer-events: none;
  z-index: 1;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 32px;
  background: rgba(5, 6, 10, 0.8);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-nav .brand {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
}

.site-nav nav {
  display: flex;
  gap: 18px;
}

.site-nav nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: color 0.2s ease;
}

.site-nav nav a:hover,
.site-nav nav a[aria-current="page"] {
  color: var(--brand-2);
}

.page {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px 120px;
}

.page.narrow {
  max-width: 860px;
}

.noscript {
  background: #ff6464;
  color: #080808;
  padding: 12px;
  text-align: center;
  font-weight: 600;
}

.hero {
  text-align: left;
  display: grid;
  gap: 18px;
  padding-bottom: 40px;
}

.eyebrow {
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--brand-2);
  margin: 0;
}

.hero h1 {
  margin: 0;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.1;
}

.hero h1 span {
  color: var(--brand);
}

.lede {
  margin: 0;
  font-size: 17px;
  color: var(--muted);
  max-width: 720px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px 28px;
  color: var(--text);
  background: transparent;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.1s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn.primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 12px 30px rgba(123,92,255,0.35);
}

.btn.ghost {
  border-color: rgba(255,255,255,0.25);
}

.btn:hover {
  transform: translateY(-1px);
}

.signals {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.signals li {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius);
  padding: 16px;
}

.signals strong {
  display: block;
  font-size: 15px;
}

.panel {
  background: var(--panel);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 32px;
  margin-top: 40px;
  box-shadow: var(--shadow);
}

.section-focus {
  box-shadow: 0 0 0 2px rgba(123, 92, 255, 0.45), var(--shadow);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.panel h2 {
  margin: 4px 0 0;
  font-size: 28px;
}

.muted {
  color: var(--muted);
  margin: 4px 0 0;
}

.trust-form {
  display: grid;
  gap: 10px;
}

.trust-form label {
  font-weight: 600;
  font-size: 14px;
}

.input-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.input-row input {
  flex: 1;
  min-width: 240px;
  padding: 14px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(0,0,0,0.25);
  color: var(--text);
  font-size: 16px;
}

.trust-form .helper code {
  overflow-wrap: anywhere;
}

.helper {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}

.status-card {
  margin-top: 20px;
  padding: 18px;
  border-radius: 16px;
  border: 1px dashed rgba(255,255,255,0.2);
  color: var(--muted);
  background: rgba(255,255,255,0.02);
}

.external-note {
  margin: 16px 0 8px;
  font-size: 13px;
}

.formula-block {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 18px;
  font-family: 'Space Grotesk', monospace;
  font-size: 13px;
  overflow-x: auto;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.metric-card {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 16px;
  background: rgba(255,255,255,0.02);
}

.metric-card strong {
  display: block;
  font-size: 15px;
  margin-bottom: 6px;
}

.metric-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.metric-value {
  font-size: 32px;
  font-weight: 700;
  margin: 6px 0 12px;
}

.metric-caption {
  font-weight: 600;
  margin: 12px 0 4px;
  font-size: 13px;
}

.metric-note {
  margin: 0 0 6px;
}

.advanced-breakdown {
  margin-top: 28px;
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(123,92,255,0.15);
  border: 1px solid rgba(123,92,255,0.4);
}

.live-indicator .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3dff8a;
  box-shadow: 0 0 12px #3dff8a;
}

.results.hidden {
  display: none;
}

.profile-card {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 24px;
  background: rgba(255,255,255,0.02);
}

.identity {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.identity .avatar {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.12);
  overflow: hidden;
  background: rgba(255,255,255,0.05);
}

.identity .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-name {
  margin: 0 0 4px;
  font-size: 20px;
}

.profile-link {
  color: var(--brand-2);
  font-size: 14px;
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.profile-meta {
  margin: 2px 0;
  font-size: 14px;
  color: var(--muted);
}

.trust-score-block {
  min-width: 220px;
  display: grid;
  gap: 8px;
  text-align: right;
}

.trust-number {
  font-size: 48px;
  font-weight: 700;
}

.trust-badge {
  display: inline-flex;
  justify-self: flex-end;
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  background: rgba(255,255,255,0.06);
}

.trust-summary {
  margin: 0;
  color: var(--muted);
}

.more-info-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.info-card {
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  padding: 16px;
  background: rgba(255,255,255,0.03);
}

.info-card .label {
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.info-card .value {
  font-size: 20px;
  font-weight: 600;
}

.info-card .value a {
  color: var(--brand-2);
  text-decoration: none;
}

.components-card {
  margin-top: 32px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  padding: 24px;
  background: rgba(255,255,255,0.02);
}

.csstats-card {
  margin-top: 24px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  padding: 24px;
  background: rgba(255,255,255,0.02);
}

.csstats-list {
  display: grid;
  gap: 12px;
}

.csstat-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.02);
}

.csstat-row span:last-child {
  color: var(--text);
  font-weight: 600;
}

.csstat-row span:first-child {
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.leetify-card {
  margin-top: 24px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.12);
  padding: 24px;
  background: linear-gradient(145deg, rgba(17,20,35,0.9), rgba(10,12,20,0.9));
  display: grid;
  gap: 18px;
}

.leetify-summary,
.leetify-ratings {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.leetify-pill,
.leetify-rating {
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 14px 18px;
  background: rgba(255,255,255,0.03);
  display: grid;
  gap: 4px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.leetify-pill span:first-child,
.leetify-rating span:first-child {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.leetify-pill span:last-child {
  font-size: 18px;
  font-weight: 600;
}

.leetify-rating {
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.leetify-rating:hover {
  transform: translateY(-2px);
}

.leetify-rating__value {
  font-size: 20px;
  font-weight: 600;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.leetify-rating__delta {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
}

.leetify-rating__delta.positive {
  color: var(--success);
  background: rgba(46,204,113,0.15);
}

.leetify-rating__delta.negative {
  color: var(--danger);
  background: rgba(255,100,100,0.15);
}

.leetify-rating__delta.neutral {
  color: var(--warn);
  background: rgba(255,179,71,0.15);
}

.leetify-rating--positive {
  border-color: rgba(46,204,113,0.7);
  background: linear-gradient(135deg, rgba(46,204,113,0.15), rgba(17,25,20,0.9));
  box-shadow: 0 18px 32px rgba(46,204,113,0.18);
}

.leetify-rating--neutral {
  border-color: rgba(255,179,71,0.5);
  background: linear-gradient(135deg, rgba(255,179,71,0.12), rgba(28,22,10,0.9));
}

.leetify-rating--negative {
  border-color: rgba(255,100,100,0.6);
  background: linear-gradient(135deg, rgba(255,100,100,0.12), rgba(25,10,12,0.9));
}

.leetify-rating--unknown {
  opacity: 0.7;
}

.leetify-matches {
  display: grid;
  gap: 12px;
}

.leetify-trends {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 18px;
  background: rgba(9,10,18,0.7);
  display: grid;
  gap: 14px;
}

.leetify-trends .trend-head h3 {
  margin: 4px 0;
}

.trend-chart {
  width: 100%;
  min-height: 120px;
}

.trend-chart svg {
  width: 100%;
  height: 140px;
  display: block;
}

.trend-line {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trend-line.aim {
  stroke: var(--brand-2);
}

.trend-line.hs {
  stroke: var(--danger);
}

.trend-dot {
  stroke: rgba(255,255,255,0.4);
  stroke-width: 1.5;
  fill: currentColor;
}

.trend-dot.aim {
  color: var(--brand-2);
}

.trend-dot.hs {
  color: var(--danger);
}

.trend-grid line {
  stroke: rgba(255,255,255,0.08);
  stroke-width: 1;
}

.trend-label {
  font-size: 10px;
  fill: rgba(255,255,255,0.45);
}

.trend-legend {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
}

.legend-item::before {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  margin-right: 6px;
}

.legend-aim::before {
  background: var(--brand-2);
}

.legend-hs::before {
  background: var(--danger);
}

.leetify-match {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 16px 18px;
  background: rgba(255,255,255,0.03);
  display: grid;
  gap: 6px;
  border-left: 4px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.leetify-match strong {
  font-size: 15px;
}

.leetify-match .meta {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.leetify-match .rating {
  font-weight: 600;
  color: var(--brand-2);
  font-size: 14px;
}

.leetify-match--win {
  border-color: var(--success);
  background: rgba(46,204,113,0.12);
}

.leetify-match--loss {
  border-color: var(--danger);
  background: rgba(255,100,100,0.1);
}

.leetify-match--draw {
  border-color: var(--warn);
  background: rgba(255,179,71,0.1);
}

.leetify-match .rating.positive {
  color: var(--success);
}

.leetify-match .rating.negative {
  color: var(--danger);
}

.leetify-match .rating.neutral {
  color: var(--warn);
}

.component-list {
  display: grid;
  gap: 16px;
}

.component {
  display: grid;
  gap: 6px;
}

.component-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-weight: 600;
}

.component-bar {
  position: relative;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  overflow: hidden;
}

.component-bar span {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  width: 50%;
}

.component-detail {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.history-list {
  display: grid;
  gap: 12px;
}

.history-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-radius: 16px;
  background: var(--panel-soft);
  border: 1px solid rgba(255,255,255,0.08);
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.history-item:hover {
  border-color: rgba(123,92,255,0.6);
}

.history-item .meta {
  display: grid;
  gap: 4px;
}

.history-item .level {
  font-weight: 600;
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.steps {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 12px;
}

.steps li {
  line-height: 1.5;
}

.steps strong {
  display: block;
  margin-bottom: 4px;
}

#faq details {
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  margin-bottom: 12px;
  padding: 14px 16px;
  background: rgba(0,0,0,0.2);
}

#faq summary {
  cursor: pointer;
  font-weight: 600;
}

#faq p {
  margin: 10px 0 0;
  color: var(--muted);
}

.footer {
  margin-top: 60px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 900px) {
  .page {
    padding: 32px 16px 96px;
  }
  .hero {
    text-align: center;
    gap: 12px;
  }
  .hero-actions {
    justify-content: center;
  }
  .signals {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
  .profile-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .trust-score-block {
    width: 100%;
    text-align: left;
  }
  .component-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .history-item {
    flex-direction: column;
    align-items: flex-start;
  }
  .csstat-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .leetify-summary,
  .leetify-ratings {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
}

@media (max-width: 720px) {
  .site-nav nav {
    width: 100%;
    justify-content: space-between;
  }
  .more-info-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
  .component {
    padding: 12px 0;
  }
}

@media (max-width: 640px) {
  .site-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
  }
  .site-nav nav {
    flex-wrap: wrap;
  }
  .panel {
    padding: 24px;
  }
  .input-row {
    flex-direction: column;
  }
  .input-row input {
    min-width: 100%;
  }
  .btn.ghost,
  .btn.primary {
    width: 100%;
  }
  .trust-score-block {
    text-align: left;
    align-items: flex-start;
  }
  .profile-card {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: clamp(32px, 10vw, 48px);
  }
  .status-card {
    font-size: 14px;
  }
  .live-indicator {
    width: 100%;
    justify-content: center;
  }
  .identity {
    width: 100%;
  }
  .identity .avatar {
    width: 64px;
    height: 64px;
  }
  .component-bar {
    height: 10px;
  }
  .history-item {
    padding: 14px;
  }
  .steps {
    padding-left: 14px;
  }
}
