/* ============ DRACO — trust layer for AI ============ */

:root {
  --bg: #ffffff;
  --ink: #0a0a0a;
  --line: #e4e4e0;
  --muted: #55595c;
  --ice: #c9dde7;
  --ice-soft: #f2f8fb;
  --font: Arial, Helvetica, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

/* page frame lines on the edges */
body::before, body::after {
  content: "";
  position: fixed;
  top: 0; bottom: 0;
  width: 1px;
  background: var(--line);
  z-index: 90;
  pointer-events: none;
}
body::before { left: 22px; }
body::after { right: 22px; }

/* selecting black text turns it blue; selecting blue text turns it black */
::selection { background: var(--ink); color: var(--ice); }
em::selection, h1 em::selection, h2 em::selection { background: var(--ice); color: var(--ink); }

h1, h2, h3 { font-family: var(--font); font-weight: 400; line-height: 1.12; letter-spacing: -0.01em; }
h1 em, h2 em { font-style: normal; color: var(--ice); }

a { color: inherit; }

/* ---- buttons ---- */
.btn {
  display: inline-block;
  font-family: var(--font);
  font-weight: 400;
  font-size: 14px;
  text-decoration: none;
  padding: 10px 24px;
  border: 1px solid var(--ink);
  transition: background 150ms ease, transform 150ms ease, box-shadow 150ms ease, color 150ms ease;
  cursor: pointer;
}
.btn-primary {
  background: var(--ink);
  color: var(--bg);
}
.btn-primary:hover {
  background: #262626;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(10, 10, 10, 0.16);
}
.btn-primary:active { transform: translateY(0); box-shadow: none; }

/* ---- text links ---- */
.nav-links a, .footer-links a {
  color: var(--ink);
  text-decoration: none;
  position: relative;
  transition: color 150ms ease;
}
.nav-links a::after, .footer-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -3px;
  width: 0; height: 2px;
  background: var(--ice);
  transition: width 150ms ease;
}
.nav-links a:hover::after, .footer-links a:hover::after { width: 100%; }

/* ============ NAV ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 200ms ease, border-color 200ms ease;
  border-bottom: 1px solid transparent;
  background: transparent;
}
.nav.scrolled {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}
.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-right: auto;
}
.nav-logo { width: 30px; height: 30px; object-fit: contain; }
.nav-word {
  font-family: var(--font);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.3em;
  color: var(--ink);
}
.nav-links { display: flex; gap: 28px; font-size: 14px; }
.nav-cta { padding: 8px 18px; font-size: 13px; }

/* ============ HERO ============ */
.hero {
  position: relative;
  padding: 150px 32px 110px;
  text-align: center;
  overflow: hidden;
}
#dither {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.95;
}
.hero-fade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 58% 52% at 50% 42%, rgba(255,255,255,0.85) 28%, rgba(255,255,255,0.35) 60%, rgba(255,255,255,0) 100%),
    linear-gradient(to bottom, rgba(255,255,255,0) 84%, #ffffff 100%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero h1 {
  font-size: clamp(38px, 4.8vw, 64px);
  margin-bottom: 20px;
}
.hero-sub {
  font-size: 16px;
  color: var(--muted);
  max-width: 600px;
  margin-bottom: 28px;
}

/* ============ SECTIONS ============ */
.section {
  padding: 64px 32px 72px;
  border-top: 1px solid var(--ice);
}
.section-inner { max-width: 1160px; margin: 0 auto; }
.section h2 {
  font-size: clamp(28px, 2.8vw, 38px);
  margin-bottom: 28px;
}

/* ---- boxes ---- */
.boxes {
  display: grid;
  border: 1px solid var(--line);
  grid-template-columns: repeat(6, 1fr);
}
.box {
  grid-column: span 2;
  padding: 26px 26px 30px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  transition: background 200ms ease;
}
.box:nth-child(3n) { border-right: 0; }
/* 5-item grid: last row is two wider boxes that fill the width */
.boxes .box:nth-child(4):nth-last-child(2) { grid-column: span 3; }
.boxes .box:nth-child(5):nth-last-child(1) { grid-column: span 3; border-right: 0; }
.boxes .box:nth-last-child(-n+3):nth-child(3n+1),
.boxes .box:nth-last-child(-n+2):nth-child(3n+2),
.boxes .box:last-child { border-bottom: 0; }
.boxes .box:nth-child(4):nth-last-child(2),
.boxes .box:nth-child(5):nth-last-child(1) { border-bottom: 0; }
.box:hover { background: var(--ice-soft); }
.box-tag {
  display: block;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-bottom: 14px;
}
.box-tag::before {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--ice);
  margin-right: 8px;
}
.box h3 { font-size: 20px; margin-bottom: 10px; }
.box p { color: var(--muted); font-size: 14px; }

/* ---- voices marquee ---- */
.voices { padding: 0; border-top: 1px solid var(--ice); }
.marquee { overflow: hidden; }
.marquee-track {
  display: inline-flex;
  width: max-content;
  animation: marquee 55s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

.voice {
  display: flex;
  flex-direction: column;
  width: 380px;
  flex: none;
  padding: 22px 24px;
  border-right: 1px solid var(--line);
  background: var(--bg);
  text-decoration: none;
  transition: background 150ms ease;
}
.voice:hover { background: var(--ice-soft); }
.voice-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.voice-pfp {
  width: 40px; height: 40px;
  object-fit: cover;
  border: 1px solid var(--line);
  flex: none;
}
.voice-pfp-fallback {
  display: none;
  width: 40px; height: 40px;
  align-items: center;
  justify-content: center;
  background: var(--ice);
  color: var(--ink);
  font-size: 16px;
  flex: none;
}
.voice-id { display: flex; flex-direction: column; line-height: 1.35; }
.voice-name { font-size: 14px; color: var(--ink); }
.voice-handle { font-size: 12px; color: var(--muted); }
.voice-quote {
  font-size: 14px;
  color: var(--ink);
  flex: 1;
  margin-bottom: 14px;
}
.voice-cite { font-size: 11px; letter-spacing: 0.08em; color: var(--muted); }
.voice:hover .voice-cite { color: var(--ink); }

/* ---- FAQ ---- */
.section-narrow { max-width: 820px; }
.faq-list { border: 1px solid var(--line); }
.faq { border-bottom: 1px solid var(--line); background: var(--bg); }
.faq:last-child { border-bottom: 0; }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-size: 17px;
  transition: background 150ms ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { background: var(--ice-soft); }
.faq-x { font-size: 18px; color: var(--muted); transition: transform 200ms ease, color 200ms ease; flex: none; }
.faq[open] { background: var(--ice-soft); }
.faq[open] .faq-x { transform: rotate(45deg); color: var(--ink); }
.faq p { padding: 0 22px 20px; color: var(--muted); font-size: 14px; max-width: 640px; }

/* ---- CTA ---- */
.cta {
  padding: 84px 32px;
  text-align: center;
  border-top: 1px solid var(--ice);
}
.cta h2 { font-size: clamp(30px, 3.4vw, 46px); margin-bottom: 26px; }

/* ---- footer ---- */
.footer { border-top: 1px solid var(--ice); }
.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 26px 32px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.footer-logo { width: 26px; height: 26px; object-fit: contain; }
.footer-links a { font-size: 14px; text-decoration: none; }
.footer-meta { font-size: 11px; letter-spacing: 0.14em; color: var(--muted); }

/* ---- legal pages ---- */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 120px 32px 80px;
}
.legal h1 { font-size: 34px; margin-bottom: 6px; }
.legal-updated { font-size: 12px; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 32px; }
.legal h2 { font-size: 19px; margin: 32px 0 10px; }
.legal p { color: var(--muted); font-size: 14px; margin-bottom: 12px; }
.legal ul { margin: 0 0 12px 20px; }
.legal li { color: var(--muted); font-size: 14px; margin-bottom: 6px; }
.legal a { color: var(--ink); }
.legal strong { color: var(--ink); font-weight: 400; }

.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-note {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px 22px;
  font-size: 11px;
  color: var(--muted);
}
.form-notice { font-size: 12px; color: var(--muted); margin-top: 14px; }
.form-notice a { color: var(--ink); }

/* ---- reveal on scroll ---- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 500ms ease-out, transform 500ms ease-out;
  transition-delay: var(--d, 0ms);
}
.reveal.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============ MOBILE ============ */
@media (max-width: 900px) {
  body::before, body::after { display: none; }

  .nav-links { display: none; }
  .nav-inner { padding: 12px 20px; gap: 18px; }
  .nav, .nav.scrolled { background: rgba(255,255,255,0.92); border-bottom-color: var(--line); }

  .hero { padding: 120px 20px 70px; }

  .section { padding: 44px 20px 52px; }
  .boxes { grid-template-columns: 1fr; }
  .boxes .box { grid-column: span 1 !important; border-right: 0; border-bottom: 1px solid var(--line) !important; }
  .boxes .box:last-child { border-bottom: 0 !important; }

  .cta { padding: 64px 20px; }

  .footer-inner { flex-direction: column; align-items: flex-start; gap: 14px; padding: 24px 20px; }
  .footer-brand { margin-right: 0; }
}
