/* ============================================================
   CheckDot — landing
   Design system: references/design-system.md
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Archivo:ital,wdth,wght@0,62..125,100..900;1,62..125,100..900&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --bg: #070C0A;
  --surface: #0D1512;
  --border: #1E2B25;
  --text: #F2F7F4;
  --muted: #8CA39A;
  --green: #21E786;
  --green-tint: rgba(33, 231, 134, 0.10);
  --green-glow: rgba(33, 231, 134, 0.35);
  --danger: #FF6B5E;
  --font-sans: 'Archivo', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
  --container: 1200px;
  --radius-card: 16px;
  --radius-el: 8px;
}

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

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px) {
  .container { padding: 0 32px; }
}

/* ---------- type roles ---------- */

h1, h2 {
  font-stretch: 125%;
  font-weight: 600;
  letter-spacing: -0.02em;
}

h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.1; }

h3 { font-size: 21px; font-weight: 600; line-height: 1.3; }

p { max-width: 62ch; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  flex: none;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  min-height: 48px;
  padding: 0 28px;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: var(--green);
  color: #070C0A;
  box-shadow: 0 0 24px var(--green-glow);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 0 32px var(--green-glow); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--muted); }

.btn-lg { min-height: 54px; padding: 0 34px; font-size: 17px; }

.btn-header { min-height: 42px; padding: 0 20px; font-size: 15px; box-shadow: none; }
.btn-header:hover { box-shadow: 0 0 20px var(--green-glow); }

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--green);
  font-weight: 600;
  font-size: 15px;
}
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.pill:hover { border-color: var(--green); color: var(--text); }

/* ---------- header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.site-header.is-scrolled {
  background: rgba(7, 12, 10, 0.88);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
@media (min-width: 768px) { .header-inner { padding: 0 32px; } }

.brand { flex: none; display: flex; }
.brand-logo { height: 26px; width: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.main-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.15s ease;
}
.main-nav a:hover { color: var(--text); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-el);
  color: var(--text);
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 8px 24px 24px;
    display: none;
  }
  body.nav-open .main-nav { display: flex; }
  body.nav-open .site-header {
    background: var(--bg);
    border-bottom-color: var(--border);
  }
  .main-nav a {
    padding: 14px 4px;
    font-size: 17px;
    color: var(--text);
    border-bottom: 1px solid var(--border);
  }
  .main-nav a:last-child { border-bottom: none; }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: 176px 0 96px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-bg .hero-check {
  position: absolute;
  inset: -20% -10% auto auto;
  width: 60%;
  height: 120%;
  background: radial-gradient(ellipse at 70% 30%, rgba(33, 231, 134, 0.07), transparent 62%);
}
.hero-bg .hero-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(var(--border) 1px, transparent 1px) 0 0 / 100% 96px,
    linear-gradient(90deg, var(--border) 1px, transparent 1px) 0 0 / 96px 100%;
  opacity: 0.10;
  mask-image: radial-gradient(ellipse at 62% 0%, #000 0%, transparent 55%);
  -webkit-mask-image: radial-gradient(ellipse at 62% 0%, #000 0%, transparent 55%);
}

.hero-inner { position: relative; }

.hero .eyebrow { margin-bottom: 28px; }

.hero-title {
  font-size: clamp(44px, 6.5vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
}
.hero-title .accent { color: var(--green); }

.verified-word {
  position: relative;
  display: inline-block;
}
.verified-word .stamp-underline {
  position: absolute;
  left: 2%;
  bottom: -0.28em;
  width: 96%;
  height: 0.32em;
  overflow: visible;
}
.stamp-underline path {
  stroke: var(--green);
  stroke-width: 7;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-sub {
  font-size: 18px;
  color: var(--muted);
  max-width: 58ch;
  margin-bottom: 40px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 72px;
}

/* audit lines — the verification stamp signature */
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 64px;
  border-top: 1px solid var(--border);
  padding-top: 32px;
}

.stat { display: flex; flex-direction: column; gap: 6px; }

.stat dt {
  order: 1;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.stat dd {
  order: 2;
  font-family: var(--font-mono);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.stat .stamp {
  align-self: center;
  flex: none;
  transform: translateY(2px);
}

.stamp path {
  stroke: var(--green);
  stroke-width: 2.4;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-footnote {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  margin-top: 20px;
}

/* stamp draw animation — JS adds .stamp-armed then .is-stamped;
   without JS the check is simply visible */
.stamp-armed path { stroke-dasharray: var(--stamp-len, 40); stroke-dashoffset: var(--stamp-len, 40); }
.stamp-armed.is-stamped path {
  transition: stroke-dashoffset 0.4s cubic-bezier(0.2, 0.9, 0.3, 1);
  stroke-dashoffset: 0;
}
.is-stamped { filter: drop-shadow(0 0 6px var(--green-glow)); transition: filter 0.6s ease 0.5s; }

/* ---------- logo strip ---------- */

.logostrip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 32px 0;
  background: var(--surface);
}

.logostrip-label {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-align: center;
  margin-bottom: 24px;
}

.logostrip-track {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 32px 48px;
}
.logostrip-track img {
  height: 24px;
  width: auto;
  opacity: 0.6;
  filter: grayscale(1) brightness(1.4);
  transition: opacity 0.2s ease, filter 0.2s ease;
}
.logostrip-track img:hover { opacity: 1; filter: grayscale(0) brightness(1); }

/* ---------- sections ---------- */

.section { padding: 96px 0; }
@media (max-width: 767px) { .section { padding: 64px 0; } }

.section-head {
  max-width: 720px;
  margin-bottom: 56px;
}
.section-head .eyebrow { margin-bottom: 16px; }
.section-head h2 { margin-bottom: 16px; }
.section-sub { color: var(--muted); font-size: 17px; }

/* ---------- grids & cards ---------- */

.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.card p { color: var(--muted); font-size: 15.5px; }
.card h3 { color: var(--text); }

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-el);
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}

.card-link { transition: border-color 0.2s ease, transform 0.2s ease; }
.card-link:hover { border-color: var(--green); transform: translateY(-3px); }

.card-more {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--green);
  font-weight: 600;
  font-size: 14.5px;
}

/* ---------- steps ---------- */

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }

.step {
  counter-increment: step;
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 32px 28px;
  background: var(--surface);
}
.step::before {
  content: '0' counter(step);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
  position: absolute;
  top: 32px;
  right: 28px;
}
.step-marker {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-el);
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.step h3 { margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 15.5px; }

/* ---------- token ---------- */

.token { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.token-inner {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 72px;
  align-items: center;
}
@media (max-width: 900px) {
  .token-inner { grid-template-columns: 1fr; gap: 48px; }
}

.token-visual { display: flex; justify-content: center; }
.token-img {
  width: min(320px, 70vw);
  filter: drop-shadow(0 24px 60px rgba(33, 231, 134, 0.18));
}

.token-copy .eyebrow { margin-bottom: 16px; }
.token-copy h2 { margin-bottom: 18px; }
.token-copy > p { color: var(--muted); margin-bottom: 28px; }

.checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
}
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 16px;
}
.checklist svg { color: var(--green); flex: none; margin-top: 3px; }

.token-links { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- coverage ---------- */

.coverage-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  align-items: start;
}
@media (max-width: 900px) { .coverage-grid { grid-template-columns: 1fr; } }

.coverage-risks { display: flex; flex-direction: column; gap: 24px; }

.risk {
  display: flex;
  gap: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 28px;
}
.risk-icon {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-el);
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.risk h3 { font-size: 18px; margin-bottom: 8px; }
.risk p { color: var(--muted); font-size: 15px; }

.coverage-assets {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 28px;
}
.coverage-assets-label {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 20px;
}
.asset-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}
.asset-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15.5px;
}
.asset-list li:last-child { border-bottom: none; }
.asset-list img { border-radius: 50%; flex: none; }

/* ---------- earn ---------- */

.earn-card { gap: 10px; }
.earn-rate {
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
}
.earn-num {
  font-family: var(--font-mono);
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 500;
  color: var(--green);
  letter-spacing: -0.02em;
}
.earn-card .text-link { margin-top: auto; }
.earn-card-featured { border-color: var(--green); }

/* ---------- developers ---------- */

.developers { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.dev-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 900px) { .dev-inner { grid-template-columns: 1fr; gap: 48px; } }

.dev-copy .eyebrow { margin-bottom: 16px; }
.dev-copy h2 { margin-bottom: 16px; }
.dev-copy > p { color: var(--muted); margin-bottom: 32px; }

.dev-links { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .dev-links { grid-template-columns: 1fr; } }

.dev-link {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border: 1px solid var(--border);
  border-radius: var(--radius-el);
  padding: 18px;
  background: var(--bg);
  transition: border-color 0.2s ease;
}
.dev-link:hover { border-color: var(--green); }
.dev-link svg { color: var(--muted); flex: none; margin-top: 2px; }
.dev-link strong { display: block; font-size: 15.5px; }
.dev-link small {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  margin-top: 3px;
}

.dev-audits {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 28px;
  background: var(--bg);
}
.audit-badges { display: flex; flex-direction: column; gap: 20px; margin-bottom: 20px; }
.audit-badges img { height: 34px; width: auto; align-self: flex-start; }
.dev-audit-note { color: var(--muted); font-size: 14px; }

/* ---------- partners ---------- */

.partners-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
@media (max-width: 1024px) { .partners-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 640px) { .partners-grid { grid-template-columns: repeat(2, 1fr); } }

.partners-grid img {
  width: 100%;
  height: 84px;
  object-fit: contain;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-el);
  opacity: 0.75;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}
.partners-grid img:hover { opacity: 1; border-color: var(--muted); }

/* ---------- faq ---------- */

.faq-inner { max-width: 780px; }

.faq-list { display: flex; flex-direction: column; gap: 12px; }

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-el);
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-weight: 600;
  font-size: 16.5px;
  min-height: 44px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-chevron {
  color: var(--muted);
  flex: none;
  display: inline-flex;
  transition: transform 0.25s ease;
}
.faq-item[open] .faq-chevron { transform: rotate(180deg); color: var(--green); }
.faq-item p {
  padding: 0 24px 22px;
  color: var(--muted);
  font-size: 15.5px;
}

/* ---------- final cta ---------- */

.cta-box {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background:
    radial-gradient(ellipse at 50% -40%, rgba(33, 231, 134, 0.12), transparent 60%),
    var(--surface);
  text-align: center;
  padding: 80px 32px;
}
.cta-box h2 { margin-bottom: 16px; }
.cta-box p { color: var(--muted); margin: 0 auto 36px; }
.cta-box .hero-ctas { justify-content: center; margin-bottom: 0; }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 72px 0 40px;
  background: var(--surface);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 56px;
}
@media (max-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand p {
  color: var(--muted);
  font-size: 14.5px;
  margin: 20px 0 24px;
  max-width: 34ch;
}

.footer-social { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-social a {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-el);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.footer-social a:hover { color: var(--green); border-color: var(--green); }

.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 6px;
}
.footer-col a {
  font-size: 14.5px;
  color: var(--text);
  opacity: 0.85;
  transition: color 0.15s ease, opacity 0.15s ease;
  width: fit-content;
  padding: 2px 0;
}
.footer-col a:hover { color: var(--green); opacity: 1; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  padding-top: 28px;
}
.footer-bottom p {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--muted);
}

/* ---------- reveal (enhancement only — default fully visible) ---------- */

/* transform-only: content stays fully opaque even if the observer never fires */
.will-reveal {
  transform: translateY(8px);
  transition: transform 0.5s ease;
}
.is-revealed { transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .will-reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card-link, .stamp path, .is-stamped { transition: none; }
}
