/* MauleAI — shared styles
   Brand: sky blue + green + charcoal on light gray. Calm, refined, technical. */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400..800&family=IBM+Plex+Sans:wght@400;500;600&family=IBM+Plex+Mono:wght@500;600&display=swap');

:root {
  --blue: #4FA9DC;
  --blue-deep: #2C86BC;
  --green: #38B44A;
  --green-deep: #2A9C3E;
  --ink: #25292d;
  --ink-soft: #555c63;
  --ink-faint: #8a929a;
  --bg: #f5f7f8;
  --surface: #ffffff;
  --line: #e3e7ea;
  --shadow: 0 1px 2px rgba(37,41,45,.04), 0 12px 32px -12px rgba(37,41,45,.12);
  --shadow-lg: 0 2px 4px rgba(37,41,45,.05), 0 28px 60px -20px rgba(44,134,188,.28);
  --radius: 16px;
  --maxw: 1080px;
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --body: 'IBM Plex Sans', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: var(--blue-deep); text-decoration: none; }
a:hover { color: var(--green-deep); }
a:focus-visible, button:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--blue-deep); outline-offset: 3px; border-radius: 5px;
}

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

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245,247,248,.82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--display);
  font-weight: 700; font-size: 1.22rem; letter-spacing: -.02em; color: var(--ink); }
.brand img { width: 38px; height: 38px; display: block; }
.brand:hover { color: var(--ink); }
.brand b { color: var(--green-deep); font-weight: 700; }
.nav { display: flex; gap: 28px; align-items: center; }
.nav a { color: var(--ink-soft); font-size: .94rem; font-weight: 500; position: relative; }
.nav a:hover { color: var(--ink); }
.nav a.active { color: var(--ink); }
.nav a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -23px; height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--green));
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 96px 0 72px; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: -20% -10% auto -10%; height: 620px; z-index: 0;
  background:
    radial-gradient(560px 360px at 22% 18%, rgba(79,169,220,.32), transparent 60%),
    radial-gradient(520px 380px at 82% 30%, rgba(56,180,74,.26), transparent 62%);
  filter: blur(6px);
}
.hero .wrap { position: relative; z-index: 1; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: .72rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--blue-deep);
  background: var(--surface); border: 1px solid var(--line);
  padding: 7px 14px; border-radius: 100px; box-shadow: var(--shadow);
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 4px rgba(56,180,74,.18); }
.hero h1 {
  font-family: var(--display); font-weight: 700; letter-spacing: -.035em;
  font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 1.02; margin: 26px 0 0;
  max-width: 14ch;
}
.hero h1 .accent { color: var(--green-deep); }
.hero p.lede {
  font-size: clamp(1.08rem, 2vw, 1.32rem); color: var(--ink-soft);
  max-width: 52ch; margin: 22px 0 0;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }

.btn {
  display: inline-flex; align-items: center; gap: 9px; font-weight: 600;
  font-size: .96rem; padding: 13px 22px; border-radius: 12px; border: 1px solid transparent;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.btn-primary { background: linear-gradient(180deg, var(--blue), var(--blue-deep)); color: #fff;
  box-shadow: 0 10px 22px -10px rgba(44,134,188,.7); }
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 16px 30px -10px rgba(44,134,188,.8); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); box-shadow: var(--shadow); }
.btn-ghost:hover { color: var(--ink); transform: translateY(-2px); border-color: #d2d8dd; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-head { max-width: 60ch; margin-bottom: 40px; }
.section-head .kicker {
  font-family: var(--mono); font-size: .74rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--green-deep);
}
.section-head h2 {
  font-family: var(--display); font-weight: 700; letter-spacing: -.03em;
  font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-top: 10px; line-height: 1.1;
}
.section-head p { color: var(--ink-soft); margin-top: 12px; font-size: 1.06rem; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(248px, 1fr)); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #d3dde4; }
.card .ic {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(150deg, rgba(79,169,220,.16), rgba(56,180,74,.16));
  color: var(--blue-deep); margin-bottom: 16px;
}
.card .ic svg { width: 24px; height: 24px; }
.card h3 { font-family: var(--display); font-weight: 600; font-size: 1.16rem; letter-spacing: -.01em; }
.card p { color: var(--ink-soft); margin-top: 8px; font-size: .96rem; }

/* trust strip */
.trust {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 30px; box-shadow: var(--shadow); display: grid;
  grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: center;
}
.trust h2 { font-family: var(--display); font-weight: 700; font-size: 1.5rem; letter-spacing: -.02em; }
.trust p { color: var(--ink-soft); margin-top: 10px; }
.trust ul { list-style: none; display: grid; gap: 12px; }
.trust li { display: flex; gap: 11px; align-items: flex-start; font-size: .96rem; color: var(--ink); }
.trust li svg { width: 20px; height: 20px; flex: none; color: var(--green-deep); margin-top: 2px; }

/* ---------- Legal pages ---------- */
.legal { padding: 56px 0 80px; }
.legal .wrap { max-width: 760px; }
.legal .doc-meta { font-family: var(--mono); font-size: .8rem; color: var(--ink-faint);
  text-transform: uppercase; letter-spacing: .08em; }
.legal h1 {
  font-family: var(--display); font-weight: 700; letter-spacing: -.03em;
  font-size: clamp(2.1rem, 5vw, 3rem); margin: 12px 0 6px; line-height: 1.05;
}
.legal .updated { color: var(--ink-faint); font-size: .92rem; margin-bottom: 8px; }
.legal h2 {
  font-family: var(--display); font-weight: 700; font-size: 1.4rem; letter-spacing: -.02em;
  margin: 40px 0 12px; padding-top: 8px;
}
.legal h3 { font-weight: 600; font-size: 1.06rem; margin: 22px 0 8px; }
.legal p, .legal li { color: var(--ink-soft); font-size: 1.0rem; }
.legal p { margin: 12px 0; }
.legal ul { margin: 12px 0 12px 4px; padding-left: 22px; }
.legal li { margin: 7px 0; }
.legal strong { color: var(--ink); font-weight: 600; }
.legal a { font-weight: 500; }
.callout {
  border: 1px solid var(--line); border-left: 3px solid var(--green);
  background: linear-gradient(180deg, rgba(56,180,74,.05), rgba(79,169,220,.04));
  border-radius: 12px; padding: 16px 20px; margin: 22px 0;
}
.callout p { margin: 0; color: var(--ink); }
.mono { font-family: var(--mono); font-size: .92em; background: rgba(44,134,188,.09);
  color: var(--blue-deep); padding: 1px 7px; border-radius: 6px; }
.toc {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 18px 22px; margin: 26px 0 30px; box-shadow: var(--shadow);
}
.toc strong { display: block; font-family: var(--mono); font-size: .74rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-faint); margin-bottom: 10px; }
.toc ol { columns: 2; column-gap: 30px; padding-left: 18px; margin: 0; }
.toc li { margin: 5px 0; font-size: .94rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); margin-top: 40px; }
.site-footer .wrap { padding: 40px 24px; display: flex; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.foot-brand { display: flex; align-items: center; gap: 10px; font-family: var(--display);
  font-weight: 700; color: var(--ink); }
.foot-brand img { width: 30px; height: 30px; }
.site-footer p { color: var(--ink-faint); font-size: .9rem; margin-top: 10px; max-width: 40ch; }
.foot-links { display: flex; gap: 26px; flex-wrap: wrap; }
.foot-links a { color: var(--ink-soft); font-size: .92rem; font-weight: 500; }
.foot-legal { width: 100%; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 18px;
  color: var(--ink-faint); font-size: .85rem; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- Motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.reveal { opacity: 0; animation: rise .7s cubic-bezier(.2,.7,.2,1) forwards; }
.d1 { animation-delay: .05s; } .d2 { animation-delay: .15s; }
.d3 { animation-delay: .25s; } .d4 { animation-delay: .35s; } .d5 { animation-delay: .45s; }
@media (prefers-reduced-motion: reduce) { .reveal { animation: none; opacity: 1; } }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .nav { gap: 18px; }
  .nav a.active::after { display: none; }
  .trust { grid-template-columns: 1fr; }
  .toc ol { columns: 1; }
  .hero { padding: 64px 0 48px; }
}
