/* Homepage hero: playful, "maths notebook" layer on top of the professional hero. Purely decorative; content is unchanged. */

/* graph-paper grid that fades out toward the edges */
body.dm-page-home .dm-hero--pro { overflow: hidden; }
.dm-math-deco { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
body.dm-page-home .dm-hero--pro .dm-hero-content { z-index: 1; }

/* loss curve with a ball rolling to the minimum (gradient descent) */
.dm-math-deco__curve { position: absolute; left: 49.5%; top: 25%; width: 11.5rem; opacity: 0.9; display: none; }
.dm-math-deco__axis { stroke: rgba(71, 85, 105, 0.35); stroke-width: 1.5; stroke-linecap: round; }
.dm-math-deco__axis--dash { stroke-dasharray: 3 5; }
.dm-math-deco__path { stroke: #1a73e8; stroke-width: 3; stroke-linecap: round; }
.dm-math-deco__ball { fill: #fbbc05; stroke: #fff; stroke-width: 3; filter: drop-shadow(0 3px 5px rgba(251, 188, 5, 0.45)); }
.dm-math-deco__label { font: 600 11px "Plus Jakarta Sans", system-ui, sans-serif; fill: #64748b; }

/* floating formula chips */
.dm-chip {
  position: absolute;
  display: none;
  padding: 0.35rem 0.75rem;
  font: 600 0.8rem/1.2 "Cambria Math", "STIX Two Math", "Times New Roman", serif;
  font-style: italic;
  color: #305ca3;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(66, 133, 244, 0.25);
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(26, 115, 232, 0.12);
  animation: dm-float 6s ease-in-out infinite;
}
.dm-chip--a { left: 50%; top: 9%; }
.dm-chip--b { left: 60%; top: 66%; animation-delay: -2s; font-size: 1rem; }
.dm-chip--c { left: 49%; top: 72%; animation-delay: -4s; }
@keyframes dm-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (min-width: 1200px) { .dm-math-deco__curve, .dm-chip { display: block; } }
@media (prefers-reduced-motion: reduce) { .dm-chip { animation: none; } .dm-math-deco__ball { display: none; } }

/* headline: bigger, with a hand-marked wavy underline on the key word */
body.dm-page-home .dm-hero--pro .dm-hero--compact__title { font-size: clamp(2rem, 4.2vw, 3rem); line-height: 1.12; max-width: min(100%, 30rem); }
.dm-hl {
  background: linear-gradient(90deg, #1a73e8, #4285f4);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: underline wavy #fbbc05;
  text-decoration-thickness: 3px;
  text-underline-offset: 7px;
  text-decoration-skip-ink: none;
}

/* softer research note: lighter weight so the headline leads */
body.dm-page-home .dm-hero--pro .dm-hero__research-note { background: none; border-left: 2px solid rgba(26, 115, 232, 0.3); color: #475569; font-size: 0.86rem; padding: 0.15rem 0 0.15rem 0.85rem; }

/* small "∑" mark on the brand pill and the positioning line */
body.dm-page-home .dm-hero--pro .dm-hero-badge::before { content: "∑"; margin-right: 0.45rem; color: #fbbc05; font-weight: 800; }

/* friendlier buttons */
body.dm-page-home .dm-hero--pro .dm-hero--compact__btn { border-radius: 999px; transition: transform 0.15s ease, box-shadow 0.15s ease; }
body.dm-page-home .dm-hero--pro .dm-hero--compact__btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(26, 115, 232, 0.28); }
