/* ============================================================
   MoorAI landing-page section system, for topic pages whose head
   carries no inline copy of it (on-device-ai-dlp,
   shadow-ai-detection-for-coding-agents, owasp-llm-top-10-tooling).
   Rules match moorai.html's inline head. Linked only from those
   pages' head fragments; scripts/check-unstyled.mjs fails the build
   if a page uses these classes without loading a rule for them.
   .reveal is deliberately unstyled: these pages ship no
   IntersectionObserver, so content must stay visible.
   ============================================================ */

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

body { font-size: 14px; line-height: 1.6; overflow-x: hidden; }

section { position: relative; z-index: 1; }
section:not([class]) { padding: 72px 24px 48px; }

.section-inner { max-width: 1060px; margin: 0 auto; }
.section-kicker {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 12px; display: block;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.05;
  color: var(--text); margin-bottom: 14px;
}
.section-title em { font-style: normal; color: var(--accent); }
.section-lead {
  font-size: 13px; color: var(--dim); max-width: 560px; line-height: 1.8;
  margin-bottom: 56px;
}
.section-lead b { color: var(--text); font-weight: 400; }
.section-lead a { color: var(--accent2); }

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; position: relative; z-index: 1; }
.cta .hero-actions { justify-content: center; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  padding: 11px 22px; border-radius: 6px;
  background: var(--accent); color: var(--bg); text-decoration: none;
  transition: all 0.2s;
}
.btn-primary:hover { background: var(--accent2); transform: translateY(-1px); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12px;
  padding: 9px 20px; border: 1px solid var(--border); border-radius: 6px;
  color: var(--dim); text-decoration: none; transition: all 0.2s;
}
.btn-ghost:hover { color: var(--text); border-color: var(--border2); background: var(--bg3); }

.features, .frameworks { padding: 100px 24px; border-top: 1px solid var(--border); }

.fw-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.fw-card { border: 1px solid var(--border); border-radius: 14px; padding: 22px; background: var(--bg2); }
.fw-card .fw-tag {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent); font-weight: 600;
}
.fw-card .fw-name { font-family: var(--font-display); font-size: 18px; font-weight: 700; margin: 8px 0 6px; }
.fw-card .fw-desc { font-size: 14px; color: var(--dim); line-height: 1.55; }

.faq { padding: 100px 24px; border-top: 1px solid var(--border); }
.faq-list { display: flex; flex-direction: column; gap: 2px; }
.faq-item { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: var(--bg2); }
.faq-q {
  padding: 20px 24px; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-family: var(--font-display); font-size: 15px; font-weight: 600;
  color: var(--text); list-style: none; user-select: none;
  transition: background 0.15s;
}
.faq-q:hover { background: var(--bg3); }
.faq-q::marker, .faq-q::-webkit-details-marker { display: none; }
.faq-chevron { flex-shrink: 0; color: var(--dim); transition: transform 0.2s; }
details[open] .faq-chevron { transform: rotate(180deg); }
details[open] .faq-q { color: var(--accent); }
.faq-a {
  padding: 0 24px 20px;
  font-size: 13px; color: var(--dim); line-height: 1.8;
  border-top: 1px solid var(--border);
}
.faq-a p { padding-top: 16px; }

.cta {
  text-align: center;
  padding: 100px 24px;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, color-mix(in srgb, var(--mt-accent) calc(5% * var(--mt-tint)), transparent) 0%, transparent 60%);
}
.cta-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 68px);
  font-weight: 900; letter-spacing: -0.03em;
  line-height: 1; color: var(--text); margin-bottom: 16px;
}
.cta-title em { font-style: normal; color: var(--accent); }
.cta-sub { font-size: 13px; color: var(--dim); margin-bottom: 40px; }

@media (max-width: 820px) { .fw-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  section:not([class]) { padding: 48px 20px 32px; }
  .features, .frameworks, .faq, .cta { padding: 64px 20px; }
  .faq-q { padding: 16px 18px; }
  .faq-a { padding: 0 18px 16px; }
}
