/* CounterAudit enterprise — aligned with trust-product marketing (Countersig / ProvenanceAI tier) */

:root {
  --bg-0: #070a10;
  --bg-1: #0a0f1c;
  --bg-2: #111827;
  --surface: rgba(15, 23, 42, 0.72);
  --surface-border: rgba(148, 163, 184, 0.12);
  --text: #f8fafc;
  --muted: #94a3b8;
  --dim: #64748b;
  --accent: #06b6d4;
  --accent-soft: rgba(6, 182, 212, 0.14);
  --gold: #e8c468;
  --gold-soft: rgba(232, 196, 104, 0.1);
  --max: 1140px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: radial-gradient(ellipse 120% 80% at 50% -30%, rgba(6, 182, 212, 0.09), transparent 55%),
    radial-gradient(ellipse 80% 50% at 100% 20%, rgba(232, 196, 104, 0.05), transparent 50%),
    linear-gradient(165deg, var(--bg-0) 0%, var(--bg-1) 42%, #0d1324 100%);
  background-attachment: fixed;
}

::selection {
  background: rgba(6, 182, 212, 0.25);
  color: var(--text);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s ease, opacity 0.15s ease;
}
a:hover {
  color: #22d3ee;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2rem);
}

/* Subtle grid */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, black 30%, transparent 75%);
}

.content {
  position: relative;
  z-index: 1;
}

header {
  border-bottom: 1px solid var(--surface-border);
  background: rgba(7, 10, 16, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 0;
  gap: 1.5rem;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.03em;
  font-size: 1.2rem;
  color: var(--text);
}
.wordmark svg {
  flex-shrink: 0;
}
.wordmark span {
  color: var(--dim);
  font-weight: 500;
  font-size: 0.95rem;
}

nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}
nav a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}
nav a:hover {
  color: var(--text);
}
nav .btn-nav {
  padding: 0.45rem 1rem;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(232, 196, 104, 0.12));
  border: 1px solid rgba(6, 182, 212, 0.35);
  color: var(--text);
}
nav .btn-nav:hover {
  border-color: rgba(6, 182, 212, 0.55);
  color: #fff;
}

.hero {
  padding: clamp(3rem, 8vw, 5rem) 0 clamp(2.5rem, 5vw, 3.5rem);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.kicker::before {
  content: "";
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  border-radius: 2px;
}

h1 {
  font-family: var(--display);
  font-size: clamp(2.25rem, 5.5vw, 3.25rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin: 0 0 1.25rem;
  max-width: 18ch;
}

.lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 36rem;
  margin: 0 0 1.75rem;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-bottom: 2rem;
  font-size: 0.8125rem;
  color: var(--dim);
}
.trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.trust-row svg {
  opacity: 0.65;
}

.hero-visual {
  margin: 0 0 1.35rem;
  max-width: 52rem;
}

.hero-visual img {
  width: 100%;
  display: block;
  border-radius: 14px;
  border: 1px solid var(--surface-border);
  box-shadow: 0 22px 72px rgba(0, 0, 0, 0.45);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.35rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9375rem;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #0891b2, #06b6d4);
  color: #042f2e;
  box-shadow: 0 4px 24px rgba(6, 182, 212, 0.22);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(6, 182, 212, 0.28);
  text-decoration: none;
  color: #022c22;
}

.btn-secondary {
  background: transparent;
  border-color: var(--surface-border);
  color: var(--text);
}
.btn-secondary:hover {
  border-color: rgba(6, 182, 212, 0.4);
  text-decoration: none;
  color: #fff;
}

.section-title {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
}
.section-lead {
  color: var(--muted);
  max-width: 38rem;
  margin: 0 0 2.25rem;
  font-size: 1.02rem;
}

.grid-features {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  padding: 2rem 0 3.5rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 14px;
  padding: 1.5rem 1.35rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  border-color: rgba(6, 182, 212, 0.25);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-soft);
  border: 1px solid rgba(232, 196, 104, 0.2);
  margin-bottom: 1rem;
  color: var(--gold);
}

.card h2 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.card p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--muted);
  line-height: 1.55;
}

.band {
  padding: 3rem 0;
  border-top: 1px solid var(--surface-border);
  border-bottom: 1px solid var(--surface-border);
  background: rgba(6, 182, 212, 0.03);
}
.band-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.band h2 {
  font-family: var(--display);
  font-size: 1.35rem;
  margin: 0 0 0.35rem;
}
.band p {
  margin: 0;
  color: var(--muted);
  max-width: 28rem;
  font-size: 0.95rem;
}

.outcome {
  padding: 3.5rem 0 4rem;
}
.outcome ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.85rem;
  max-width: 40rem;
}
.outcome li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  color: var(--muted);
  font-size: 0.95rem;
}
.outcome li svg {
  flex-shrink: 0;
  margin-top: 0.15rem;
  color: var(--accent);
}

.proof-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  margin-top: 0.75rem;
}

.proof-card {
  border: 1px solid var(--surface-border);
  background: var(--surface);
  border-radius: 12px;
  padding: 1rem 1.05rem;
}

.proof-card h3 {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
  color: var(--text);
}

.proof-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.proof-card code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: 6px;
  padding: 0.05rem 0.3rem;
  color: #67e8f9;
}

.debt-section {
  padding-top: 0;
}

.debt-visual {
  margin-top: 0.8rem;
  border: 1px solid var(--surface-border);
  border-radius: 12px;
  padding: 1rem 1.05rem;
  background: rgba(6, 182, 212, 0.03);
  max-width: 46rem;
}

.debt-scale {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--dim);
  margin-bottom: 0.45rem;
}

.debt-bar {
  position: relative;
  height: 10px;
  background: rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  overflow: hidden;
}

.debt-fill {
  position: absolute;
  inset: 0;
  width: 82%;
  background: linear-gradient(90deg, #0891b2 0%, #06b6d4 45%, #e8c468 75%, #ef4444 100%);
}

.debt-threshold {
  position: absolute;
  top: -4px;
  bottom: -4px;
  left: 70%;
  width: 2px;
  background: #f8fafc;
  opacity: 0.85;
}

.debt-caption {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

footer {
  padding: 2.5rem 0 2rem;
  border-top: 1px solid var(--surface-border);
  color: var(--dim);
  font-size: 0.8125rem;
}
.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  margin-bottom: 2rem;
}
.footer-grid strong {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.65rem;
}
.footer-grid a {
  display: block;
  color: var(--dim);
  margin-bottom: 0.45rem;
}
.footer-grid a:hover {
  color: var(--text);
}
.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--surface-border);
}

@media (max-width: 640px) {
  nav a:not(.btn-nav) {
    display: none;
  }
  nav {
    gap: 0.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn-primary:hover {
    transform: none;
  }
}
