/* The home page's look on the landing and tool pages (21 Nov 2026): aurora behind the top of the page,
   a radar behind the hero picture, cards that lift with a glow that follows the pointer, and a staggered
   reveal. motion.js adds the reveal classes; without it, or with "reduce motion", everything just shows. */
main#main { position: relative; isolation: isolate; overflow-x: clip; }
.aurora { position: absolute; left: 0; right: 0; top: 0; height: min(900px, 120vh); z-index: -1; overflow: hidden; pointer-events: none;
  -webkit-mask: linear-gradient(180deg, #000 55%, transparent); mask: linear-gradient(180deg, #000 55%, transparent); }
.aurora span { position: absolute; width: 70vmax; height: 46vmax; border-radius: 50%; opacity: .5; will-change: transform;
  background: radial-gradient(closest-side, var(--c), transparent 70%); }
.aurora span:nth-child(1) { --c: rgba(41, 230, 255, .40); left: -20vmax; top: -22vmax; }
.aurora span:nth-child(2) { --c: rgba(15, 184, 216, .32); right: -24vmax; top: -12vmax; }
.aurora span:nth-child(3) { --c: rgba(0, 110, 255, .26); left: 12vmax; top: 18vmax; }
.aurora span:nth-child(4) { --c: rgba(61, 255, 168, .14); right: 0; top: 24vmax; width: 50vmax; height: 34vmax; }

/* radar behind the hero picture */
.lp-hero-shot, .t-shot { position: relative; isolation: isolate; }
.radar { position: absolute; z-index: -1; left: 50%; top: 45%; width: 125%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none;
  background: repeating-radial-gradient(circle, transparent 0 calc(12.5% - 1px), rgba(41, 230, 255, .22) calc(12.5% - 1px) 12.5%), radial-gradient(circle, rgba(41, 230, 255, .08), transparent 70%);
  -webkit-mask: radial-gradient(circle, #000 55%, transparent 71%); mask: radial-gradient(circle, #000 55%, transparent 71%); overflow: hidden; }
.radar::before, .radar::after { content: ""; position: absolute; background: rgba(41, 230, 255, .12); }
.radar::before { left: 50%; top: 0; bottom: 0; width: 1px; }
.radar::after { top: 50%; left: 0; right: 0; height: 1px; }
.radar .sweep { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, transparent 70%, rgba(41, 230, 255, .07) 85%, rgba(41, 230, 255, .26) 99.4%, rgba(125, 243, 255, .55) 100%); }
.radar i { position: absolute; left: var(--x); top: var(--y); width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: var(--cyan-2); box-shadow: 0 0 12px var(--cyan); opacity: .25; }

/* cards: glow that follows the pointer (motion.js sets --mx / --my) */
.lp-item, .lp-more .card, .cards > .card, .lp-cta, .tool-card, .paywall { position: relative; isolation: isolate; }
.lp-item::after, .lp-more .card::after, .cards > .card::after, .tool-card::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; opacity: 0; transition: opacity .3s; pointer-events: none;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(41, 230, 255, .13), transparent 60%); }
.lp-item:hover::after, .lp-more .card:hover::after, .cards > .card:hover::after, .tool-card:hover::after { opacity: 1; }
.lp-hero-shot img { position: relative; }

@media (prefers-reduced-motion: no-preference) {
  .aurora span { animation: aur 22s ease-in-out infinite alternate; }
  .aurora span:nth-child(2) { animation-duration: 27s; animation-delay: -6s; }
  .aurora span:nth-child(3) { animation-duration: 31s; animation-delay: -12s; }
  .aurora span:nth-child(4) { animation-duration: 25s; animation-delay: -3s; }
  @keyframes aur { 0% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); } 50% { transform: translate3d(8vmax, 4vmax, 0) rotate(14deg) scale(1.12); } 100% { transform: translate3d(-6vmax, 7vmax, 0) rotate(-10deg) scale(.94); } }
  .radar .sweep { animation: sweep 4s linear infinite; }
  @keyframes sweep { to { transform: rotate(360deg); } }
  .radar i { animation: blip 4s ease-out infinite; animation-delay: var(--d); }
  @keyframes blip { 0% { opacity: .2; transform: scale(.6); } 8% { opacity: 1; transform: scale(1.5); } 40%, 100% { opacity: .2; transform: scale(.8); } }

  /* hero: a short staggered entrance on load */
  .lp-hero-text > *, .tool-head > *, .post-head > *, .blog-hero > * { animation: hero-in .7s var(--ease) both; }
  .lp-hero-text > :nth-child(2), .tool-head > :nth-child(2) { animation-delay: .07s; }
  .lp-hero-text > :nth-child(3), .tool-head > :nth-child(3) { animation-delay: .14s; }
  .lp-hero-text > :nth-child(4), .tool-head > :nth-child(4) { animation-delay: .21s; }
  .lp-hero-text > :nth-child(n+5), .tool-head > :nth-child(n+5) { animation-delay: .28s; }
  .lp-hero-shot { animation: shot-in 1s var(--ease) .2s both; }
  @keyframes hero-in { from { opacity: 0; transform: translateY(16px); } }
  @keyframes shot-in { from { opacity: 0; transform: perspective(1400px) rotateX(9deg) translateY(30px); } }
  .lp-hero-shot img { animation: floaty 7s ease-in-out 1.4s infinite; }
  @keyframes floaty { 50% { transform: translateY(-7px); } }

  /* scroll reveal (classes from motion.js; never leaves content hidden) */
  .rv:not(.in) { opacity: 0; }
  .rv.in { animation: rv-in .6s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 70ms); }
  @keyframes rv-in { from { opacity: 0; transform: translateY(24px) scale(.985); } }

  .lp-item, .lp-more .card, .tool-card, .steps li, .lp-faq details, .faq details { transition: transform .35s var(--ease), border-color .25s, box-shadow .35s; }
  .lp-item:hover, .tool-card:hover, .steps li:hover { transform: translateY(-4px); border-color: var(--line-hi); box-shadow: 0 20px 46px rgba(0, 0, 0, .45), 0 0 30px rgba(41, 230, 255, .1); }
  .lp-faq details:hover, .faq details:hover { border-color: var(--line-hi); }
  .lp-cta { background-size: 200% 200%; animation: cta-glow 12s ease-in-out infinite alternate; }
  @keyframes cta-glow { to { background-position: 100% 100%; } }
}
@media (max-width: 900px) { .radar { width: 112%; } }
