:root {
  --bg: #0a0a0f;
  --bg-alt: #111118;
  --fg: #f0ede8;
  --fg-dim: #8a8680;
  --accent: #f5a623;
  --accent-dim: rgba(245, 166, 35, 0.15);
  --border: rgba(240, 237, 232, 0.08);
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: #0a0a0f; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--fg-dim); border-radius: 3px; }

/* 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: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
}
.nav-links {
  display: flex;
  gap: 32px;
}
.nav-links a {
  color: var(--fg-dim);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--fg); }

/* HERO */
.hero {
  padding: 80px 24px 100px;
  max-width: 1100px;
  margin: 0 auto;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 60px;
  align-items: center;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 24px;
}
.hero-lede {
  font-size: 18px;
  color: var(--fg-dim);
  line-height: 1.65;
  max-width: 480px;
  margin-bottom: 40px;
}
.hero-trust {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.trust-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 16px;
  border-left: 2px solid var(--accent);
}
.trust-value {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
}
.trust-label {
  font-size: 13px;
  color: var(--fg-dim);
  line-height: 1.45;
}

/* RECEIPT */
.hero-receipt { display: flex; justify-content: flex-end; }
.receipt-frame {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 0 60px rgba(245, 166, 35, 0.07), 0 24px 48px rgba(0,0,0,0.4);
}
.receipt-header {
  background: rgba(245, 166, 35, 0.08);
  border-bottom: 1px solid var(--border);
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.receipt-label {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
}
.receipt-id {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--fg-dim);
}
.receipt-body { padding: 16px; }
.receipt-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}
.receipt-row:last-child { border-bottom: none; }
.receipt-key {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--fg-dim);
}
.receipt-val {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--fg);
}
.receipt-verified { color: var(--accent); font-weight: 600; }
.receipt-hash { color: var(--fg-dim); font-size: 10px; }
.receipt-footer {
  border-top: 1px solid var(--border);
  padding: 10px 16px;
}
.receipt-seal {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--accent);
  font-weight: 500;
}

/* SECTIONS */
.section-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

/* PROVENANCE */
.provenance {
  padding: 80px 24px;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-header {
  max-width: 1100px;
  margin: 0 auto 60px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 16px;
  color: var(--fg-dim);
  max-width: 580px;
  line-height: 1.6;
}
.provenance-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.prov-card {
  background: var(--bg-alt);
  padding: 40px 36px;
}
.prov-icon {
  margin-bottom: 20px;
}
.prov-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.prov-card p {
  font-size: 14px;
  color: var(--fg-dim);
  line-height: 1.65;
}

/* ATTESTATION */
.attestation {
  padding: 80px 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.attest-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.attest-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.5vw, 34px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 20px;
}
.attest-body {
  font-size: 15px;
  color: var(--fg-dim);
  line-height: 1.65;
  margin-bottom: 28px;
}
.attest-points { display: flex; flex-direction: column; gap: 12px; }
.attest-point {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--fg);
}
.attest-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.attest-code {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.code-label {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--fg-dim);
  letter-spacing: 0.04em;
}
.attest-code .code-label { background: rgba(245,166,35,0.05); }
.code-label { background: rgba(245,166,35,0.05); padding: 10px 16px; border-bottom: 1px solid var(--border); font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--fg-dim); }
.attest-code pre,
.attest-code .code-label + * { /* handled by flow */ }
/* Use the code label div content for the code block text */
.attest-code .code-label { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--accent); padding: 12px 16px 4px; border-bottom: none; }
.attest-code > div:last-child {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  line-height: 1.7;
  color: var(--fg-dim);
  padding: 4px 16px 16px;
  white-space: pre-wrap;
  word-break: break-word;
}

/* CLOSING */
.closing {
  padding: 100px 24px;
  border-top: 1px solid var(--border);
}
.closing-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}
.closing-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}
.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
.closing-headline {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  max-width: 700px;
  margin: 0 auto 24px;
}
.closing-sub {
  font-size: 17px;
  color: var(--fg-dim);
  line-height: 1.65;
  max-width: 600px;
  margin: 0 auto 48px;
}
.closing-signals {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 56px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.signal {
  background: var(--bg-alt);
  padding: 20px;
  text-align: left;
}
.signal-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.signal-val {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}
.closing-statement {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--fg);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.45;
}

/* FOOTER */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
}
.footer-tagline {
  font-size: 13px;
  color: var(--fg-dim);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-receipt { justify-content: flex-start; }
  .receipt-frame { max-width: 100%; }
  .provenance-grid { grid-template-columns: 1fr; }
  .attest-content { grid-template-columns: 1fr; gap: 40px; }
  .closing-signals { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .hero { padding: 60px 20px 80px; }
  .nav-links { display: none; }
  .closing-signals { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
}