:root {
  --bg: #0a0a0f;
  --bg-alt: #0f0f1a;
  --bg-card: #13131f;
  --border: #1e1e30;
  --text: #e8e8f0;
  --text-muted: #6b6b8a;
  --accent: #6c63ff;
  --accent-dim: #6c63ff22;
  --green: #22c55e;
  --green-dim: #22c55e18;
  --red: #ef4444;
  --red-dim: #ef444418;
  --yellow: #f59e0b;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container.narrow {
  max-width: 680px;
}

/* NAV */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.15s;
}

.nav-links a:hover { color: var(--text); }

/* HEADER */
header {
  padding: 6rem 0 4rem;
  text-align: center;
  background: radial-gradient(ellipse at 50% 0%, #6c63ff0d 0%, transparent 70%);
}

.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid #6c63ff33;
  padding: 0.25rem 0.75rem;
  border-radius: 99px;
  margin-bottom: 1.5rem;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, #ffffff 0%, #a0a0c0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 2rem;
}

.cta-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  padding: 0.7rem 1.75rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: opacity 0.15s;
}

.btn-primary:hover { opacity: 0.85; }

.btn-secondary {
  background: transparent;
  color: var(--text);
  padding: 0.7rem 1.75rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid var(--border);
  transition: border-color 0.15s;
}

.btn-secondary:hover { border-color: #3e3e58; }

/* REPORT PREVIEW */
.report-preview {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  max-width: 480px;
  margin: 0 auto;
  overflow: hidden;
  text-align: left;
}

.report-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.report-address {
  font-family: monospace;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.score-badge {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--green);
}

.report-grid { padding: 0.5rem 0; }

.report-row {
  display: flex;
  justify-content: space-between;
  padding: 0.35rem 1.25rem;
  font-size: 0.875rem;
}

.report-row.pass span:last-child { color: var(--green); }
.report-row.fail span:last-child { color: var(--red); }

.report-verdict {
  padding: 0.75rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-top: 1px solid var(--border);
}

.pass-verdict { color: var(--green); }
.fail-verdict { color: var(--red); }

.report-price {
  padding: 0.5rem 1.25rem 0.75rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* SECTIONS */
section {
  padding: 5rem 0;
}

section.alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.section-sub {
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 580px;
}

/* CHECKS GRID */
.checks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}

.check-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
}

.check-icon {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.check-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.check-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* SCORE TABLE */
.score-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2rem;
  font-size: 0.9rem;
}

.score-table th {
  text-align: left;
  padding: 0.6rem 1rem;
  color: var(--text-muted);
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.score-table td {
  padding: 0.55rem 1rem;
  border-bottom: 1px solid var(--border);
}

.score-table tr:last-child td { border-bottom: none; }

.score-table .penalty td:last-child { color: var(--red); font-weight: 600; }
.score-table .bonus td:last-child { color: var(--green); font-weight: 600; }
.score-table .penalty { background: var(--red-dim); }
.score-table .bonus { background: var(--green-dim); }

/* CODE BLOCKS */
pre {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
}

code {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.85rem;
  color: #c4c4e0;
  line-height: 1.7;
}

/* CHAINS */
.chains {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.chains span {
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid #6c63ff33;
  padding: 0.3rem 0.85rem;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: monospace;
}

/* DATABASE */
#database p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* FOOTER */
footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.15s;
}

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

.footer-bottom {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

/* RESPONSIVE */
@media (max-width: 600px) {
  .nav-links { display: none; }
  header { padding: 4rem 0 3rem; }
  .checks-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
}
