/* AExporter Pro site ambience — aurora glow behind frosted glass, glass cuts + fireworks, glass cards, custom cursor, back-to-top. Pairs with ambient.js. */

/* ── aurora glow (low-res canvas, upscaled = soft) behind a frosted-glass pane ── */
.amb-canvas, .amb-glass { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.amb-canvas { width: 100vw; height: 100vh; display: block; }
.amb-glass {
  -webkit-backdrop-filter: blur(34px) saturate(140%);
  backdrop-filter: blur(34px) saturate(140%);
  background: linear-gradient(180deg, rgba(255, 255, 255, .035) 0%, rgba(255, 255, 255, .012) 40%, rgba(255, 255, 255, 0) 100%);
}
/* fine frosted grain on its own layer (opacity here must not fade the backdrop blur) */
.amb-glass::after {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .05; mix-blend-mode: overlay;
}

/* pointer FX (glass cuts + fireworks) — over the glass, still behind page content */
.amb-fx { position: fixed; inset: 0; z-index: -1; pointer-events: none; width: 100vw; height: 100vh; display: block; }

/* keep the scrollbar's space reserved so pages don't shift sideways when the splash locks scrolling */
html { scrollbar-gutter: stable; }

/* no accidental text selection while click-dragging; fields and the redemption code stay selectable */
html, body { -webkit-user-select: none; user-select: none; }
input, textarea, [contenteditable="true"] { -webkit-user-select: text; user-select: text; }
.paddle-code { -webkit-user-select: all; user-select: all; }
img, a { -webkit-user-drag: none; }

/* glass surfaces let the glow show through */
.plan, .use, .buy-note div, .ea {
  background: rgba(20, 20, 23, .58) !important;
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
}

/* ── rounded custom cursor ──
   Swap in your own artwork later: set --cursor-img on :root, e.g.
   :root { --cursor-img: url("/assets/cursor.png"); --cursor-size: 28px; } */
html.has-cursor, html.has-cursor * { cursor: none !important; }
html.has-cursor.cur-native, html.has-cursor.cur-native * { cursor: auto !important; }
html.has-cursor input, html.has-cursor textarea { cursor: text !important; }

.cur-dot, .cur-ring {
  position: fixed; left: 0; top: 0; z-index: 2147483000; pointer-events: none;
  opacity: 0; transition: opacity .2s ease;
}
html.cur-on .cur-dot, html.cur-on .cur-ring { opacity: 1; }
html.cur-native .cur-dot, html.cur-native .cur-ring { opacity: 0; }

.cur-dot {
  width: var(--cursor-size, 8px); height: var(--cursor-size, 8px); margin: calc(var(--cursor-size, 8px) / -2) 0 0 calc(var(--cursor-size, 8px) / -2);
  border-radius: 50%;
  background: var(--cursor-img, none) center / contain no-repeat, #ffd400;
  mix-blend-mode: difference;
}
:root[style*="--cursor-img"] .cur-dot { background-color: transparent; mix-blend-mode: normal; }

.cur-ring {
  width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%;
  border: 1.5px solid rgba(255, 212, 0, .55);
  background: rgba(255, 212, 0, 0);
  transition: opacity .2s ease, width .25s ease, height .25s ease, margin .25s ease, background-color .25s ease, border-color .25s ease;
  mix-blend-mode: difference;
}
html.cur-hover .cur-ring { width: 58px; height: 58px; margin: -29px 0 0 -29px; background: rgba(255, 212, 0, .14); border-color: #ffd400; }
html.cur-down .cur-ring { width: 26px; height: 26px; margin: -13px 0 0 -13px; }

/* ── back to top ── */
.to-top {
  position: fixed; right: 26px; bottom: 26px; z-index: 60;
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  color: #ffd400; border: 1px solid rgba(255, 212, 0, .35);
  background: rgba(20, 20, 23, .55);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
  opacity: 0; transform: translateY(14px) scale(.9); pointer-events: none;
  transition: opacity .3s ease, transform .3s ease, background-color .2s ease, border-color .2s ease;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: rgba(255, 212, 0, .16); border-color: #ffd400; }
.to-top:focus-visible { outline: 2px solid #ffd400; outline-offset: 3px; }
@media (max-width: 640px) { .to-top { right: 16px; bottom: 16px; width: 44px; height: 44px; } }
@media (prefers-reduced-motion: reduce) { .to-top { transition: opacity .2s ease; transform: none; } }

/* ── glass-cut easter egg: logo wiggles after a 2s hover ("click me"), toast confirms the mode ── */
.nav .brand.ae-armed img { animation: ae-wiggle .5s ease-in-out infinite; filter: drop-shadow(0 0 10px rgba(255, 212, 0, .65)); }
@keyframes ae-wiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-12deg) scale(1.06); }
  75% { transform: rotate(12deg) scale(1.06); }
}
.ae-toast {
  position: fixed; left: 24px; top: 78px; z-index: 70; max-width: min(420px, calc(100vw - 48px));
  padding: 10px 14px; border-radius: 12px; font-size: 13.5px; line-height: 1.5; color: #f3f0e6;
  background: rgba(20, 20, 23, .62); border: 1px solid rgba(255, 212, 0, .35);
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .45);
  opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .25s ease, transform .25s ease;
}
.ae-toast.show { opacity: 1; transform: none; }
html.cut-mode .cur-ring { border-style: dashed; }
@media (prefers-reduced-motion: reduce) { .nav .brand.ae-armed img { animation: none; } }

