:root {
  color-scheme: dark;
  --bg: #07181f;
  --panel: #0c2730;
  --panel-soft: #102f39;
  --text: #f1fbfc;
  --muted: #a7c0c5;
  --line: #28505b;
  --cyan: #43d9e6;
  --green: #50e4a0;
  --amber: #ffd07a;
  --ink: #052029;
  --shadow: 0 30px 90px rgba(0, 0, 0, .28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 86% 0%, rgba(67, 217, 230, .14), transparent 30rem),
    radial-gradient(circle at 8% 35%, rgba(80, 228, 160, .07), transparent 28rem),
    var(--bg);
  font: 16px/1.6 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

.shell {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 850;
  letter-spacing: -.02em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 12px;
  color: var(--ink);
  background: linear-gradient(135deg, var(--cyan), var(--green));
  font-weight: 950;
}

.header-cta {
  color: var(--cyan);
  font-size: 14px;
  font-weight: 800;
  text-underline-offset: 4px;
}

.hero {
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  gap: 68px;
  align-items: center;
  padding-block: 78px 70px;
}

.eyebrow,
.panel-kicker {
  margin: 0;
  color: var(--green);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .15em;
  text-transform: uppercase;
}

h1 {
  max-width: 760px;
  margin: 14px 0 22px;
  font-size: clamp(44px, 6.4vw, 72px);
  line-height: 1.02;
  letter-spacing: -.055em;
}

h1 em {
  color: transparent;
  background: linear-gradient(90deg, var(--cyan), var(--green));
  background-clip: text;
  font-style: normal;
}

h2 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.12;
  letter-spacing: -.035em;
}

h3 {
  margin: 24px 0 12px;
  font-size: 18px;
}

.lead,
.section-heading > p:last-child,
.boundary > p:last-child,
.conversion p {
  color: #bed2d6;
  font-size: 18px;
}

.lead {
  max-width: 700px;
  margin: 0;
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  padding: 0;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 14px;
  list-style: none;
}

.trust-list li::before {
  content: "✓";
  margin-right: 7px;
  color: var(--green);
  font-weight: 900;
}

.score-guide,
.checker-form,
.result-card,
.empty-state {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(16, 48, 58, .96), rgba(8, 27, 35, .96));
  box-shadow: var(--shadow);
}

.score-guide {
  padding: 28px;
}

.score-guide h2 {
  margin-top: 8px;
  font-size: 28px;
}

.score-guide dl {
  margin: 18px 0 0;
}

.score-guide dl div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(167, 192, 197, .14);
}

.score-guide dl div:last-child {
  border-bottom: 0;
}

.score-guide dt {
  color: var(--muted);
}

.score-guide dd {
  margin: 0;
  color: var(--green);
  font-weight: 900;
}

.checker-section {
  padding-block: 70px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 30px;
}

.section-heading h2 {
  margin-top: 10px;
}

.section-heading > p:last-child {
  margin: 0;
}

.checker-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.checker-form,
.result-card,
.empty-state {
  padding: 30px;
}

.field + .field {
  margin-top: 22px;
}

label {
  display: block;
  margin-bottom: 4px;
  font-weight: 800;
}

.hint,
.privacy-note,
.noscript-note {
  margin: 0 0 9px;
  color: var(--muted);
  font-size: 13px;
}

input,
select {
  width: 100%;
  min-height: 50px;
  padding: 11px 13px;
  border: 1px solid #37616b;
  border-radius: 11px;
  color: var(--text);
  background: #081f27;
  font: inherit;
}

input::placeholder {
  color: #76949a;
}

input:hover,
select:hover {
  border-color: #51808a;
}

input:focus-visible,
select:focus-visible,
button:focus-visible,
a:focus-visible,
.result-card:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}

.primary-button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 0;
  border-radius: 13px;
  color: var(--ink);
  background: linear-gradient(90deg, var(--cyan), var(--green));
  box-shadow: 0 12px 32px rgba(67, 217, 230, .13);
  font: inherit;
  font-weight: 850;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.checker-form > .primary-button {
  width: 100%;
  margin-top: 28px;
}

.primary-button:hover {
  filter: brightness(1.06);
}

.privacy-note {
  margin: 12px 0 0;
  text-align: center;
}

.noscript-note {
  margin-top: 12px;
  color: var(--amber);
}

.empty-state {
  min-height: 430px;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
}

.empty-score {
  display: grid;
  width: 96px;
  height: 96px;
  place-items: center;
  margin-bottom: 20px;
  border: 1px dashed #4a727b;
  border-radius: 50%;
  color: var(--cyan);
  font-size: 44px;
  font-weight: 900;
}

.empty-state h2 {
  font-size: 28px;
}

.empty-state p {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
}

.result-card {
  border-color: #397866;
}

.result-topline {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.result-status {
  padding: 4px 10px;
  border: 1px solid #3c7163;
  border-radius: 999px;
  color: var(--green);
  background: rgba(80, 228, 160, .08);
  font-size: 12px;
  font-weight: 850;
}

.result-card > h2 {
  margin: 10px 0 12px;
  color: var(--green);
  font-size: 58px;
}

.result-card > h2 small {
  color: var(--muted);
  font-size: 20px;
  letter-spacing: 0;
}

.meter {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #061b22;
}

.meter span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--green));
  transition: width .35s ease;
}

.result-summary {
  color: #c7dadd;
}

.breakdown {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.breakdown li {
  padding: 13px 14px;
  border: 1px solid rgba(167, 192, 197, .14);
  border-radius: 12px;
  background: rgba(5, 24, 31, .55);
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-weight: 800;
}

.breakdown-points {
  color: var(--cyan);
  white-space: nowrap;
}

.breakdown-detail {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.result-cta {
  margin-top: 24px;
  padding: 20px;
  border-left: 3px solid var(--green);
  border-radius: 12px;
  background: rgba(80, 228, 160, .07);
}

.result-cta p {
  margin: 0 0 14px;
  color: #c7dadd;
}

.result-cta .primary-button {
  width: 100%;
}

.boundary {
  margin-block: 40px 70px;
  padding: 32px;
  border-left: 3px solid var(--amber);
  border-radius: 16px;
  background: rgba(255, 208, 122, .07);
}

.boundary h2 {
  margin-top: 9px;
  font-size: 30px;
}

.boundary > p:last-child {
  margin: 0;
  color: #dacaa8;
}

.conversion {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
  padding-block: 54px;
  border-top: 1px solid rgba(167, 192, 197, .14);
}

.conversion h2 {
  margin-top: 9px;
}

.conversion p:last-child {
  max-width: 760px;
  margin-bottom: 0;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  padding-block: 32px 46px;
  border-top: 1px solid rgba(167, 192, 197, .14);
  color: var(--muted);
  font-size: 13px;
}

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

  .hero {
    gap: 36px;
    padding-top: 52px;
  }

  .conversion {
    gap: 22px;
  }
}

@media (max-width: 560px) {
  .shell {
    width: min(100% - 28px, 1120px);
  }

  .site-header {
    align-items: flex-start;
  }

  .brand span:last-child {
    max-width: 130px;
    line-height: 1.2;
  }

  .header-cta {
    max-width: 130px;
    text-align: right;
  }

  .checker-form,
  .result-card,
  .empty-state,
  .score-guide,
  .boundary {
    padding: 22px;
  }
}

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

  .meter span {
    transition: none;
  }
}
