/* TrustThenVerify — Landing Page
   Warm dark palette. Gold accent. Restraint. */

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

:root {
  --bg: #0c0c0c;
  --surface: #141414;
  --surface-2: #1a1a1a;
  --border: #222;
  --border-light: #2a2a2a;
  --text: #e8e8e8;
  --text-2: #999;
  --text-3: #666;
  --accent: #d4a039;
  --accent-dim: rgba(212, 160, 57, 0.10);
  --mono: 'SF Mono', 'Fira Code', 'JetBrains Mono', 'Cascadia Code', monospace;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Subtle grain — breaks the "too clean" feel */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  pointer-events: none;
  z-index: 9999;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

code { font-family: var(--mono); }


/* ─── Nav ──────────────────────────────────────────────── */

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

.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text);
  letter-spacing: -0.01em;
}
.logo:hover { text-decoration: none; color: var(--text); }
.logo-mark { color: var(--text-3); flex-shrink: 0; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.nav-links a {
  color: var(--text-2);
  font-size: 0.8125rem;
  font-weight: 500;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }

.nav-cta {
  background: var(--accent);
  color: var(--bg) !important;
  padding: 0.35rem 0.9rem;
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  transition: opacity 0.15s;
}
.nav-cta:hover { opacity: 0.85; text-decoration: none !important; }

.nav-status { display: flex; align-items: center; gap: 0.4rem; }
.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 6px rgba(52, 211, 153, 0.5);
}


/* ─── Hero ─────────────────────────────────────────────── */

.hero {
  max-width: 1080px;
  margin: 0 auto;
  padding: 7rem 2rem 5rem;
}

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: var(--text);
  max-width: 680px;
  margin-bottom: 1.5rem;
}

.hero-sub {
  font-size: 1.125rem;
  color: var(--text-2);
  line-height: 1.65;
  max-width: 560px;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.install-box {
  display: inline-flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 0.65rem 1.25rem;
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--text);
  user-select: all;
  cursor: text;
}

.text-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-2);
  transition: color 0.15s;
}
.text-link:hover { color: var(--text); text-decoration: none; }


/* ─── Demo / Code ──────────────────────────────────────── */

.demo {
  max-width: 1080px;
  margin: 0 auto;
  padding: 2rem 2rem 6rem;
}

.demo-lead {
  margin-bottom: 2rem;
}
.demo-lead h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.demo-lead p {
  color: var(--text-2);
  font-size: 0.9375rem;
  max-width: 560px;
}

.code-window {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  overflow: hidden;
}

.code-chrome {
  display: flex;
  align-items: center;
  padding: 0 1rem;
  height: 38px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}

.file-tab {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-2);
  padding: 0 0.75rem;
  height: 100%;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--accent);
  margin-bottom: -1px;
}

.code-window pre {
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 1.75;
  color: var(--text-2);
  tab-size: 2;
}

.code-window .kw { color: #c9a0dc; }
.code-window .fn { color: #7ec8e3; }
.code-window .str { color: #c7a06e; }
.code-window .num { color: #b5cea8; }
.code-window .cm { color: #555; }


/* ─── Flow (How it works) ──────────────────────────────── */

.flow {
  max-width: 1080px;
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
  border-top: 1px solid var(--border);
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.flow-step {
  padding: 2rem 2rem 2rem 0;
  border-left: 1px solid var(--border-light);
  padding-left: 1.5rem;
}
.flow-step:first-child {
  border-left: 1px solid var(--accent);
}

.sn {
  display: block;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-3);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.flow-step h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.flow-step p {
  font-size: 0.8125rem;
  color: var(--text-2);
  line-height: 1.6;
}


/* ─── Capabilities ─────────────────────────────────────── */

.capabilities {
  max-width: 1080px;
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
  border-top: 1px solid var(--border);
}

.capabilities h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 3rem;
}

.cap-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.cap {
  padding: 1.75rem 2rem 1.75rem 0;
  border-bottom: 1px solid var(--border);
}
.cap:nth-child(even) {
  padding-left: 2rem;
  border-left: 1px solid var(--border);
}
/* Remove bottom border on last row */
.cap:nth-last-child(-n+2) {
  border-bottom: none;
}

.cap h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}

.cap p {
  font-size: 0.8125rem;
  color: var(--text-2);
  line-height: 1.6;
}

.cap code {
  font-size: 0.75rem;
  background: var(--surface-2);
  padding: 0.15em 0.4em;
  border-radius: 3px;
  color: var(--text);
}


/* ─── Numbers ──────────────────────────────────────────── */

.numbers {
  max-width: 1080px;
  margin: 0 auto;
  padding: 4rem 2rem 5rem;
  border-top: 1px solid var(--border);
}

.num-row {
  display: flex;
  gap: 4rem;
  flex-wrap: wrap;
}

.num-item {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.big {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.25rem;
  font-variant-numeric: tabular-nums;
}


/* ─── Footer ───────────────────────────────────────────── */

footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: var(--text-3);
}
.footer-left svg { color: var(--text-3); }

.footer-links {
  display: flex;
  gap: 1.5rem;
}
.footer-links a {
  font-size: 0.75rem;
  color: var(--text-3);
  font-weight: 500;
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--text-2); text-decoration: none; }


/* ─── Responsive ───────────────────────────────────────── */

@media (max-width: 768px) {
  .hero { padding: 4rem 1.5rem 3rem; }
  .hero h1 { font-size: 2rem; }

  .flow-steps {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .flow-step {
    padding: 1.25rem 0 1.25rem 1.25rem;
    border-left: 1px solid var(--border-light);
  }
  .flow-step:first-child {
    border-left: 1px solid var(--accent);
  }

  .cap-grid {
    grid-template-columns: 1fr;
  }
  .cap {
    padding: 1.25rem 0;
    border-left: none !important;
  }
  .cap:nth-child(even) {
    padding-left: 0;
  }
  .cap:nth-last-child(-n+2) {
    border-bottom: 1px solid var(--border);
  }
  .cap:last-child {
    border-bottom: none;
  }

  .num-row {
    gap: 2rem;
  }
  .big { font-size: 2rem; }

  .demo { padding: 1rem 1.5rem 4rem; }
  .flow, .capabilities, .numbers { padding-left: 1.5rem; padding-right: 1.5rem; }

  .footer-inner {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .nav-inner { padding: 0 1rem; }
  .hero { padding: 3rem 1rem 2.5rem; }
  .hero-actions { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .install-box { font-size: 0.75rem; }
  .demo, .flow, .capabilities, .numbers { padding-left: 1rem; padding-right: 1rem; }
}
