/* TruthLayer design system — from product blueprint v1.0 */
:root {
  --navy: #0D1B2A;
  --teal: #00C2B3;
  --teal-dark: #009E92;
  --amber: #F5A623;
  --crimson: #E53E3E;
  --lavender: #B794F4;
  --white: #FFFFFF;
  --mist: #F7F8FA;
  --graphite: #2D3748;
  --muted: #718096;
  --border: #E2E8F0;
  --radius: 12px;
  --maxw: 1080px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--graphite);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13,27,42,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.header-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--white); }
.brand-mark {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(180deg, var(--teal) 0%, var(--teal) 30%, #0a8f85 55%, var(--navy) 100%);
  border: 2px solid var(--teal);
  position: relative;
}
.brand-mark::after {
  content: ''; position: absolute; inset: 9px; border-radius: 50%; background: var(--white);
}
.brand-name { font-weight: 700; font-size: 18px; letter-spacing: -.01em; }
.brand-name span { font-weight: 400; }
.nav { display: flex; gap: 4px; align-items: center; }
.nav a {
  color: rgba(255,255,255,.75); text-decoration: none; font-size: 14px; font-weight: 500;
  padding: 8px 12px; border-radius: 8px;
}
.nav a:hover { color: var(--white); background: rgba(255,255,255,.08); }
.nav a.cta {
  background: var(--teal); color: var(--navy); font-weight: 700; margin-left: 8px;
}
.nav a.cta:hover { background: #33d3c7; }
@media (max-width: 760px) {
  .nav a:not(.cta) { display: none; }
}

/* hero */
.hero {
  background: var(--navy); color: var(--white);
  padding: 96px 24px 88px; text-align: center; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(600px 300px at 50% -60px, rgba(0,194,179,.22), transparent 70%);
  pointer-events: none;
}
.hero-inner { max-width: 780px; margin: 0 auto; position: relative; }
.hero-eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--teal);
  border: 1px solid rgba(0,194,179,.4); border-radius: 999px; padding: 6px 16px; margin-bottom: 24px;
}
.hero h1 { font-size: clamp(36px, 6vw, 56px); font-weight: 800; letter-spacing: -.02em; line-height: 1.12; }
.hero h1 em { font-style: normal; color: var(--teal); }
.hero p.lead { font-size: 19px; color: rgba(255,255,255,.78); max-width: 640px; margin: 20px auto 0; }
.hero-actions { margin-top: 36px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 700; font-size: 15px;
  padding: 13px 28px; border-radius: 10px; transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--teal); color: var(--navy); }
.btn-primary:hover { background: #33d3c7; }
.btn-ghost { border: 1px solid rgba(255,255,255,.3); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); }
.hero-note { margin-top: 20px; font-size: 13px; color: rgba(255,255,255,.5); }

/* sections */
.section { padding: 72px 24px; }
.section-inner { max-width: var(--maxw); margin: 0 auto; }
.section-alt { background: var(--mist); }
.section h2 { font-size: clamp(26px, 4vw, 36px); font-weight: 800; letter-spacing: -.02em; text-align: center; }
.section h2 + .sub { text-align: center; color: var(--muted); max-width: 640px; margin: 12px auto 0; font-size: 17px; }
.grid { display: grid; gap: 20px; margin-top: 44px; }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: box-shadow .2s ease, transform .2s ease;
}
.card:hover { box-shadow: 0 12px 32px rgba(13,27,42,.08); transform: translateY(-2px); }
.card-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 10px;
  background: rgba(0,194,179,.12); color: var(--teal-dark);
  font-weight: 800; font-size: 15px; margin-bottom: 14px;
}
.card h3 { font-size: 18px; margin-bottom: 8px; letter-spacing: -.01em; }
.card p { font-size: 15px; color: var(--muted); }
.card .tag {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: var(--teal-dark); margin-bottom: 10px;
}

/* layers strip */
.layers { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0; margin-top: 44px;
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.layer { padding: 28px 24px; background: var(--white); border-left: 1px solid var(--border); }
.layer:first-child { border-left: none; }
.layer:nth-child(1) { border-top: 4px solid var(--teal); }
.layer:nth-child(2) { border-top: 4px solid #4dabf7; }
.layer:nth-child(3) { border-top: 4px solid var(--amber); }
.layer:nth-child(4) { border-top: 4px solid var(--lavender); }
.layer h3 { font-size: 15px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.layer p { font-size: 14px; color: var(--muted); }

/* philosophy */
.philosophy {
  background: var(--navy); color: var(--white); border-radius: 20px;
  padding: 56px 48px; text-align: center; margin-top: 8px;
}
.philosophy blockquote { font-size: clamp(20px, 3.4vw, 28px); font-weight: 600; line-height: 1.5; max-width: 720px; margin: 0 auto; }
.philosophy blockquote em { color: var(--teal); font-style: normal; }
.philosophy cite { display: block; margin-top: 20px; font-style: normal; font-size: 14px; color: rgba(255,255,255,.55); }
@media (max-width: 640px) { .philosophy { padding: 40px 28px; } }

/* waitlist */
.waitlist { background: var(--mist); border-radius: 20px; padding: 56px 48px; text-align: center; margin-top: 64px; }
.waitlist h2 { margin-bottom: 8px; }
.waitlist p { color: var(--muted); max-width: 520px; margin: 0 auto 28px; }
.waitlist-form { display: flex; gap: 10px; max-width: 480px; margin: 0 auto; }
.waitlist-form input {
  flex: 1; padding: 13px 18px; border: 1px solid var(--border); border-radius: 10px; font-size: 15px;
  font-family: inherit;
}
.waitlist-form input:focus { outline: 2px solid var(--teal); border-color: var(--teal); }
.waitlist-form button {
  background: var(--teal); color: var(--navy); border: none; font-weight: 700; font-size: 15px;
  padding: 13px 26px; border-radius: 10px; cursor: pointer; font-family: inherit;
}
.waitlist-form button:hover { background: #33d3c7; }
.waitlist-done { display: none; color: var(--teal-dark); font-weight: 600; }
.waitlist small { display: block; margin-top: 14px; color: var(--muted); font-size: 13px; }
@media (max-width: 560px) { .waitlist-form { flex-direction: column; } .waitlist { padding: 40px 24px; } }

/* page hero (subpages) */
.page-hero { background: var(--navy); color: var(--white); padding: 64px 24px 56px; text-align: center; }
.page-hero h1 { font-size: clamp(30px, 5vw, 44px); font-weight: 800; letter-spacing: -.02em; }
.page-hero p { color: rgba(255,255,255,.7); margin-top: 12px; font-size: 16px; }
.page-hero .updated { font-size: 13px; color: rgba(255,255,255,.45); margin-top: 16px; }

/* prose */
.prose { max-width: 780px; margin: 0 auto; padding: 56px 24px 72px; }
.prose h2 { font-size: 24px; margin: 40px 0 12px; letter-spacing: -.01em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 18px; margin: 28px 0 8px; }
.prose p, .prose li { color: var(--graphite); font-size: 16px; }
.prose p { margin-bottom: 16px; }
.prose ul, .prose ol { margin: 0 0 16px 24px; }
.prose li { margin-bottom: 8px; }
.prose table { width: 100%; border-collapse: collapse; margin: 20px 0 28px; font-size: 14px; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border: 1px solid var(--border); vertical-align: top; }
.prose th { background: var(--mist); font-weight: 700; }
.prose .note {
  background: var(--mist); border-left: 4px solid var(--teal); border-radius: 0 10px 10px 0;
  padding: 18px 22px; margin: 24px 0; font-size: 15px;
}
.prose .note strong { display: block; margin-bottom: 4px; }

/* footer */
.site-footer { background: var(--navy); color: rgba(255,255,255,.65); padding: 56px 24px 32px; font-size: 14px; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.footer-grid h4 { color: var(--white); font-size: 14px; margin-bottom: 14px; text-transform: uppercase; letter-spacing: .06em; }
.footer-grid a { display: block; color: rgba(255,255,255,.65); text-decoration: none; margin-bottom: 10px; }
.footer-grid a:hover { color: var(--teal); }
.footer-brand p { margin-top: 12px; max-width: 300px; font-size: 14px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; color: rgba(255,255,255,.45); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
