/* Alienated Tools — "Aurora" premium skin. Scoped to body[data-skin="aurora"], additive over site.css.
   No dependencies. Reduced-motion aware. Theme-adaptive via color-mix. */

body[data-skin="aurora"] {
  --au-teal: #2dd4bf;
  --au-cyan: #7dd3fc;
  --au-violet: #a78bfa;
  --au-glass: color-mix(in srgb, var(--surface) 64%, transparent);
  --au-line: color-mix(in srgb, var(--text) 12%, transparent);
}

/* ---------- atmospheric background: drifting aurora mesh + film grain ---------- */
body[data-skin="aurora"]::before {
  content: ""; position: fixed; inset: -25%; z-index: -2; pointer-events: none;
  background:
    radial-gradient(38% 38% at 18% 28%, rgba(45, 212, 191, 0.22), transparent 60%),
    radial-gradient(40% 40% at 82% 18%, rgba(167, 139, 250, 0.20), transparent 60%),
    radial-gradient(45% 45% at 60% 88%, rgba(125, 211, 252, 0.18), transparent 60%);
  filter: blur(60px) saturate(120%);
  animation: au-drift 26s ease-in-out infinite alternate;
}
body[data-skin="aurora"]::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@keyframes au-drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-2%, -3%, 0) scale(1.12); }
}

/* ---------- header ---------- */
body[data-skin="aurora"] .site-header {
  background: color-mix(in srgb, var(--bg) 62%, transparent);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid var(--au-line);
}
body[data-skin="aurora"] .site-nav a { position: relative; }
body[data-skin="aurora"] .site-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--au-teal), var(--au-cyan));
  transform: scaleX(0); transform-origin: left; transition: transform 0.22s ease;
}
body[data-skin="aurora"] .site-nav a:hover::after { transform: scaleX(1); }

/* ---------- hero ---------- */
body[data-skin="aurora"] .hero { padding: 86px 0 44px; }
body[data-skin="aurora"] .hero .kicker {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 15px; border-radius: 999px; margin: 0 0 22px;
  background: color-mix(in srgb, var(--au-teal) 9%, transparent);
  border: 1px solid color-mix(in srgb, var(--au-teal) 30%, transparent);
  color: var(--au-teal); letter-spacing: 1px; font-size: 0.74rem;
}
body[data-skin="aurora"] .hero .kicker::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--au-teal);
  box-shadow: 0 0 9px var(--au-teal); animation: au-pulse 2s infinite;
}
body[data-skin="aurora"] .hero h1 {
  font-size: clamp(2.4rem, 6.2vw, 4.3rem); line-height: 1.03; font-weight: 850;
  letter-spacing: -1.8px; margin: 0 0 0.35em; max-width: 17ch;
}
body[data-skin="aurora"] .hero h1 .grad {
  background: linear-gradient(115deg, var(--au-teal) 0%, var(--au-cyan) 48%, var(--au-violet) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
body[data-skin="aurora"] .hero .lede { font-size: 1.18rem; max-width: 58ch; }
body[data-skin="aurora"] .hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }

/* hero stat strip */
body[data-skin="aurora"] .hero-stats {
  display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px;
}
body[data-skin="aurora"] .hero-stats > div {
  flex: 1 1 130px; min-width: 120px; padding: 16px 18px; border-radius: 16px;
  background: var(--au-glass); border: 1px solid var(--au-line);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
body[data-skin="aurora"] .hero-stats b {
  display: block; font-size: 1.85rem; font-weight: 850; line-height: 1;
  background: linear-gradient(120deg, var(--au-teal), var(--au-cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
body[data-skin="aurora"] .hero-stats span {
  display: block; margin-top: 6px; font-size: 0.74rem; text-transform: uppercase;
  letter-spacing: 1px; color: var(--muted); font-weight: 600;
}

/* ---------- buttons ---------- */
body[data-skin="aurora"] .btn-primary {
  background: linear-gradient(120deg, var(--au-teal), #36e3ce);
  border: none; color: #04211c; position: relative; overflow: hidden;
  box-shadow: 0 10px 26px -10px rgba(45, 212, 191, 0.65);
}
body[data-skin="aurora"] .btn-primary:hover {
  transform: translateY(-2px); box-shadow: 0 14px 34px -8px rgba(45, 212, 191, 0.8);
}
body[data-skin="aurora"] .btn-primary::after {
  content: ""; position: absolute; top: 0; left: -65%; width: 42%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-20deg); transition: left 0.6s ease;
}
body[data-skin="aurora"] .btn-primary:hover::after { left: 130%; }
body[data-skin="aurora"] .btn-ghost {
  background: color-mix(in srgb, var(--text) 4%, transparent);
  border: 1px solid var(--au-line); color: var(--text);
}
body[data-skin="aurora"] .btn-ghost:hover {
  border-color: color-mix(in srgb, var(--au-teal) 50%, transparent);
  background: color-mix(in srgb, var(--au-teal) 8%, transparent);
}

/* ---------- section headers ---------- */
body[data-skin="aurora"] #tools h2,
body[data-skin="aurora"] main > section > h2 {
  position: relative; padding-left: 16px;
}
body[data-skin="aurora"] #tools h2::before,
body[data-skin="aurora"] main > section > h2::before {
  content: ""; position: absolute; left: 0; top: 0.18em; bottom: 0.18em; width: 4px;
  border-radius: 4px; background: linear-gradient(180deg, var(--au-teal), var(--au-cyan));
}

/* ---------- tool / feature cards: glass + cursor spotlight + glow ---------- */
body[data-skin="aurora"] .tool-card,
body[data-skin="aurora"] .feature-grid .card {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--text) 4%, transparent), transparent 60%),
    var(--au-glass);
  border: 1px solid var(--au-line); border-radius: 18px;
  backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px);
  position: relative; overflow: hidden;
  transition: transform 0.2s cubic-bezier(0.2, 0.7, 0.3, 1), border-color 0.22s ease, box-shadow 0.28s ease;
}
/* cursor-following spotlight */
body[data-skin="aurora"] .tool-card::before,
body[data-skin="aurora"] .feature-grid .card::before {
  content: ""; position: absolute; inset: 0; z-index: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(circle 220px at var(--mx, 50%) var(--my, 50%),
    rgba(45, 212, 191, 0.18), transparent 60%);
  opacity: 0; transition: opacity 0.25s ease;
}
/* top edge highlight */
body[data-skin="aurora"] .tool-card::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; z-index: 2;
  background: linear-gradient(90deg, transparent, rgba(45, 212, 191, 0.7), transparent);
  opacity: 0; transition: opacity 0.25s ease;
}
body[data-skin="aurora"] .tool-card > *,
body[data-skin="aurora"] .feature-grid .card > * { position: relative; z-index: 1; }
body[data-skin="aurora"] a.tool-card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--au-teal) 50%, transparent);
  box-shadow:
    0 20px 44px -14px rgba(0, 0, 0, 0.65),
    0 0 32px -8px rgba(45, 212, 191, 0.3);
}
body[data-skin="aurora"] .tool-card:hover::before,
body[data-skin="aurora"] .feature-grid .card:hover::before { opacity: 1; }
body[data-skin="aurora"] a.tool-card:hover::after { opacity: 1; }

/* emoji as a glowing token tile */
body[data-skin="aurora"] .tool-card .tool-emoji,
body[data-skin="aurora"] .feature-grid .card .tool-emoji {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 13px; font-size: 1.35rem;
  background: color-mix(in srgb, var(--au-teal) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--au-teal) 28%, transparent);
  box-shadow: inset 0 0 14px color-mix(in srgb, var(--au-teal) 16%, transparent);
}
body[data-skin="aurora"] .tool-card h3 { font-size: 1.1rem; letter-spacing: -0.2px; }

/* ---------- "Live" pill with breathing dot ---------- */
body[data-skin="aurora"] .badge-live {
  display: inline-flex; align-items: center; gap: 5px;
  background: color-mix(in srgb, var(--au-teal) 14%, transparent);
  color: var(--au-teal);
  border: 1px solid color-mix(in srgb, var(--au-teal) 32%, transparent);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
body[data-skin="aurora"] .badge-live::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--au-teal);
  animation: au-pulse 1.9s infinite;
}

/* ---------- interior tool shell (shows on rollout to tool pages) ---------- */
body[data-skin="aurora"] .tool-shell {
  background: var(--au-glass); border: 1px solid var(--au-line);
  backdrop-filter: blur(9px); -webkit-backdrop-filter: blur(9px);
  box-shadow: 0 26px 64px -22px rgba(0, 0, 0, 0.7);
}

/* ---------- footer ---------- */
body[data-skin="aurora"] .site-footer {
  border-top: 1px solid var(--au-line);
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--au-teal) 4%, transparent));
}

@keyframes au-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(45, 212, 191, 0.5); }
  60%      { box-shadow: 0 0 0 6px rgba(45, 212, 191, 0); }
}

@media (prefers-reduced-motion: reduce) {
  body[data-skin="aurora"]::before { animation: none; }
  body[data-skin="aurora"] .badge-live::before,
  body[data-skin="aurora"] .hero .kicker::before { animation: none; }
  body[data-skin="aurora"] .btn-primary::after,
  body[data-skin="aurora"] a.tool-card:hover { transition: none; }
}

@media (max-width: 600px) {
  body[data-skin="aurora"] .hero { padding: 54px 0 28px; }
  body[data-skin="aurora"] .hero-stats > div { flex-basis: 44%; padding: 13px 14px; }
  body[data-skin="aurora"] .hero-stats b { font-size: 1.5rem; }
}

/* ---------- motion choreography (v2): scroll-reveal + headline shimmer ---------- */
body[data-skin="aurora"] .reveal { opacity: 0; transform: translateY(20px); will-change: opacity, transform; }
body[data-skin="aurora"] .reveal.in {
  opacity: 1; transform: none;
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.3, 1);
  transition-delay: var(--rd, 0ms);
}
body[data-skin="aurora"] .hero h1 .grad {
  background: linear-gradient(115deg, #2dd4bf, #7dd3fc, #a78bfa, #7dd3fc, #2dd4bf);
  background-size: 220% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: au-shimmer 7s linear infinite;
}
@keyframes au-shimmer { to { background-position: 220% center; } }

@media (prefers-reduced-motion: reduce) {
  body[data-skin="aurora"] .reveal { opacity: 1; transform: none; }
  body[data-skin="aurora"] .hero h1 .grad { animation: none; }
}
