:root {
  --teal: #2DA4B9;
  --blue: #3478C1;
  --deep-teal: #0C5460;
  --navy: #1F3A60;
  --warm-white: #FAFAF7;
  --cream: #F5F1EA;
  --ink: #1A1A1A;
  --charcoal: #3A3A3A;
  --stone: #888888;
  --rule: #E5E2DC;
  --display: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --body: "Source Serif Pro", "Iowan Old Style", Charter, Georgia, serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--warm-white);
  line-height: 1.6;
  overflow-x: hidden; /* contain the full-bleed hero's 100vw width */
}

h1, h2, h3, .tagline, .brand, .btn, nav a, .badge { font-family: var(--display); }

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

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1080px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
}
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 700; font-size: 1.15rem; color: var(--navy); }
.brand:hover { text-decoration: none; }
.site-header nav { display: flex; gap: 1.4rem; font-weight: 600; font-size: .95rem; }
.site-header nav a { color: var(--charcoal); }

main { max-width: 1080px; margin: 0 auto; padding: 0 1.5rem; }

.hero {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  overflow: hidden;
  text-align: center;
  /* navy base + video poster: shown before the iframe paints, if autoplay is
     blocked, or for reduced-motion users where .hero-video is hidden */
  background: var(--navy) url("https://i.ytimg.com/vi/ZHu22k4IHWc/maxresdefault.jpg") center / cover no-repeat;
  color: #fff;
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
  padding: 5.5rem 1.5rem 6rem;
}
.hero::after { /* legibility scrim over the video */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(15, 28, 51, .55), rgba(15, 28, 51, .74));
  pointer-events: none;
}
.tagline {
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: .8rem;
  color: #8FD9E6;
  margin: 0 0 1rem;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.1;
  margin: 0 auto 1.25rem;
  max-width: 14ch;
  color: #fff;
}
.subhead {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: rgba(255, 255, 255, .9);
  max-width: 52ch;
  margin: 0 auto 2.25rem;
}

.hero-video { /* full-bleed background layer */
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none; /* decorative: no controls, not interactive */
}
.hero-video iframe { /* sized to cover the hero at 16:9, like background-size: cover */
  position: absolute;
  top: 50%;
  left: 50%;
  width: 177.78vh;   /* 16:9 relative to viewport height */
  min-width: 100%;
  height: 56.25vw;   /* 16:9 relative to viewport width */
  min-height: 100%;
  transform: translate(-50%, -50%);
  border: 0;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; } /* fall back to the navy hero background */
}

.connect-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  min-width: 200px;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  box-shadow: 0 6px 18px rgba(31, 58, 96, .15);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(31, 58, 96, .22); }
.btn-chatgpt { background: linear-gradient(135deg, var(--deep-teal), var(--teal)); }
.btn-gemini { background: linear-gradient(135deg, var(--blue), var(--navy)); }
.btn-label { font-size: 1.05rem; }
.btn .badge {
  font-size: .68rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, .22);
  padding: .15rem .55rem;
  border-radius: 999px;
}
.btn.is-soon { opacity: .92; }

.soon-note { margin-top: 1.5rem; font-size: .9rem; color: rgba(255, 255, 255, .72); }

.features { padding: 3.5rem 0; }
.features h2 {
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--navy);
  margin: 0 0 2.5rem;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.feature {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 1.5rem;
}
.feature h3 { margin: 0 0 .6rem; color: var(--deep-teal); font-size: 1.15rem; }
.feature p { margin: 0; color: var(--charcoal); font-size: 1rem; }

.site-footer {
  border-top: 1px solid var(--rule);
  background: var(--cream);
  text-align: center;
  padding: 2.5rem 1.5rem;
  margin-top: 2rem;
}
.site-footer .framing { max-width: 60ch; margin: 0 auto 1.25rem; color: var(--charcoal); font-size: .95rem; }
.footer-links { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; font-family: var(--display); font-weight: 600; font-size: .9rem; }
.footer-links a { color: var(--navy); }
.copyright { margin: 1.5rem 0 0; color: var(--stone); font-size: .82rem; }

/* Markdown policy pages */
.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}
.doc h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); color: var(--navy); margin: 0 0 1.5rem; }
.doc h2 { font-family: var(--display); color: var(--deep-teal); margin: 2rem 0 .75rem; font-size: 1.3rem; }
.doc h3 { font-family: var(--display); color: var(--navy); margin: 1.5rem 0 .5rem; font-size: 1.1rem; }
.doc p, .doc li { color: var(--charcoal); }
.doc code { font-family: "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace; background: var(--cream); padding: .1rem .35rem; border-radius: 4px; font-size: .88em; }
.doc table { border-collapse: collapse; width: 100%; margin: 1rem 0; }
.doc th, .doc td { border: 1px solid var(--rule); padding: .5rem .75rem; text-align: left; font-size: .95rem; }
.doc th { background: var(--cream); font-family: var(--display); }
.doc .back { display: inline-block; margin-bottom: 1.5rem; font-family: var(--display); font-weight: 600; font-size: .9rem; }

/* ── /explore dashboard ─────────────────────────────────────────────── */
main.explore { max-width: 1080px; margin: 0 auto; padding: 0 1.5rem 4rem; }
.explore-hero { padding: 2rem 0 1rem; }
.explore-hero h1 { font-family: var(--display); color: var(--navy); font-size: 2rem; margin: .2rem 0 .5rem; }
.explore-hero .tagline { font-family: var(--display); color: var(--teal); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: .8rem; margin: 0; }
.explore-hero .subhead { color: var(--charcoal); max-width: 60ch; }
.explore code { font-family: "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace; background: var(--cream); padding: .1rem .35rem; border-radius: 4px; font-size: .85em; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: .75rem; margin: 1.5rem 0; }
.stat { background: #fff; border: 1px solid var(--rule); border-radius: 10px; padding: 1rem; text-align: center; }
.stat-num { display: block; font-family: var(--display); font-weight: 700; font-size: 1.8rem; color: var(--deep-teal); line-height: 1; }
.stat-label { display: block; font-family: var(--display); font-size: .75rem; color: var(--stone); margin-top: .35rem; text-transform: uppercase; letter-spacing: .03em; }

.explore-section { margin-top: 2.5rem; }
.explore-section h2 { font-family: var(--display); color: var(--deep-teal); font-size: 1.4rem; display: flex; align-items: center; gap: .6rem; }
.explore-section .count { font-size: .9rem; background: var(--cream); color: var(--charcoal); border-radius: 999px; padding: .1rem .6rem; font-weight: 600; }
.section-note { color: var(--charcoal); font-size: .95rem; margin-top: .3rem; }

.controls { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin: 1rem 0; }
.controls input, .controls select { font-family: var(--display); font-size: .9rem; padding: .45rem .6rem; border: 1px solid var(--rule); border-radius: 8px; background: #fff; color: var(--ink); }
.controls input { flex: 1 1 240px; }
.result-count { font-family: var(--display); font-size: .85rem; color: var(--stone); margin-left: auto; }

.table-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: 10px; }
.data-table { border-collapse: collapse; width: 100%; font-size: .92rem; }
.data-table th, .data-table td { padding: .55rem .8rem; text-align: left; border-bottom: 1px solid var(--rule); white-space: nowrap; }
.data-table th { background: var(--cream); font-family: var(--display); font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; color: var(--charcoal); position: sticky; top: 0; }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: var(--warm-white); }
.data-table td:nth-child(4) { white-space: normal; color: var(--stone); }

.tag { font-family: var(--display); font-size: .75rem; font-weight: 600; padding: .15rem .5rem; border-radius: 6px; }
.tag-surface { background: #e8f4f6; color: var(--deep-teal); }
.tag-status { background: #eef1f7; color: var(--navy); }
.pill { font-family: var(--display); font-size: .72rem; font-weight: 600; padding: .12rem .5rem; border-radius: 999px; }
.pill-ok { background: #e3f3e8; color: #1f7a45; }
.pill-warn { background: #fbf0dd; color: #8a5a12; }
