/* ChatBoost AI — Legal site
   Dark-first, premium minimalist
   Drag-and-drop ready for Cloudflare Pages */

:root {
  --bg: #0a0a0a;
  --bg-elevated: #111111;
  --bg-card: #141414;
  --bg-muted: #1a1a1a;
  --border: #232323;
  --border-strong: #2e2e2e;
  --text: #f5f5f5;
  --text-muted: #b4b4b4;
  --text-soft: #8a8a8a;
  --accent: #ffffff;
  --accent-soft: #d4d4d4;
  --warning-bg: rgba(251, 191, 36, 0.08);
  --warning-border: rgba(251, 191, 36, 0.35);
  --warning-text: #fcd34d;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 20px 40px -20px rgba(0, 0, 0, 0.6);
  --max-width: 880px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-image:
    radial-gradient(800px 400px at 50% -100px, rgba(255, 255, 255, 0.04), transparent 70%),
    linear-gradient(180deg, #0a0a0a 0%, #050505 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

::selection {
  background: rgba(255, 255, 255, 0.16);
  color: var(--text);
}

/* HEADER */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}

.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: #000;
  display: grid;
  place-items: center;
  padding: 4px;
  border: 1px solid var(--border-strong);
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.brand-name {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.brand-sub {
  font-size: 11px;
  color: var(--text-soft);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 1px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
}

.nav a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s ease, background 0.15s ease;
}

.nav a:hover {
  color: var(--text);
  background: var(--bg-muted);
}

.nav a.active {
  color: var(--text);
  background: var(--bg-muted);
  border: 1px solid var(--border-strong);
}

/* MAIN */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 56px 24px 96px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 16px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-elevated);
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.45);
}

h1 {
  font-size: clamp(32px, 4.5vw, 48px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
  color: var(--text);
  background: linear-gradient(180deg, #ffffff 0%, #c7c7c7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 48px 0 14px;
  color: var(--text);
}

h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 26px 0 10px;
  color: var(--text);
}

.meta {
  color: var(--text-soft);
  font-size: 14px;
  margin-bottom: 14px;
}

p {
  color: var(--text-muted);
  margin-bottom: 14px;
}

ul,
ol {
  color: var(--text-muted);
  margin: 8px 0 18px 22px;
}

li {
  margin-bottom: 8px;
}

strong {
  color: var(--text);
  font-weight: 600;
}

a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s ease;
}

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

/* CALLOUT */
.callout {
  border: 1px solid var(--warning-border);
  background: var(--warning-bg);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 24px 0;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.callout::before {
  content: "!";
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--warning-text);
  color: #1a1a1a;
  font-weight: 800;
  font-size: 13px;
  display: grid;
  place-items: center;
  margin-top: 1px;
}

.callout p {
  color: var(--warning-text);
  margin-bottom: 0;
  font-size: 15px;
}

.callout p strong {
  color: var(--warning-text);
}

.callout a {
  color: var(--warning-text);
  text-decoration-color: rgba(252, 211, 77, 0.45);
}

.callout a:hover {
  text-decoration-color: var(--warning-text);
}

/* CARD */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin: 18px 0;
  box-shadow: var(--shadow);
}

.contact-card p {
  margin-bottom: 6px;
  color: var(--text-muted);
}

.contact-card p:first-child {
  color: var(--text);
  font-weight: 600;
  margin-bottom: 10px;
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
  margin: 48px 0 24px;
}

/* STORE BADGES */
.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0 28px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: all 0.18s ease;
}

.store-badge:hover {
  border-color: var(--text);
  background: var(--bg-muted);
  text-decoration: none;
  transform: translateY(-1px);
}

.store-badge svg {
  width: 18px;
  height: 18px;
}

/* TOC */
.toc {
  background: var(--bg-elevated);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 22px 24px;
  margin: 28px 0 36px;
}

.toc h4 {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 14px;
  font-weight: 600;
}

.toc ul {
  list-style: none;
  margin: 0;
  display: grid;
  gap: 4px;
}

.toc li {
  margin: 0;
}

.toc a {
  display: block;
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 14px;
  text-decoration: none;
  transition: all 0.12s ease;
}

.toc a:hover {
  color: var(--text);
  background: var(--bg-muted);
}

/* HERO (index only) */
.hero {
  padding: 24px 0 8px;
}

.hero-tagline {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 620px;
  margin-bottom: 12px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  margin: 36px 0 8px;
}

.doc-card {
  display: block;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: all 0.18s ease;
  position: relative;
  overflow: hidden;
}

.doc-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px 200px at 0% 0%, rgba(255, 255, 255, 0.04), transparent 70%);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.doc-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  text-decoration: none;
}

.doc-card:hover::before {
  opacity: 1;
}

.doc-card-title {
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.doc-card-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
}

.doc-card-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

/* FOOTER */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg);
  margin-top: 40px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 28px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
  color: var(--text-soft);
}

.footer nav {
  display: flex;
  gap: 22px;
}

.footer a {
  color: var(--text-soft);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer a:hover {
  color: var(--text);
}

/* SMALL TEXT */
.fineprint {
  font-size: 13px;
  color: var(--text-soft);
}

/* RESPONSIVE */
@media (max-width: 600px) {
  .header-inner {
    padding: 12px 18px;
  }
  .nav {
    gap: 2px;
    font-size: 13px;
  }
  .nav a {
    padding: 6px 10px;
  }
  main {
    padding: 36px 20px 64px;
  }
  .footer-inner {
    justify-content: flex-start;
    flex-direction: column;
    align-items: flex-start;
  }
}
