/* Global light effects (see js/effects.js). Cheap: transforms and opacity only. */
.fx-pre { opacity: 0; transform: translateY(14px); transition: opacity .55s ease var(--fx-d, 0ms), transform .55s cubic-bezier(.2,.8,.2,1) var(--fx-d, 0ms); }
.fx-pre.fx-in { opacity: 1; transform: none; }
.fx-ripple { position: absolute; border-radius: 50%; background: currentColor; opacity: .18; transform: scale(0); animation: fxRipple .6s ease-out forwards; pointer-events: none; }
@keyframes fxRipple { to { transform: scale(1); opacity: 0; } }
.fx-confetti { position: fixed; inset: 0; pointer-events: none; z-index: 9999; overflow: hidden; }
.fx-confetti i { position: absolute; width: 8px; height: 12px; border-radius: 2px; animation: fxPop 1.1s cubic-bezier(.2,.7,.3,1) forwards; }
@keyframes fxPop { to { transform: translate(var(--dx), calc(var(--dy) + 180px)) rotate(var(--r)); opacity: 0; } }
/* A very soft aurora behind the app */
html.fx body::before { content: ""; position: fixed; inset: -20vmax; z-index: -1; pointer-events: none; opacity: .55;
  background: radial-gradient(40vmax 30vmax at 12% 8%, color-mix(in srgb, var(--teal, #16c9c2) 16%, transparent), transparent 70%), radial-gradient(36vmax 28vmax at 92% 18%, color-mix(in srgb, var(--primary, #6366f1) 14%, transparent), transparent 70%);
  animation: fxDrift 26s ease-in-out infinite alternate; }
@keyframes fxDrift { to { transform: translate3d(2vmax, 3vmax, 0) scale(1.06); } }
/* Hover lift on cards and tools, press feedback on buttons */
@media (hover: hover) { .db-sec .card:hover, .bw-tool:hover, .lp-feat:hover, .sm-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); } }
.btn { transition: transform .15s ease, box-shadow .2s ease, background .2s; } .btn:active { transform: scale(.97); }
.db-hero::before { animation: fxBreathe 7s ease-in-out infinite; }
@keyframes fxBreathe { 50% { transform: scale(1.18); opacity: .7; } }
@media (prefers-reduced-motion: reduce) { .fx-pre { opacity: 1; transform: none; transition: none; } html.fx body::before, .db-hero::before { animation: none; } }
/* v2.3 homepage makeover: signed-in Home */
.db-hero { border-radius: 30px; padding: 22px 18px 18px; }
.db-hero h2 { letter-spacing: -.02em; }
.db-next { backdrop-filter: blur(10px); background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28); transition: transform .2s ease, background .2s; }
.db-next:hover { background: rgba(255,255,255,.24); transform: translateY(-1px); }
.db-next-play { animation: fxPulse 2.6s ease-in-out infinite; }
@keyframes fxPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(255,255,255,.45); } 50% { box-shadow: 0 0 0 10px rgba(255,255,255,0); } }
.db-chips > * { transition: transform .2s ease, box-shadow .2s; } @media (hover: hover) { .db-chips > *:hover { transform: translateY(-2px); } }
.db-method { border-left: 4px solid var(--accent, #f59e0b); }
.db-method small { display: block; }
.db-course-meter i { transition: width 1s cubic-bezier(.2,.8,.2,1); }
/* Public landing page */
.lp-hero2 h1 span { background: linear-gradient(90deg, var(--teal, #16c9c2), #818cf8, var(--accent, #f59e0b), var(--teal, #16c9c2)); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: fxShine 9s linear infinite; }
@keyframes fxShine { to { background-position: 250% 0; } }
.lp-float { animation: fxBob 6s ease-in-out infinite; } .lp-float.f2 { animation-delay: -2s; } .lp-float.f3 { animation-delay: -4s; }
@keyframes fxBob { 50% { transform: translateY(-9px); } }
.lp-face { animation: fxBob 8s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .db-next-play, .lp-hero2 h1 span, .lp-float, .lp-face { animation: none; } }
