/* Edgar corporate site: tokens from /design/design-system/tokens.css, plus the mascot's motion. */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Manrope:wght@600;700;800&display=swap");

:root {
  --teal-50: #F0FDFA; --teal-100: #CCFBF1; --teal-200: #99F6E4; --teal-300: #5EEAD4; --teal-400: #2DD4BF;
  --teal-600: #0D9488; --teal-700: #0F766E; --teal-800: #115E59; --teal-900: #134E4A; --teal-950: #042F2E;
  --slate-0: #FFFFFF; --slate-50: #F8FAFC; --slate-100: #F1F5F9; --slate-200: #E2E8F0; --slate-300: #CBD5E1;
  --slate-500: #64748B; --slate-600: #475569; --slate-700: #334155; --slate-900: #0F172A;
  --amber-100: #FEF3C7; --amber-200: #FDE68A; --amber-500: #F59E0B; --amber-700: #B45309;
  --orange-700: #C2410C; --red-700: #B91C1C; --green-50: #F0FDF4; --green-200: #BBF7D0; --green-700: #15803D;
  --blue-50: #EFF6FF; --blue-200: #BFDBFE; --blue-700: #1D4ED8;
  --fuchsia-50: #FDF4FF; --fuchsia-200: #F5D0FE; --fuchsia-700: #A21CAF;

  --bg: var(--slate-0); --bg-soft: var(--slate-50); --text: var(--slate-900); --text-2: var(--slate-700);
  --text-3: var(--slate-600); --line: var(--slate-200); --line-2: var(--slate-300); --brand: var(--teal-700);
  --font-display: "Manrope", system-ui, sans-serif; --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--font-body); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--brand); }
a:hover { color: var(--teal-800); }
a:focus-visible, button:focus-visible { outline: none; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--teal-600); border-radius: 6px; }
svg.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.eyebrow { margin: 0; font: 600 13px/18px var(--font-body); letter-spacing: .06em; text-transform: uppercase; color: var(--brand); }
h1, h2, h3 { font-family: var(--font-display); margin: 0; color: var(--text); }
h1 { font-weight: 800; font-size: clamp(40px, 5.4vw, 64px); line-height: 1.05; letter-spacing: -.03em; }
h2 { font-weight: 800; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.15; letter-spacing: -.02em; }
h3 { font-weight: 700; font-size: 18px; line-height: 26px; }
p { margin: 0; }
.lead { font-size: 18px; line-height: 29px; color: var(--text-2); }
.muted { color: var(--text-3); }

.btn { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 10px; font: 600 16px/1 var(--font-body); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--teal-700); color: #fff; }
.btn-primary:hover { background: var(--teal-800); color: #fff; }
.btn-ghost { background: #fff; color: var(--text-2); border-color: var(--line-2); }

/* Logo */
.edgar-logo svg, .edgar-mark svg { display: block; width: 100%; height: auto; }

/* ---------- Mascot ---------- */
.edgar svg { width: 100%; height: auto; overflow: visible; }
.ed-body { animation: ed-float 4.2s ease-in-out infinite; transform-box: fill-box; }
.ed-shadow { animation: ed-shadow 4.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.ed-eyes { animation: ed-blink 5.5s infinite; transform-box: fill-box; transform-origin: center; }
.ed-talk { animation: ed-talk .32s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
.ed-waves path { animation: ed-bar .5s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
.ed-waves path:nth-child(2) { animation-delay: .15s; }
.ed-waves path:nth-child(3) { animation-delay: .3s; }
.ed-arcs path { animation: ed-pulse 1.6s ease-in-out infinite; }
.ed-arcs path:nth-child(2) { animation-delay: .4s; }
.ed-dots circle { animation: ed-dot 1.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.ed-dots circle:nth-child(2) { animation-delay: .2s; }
.ed-dots circle:nth-child(3) { animation-delay: .4s; }
.ed-glow { animation: ed-flicker 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.ed-flame { animation: ed-flame 1.1s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: 50% 100%; }
.ed-waving { animation: ed-wave 1.4s ease-in-out infinite; transform-box: fill-box; transform-origin: 0% 100%; }
.ed-note { animation: ed-note 2.6s ease-in-out infinite; }
.ed-card { animation: ed-card 3s ease-in-out infinite; }

@keyframes ed-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes ed-shadow { 0%, 100% { transform: scaleX(1); opacity: .10; } 50% { transform: scaleX(.86); opacity: .06; } }
@keyframes ed-blink { 0%, 90%, 100% { transform: scaleY(1); } 93% { transform: scaleY(.08); } 96% { transform: scaleY(1); } }
@keyframes ed-talk { from { transform: scaleY(.35); } to { transform: scaleY(1.1); } }
@keyframes ed-bar { from { transform: scaleY(.3); } to { transform: scaleY(1); } }
@keyframes ed-pulse { 0%, 100% { opacity: .15; } 50% { opacity: 1; } }
@keyframes ed-dot { 0%, 100% { transform: translateY(0); opacity: .45; } 50% { transform: translateY(-5px); opacity: 1; } }
@keyframes ed-flicker { 0%, 100% { opacity: .75; transform: scale(1); } 40% { opacity: 1; transform: scale(1.08); } 70% { opacity: .85; transform: scale(.96); } }
@keyframes ed-flame { from { transform: scaleY(.85) scaleX(1.05); } to { transform: scaleY(1.1) scaleX(.92); } }
@keyframes ed-wave { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-14deg); } 75% { transform: rotate(10deg); } }
@keyframes ed-note { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(4px, -4px); } }
@keyframes ed-card { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
