/* Don't-Lie — Trust-noir design system
   Single source of truth for every site page. Do not duplicate.
   Archetype: Ethereal Glass (dark mode, security tool, OLED-friendly). */

@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700&family=Geist+Mono:wght@300;400;500;600&family=Instrument+Serif:ital@0;1&display=swap');

:root {
  /* Surfaces — deepest OLED-friendly blacks */
  --bg-0: #050505;
  --bg-1: #0a0a0c;
  --bg-2: #101015;
  --bg-3: #16161c;
  --bg-card: rgba(255, 255, 255, 0.025);
  --bg-card-hover: rgba(255, 255, 255, 0.04);

  /* Hairlines — pure white at 6–10% opacity */
  --line-faint: rgba(255, 255, 255, 0.06);
  --line-soft: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);

  /* Text — full white to graphite */
  --text-100: #ffffff;
  --text-80: rgba(255, 255, 255, 0.78);
  --text-60: rgba(255, 255, 255, 0.56);
  --text-40: rgba(255, 255, 255, 0.36);
  --text-20: rgba(255, 255, 255, 0.18);

  /* Trust accents — verified dark green, failed dark red, neutral slate
     Aligned with company/BRAND.md: #166534 verified, #B91C1C failed */
  --verified: #16a34a;
  --verified-glow: rgba(22, 163, 74, 0.20);
  --verified-dim: rgba(22, 163, 74, 0.08);
  --failed: #dc2626;
  --failed-glow: rgba(220, 38, 38, 0.20);
  --failed-dim: rgba(220, 38, 38, 0.08);
  --neutral: #94a3b8;
  --neutral-glow: rgba(148, 163, 184, 0.14);
  --accent: #a78bfa;
  --accent-glow: rgba(167, 139, 250, 0.18);

  /* Type */
  --font-display: 'Geist', system-ui, -apple-system, sans-serif;
  --font-body: 'Geist', system-ui, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-serif: 'Instrument Serif', ui-serif, Georgia, serif;

  /* Easing — never linear, never default ease-in-out */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Motion */
  --dur-fast: 180ms;
  --dur-base: 320ms;
  --dur-slow: 600ms;
  --dur-page: 900ms;
}

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

html {
  scroll-behavior: smooth;
  /* Hide scrollbar thumbs but keep scroll */
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

body {
  font-family: var(--font-body);
  background: var(--bg-0);
  color: var(--text-80);
  font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 15px;
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
}

/* — Atmosphere: radial mesh + noise + grain frame — */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(22, 163, 74, 0.08), transparent 60%),
    radial-gradient(ellipse 60% 50% at 100% 30%, rgba(167, 139, 250, 0.07), transparent 60%),
    radial-gradient(ellipse 100% 80% at 50% 100%, rgba(22, 163, 74, 0.04), transparent 70%);
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.025;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
}

main, header, footer, section, nav, .atmosphere {
  position: relative;
  z-index: 2;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-100);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

h1 { font-size: clamp(2.5rem, 5.5vw, 4.5rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.875rem, 3.2vw, 2.75rem); letter-spacing: -0.028em; }
h3 { font-size: 1.25rem; font-weight: 500; }

p { color: var(--text-80); }
.subtle { color: var(--text-60); font-size: 0.875rem; }
.muted { color: var(--text-40); }

.mono { font-family: var(--font-mono); }
.serif { font-family: var(--font-serif); font-style: italic; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-60);
  font-weight: 500;
}

a {
  color: var(--text-100);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}
a:hover { color: var(--verified); }

code, .mono {
  font-family: var(--font-mono);
  font-size: 0.875em;
  font-feature-settings: 'zero', 'ss02';
}

/* — Container — */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
@media (min-width: 768px) {
  .container { padding: 0 2rem; }
}

/* — Sections breathe — */
section {
  padding: 7rem 0;
  position: relative;
}
@media (max-width: 768px) {
  section { padding: 4rem 0; }
}

/* — Glass card (double-bezel: outer hairline + inner gradient) — */
.glass {
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: background var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out);
}
.glass:hover {
  background: var(--bg-card-hover);
  border-color: var(--line-strong);
}
.glass-inner {
  border: 1px solid var(--line-faint);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
}

/* — Buttons (button-in-button pattern) — */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-100);
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  cursor: pointer;
  transition: all var(--dur-base) var(--ease-out);
  position: relative;
  isolation: isolate;
  white-space: nowrap;
}
.btn:hover {
  background: var(--bg-3);
  border-color: var(--text-40);
  transform: translateY(-1px);
}
.btn .icon-trailing {
  width: 14px;
  height: 14px;
  transition: transform var(--dur-base) var(--ease-out);
}
.btn:hover .icon-trailing { transform: translateX(3px); }

.btn-primary {
  background: var(--text-100);
  color: var(--bg-0);
  border-color: var(--text-100);
}
.btn-primary:hover {
  background: var(--verified);
  color: var(--bg-0);
  border-color: var(--verified);
  box-shadow: 0 0 30px var(--verified-glow);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line-soft);
}

/* — Verified / Failed / Neutral badges — */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid;
}
.badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
}
.badge.verified {
  color: var(--verified);
  background: var(--verified-dim);
  border-color: rgba(22, 163, 74, 0.30);
}
.badge.failed {
  color: var(--failed);
  background: var(--failed-dim);
  border-color: rgba(220, 38, 38, 0.30);
}
.badge.neutral {
  color: var(--neutral);
  background: var(--neutral-glow);
  border-color: rgba(148, 163, 184, 0.25);
}

/* — Navigation — */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 1rem 0;
  background: rgba(5, 5, 5, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-faint);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  color: var(--text-100);
}
.brand-mark {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--bg-2);
  position: relative;
  overflow: hidden;
}
.brand-mark::after {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px solid var(--verified);
  border-radius: 3px;
  opacity: 0.7;
}
.nav-links {
  display: flex;
  gap: 1.75rem;
  font-size: 0.85rem;
  color: var(--text-60);
}
.nav-links a {
  color: var(--text-60);
  transition: color var(--dur-fast) var(--ease-out);
}
.nav-links a:hover { color: var(--text-100); }
.nav-cta { display: flex; gap: 0.75rem; align-items: center; }
@media (max-width: 768px) {
  .nav-links { display: none; }
}

/* — Display accents — */
.kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-60);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.kicker::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--text-40);
}

.gradient-text {
  background: linear-gradient(180deg, #ffffff 0%, rgba(255,255,255,0.6) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.italic-serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

/* — Hash display — */
.hash {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-60);
  letter-spacing: 0.02em;
  word-break: break-all;
}
.hash-fingerprint {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-60);
  background: var(--bg-2);
  border: 1px solid var(--line-faint);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  display: inline-block;
}

/* — Receipt card — */
.receipt {
  background: var(--bg-1);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  position: relative;
  overflow: hidden;
}
.receipt::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--verified-glow), transparent);
}
.receipt-row {
  display: flex;
  gap: 0.75rem;
  padding: 0.4rem 0;
  border-bottom: 1px dashed var(--line-faint);
}
.receipt-row:last-child { border-bottom: none; }
.receipt-key { color: var(--text-40); min-width: 120px; flex-shrink: 0; }
.receipt-val { color: var(--text-80); word-break: break-all; }
.receipt-val.verified { color: var(--verified); }
.receipt-val.failed { color: var(--failed); }

/* — Receipt chain visualization — */
.chain {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem;
}
.chain-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--bg-1);
  border: 1px solid var(--line-faint);
  border-radius: 10px;
  transition: all var(--dur-base) var(--ease-out);
  position: relative;
}
.chain-link.active {
  border-color: rgba(22, 163, 74, 0.4);
  background: rgba(22, 163, 74, 0.04);
}
.chain-link.tampered {
  border-color: rgba(220, 38, 38, 0.4);
  background: rgba(220, 38, 38, 0.04);
}
.chain-node {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-40);
  border: 2px solid var(--bg-0);
  box-shadow: 0 0 0 1px var(--text-40);
  flex-shrink: 0;
}
.chain-link.active .chain-node {
  background: var(--verified);
  box-shadow: 0 0 0 1px var(--verified), 0 0 12px var(--verified-glow);
}
.chain-link.tampered .chain-node {
  background: var(--failed);
  box-shadow: 0 0 0 1px var(--failed), 0 0 12px var(--failed-glow);
}
.chain-connector {
  position: absolute;
  left: 31px;
  top: 100%;
  width: 1px;
  height: 8px;
  background: var(--line-soft);
  margin-top: 1px;
  margin-bottom: 1px;
}

/* — Terminal — */
.terminal {
  background: var(--bg-1);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  position: relative;
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line-faint);
}
.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line-soft);
}
.terminal-dot:first-child { background: var(--failed); opacity: 0.5; }
.terminal-dot:nth-child(2) { background: #fbbf24; opacity: 0.5; }
.terminal-dot:nth-child(3) { background: var(--verified); opacity: 0.5; }
.terminal-title {
  margin-left: 0.5rem;
  color: var(--text-40);
  font-size: 0.72rem;
}
.terminal-body {
  padding: 1.25rem;
  color: var(--text-80);
  line-height: 1.7;
}
.terminal-line { display: block; }
.terminal-prompt { color: var(--verified); }
.terminal-ok { color: var(--verified); }
.terminal-warn { color: #fbbf24; }
.terminal-err { color: var(--failed); }
.terminal-dim { color: var(--text-40); }

/* — Section header — */
.section-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 4rem;
  max-width: 720px;
}
.section-header .eyebrow { display: block; }
.section-header h2 { margin: 0; }
.section-header p { color: var(--text-60); font-size: 1.05rem; max-width: 60ch; }

/* — Feature grid — */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}
.feature-card {
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: all var(--dur-base) var(--ease-out);
}
.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--line-strong);
  transform: translateY(-2px);
}
.feature-card .icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--bg-2);
  border: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}
.feature-card h3 { font-size: 1.05rem; font-weight: 500; }
.feature-card p { color: var(--text-60); font-size: 0.9rem; line-height: 1.6; }

/* — Pricing cards — */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
@media (min-width: 1024px) {
  .pricing-grid { grid-template-columns: repeat(4, 1fr); }
}
.tier {
  padding: 1.75rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all var(--dur-base) var(--ease-out);
}
.tier:hover {
  background: var(--bg-card-hover);
  border-color: var(--line-strong);
  transform: translateY(-2px);
}
.tier.featured {
  border-color: var(--verified);
  background: linear-gradient(180deg, rgba(74,222,128,0.04), var(--bg-card));
  box-shadow: 0 0 0 1px var(--verified), 0 8px 40px -12px var(--verified-glow);
}
.tier-badge {
  position: absolute;
  top: -10px;
  left: 1.5rem;
  background: var(--verified);
  color: var(--bg-0);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.tier-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-100);
}
.tier-price {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text-100);
  line-height: 1;
}
.tier-price small {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-60);
  margin-left: 0.25rem;
}
.tier-desc { color: var(--text-60); font-size: 0.85rem; min-height: 3rem; }
.tier-features { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.tier-features li {
  font-size: 0.85rem;
  color: var(--text-80);
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}
.tier-features li::before {
  content: '✓';
  color: var(--verified);
  font-weight: 600;
  flex-shrink: 0;
  margin-top: 1px;
}
.tier-cta { margin-top: auto; }
.tier-cta .btn { width: 100%; justify-content: center; }

/* — Reveal animation — */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--dur-page) var(--ease-out),
              transform var(--dur-page) var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal[data-delay="1"] { transition-delay: 80ms; }
.reveal[data-delay="2"] { transition-delay: 160ms; }
.reveal[data-delay="3"] { transition-delay: 240ms; }
.reveal[data-delay="4"] { transition-delay: 320ms; }
.reveal[data-delay="5"] { transition-delay: 400ms; }

/* — Marquee — */
.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
  display: flex;
  gap: 3rem;
  animation: marquee 40s linear infinite;
  width: max-content;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee-item {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-40);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* — Footer — */
footer {
  padding: 4rem 0 3rem;
  border-top: 1px solid var(--line-faint);
  margin-top: 4rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  font-size: 0.85rem;
  color: var(--text-40);
}
.footer-links { display: flex; gap: 1.75rem; flex-wrap: wrap; }
.footer-links a { color: var(--text-60); }
.footer-links a:hover { color: var(--text-100); }

/* — Layout helpers — */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
@media (max-width: 900px) { .grid-2 { grid-template-columns: 1fr; gap: 2rem; } }

/* — Cursor blink for terminal — */
@keyframes blink { 50% { opacity: 0; } }
.cursor { animation: blink 1s steps(1) infinite; display: inline-block; width: 8px; height: 1em; background: var(--verified); vertical-align: middle; margin-left: 2px; }

/* — Selection — */
::selection { background: var(--verified); color: var(--bg-0); }

/* — Utility — */
.divider { height: 1px; background: var(--line-faint); margin: 3rem 0; }
.text-center { text-align: center; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-6 { margin-top: 3rem; }
.mt-8 { margin-top: 4rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-6 { margin-bottom: 3rem; }
.mb-8 { margin-bottom: 4rem; }
