/* Agent Lab Tools hub. No external fonts, scripts or CDNs; strict CSP. */
:root {
  color-scheme: light dark;
  --brand: #1b3a5f;
  --brand-strong: #122841;
  --tint: #e8f1fa;
  --ink: #102033;
  --ink-soft: #3a4a5c;
  --muted: #5b6b7c;
  --line: #d5e2ee;
  --bg: #ffffff;
  --bg-tint: #f4f8fc;
  --panel: #ffffff;
  --shadow: 0 1px 2px rgba(16, 32, 51, 0.06), 0 8px 24px rgba(16, 32, 51, 0.06);
  --radius: 14px;
  --focus: #1b3a5f;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #8eb6de;
    --brand-strong: #c5daf0;
    --tint: #16324f;
    --ink: #e8f1fa;
    --ink-soft: #c3d2e2;
    --muted: #9aadc0;
    --line: #2a425c;
    --bg: #0b1622;
    --bg-tint: #102033;
    --panel: #12263a;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.3);
    --focus: #8eb6de;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-underline-offset: 2px; }
a:hover { color: var(--brand-strong); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; color: var(--ink); }
h1 { font-size: 2rem; margin: 0 0 0.5rem; }
h2 { font-size: 1.25rem; margin: 0 0 0.4rem; }
h3 { font-size: 1.25rem; margin: 0 0 0.4rem; }
p { margin: 0.5rem 0; }

.skip { position: absolute; left: -999px; top: 0; background: var(--brand); color: #fff; padding: 0.5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }

.container { max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }

.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 700; font-size: 1.1rem; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand .mark { width: 32px; height: 32px; border-radius: 8px; flex: none; }

.hero {
  background:
    radial-gradient(60rem 30rem at 85% -10%, color-mix(in srgb, var(--brand) 18%, transparent), transparent 60%),
    radial-gradient(40rem 24rem at -10% 110%, color-mix(in srgb, var(--brand) 12%, transparent), transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.hero-inner { padding: 4.5rem 1.25rem 4.75rem; max-width: 46rem; }
.eyebrow {
  display: inline-block; font-weight: 600; font-size: 0.85rem; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--brand); background: var(--tint);
  padding: 0.3rem 0.7rem; border-radius: 999px; margin: 0 0 1rem;
}
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 0 0 1rem; letter-spacing: -0.02em; }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 38rem; }

.section { padding: 4rem 0 4.5rem; }
.section-title { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 0 0 0.5rem; text-align: center; }
.section-lead { text-align: center; color: var(--muted); margin: 0 auto 2.25rem; max-width: 36rem; }

.tools { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; }
@media (min-width: 44rem) { .tools { grid-template-columns: repeat(2, 1fr); } }

.card {
  display: flex; flex-direction: column; gap: 0.35rem;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow);
}
.card .tool-logo {
  width: 64px; height: 64px; border-radius: 14px; margin-bottom: 0.75rem;
  background: var(--bg-tint); object-fit: cover;
}
.card p { color: var(--ink-soft); flex: 1; }
.more {
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 1rem; align-self: flex-start;
  font-weight: 600; line-height: 1.2;
  padding: 0.65rem 1.1rem; border-radius: 10px;
  background: var(--brand); color: #fff; text-decoration: none;
}
.more:hover { background: var(--brand-strong); color: #fff; }
@media (prefers-color-scheme: dark) {
  .more { color: #0b1622; }
  .more:hover { color: #0b1622; }
}

.site-footer { border-top: 1px solid var(--line); background: var(--bg); padding: 2.5rem 0; color: var(--muted); font-size: 0.95rem; }
.footer-inner { display: grid; gap: 1.25rem; }
@media (min-width: 48rem) { .footer-inner { grid-template-columns: 1fr auto; align-items: start; } }
.footer-brand p { margin: 0.4rem 0 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.footer-links a { color: var(--ink-soft); text-decoration: none; }
.footer-links a:hover { color: var(--brand); text-decoration: underline; }
.copyright { margin: 0; grid-column: 1 / -1; }
