:root {
  --page: #07111d;
  --page-raised: #0c1826;
  --card: #101f30;
  --card-strong: #12263a;
  --card-soft: #0d1b2b;
  --line: rgba(159, 190, 215, 0.16);
  --line-strong: rgba(159, 190, 215, 0.3);
  --text: #f3f7fa;
  --muted: #91a6b8;
  --muted-strong: #b6c6d3;
  --lime: #c8f36c;
  --lime-strong: #e0ff9b;
  --cyan: #66d8df;
  --amber: #f4c66b;
  --red: #ff887f;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 76% -12%, rgba(70, 127, 150, 0.2), transparent 34rem),
    radial-gradient(circle at -5% 34%, rgba(96, 130, 70, 0.08), transparent 28rem),
    var(--page);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

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

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

button {
  cursor: pointer;
}

.app-shell {
  position: relative;
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
}

.app-shell::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image: linear-gradient(rgba(159, 190, 215, 0.055) 1px, transparent 1px), linear-gradient(90deg, rgba(159, 190, 215, 0.055) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 64%);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 86px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 0.96rem;
  font-weight: 720;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: inline-flex;
  align-items: end;
  gap: 3px;
  width: 22px;
  height: 22px;
  padding: 3px;
  border: 1px solid rgba(200, 243, 108, 0.56);
  border-radius: 7px;
  background: rgba(200, 243, 108, 0.08);
}

.brand-mark span {
  display: block;
  width: 4px;
  border-radius: 3px;
  background: var(--lime);
}

.brand-mark span:nth-child(1) { height: 7px; opacity: 0.62; }
.brand-mark span:nth-child(2) { height: 12px; opacity: 0.82; }
.brand-mark span:nth-child(3) { height: 16px; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: 84px;
  color: var(--muted);
  font-size: 0.82rem;
}

.main-nav a {
  position: relative;
  padding: 8px 0;
  transition: color 160ms ease;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a.active {
  color: var(--text);
}

.main-nav a.active::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--lime);
}

.topbar-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.75rem;
}

.status-dot,
.pulse-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(200, 243, 108, 0.09);
}

.pulse-dot {
  width: 6px;
  height: 6px;
  box-shadow: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.86fr);
  gap: clamp(52px, 8vw, 128px);
  align-items: center;
  min-height: 610px;
  padding: 82px 0 92px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--lime);
  font-size: 0.69rem;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow-line {
  display: inline-block;
  width: 23px;
  height: 1px;
  background: var(--lime);
}

.hero h1 {
  max-width: 650px;
  margin: 0;
  font-size: clamp(3rem, 5.2vw, 5.35rem);
  font-weight: 520;
  letter-spacing: -0.075em;
  line-height: 0.98;
}

.hero-lede {
  max-width: 530px;
  margin: 28px 0 0;
  color: var(--muted-strong);
  font-size: 1.02rem;
  line-height: 1.72;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 13px 22px;
  margin-top: 40px;
  color: var(--muted);
  font-size: 0.78rem;
}

.hero-points > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.point-icon {
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  color: var(--muted-strong);
  font-size: 0.57rem;
  font-weight: 760;
}

.check-card {
  position: relative;
  overflow: hidden;
  padding: 30px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(140deg, rgba(23, 49, 69, 0.95), rgba(13, 27, 43, 0.97));
  box-shadow: var(--shadow);
}

.check-card::after {
  position: absolute;
  top: -80px;
  right: -80px;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(200, 243, 108, 0.16);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 0 24px rgba(200, 243, 108, 0.03), 0 0 0 48px rgba(200, 243, 108, 0.02);
  pointer-events: none;
}

.card-kicker,
.card-footer,
.posture-topline,
.posture-foot,
.providers-heading,
.result-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--lime-strong);
  font-size: 0.69rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card-index {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.68rem;
}

.check-card h2 {
  position: relative;
  z-index: 1;
  margin: 36px 0 6px;
  font-size: 1.8rem;
  font-weight: 560;
  letter-spacing: -0.04em;
}

.card-copy {
  position: relative;
  z-index: 1;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 0.86rem;
}

.check-card label,
.mode-fieldset legend {
  color: var(--muted-strong);
  font-size: 0.72rem;
  font-weight: 680;
}

.input-row {
  display: flex;
  gap: 10px;
  margin-top: 9px;
}

.input-row input {
  min-width: 0;
  flex: 1;
  height: 50px;
  padding: 0 15px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  outline: none;
  color: var(--text);
  background: rgba(4, 12, 21, 0.47);
  font-size: 0.84rem;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.input-row input::placeholder {
  color: #647d91;
}

.input-row input:focus {
  border-color: var(--lime);
  box-shadow: 0 0 0 3px rgba(200, 243, 108, 0.12);
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 128px;
  padding: 0 17px;
  border: 0;
  border-radius: var(--radius-sm);
  color: #0b151d;
  background: var(--lime);
  font-size: 0.78rem;
  font-weight: 800;
  transition: background 160ms ease, transform 160ms ease;
}

.primary-button:hover,
.primary-button:focus-visible {
  background: var(--lime-strong);
  transform: translateY(-1px);
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.62;
  transform: none;
}

.button-arrow {
  font-size: 1.05rem;
  line-height: 1;
}

.field-help {
  margin: 9px 0 22px;
  color: var(--muted);
  font-size: 0.69rem;
}

.mode-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.mode-fieldset legend {
  margin-bottom: 9px;
}

.mode-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.mode-option {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 9px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--muted);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
}

.mode-option:has(input:checked) {
  border-color: rgba(200, 243, 108, 0.52);
  background: rgba(200, 243, 108, 0.07);
}

.mode-option input {
  grid-row: span 2;
  accent-color: var(--lime);
}

.mode-option span {
  color: var(--text);
  font-size: 0.76rem;
  font-weight: 720;
}

.mode-option small {
  color: var(--muted);
  font-size: 0.64rem;
}

.card-footer {
  justify-content: flex-start;
  gap: 8px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.67rem;
}

.mini-lock {
  color: var(--cyan);
  font-size: 1rem;
}

.text-button {
  margin-left: auto;
  padding: 0;
  border: 0;
  color: var(--lime);
  background: transparent;
  font-size: 0.68rem;
  font-weight: 720;
}

.text-button:hover,
.text-button:focus-visible {
  color: var(--lime-strong);
  text-decoration: underline;
}

.signal-strip {
  display: grid;
  grid-template-columns: auto 1px auto 1px auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 21px 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(12, 24, 38, 0.45);
}

.signal-stat {
  display: grid;
  grid-template-columns: auto auto;
  column-gap: 9px;
  align-items: baseline;
  white-space: nowrap;
}

.stat-value {
  grid-row: span 2;
  color: var(--lime);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1.4rem;
  letter-spacing: -0.08em;
}

.stat-label,
.signal-stat strong {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 500;
}

.signal-stat strong {
  color: var(--muted-strong);
  font-weight: 720;
}

.signal-divider {
  width: 1px;
  height: 28px;
  background: var(--line-strong);
}

.signal-caption {
  justify-self: end;
  max-width: 250px;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.4;
  text-align: right;
}

.results-section {
  padding: 112px 0 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-heading .eyebrow,
.providers-heading .eyebrow {
  margin-bottom: 13px;
}

.section-heading h2,
.method-section h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 530;
  letter-spacing: -0.06em;
  line-height: 1;
}

.result-meta {
  align-self: end;
  color: var(--muted);
  font-size: 0.7rem;
  text-align: right;
}

.inline-alert {
  margin: 0 0 16px;
  padding: 12px 15px;
  border: 1px solid rgba(244, 198, 107, 0.35);
  border-radius: var(--radius-sm);
  color: var(--amber);
  background: rgba(244, 198, 107, 0.08);
  font-size: 0.75rem;
}

.overview-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.4fr);
  gap: 16px;
}

.posture-card,
.metric-card,
.check-card-small,
.providers-card {
  border: 1px solid var(--line);
  background: rgba(15, 31, 48, 0.78);
}

.posture-card {
  min-height: 220px;
  padding: 24px;
  border-radius: var(--radius-md);
}

.result-label {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.result-badge {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 9px;
  border: 1px solid rgba(244, 198, 107, 0.35);
  border-radius: 999px;
  color: var(--amber);
  background: rgba(244, 198, 107, 0.08);
  font-size: 0.65rem;
  font-weight: 750;
}

.result-badge.pass {
  border-color: rgba(200, 243, 108, 0.35);
  color: var(--lime);
  background: rgba(200, 243, 108, 0.08);
}

.result-badge.fail {
  border-color: rgba(255, 136, 127, 0.38);
  color: var(--red);
  background: rgba(255, 136, 127, 0.08);
}

.result-badge.info {
  border-color: rgba(102, 216, 223, 0.35);
  color: var(--cyan);
  background: rgba(102, 216, 223, 0.08);
}

.posture-target {
  overflow: hidden;
  margin-top: 34px;
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  letter-spacing: -0.06em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.posture-summary {
  max-width: 360px;
  margin: 8px 0 24px;
  color: var(--muted-strong);
  font-size: 0.82rem;
}

.posture-foot {
  color: var(--muted);
  font-size: 0.66rem;
}

.last-checked {
  color: var(--muted);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.metric-card {
  display: flex;
  min-height: 220px;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border-radius: var(--radius-md);
}

.metric-card span,
.metric-card small {
  color: var(--muted);
  font-size: 0.68rem;
}

.metric-card strong {
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 3rem;
  font-weight: 480;
  letter-spacing: -0.1em;
}

.metric-card small {
  color: var(--muted-strong);
}

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

.check-card-small {
  min-height: 200px;
  padding: 21px;
  border-radius: var(--radius-md);
}

.check-card-small .check-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.check-icon {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 800;
}

.check-card-small h3 {
  margin: 25px 0 7px;
  color: var(--text);
  font-size: 0.93rem;
  font-weight: 720;
  letter-spacing: -0.025em;
}

.check-card-small p {
  min-height: 43px;
  margin: 0;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.55;
}

.check-evidence {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted-strong);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.63rem;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 23px;
  padding: 0 8px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--muted-strong);
  background: rgba(159, 190, 215, 0.06);
  font-size: 0.61rem;
  font-weight: 750;
  white-space: nowrap;
}

.status-chip::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  content: "";
  background: currentColor;
}

.status-chip.pass,
.status-chip.clear {
  border-color: rgba(200, 243, 108, 0.3);
  color: var(--lime);
  background: rgba(200, 243, 108, 0.07);
}

.status-chip.warn,
.status-chip.review,
.status-chip.timeout {
  border-color: rgba(244, 198, 107, 0.3);
  color: var(--amber);
  background: rgba(244, 198, 107, 0.07);
}

.status-chip.fail,
.status-chip.listed {
  border-color: rgba(255, 136, 127, 0.32);
  color: var(--red);
  background: rgba(255, 136, 127, 0.07);
}

.status-chip.info,
.status-chip.preview {
  border-color: rgba(102, 216, 223, 0.3);
  color: var(--cyan);
  background: rgba(102, 216, 223, 0.07);
}

.providers-card {
  margin-top: 16px;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.providers-heading {
  padding: 23px 24px 19px;
  border-bottom: 1px solid var(--line);
}

.providers-heading h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 690;
  letter-spacing: -0.035em;
}

.provider-tools {
  display: flex;
  gap: 6px;
}

.filter-button {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  background: transparent;
  font-size: 0.65rem;
  font-weight: 700;
}

.filter-button:hover,
.filter-button:focus-visible,
.filter-button.active {
  border-color: var(--line-strong);
  color: var(--text);
  background: rgba(159, 190, 215, 0.08);
}

.provider-table-wrap {
  overflow-x: auto;
}

.provider-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.provider-table th,
.provider-table td {
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.provider-table th {
  color: var(--muted);
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.provider-table td {
  color: var(--muted-strong);
  font-size: 0.74rem;
}

.provider-table tbody tr:last-child td {
  border-bottom: 0;
}

.provider-name {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 680;
}

.provider-glyph {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  color: var(--cyan);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.62rem;
}

.provider-zone {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.64rem;
}

.provider-note {
  display: flex;
  gap: 8px;
  padding: 15px 24px;
  color: var(--muted);
  background: rgba(4, 12, 21, 0.21);
  font-size: 0.67rem;
}

.note-mark {
  display: inline-grid;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--cyan);
  font-size: 0.6rem;
  font-weight: 800;
}

.method-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.2fr);
  gap: clamp(46px, 10vw, 150px);
  padding: 138px 0 116px;
}

.method-copy > p {
  max-width: 520px;
  margin: 0;
  color: var(--muted-strong);
  font-size: 0.95rem;
  line-height: 1.75;
}

.method-list {
  margin-top: 36px;
  border-top: 1px solid var(--line);
}

.method-list > div {
  display: grid;
  grid-template-columns: 36px 100px 1fr;
  gap: 15px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.method-list span {
  color: var(--lime);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.67rem;
}

.method-list strong {
  color: var(--text);
  font-size: 0.77rem;
}

.method-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
}

.footer {
  display: flex;
  justify-content: space-between;
  padding: 21px 0 32px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.66rem;
}

.loading .primary-button {
  position: relative;
  color: transparent;
}

.loading .primary-button::after {
  position: absolute;
  width: 15px;
  height: 15px;
  border: 2px solid rgba(11, 21, 29, 0.25);
  border-top-color: #0b151d;
  border-radius: 50%;
  content: "";
  animation: spin 650ms linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 54px;
    padding-top: 72px;
  }

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

  .check-card {
    max-width: 660px;
  }

  .signal-strip {
    grid-template-columns: repeat(3, auto);
  }

  .signal-divider {
    display: none;
  }

  .signal-caption {
    grid-column: 1 / -1;
    justify-self: start;
    max-width: none;
    text-align: left;
  }
}

@media (max-width: 760px) {
  .app-shell {
    width: min(100% - 30px, 620px);
  }

  .topbar {
    min-height: 72px;
  }

  .main-nav {
    display: none;
  }

  .topbar-status {
    font-size: 0.68rem;
  }

  .hero {
    min-height: auto;
    padding: 60px 0 68px;
  }

  .hero h1 {
    font-size: clamp(2.8rem, 14vw, 4.5rem);
  }

  .hero-points {
    display: grid;
    gap: 11px;
  }

  .check-card {
    padding: 22px;
  }

  .input-row {
    flex-direction: column;
  }

  .primary-button {
    min-height: 48px;
  }

  .signal-strip {
    grid-template-columns: 1fr 1fr;
    gap: 20px 14px;
    padding: 19px 16px;
  }

  .signal-stat:nth-of-type(5) {
    grid-column: 1 / -1;
  }

  .signal-caption {
    grid-column: 1 / -1;
  }

  .results-section {
    padding-top: 82px;
  }

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

  .result-meta {
    text-align: left;
  }

  .overview-layout,
  .checks-grid,
  .method-section {
    grid-template-columns: 1fr;
  }

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

  .metric-card {
    min-height: 150px;
    padding: 16px;
  }

  .metric-card strong {
    font-size: 2.3rem;
  }

  .check-card-small {
    min-height: 176px;
  }

  .providers-heading {
    gap: 18px;
  }

  .provider-tools {
    width: 100%;
  }

  .filter-button {
    flex: 1;
  }

  .provider-table th,
  .provider-table td {
    padding-right: 15px;
    padding-left: 15px;
  }

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

  .method-section {
    gap: 42px;
    padding: 94px 0 82px;
  }

  .method-list > div {
    grid-template-columns: 32px 80px 1fr;
    gap: 9px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
