:root {
  --bg: #18191b;
  --bg-glow: #232529;
  --ink: #e8eaec;
  --ink-dim: #8b9297;
  --accent: #4a9bb5;
  --hairline: rgba(255, 255, 255, 0.08);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; min-height: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 160ms ease;
}
a:hover, a:focus-visible { border-bottom-color: var(--accent); }
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}

footer {
  border-top: 1px solid var(--hairline);
  padding: 22px 24px;
  text-align: center;
  font-size: 13px;
  color: var(--ink-dim);
}
footer a { color: var(--ink-dim); }
footer .sep { opacity: 0.4; margin: 0 10px; }

/* ---------- Landing ---------- */

body.landing {
  background-image:
    radial-gradient(ellipse 90% 60% at 50% 38%, var(--bg-glow) 0%, transparent 70%);
}

.landing main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
  gap: 34px;
}

.logo {
  width: min(560px, 88vw);
  height: auto;
  display: block;
  animation: settle 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Typographic stand-in, shown only if the logo asset is missing. */
.wordmark {
  display: none;
  font-size: clamp(38px, 8.5vw, 76px);
  font-weight: 300;
  letter-spacing: -0.02em;
  animation: settle 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.wordmark .ai { color: var(--accent); }
body.no-logo .logo { display: none; }
body.no-logo .wordmark { display: block; }

.rule {
  width: 64px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: settle 1.1s 0.12s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.tagline {
  margin: 0;
  font-size: clamp(17px, 2.4vw, 21px);
  color: var(--ink-dim);
  animation: settle 1.1s 0.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.contact {
  font-size: 15px;
  color: var(--ink-dim);
  animation: settle 1.1s 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes settle {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .logo, .wordmark, .rule, .tagline, .contact { animation: none; }
}

/* ---------- Documents ---------- */

.doc main {
  flex: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 24px 72px;
}

.doc .back {
  display: inline-block;
  font-size: 14px;
  color: var(--ink-dim);
  margin-bottom: 36px;
}

.doc h1 {
  font-size: clamp(30px, 5vw, 40px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.doc .effective {
  color: var(--ink-dim);
  font-size: 14px;
  margin: 0 0 40px;
}

.doc h2 {
  font-size: 20px;
  font-weight: 600;
  margin: 40px 0 12px;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
}

.doc p, .doc li {
  font-size: 16px;
  line-height: 1.65;
  color: #c9ced2;
}

.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 8px; }

.doc strong { color: var(--ink); font-weight: 600; }

.doc .lede {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
}

.doc .callout {
  border-left: 2px solid var(--accent);
  background: rgba(74, 155, 181, 0.07);
  padding: 16px 20px;
  margin: 24px 0;
  border-radius: 0 6px 6px 0;
}
.doc .callout p { margin: 0; }
