/* === inyx.io Custom Styles === */

/* Typography */
* { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; }

/* ── Animations ─────────────────────────────────────────────────────────── */
@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50%       { background-position: 100% 50%; }
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-12px); }
}
@keyframes pulse-glow {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50%       { opacity: 0.8; transform: scale(1.05); }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}
@keyframes blob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(30px, -50px) scale(1.1); }
  66%       { transform: translate(-20px, 20px) scale(0.9); }
}
@keyframes particles {
  0%   { transform: translate(0, 0); opacity: 1; }
  100% { transform: translate(var(--tx, 50px), var(--ty, -80px)); opacity: 0; }
}

.animate-fade-up    { animation: fade-up 0.8s ease-out both; }
.animate-fade-up-d1 { animation: fade-up 0.8s ease-out 0.1s both; }
.animate-fade-up-d2 { animation: fade-up 0.8s ease-out 0.2s both; }
.animate-fade-up-d3 { animation: fade-up 0.8s ease-out 0.3s both; }
.animate-blob               { animation: blob 7s infinite; }
.animation-delay-2000       { animation-delay: 2s; }
.animation-delay-4000       { animation-delay: 4s; }

/* ── Section backgrounds ────────────────────────────────────────────────── */
.section-dark {
  background: linear-gradient(180deg, #0a0e1a 0%, #0f172a 100%);
  color: white;
  position: relative;
}
.section-light {
  /* "light" = slightly lighter dark — NOT white */
  background: #111827; /* gray-900 */
  color: white;
  position: relative;
}

/* ── Glass ──────────────────────────────────────────────────────────────── */
.glass {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.1);
}
.glass-card {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.12);
  transition: all 0.3s cubic-bezier(.4,0,.2,1);
}
.glass-card:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

/* ── Gradient text ──────────────────────────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, #60a5fa, #818cf8, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Buttons ────────────────────────────────────────────────────────────── */
.gradient-button {
  background: linear-gradient(135deg, #3b82f6, #6366f1, #9333ea);
  color: white;
  display: inline-block;
  transition: all 0.3s;
}
.gradient-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(99,102,241,0.4);
}
.ghost-button {
  background: transparent;
  color: #d1d5db;
  border: 2px solid rgba(255,255,255,0.25);
  display: inline-block;
  transition: all 0.3s;
}
.ghost-button:hover {
  border-color: #60a5fa;
  color: #60a5fa;
  transform: translateY(-2px);
}
.btn-primary {
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  color: white;
  transition: all 0.3s;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(37,99,235,0.4);
}
.btn-ghost {
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(8px);
  color: white;
  transition: all 0.3s;
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.3);
  transform: translateY(-2px);
}

/* ── Orbs / particles ───────────────────────────────────────────────────── */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: pulse-glow 6s ease-in-out infinite;
  pointer-events: none;
}
.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(147,197,253,0.4);
  border-radius: 50%;
  pointer-events: none;
  animation: particles 10s ease-in-out infinite;
}

/* ── Pricing ────────────────────────────────────────────────────────────── */
.pricing-glass {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.35s cubic-bezier(.4,0,.2,1);
}
.pricing-glass:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 80px rgba(37,99,235,0.15);
}
.pricing-popular {
  border: 2px solid #6366f1;
  box-shadow: 0 0 0 4px rgba(99,102,241,0.15), 0 20px 60px rgba(99,102,241,0.2);
}

/* ── Scroll reveal ──────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Admin ──────────────────────────────────────────────────────────────── */
.admin-sidebar {
  background: #0f172a;
  min-height: 100vh;
}
.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 10px;
  color: #94a3b8;
  font-size: 14px;
  transition: all 0.2s;
}
.admin-nav-item:hover,
.admin-nav-item.active {
  background: rgba(255,255,255,0.08);
  color: white;
}

/* ── Docs prose ─────────────────────────────────────────────────────────── */
.prose h1 { font-size: 2rem; font-weight: 800; margin-bottom: 1rem; color: #111827; }
.prose h2 { font-size: 1.5rem; font-weight: 700; margin-top: 2.5rem; margin-bottom: 0.75rem; color: #1f2937; }
.prose p  { color: #4b5563; line-height: 1.8; margin-bottom: 1rem; }
.prose code { background: #f3f4f6; padding: 2px 6px; border-radius: 4px; font-size: 0.875em; }
.prose pre { background: #1e293b; color: #e2e8f0; padding: 1.25rem; border-radius: 12px; overflow-x: auto; margin: 1.5rem 0; }
.prose pre code { background: transparent; padding: 0; }
.prose ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; }
.prose li { color: #4b5563; margin-bottom: 0.5rem; }
.prose a  { color: #2563eb; text-decoration: underline; }

/* ── Scrollbar ──────────────────────────────────────────────────────────── */
::-webkit-scrollbar       { width: 8px; }
::-webkit-scrollbar-track { background: #0f172a; }
::-webkit-scrollbar-thumb { background: #334155; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #475569; }
