/* Dynamite R&D — Agent/AEO site stylesheet
   Brand-matched to dynamiterandd.com: charcoal + lime green, Saira Condensed / Barlow.
   Lightweight, no-JS, fast-loading, accessible. */

@import url('https://fonts.googleapis.com/css2?family=Saira+Condensed:wght@500;600;700;800;900&family=Barlow:wght@400;500;600;700&display=swap');

:root {
  --bg: #16181a;            /* brand charcoal */
  --bg-elev: #1d2023;
  --bg-card: #1f2326;
  --line: #2e3338;
  --text: #f3f3ef;
  --muted: #aab0b4;
  --accent: #91c731;        /* brand lime green */
  --accent-soft: #a9da4f;
  --accent-dim: rgba(145,199,49,0.12);
  --max: 1080px;
  --radius: 6px;            /* squared-off, industrial like the human site */
  --font-body: 'Barlow', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-head: 'Saira Condensed', 'Barlow', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

img { max-width: 100%; height: auto; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 22px; }

/* ---------- Skip link ---------- */
.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--accent); color: #16181a; padding: 10px 16px; z-index: 100;
}
.skip:focus { left: 8px; top: 8px; }

/* ---------- Header / nav ---------- */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(22,24,26,0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; padding: 12px 22px; max-width: var(--max); margin: 0 auto;
}
.brand {
  display: flex; align-items: center; gap: 11px;
  font-family: var(--font-head); font-weight: 800; letter-spacing: .04em;
  text-transform: uppercase; font-size: 21px; color: var(--text);
}
/* Simple brand-colored mark — no logo image, just the color set (this is a crawler-facing site) */
.brand .mark {
  width: 34px; height: 34px; flex: 0 0 34px;
  display: grid; place-items: center;
  background: var(--accent); color: #16181a;
  font-family: var(--font-head); font-weight: 900; font-size: 20px;
  border-radius: 5px;
}
.brand:hover { text-decoration: none; }
.nav nav { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.nav nav a {
  font-family: var(--font-body);
  color: var(--muted); padding: 6px 11px; border-radius: 5px; font-size: 15px; font-weight: 600;
}
.nav nav a:hover, .nav nav a[aria-current="page"] { color: var(--accent); background: var(--bg-card); text-decoration: none; }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 40px; border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(900px 400px at 78% -10%, var(--accent-dim), transparent 60%);
  pointer-events: none;
}
.eyebrow {
  display: inline-block; font-family: var(--font-head); font-size: 14px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
}
h1 { font-family: var(--font-head); font-size: clamp(2.2rem, 5.4vw, 3.4rem); line-height: 1.04; margin: 0 0 18px; font-weight: 800; letter-spacing: .01em; text-transform: uppercase; }
.lead { font-size: 1.18rem; color: var(--muted); max-width: 62ch; margin: 0 0 26px; }

/* ---------- Buttons ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-block; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .06em;
  padding: 13px 26px; border-radius: 0; font-weight: 700; font-size: 16px;
}
.btn.primary { background: var(--accent); color: #16181a; }
.btn.primary:hover { background: var(--accent-soft); text-decoration: none; }
.btn.ghost { border: 1.5px solid #4a4f53; color: var(--text); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

/* ---------- Sections ---------- */
section { padding: 52px 0; border-bottom: 1px solid var(--line); }
section h2 { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .01em; font-size: clamp(1.6rem, 3.6vw, 2.3rem); margin: 0 0 8px; font-weight: 800; }
section h2 + .sub { color: var(--muted); margin: 0 0 28px; max-width: 64ch; }
.section-eyebrow { font-family: var(--font-head); color: var(--accent); font-weight: 700; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 34px; }
.stat { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.stat .num { font-family: var(--font-head); font-size: 2rem; font-weight: 800; color: var(--accent); line-height: 1; }
.stat .label { color: var(--muted); font-size: 14px; margin-top: 8px; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
}
.card h3 { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .02em; margin: 0 0 8px; font-size: 1.2rem; font-weight: 700; }
.card p { margin: 0; color: var(--muted); }
.card .idx { color: var(--accent); font-family: var(--font-head); font-weight: 800; font-size: 14px; letter-spacing: .08em; }

/* ---------- FAQ ---------- */
.faq { margin-top: 10px; }
.faq details {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-card);
  padding: 4px 20px; margin-bottom: 12px;
}
.faq details[open] { border-color: var(--accent); }
.faq summary {
  cursor: pointer; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .02em;
  font-weight: 700; padding: 14px 0; font-size: 1.08rem; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--accent); font-weight: 800; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 0 0 16px; }

/* ---------- Definition list / key facts ---------- */
.facts { display: grid; grid-template-columns: 200px 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.facts dt { background: var(--bg-elev); padding: 12px 16px; font-weight: 700; border-bottom: 1px solid var(--line); }
.facts dd { padding: 12px 16px; margin: 0; color: var(--muted); border-bottom: 1px solid var(--line); }
.facts dt:last-of-type, .facts dd:last-of-type { border-bottom: none; }

/* ---------- Tag list ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.tags li { background: var(--accent-dim); border: 1px solid var(--line); color: var(--accent-soft); padding: 5px 12px; border-radius: 999px; font-size: 14px; font-weight: 600; }

/* ---------- Prose ---------- */
.prose p { color: var(--muted); }
.prose ul { color: var(--muted); padding-left: 20px; }
.prose li { margin: 6px 0; }
.prose strong { color: var(--text); }
.prose h3 { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .02em; }

/* ---------- CTA band ---------- */
.cta { text-align: center; background: linear-gradient(180deg, var(--bg-elev), var(--bg)); }
.cta h2 { margin-bottom: 14px; }

/* ---------- Footer ---------- */
footer.site { background: var(--bg-elev); border-top: 1px solid var(--line); padding: 40px 0; color: var(--muted); }
footer.site .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; }
footer.site h4 { font-family: var(--font-head); color: var(--text); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 12px; }
footer.site a { color: var(--muted); display: block; padding: 3px 0; }
footer.site a:hover { color: var(--accent-soft); }
.legal { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; }

/* ---------- Breadcrumb ---------- */
.crumbs { font-size: 14px; color: var(--muted); padding: 16px 0 0; }
.crumbs a { color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .grid.two, .grid.three { grid-template-columns: 1fr; }
  footer.site .cols { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .facts dt { border-bottom: none; }
}
