:root {
  --ink: #06112b;
  --panel: #0a1d48;
  --panel-2: #103276;
  --paper: #f5f9ff;
  --muted: #a8c5ee;
  --line: rgba(132, 190, 255, 0.18);
  --line-strong: rgba(132, 190, 255, 0.34);
  --blue: #116dff;
  --blue-bright: #1ea7ff;
  --blue-2: #8ed9ff;
  --cyan: #45e8ff;
  --green: #49e6a7;
  --yellow: #f4c95d;
  --red: #ff6b6b;
  --white: #ffffff;
  --container: 1180px;
  --radius: 8px;
  --shadow: 0 30px 90px rgba(0, 58, 170, 0.35);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  background: var(--ink);
}

body {
  margin: 0;
  color: var(--paper);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
  background:
    radial-gradient(circle at 18% 16%, rgba(30, 167, 255, 0.35), transparent 330px),
    radial-gradient(circle at 82% 8%, rgba(69, 232, 255, 0.32), transparent 380px),
    linear-gradient(180deg, rgba(17, 109, 255, 0.22), transparent 620px),
    var(--ink);
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  z-index: -2;
  background:
    linear-gradient(rgba(142, 217, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(142, 217, 255, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 78%);
}

body::after {
  z-index: -1;
  opacity: 0.8;
  background:
    radial-gradient(circle at 8% 36%, rgba(30, 167, 255, 0.18), transparent 250px),
    radial-gradient(circle at 92% 50%, rgba(73, 230, 167, 0.12), transparent 280px);
  animation: ambientShift 11s ease-in-out infinite alternate;
}

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

button,
input,
select {
  font: inherit;
}

p,
h1,
h2,
h3,
figure,
pre {
  margin: 0;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 16px;
  left: 50%;
  width: min(var(--container), calc(100% - 32px));
  min-height: 66px;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 10px 12px 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(4, 19, 50, 0.66);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 60px rgba(0, 69, 189, 0.2);
}

.site-header.is-scrolled {
  background: rgba(4, 19, 50, 0.94);
  border-color: var(--line-strong);
}

.brand,
.brand span:last-child,
.site-header nav,
.hero-actions,
.trust-row,
.product-top,
.ranking-preview article,
.evidence-strip,
.site-footer,
.site-footer nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  min-width: 210px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #e8f7ff 0%, var(--blue-bright) 38%, var(--blue) 100%);
  color: white;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  box-shadow: 0 12px 30px rgba(30, 167, 255, 0.34);
}

.brand span:last-child {
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.brand strong {
  font-size: 17px;
}

.brand small {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.site-header nav {
  justify-content: center;
  gap: clamp(12px, 2vw, 26px);
  color: #c7d0dc;
  font-size: 14px;
}

.site-header nav a:hover {
  color: var(--white);
}

.header-cta,
.button,
.hero-search button,
.ranking-tabs button,
.tool-card button,
.compare-chip button,
.modal-close {
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
}

.header-cta,
.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.header-cta,
.button.primary,
.hero-search button {
  background: linear-gradient(135deg, var(--blue-bright), var(--blue));
  color: white;
  box-shadow: 0 16px 40px rgba(17, 109, 255, 0.42);
}

.button.secondary {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.08);
  color: var(--paper);
}

.button.ghost {
  border: 1px solid rgba(69, 232, 255, 0.38);
  background: rgba(69, 232, 255, 0.1);
  color: #c9f9ff;
}

.section,
.hero,
.site-footer {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

.hero {
  min-height: 100svh;
  padding: 132px 0 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.72fr);
  gap: clamp(34px, 6vw, 82px);
  align-items: center;
}

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

.eyebrow {
  margin-bottom: 14px;
  color: var(--blue-2);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  letter-spacing: 0;
  line-height: 1.08;
}

h1 {
  font-size: clamp(46px, 6.4vw, 82px);
  max-width: 9.8em;
  background: linear-gradient(180deg, #ffffff 0%, #bfe9ff 52%, #69c9ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 20px 70px rgba(30, 167, 255, 0.22);
}

h2 {
  font-size: clamp(30px, 4.3vw, 58px);
  color: #f2f8ff;
}

h3 {
  font-size: 22px;
}

.hero-lead,
.section-head p,
.challenge-card p,
.pricing-card p,
.recommendation p,
.entry-card p {
  color: #c3dcfb;
  line-height: 1.75;
}

.hero-lead {
  max-width: 660px;
  margin-top: 24px;
  font-size: clamp(17px, 1.7vw, 21px);
}

.hero-search {
  margin-top: 30px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(8, 40, 104, 0.48);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 22px 55px rgba(0, 64, 180, 0.24);
  backdrop-filter: blur(18px);
}

.hero-search label {
  display: block;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.hero-search div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

input,
select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(232, 247, 255, 0.1);
  color: var(--paper);
  padding: 0 14px;
  outline: none;
}

select {
  color: var(--paper);
}

option {
  color: #111827;
}

input:focus,
select:focus {
  border-color: rgba(130, 177, 255, 0.75);
  box-shadow: 0 0 0 3px rgba(63, 124, 255, 0.14);
}

.hero-search button {
  min-height: 44px;
  padding: 0 18px;
  font-weight: 900;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.trust-row {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.trust-row span,
.tag,
.tool-tag,
.status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(30, 167, 255, 0.12);
  color: #dff7ff;
  font-size: 12px;
  font-weight: 800;
}

.hero-product {
  position: relative;
  min-height: clamp(430px, 46vw, 620px);
  border: 1px solid rgba(142, 217, 255, 0.28);
  border-radius: 18px;
  background:
    linear-gradient(140deg, rgba(30, 167, 255, 0.24), rgba(4, 22, 60, 0.62)),
    rgba(255, 255, 255, 0.06);
  box-shadow:
    0 38px 120px rgba(17, 109, 255, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  overflow: hidden;
  transform: perspective(1100px) rotateX(2deg) rotateY(-4deg);
  animation: heroFloat 6s ease-in-out infinite;
}

.hero-product::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 68% 30%, rgba(69, 232, 255, 0.32), transparent 220px),
    linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.14), transparent 48%);
  animation: scanLight 5.8s linear infinite;
  mix-blend-mode: screen;
}

.hero-product img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.18) contrast(1.06);
  transform: scale(1.04);
}

.hero-product::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 58%, rgba(3, 11, 31, 0.44)),
    radial-gradient(circle at 50% 80%, rgba(30, 167, 255, 0.2), transparent 260px);
}

.floating-card {
  position: absolute;
  z-index: 2;
  display: grid;
  gap: 4px;
  padding: 13px 15px;
  border: 1px solid rgba(210, 241, 255, 0.34);
  border-radius: 12px;
  background: rgba(2, 24, 71, 0.58);
  box-shadow: 0 18px 46px rgba(0, 45, 140, 0.3);
  backdrop-filter: blur(16px);
}

.floating-card span {
  color: var(--blue-2);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.floating-card b {
  color: white;
  font-size: 15px;
}

.card-score {
  top: 8%;
  left: 7%;
}

.card-score b {
  font-size: 38px;
  line-height: 1;
}

.card-evidence {
  right: 6%;
  bottom: 10%;
  max-width: 230px;
}

.card-rank {
  left: 10%;
  bottom: 22%;
  animation: cardPulse 3.5s ease-in-out infinite;
}

.section {
  padding: 76px 0;
  position: relative;
}

.section-head {
  max-width: 820px;
  margin-bottom: 30px;
}

.section-head p {
  margin-top: 16px;
  font-size: 17px;
}

.entry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding-top: 18px;
}

.entry-card,
.tool-panel,
.challenge-card,
.pricing-card,
.service-card,
.lead-form,
.recommendation,
.compare-picker,
.submission-form,
.submission-output,
.vendor-rules article,
.score-framework article,
.newsletter-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.105), rgba(17, 109, 255, 0.055)),
    rgba(7, 29, 78, 0.58);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.11),
    0 18px 52px rgba(0, 58, 170, 0.16);
  backdrop-filter: blur(14px);
}

.entry-card {
  min-height: 230px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.entry-card::after {
  content: "";
  position: absolute;
  inset: auto -20% -34% 22%;
  height: 100px;
  border-radius: 999px;
  background: rgba(69, 232, 255, 0.18);
  filter: blur(28px);
}

.entry-card:hover,
.tool-card:hover,
.pricing-card:hover {
  transform: translateY(-4px);
  border-color: rgba(142, 217, 255, 0.52);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 28px 80px rgba(17, 109, 255, 0.28);
}

.entry-card span {
  color: var(--blue-2);
  font-weight: 900;
}

.entry-card h2 {
  font-size: 25px;
}

.tool-panel {
  padding: 18px;
}

.filters {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 10px;
}

.result-meta {
  margin: 16px 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

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

.tool-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(160deg, rgba(13, 75, 175, 0.46), rgba(5, 18, 48, 0.82)),
    rgba(16, 19, 24, 0.76);
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.tool-card-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.tool-card h3 {
  font-size: 20px;
}

.tool-card p {
  color: #c4dcfb;
  line-height: 1.65;
}

.tool-score {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(142, 217, 255, 0.54);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(69, 232, 255, 0.28), rgba(17, 109, 255, 0.2));
  color: white;
  font-size: 20px;
  font-weight: 900;
  box-shadow: 0 12px 30px rgba(30, 167, 255, 0.2);
}

.tool-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tool-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.tool-card button {
  min-height: 38px;
  background: rgba(142, 217, 255, 0.12);
  color: var(--paper);
  font-weight: 900;
}

.tool-card button.is-added {
  background: rgba(57, 201, 130, 0.2);
  color: #cbffe2;
}

.tool-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.score-framework {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.score-framework article {
  min-height: 190px;
  padding: 20px;
}

.score-framework b {
  display: block;
  color: white;
  font-size: 42px;
  line-height: 1;
}

.score-framework span {
  display: block;
  margin: 12px 0 8px;
  color: var(--blue-2);
  font-weight: 900;
}

.score-framework p {
  color: #c3dcfb;
  line-height: 1.65;
}

.ranking-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.ranking-tabs button {
  min-height: 40px;
  padding: 0 14px;
  background: rgba(142, 217, 255, 0.1);
  color: var(--paper);
  font-weight: 900;
}

.ranking-tabs button.is-active {
  background: linear-gradient(135deg, var(--blue-bright), var(--blue));
  box-shadow: 0 12px 30px rgba(17, 109, 255, 0.3);
}

.table-wrap {
  overflow-x: auto;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(4, 21, 58, 0.62);
  box-shadow: 0 20px 70px rgba(0, 58, 170, 0.18);
}

table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
}

th,
td {
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: #dbe6f5;
  font-size: 12px;
  text-transform: uppercase;
  white-space: nowrap;
}

td {
  color: #c9e1ff;
  font-size: 14px;
}

tr:last-child td {
  border-bottom: 0;
}

.compare-layout,
.lead-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 16px;
}

.compare-layout > *,
.lead-layout > *,
.table-wrap > * {
  min-width: 0;
}

.compare-picker,
.lead-form,
.recommendation {
  padding: 18px;
}

.compare-picker h3 {
  margin-bottom: 12px;
}

.compare-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.compare-chip button {
  width: 26px;
  height: 26px;
  background: rgba(255, 107, 107, 0.16);
  color: #ffd0d0;
  font-weight: 900;
}

.compare-picker .button {
  width: 100%;
  margin-top: 16px;
}

.challenge-card {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 24px;
  padding: 24px;
}

.submission-grid,
.vendor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.submission-form,
.submission-output {
  padding: 22px;
}

.submission-form {
  display: grid;
  gap: 14px;
}

.submission-form label {
  display: grid;
  gap: 8px;
  color: #dbe6f5;
  font-size: 13px;
  font-weight: 900;
}

textarea {
  min-height: 132px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(232, 247, 255, 0.1);
  color: var(--paper);
  padding: 12px 14px;
  font: inherit;
  outline: none;
}

textarea:focus {
  border-color: rgba(130, 177, 255, 0.75);
  box-shadow: 0 0 0 3px rgba(63, 124, 255, 0.14);
}

.submission-output h3 {
  margin: 14px 0 12px;
  font-size: 30px;
}

.submission-output p {
  color: #c3dcfb;
  line-height: 1.75;
}

.challenge-card h3 {
  margin: 14px 0 12px;
  font-size: clamp(26px, 4vw, 44px);
}

pre {
  margin-top: 18px;
  padding: 16px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(17, 109, 255, 0.12), transparent),
    #05132e;
  color: #dbeafe;
  line-height: 1.65;
  white-space: pre-wrap;
}

.challenge-metrics,
.pricing-grid {
  display: grid;
  gap: 14px;
}

.challenge-metrics article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(69, 232, 255, 0.08);
}

.challenge-metrics b {
  display: block;
  font-size: 42px;
}

.challenge-metrics span {
  color: var(--muted);
  font-weight: 800;
}

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

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

.pricing-card {
  min-height: 250px;
  padding: 22px;
  display: grid;
  align-content: start;
  gap: 14px;
}

.service-card {
  min-height: 250px;
  padding: 22px;
  display: grid;
  align-content: start;
  gap: 12px;
}

.pricing-card.featured {
  border-color: rgba(69, 232, 255, 0.48);
  background: linear-gradient(180deg, rgba(30, 167, 255, 0.22), rgba(73, 230, 167, 0.08));
}

.pricing-card span {
  color: var(--blue-2);
  font-size: 13px;
  font-weight: 900;
}

.pricing-card b,
.service-card b {
  color: #cbffe2;
  line-height: 1.55;
}

.service-card span {
  color: var(--cyan);
  font-size: 13px;
  font-weight: 900;
}

.service-card p {
  color: #c3dcfb;
  line-height: 1.7;
}

.newsletter-panel {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 18px;
  align-items: center;
  padding: 24px;
}

.newsletter-panel h3 {
  margin: 14px 0 10px;
  font-size: 32px;
}

.newsletter-panel p {
  color: #c3dcfb;
  line-height: 1.7;
}

.newsletter-panel form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
}

.vendor-rules {
  display: grid;
  gap: 14px;
}

.vendor-rules article {
  padding: 22px;
}

.vendor-rules b {
  display: block;
  margin-bottom: 8px;
  color: var(--blue-2);
  font-size: 22px;
}

.vendor-rules span {
  color: #c3dcfb;
  line-height: 1.7;
}

.lead-form {
  display: grid;
  gap: 14px;
}

.lead-form label {
  display: grid;
  gap: 8px;
  color: #dbe6f5;
  font-size: 13px;
  font-weight: 900;
}

.recommendation {
  min-height: 420px;
}

.recommendation h3 {
  margin: 14px 0 12px;
  font-size: 30px;
}

.recommendation ul {
  margin: 18px 0 0;
  padding-left: 18px;
  color: #c9d3df;
  line-height: 1.8;
}

.recommendation-actions,
.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 9, 30, 0.72);
  backdrop-filter: blur(12px);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  max-height: min(860px, calc(100svh - 42px));
  overflow: auto;
  border: 1px solid rgba(142, 217, 255, 0.36);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(13, 75, 175, 0.72), rgba(4, 18, 48, 0.96)),
    var(--panel);
  box-shadow: 0 40px 140px rgba(0, 36, 120, 0.48);
  padding: clamp(22px, 4vw, 38px);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 24px;
}

.modal-head {
  max-width: 720px;
}

.modal-head h2 {
  margin: 12px 0;
}

.modal-head p {
  color: #c3dcfb;
  line-height: 1.75;
}

.detail-grid {
  display: grid;
  grid-template-columns: 0.8fr 1fr 1fr;
  gap: 14px;
  margin: 22px 0;
}

.detail-grid article,
.detail-columns section {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
  padding: 18px;
}

.detail-grid b,
.detail-columns h3 {
  display: block;
  margin-bottom: 10px;
  color: var(--blue-2);
}

.detail-grid strong {
  display: block;
  margin-bottom: 8px;
  font-size: 54px;
  line-height: 1;
}

.detail-grid span {
  display: block;
  color: #c3dcfb;
  line-height: 1.7;
}

.detail-columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.detail-columns ul {
  margin: 0;
  padding-left: 18px;
  color: #d5e8ff;
  line-height: 1.75;
}

.modal-open {
  overflow: hidden;
}

.site-footer {
  justify-content: space-between;
  gap: 18px;
  padding: 34px 0 46px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer div {
  display: grid;
  gap: 4px;
}

.site-footer b {
  color: var(--paper);
}

.site-footer nav {
  gap: 16px;
  flex-wrap: wrap;
}

.not-found {
  min-height: 100svh;
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  place-items: center;
}

.not-found-panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.105), rgba(17, 109, 255, 0.055)),
    rgba(7, 29, 78, 0.66);
  box-shadow: var(--shadow);
  padding: clamp(28px, 6vw, 56px);
}

.not-found-panel h1 {
  margin: 16px 0;
}

.not-found-panel p {
  color: #c3dcfb;
  font-size: 18px;
  line-height: 1.75;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 520ms ease var(--delay, 0ms),
    transform 520ms ease var(--delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes heroFloat {
  0%,
  100% {
    transform: perspective(1100px) rotateX(2deg) rotateY(-4deg) translate3d(0, 0, 0);
  }

  50% {
    transform: perspective(1100px) rotateX(1deg) rotateY(-2deg) translate3d(0, -12px, 0);
  }
}

@keyframes scanLight {
  0% {
    transform: translateX(-26%) rotate(0deg);
  }

  100% {
    transform: translateX(26%) rotate(0deg);
  }
}

@keyframes ambientShift {
  0% {
    transform: translate3d(-1%, -1%, 0) scale(1);
  }

  100% {
    transform: translate3d(1%, 1%, 0) scale(1.06);
  }
}

@keyframes cardPulse {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-header nav {
    display: none;
  }

  .hero,
  .challenge-card,
  .compare-layout,
  .lead-layout {
    grid-template-columns: 1fr;
  }

  .hero-product {
    min-height: 520px;
    transform: none;
  }

  .entry-grid,
  .tool-grid,
  .pricing-grid,
  .service-grid,
  .score-framework,
  .submission-grid,
  .vendor-grid,
  .newsletter-panel,
  .detail-grid,
  .detail-columns {
    grid-template-columns: repeat(2, 1fr);
  }

  .newsletter-panel form {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .section,
  .hero,
  .site-footer {
    width: min(100% - 28px, var(--container));
  }

  .site-header {
    width: calc(100% - 20px);
    top: 10px;
  }

  .brand {
    min-width: 0;
  }

  .brand small,
  .header-cta {
    display: none;
  }

  .hero {
    padding-top: 110px;
  }

  h1 {
    font-size: 43px;
  }

  .hero-search div,
  .entry-grid,
  .tool-grid,
  .pricing-grid,
  .service-grid,
  .filters,
  .score-framework,
  .submission-grid,
  .vendor-grid,
  .newsletter-panel,
  .detail-grid,
  .detail-columns,
  .tool-actions {
    grid-template-columns: 1fr;
  }

  .hero-actions .button {
    width: 100%;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-product {
    min-height: 430px;
    border-radius: 14px;
  }

  .floating-card {
    padding: 10px 12px;
  }

  .card-score b {
    font-size: 30px;
  }

  .card-evidence {
    right: 4%;
    max-width: 190px;
  }

  .modal {
    padding: 10px;
  }

  .modal-panel {
    max-height: calc(100svh - 20px);
    border-radius: 14px;
  }
}

/* Final light theme and evaluation product layer */
:root {
  --ink: #f7fbff;
  --panel: #ffffff;
  --panel-2: #edf6ff;
  --paper: #10213f;
  --muted: #607792;
  --line: rgba(17, 109, 255, 0.14);
  --line-strong: rgba(17, 109, 255, 0.28);
  --shadow: 0 30px 90px rgba(30, 118, 220, 0.16);
  color-scheme: light;
}

html,
body {
  background-color: #ffffff;
}

body {
  color: var(--paper);
  background:
    radial-gradient(circle at 16% 10%, rgba(30, 167, 255, 0.2), transparent 340px),
    radial-gradient(circle at 84% 8%, rgba(69, 232, 255, 0.16), transparent 360px),
    linear-gradient(180deg, #eff8ff 0%, #ffffff 46%, #f7fbff 100%);
}

body::before {
  background:
    linear-gradient(rgba(17, 109, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 109, 255, 0.045) 1px, transparent 1px);
}

.site-header {
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 60px rgba(30, 118, 220, 0.14);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
}

.site-header nav {
  color: #37516d;
}

.site-header nav a:hover {
  color: var(--blue);
}

h1 {
  background: linear-gradient(180deg, #06245a 0%, #116dff 54%, #1ea7ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h2,
h3,
.brand strong,
.site-footer b {
  color: #10213f;
}

.hero-lead,
.section-head p,
.challenge-card p,
.pricing-card p,
.service-card p,
.recommendation p,
.entry-card p,
.submission-output p,
.newsletter-panel p,
.vendor-rules span,
.score-framework p,
.tool-card p {
  color: #536b86;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.9);
  color: #10213f;
}

.button.ghost {
  background: rgba(232, 248, 255, 0.92);
  color: #075fae;
}

.hero-search,
.entry-card,
.tool-panel,
.challenge-card,
.pricing-card,
.service-card,
.lead-form,
.recommendation,
.compare-picker,
.submission-form,
.submission-output,
.vendor-rules article,
.score-framework article,
.newsletter-panel,
.eval-form,
.eval-result,
.run-log,
.feature-row {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(235, 247, 255, 0.82)),
    #ffffff;
  border-color: rgba(17, 109, 255, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 18px 52px rgba(30, 118, 220, 0.13);
}

.tool-card {
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(231, 244, 255, 0.88)),
    #ffffff;
}

.table-wrap {
  background: rgba(255, 255, 255, 0.96);
}

th {
  color: #24415f;
}

td {
  color: #39536f;
}

input,
select,
textarea {
  background: rgba(255, 255, 255, 0.94);
  color: #10213f;
}

.trust-row span,
.tag,
.tool-tag,
.status {
  background: rgba(30, 167, 255, 0.1);
  color: #075fae;
}

.score-framework b,
.tool-score {
  color: #116dff;
}

.pricing-card b,
.service-card b {
  color: #0b7a52;
}

pre {
  background:
    linear-gradient(135deg, rgba(17, 109, 255, 0.08), transparent),
    #f4faff;
  color: #1c3d64;
}

.lead-form label,
.submission-form label,
.eval-form label,
.evidence-checklist legend {
  color: #24415f;
}

.recommendation ul,
.detail-columns ul {
  color: #536b86;
}

.feature-matrix {
  display: grid;
  gap: 14px;
}

.feature-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr 0.9fr;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.feature-row h3 {
  margin: 10px 0;
}

.feature-row b {
  display: block;
  margin-bottom: 8px;
  color: #116dff;
}

.feature-row p,
.feature-row li {
  color: #536b86;
  line-height: 1.65;
}

.feature-row ul {
  margin: 0;
  padding-left: 18px;
}

.eval-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 16px;
}

.eval-form,
.eval-result,
.run-log {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.eval-form {
  display: grid;
  gap: 14px;
}

.eval-form label {
  display: grid;
  gap: 8px;
  font-size: 13px;
  font-weight: 900;
}

.score-inputs {
  display: grid;
  gap: 12px;
}

.score-slider span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.score-slider input {
  accent-color: var(--blue);
}

.evidence-checklist {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.evidence-checklist legend {
  padding: 0 6px;
  font-weight: 900;
}

.evidence-checklist label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #536b86;
  font-weight: 700;
}

.eval-result h3 {
  margin: 14px 0 10px;
  font-size: 32px;
}

.eval-result p,
.eval-result li {
  color: #536b86;
  line-height: 1.7;
}

.eval-bars {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.eval-bars div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

.eval-bars i {
  grid-column: 1 / -1;
  height: 8px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, var(--blue), var(--cyan)) 0 / var(--bar) 100% no-repeat,
    #dcecff;
}

.run-log {
  margin-top: 16px;
}

.run-log-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.run-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.run-item span {
  display: block;
  color: #607792;
  font-size: 13px;
}

.run-item strong {
  color: #116dff;
  font-size: 24px;
}

.empty-state {
  color: #607792;
}

@media (max-width: 980px) {
  .feature-row,
  .eval-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .evidence-checklist {
    grid-template-columns: 1fr;
  }

  .run-item {
    grid-template-columns: 1fr auto;
  }
}

/* Compact readability pass: keep most marketing and card copy within two lines. */
.hero-lead,
.section-head p,
.entry-card p,
.tool-card p,
.challenge-card p,
.pricing-card p,
.service-card p,
.submission-output p,
.newsletter-panel p,
.vendor-rules span,
.recommendation p,
.eval-result p,
.feature-row p,
.score-framework p,
.modal-head p,
.detail-grid span,
.run-item span,
td {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

h1,
h2,
h3,
.tool-card h3,
.feature-row h3,
.submission-output h3,
.newsletter-panel h3,
.recommendation h3,
.eval-result h3 {
  text-wrap: balance;
}

.section {
  padding-block: 64px;
}

.section-head {
  max-width: 760px;
  margin-bottom: 24px;
}

.section-head p {
  max-width: 680px;
  margin-top: 12px;
  line-height: 1.58;
}

.hero {
  grid-template-columns: minmax(0, 0.98fr) minmax(350px, 0.78fr);
  gap: clamp(28px, 5vw, 64px);
}

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

h1 {
  max-width: 10.8em;
}

h2 {
  max-width: 15em;
  line-height: 1.12;
}

.hero-lead {
  max-width: 570px;
  margin-top: 18px;
  line-height: 1.58;
}

.entry-card {
  min-height: 190px;
  padding: 20px;
}

.entry-card h2 {
  font-size: 23px;
}

.tool-card {
  gap: 12px;
  min-height: 318px;
}

.tool-card p {
  min-height: 3.3em;
  line-height: 1.6;
}

.tool-meta {
  align-items: start;
}

.tool-meta span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.score-framework article,
.pricing-card,
.service-card {
  min-height: 0;
}

.score-framework article {
  padding: 18px;
}

.score-framework p,
.service-card p,
.pricing-card p,
.vendor-rules span,
.newsletter-panel p,
.submission-output p,
.recommendation p,
.eval-result p {
  line-height: 1.58;
}

.challenge-card h3,
.newsletter-panel h3,
.submission-output h3,
.recommendation h3,
.eval-result h3 {
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.15;
}

pre {
  max-height: 9.4em;
  line-height: 1.55;
}

.feature-row {
  grid-template-columns: 1fr 0.95fr 0.95fr 0.9fr;
  gap: 14px;
  padding: 18px;
}

.feature-row h3 {
  margin: 8px 0;
}

.feature-row p,
.feature-row li {
  line-height: 1.55;
}

.feature-row ul {
  display: grid;
  gap: 4px;
}

.feature-row li {
  padding-right: 4px;
}

.detail-columns li {
  line-height: 1.58;
}

@media (min-width: 981px) {
  .feature-row li:nth-child(n + 4),
  .detail-columns li:nth-child(n + 4) {
    display: none;
  }
}

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

  .section {
    padding-block: 54px;
  }

  .tool-card {
    min-height: 0;
  }
}

@media (max-width: 640px) {
  h1 {
    font-size: 38px;
    max-width: 9em;
  }

  h2 {
    font-size: clamp(28px, 9vw, 38px);
  }

  .hero-lead,
  .section-head p {
    -webkit-line-clamp: 3;
  }

  .entry-card {
    min-height: 170px;
  }
}
