/* ==========================================================================
   ROTRIXO THEME STYLESHEET
   Design System: Premium B2B SaaS, Dark Cyberpunk
   Palette: Near-Black (#05060A) | Neon Purple (#8B5CF6) | Emerald (#10F5A0)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@500;600;700;800&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  --bg-primary: #05060A;
  --bg-secondary: #0A0D16;
  --bg-card: rgba(13, 17, 28, 0.72);
  --bg-card-hover: rgba(19, 25, 42, 0.85);
  
  --accent-purple: #8B5CF6;
  --accent-purple-light: #A855F7;
  --accent-purple-dark: #6D28D9;
  
  --accent-emerald: #10F5A0;
  --accent-emerald-soft: #34D399;
  --accent-emerald-dark: #059669;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow-purple: rgba(139, 92, 246, 0.35);
  --border-glow-emerald: rgba(16, 245, 160, 0.35);

  --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* Base Reset & Typography */
html {
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: #E2E8F0;
  font-family: var(--font-body);
}

body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  letter-spacing: -0.025em;
}

code, pre, .font-mono {
  font-family: var(--font-mono);
}

/* Accessibility: Skip to Content */
.skip-to-content {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--accent-purple);
  color: #FFFFFF;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  z-index: 9999;
  transition: top 0.2s ease-in-out;
  text-decoration: none;
}

.skip-to-content:focus {
  top: 1rem;
  outline: 2px solid var(--accent-emerald);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 9px;
}
::-webkit-scrollbar-track {
  background: #05060A;
}
::-webkit-scrollbar-thumb {
  background: #1E2433;
  border-radius: 5px;
  border: 2px solid #05060A;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-purple);
}

/* Subtle Cyber Background Grid */
.cyber-grid-bg {
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
}

/* Ambient Radial Glows */
.ambient-glow-purple {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.18) 0%, rgba(139, 92, 246, 0) 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

.ambient-glow-emerald {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 245, 160, 0.14) 0%, rgba(16, 245, 160, 0) 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

/* Floating animation for glowing orbs */
@keyframes floatSlow {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(25px, -35px) scale(1.08);
  }
}

.animate-float-slow {
  animation: floatSlow 12s ease-in-out infinite;
}

/* Glassmorphism Cards */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border-subtle);
  border-radius: 1.25rem;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(139, 92, 246, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px -10px rgba(139, 92, 246, 0.18);
}

.glass-card-emerald:hover {
  border-color: rgba(16, 245, 160, 0.4);
  box-shadow: 0 16px 36px -10px rgba(16, 245, 160, 0.18);
}

/* Glowing Buttons with Hover Lift */
.glow-btn-primary {
  background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 50%, #10F5A0 130%);
  color: #FFFFFF;
  font-weight: 600;
  border-radius: 0.75rem;
  padding: 0.85rem 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.25s ease-out;
  box-shadow: 0 0 20px -3px rgba(139, 92, 246, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.2);
  min-height: 44px;
}

.glow-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px 2px rgba(139, 92, 246, 0.65), 0 0 15px rgba(16, 245, 160, 0.4);
  filter: brightness(1.08);
}

.glow-btn-secondary {
  background: rgba(15, 20, 32, 0.75);
  color: #F8FAFC;
  font-weight: 600;
  border-radius: 0.75rem;
  padding: 0.85rem 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.25s ease-out;
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  min-height: 44px;
}

.glow-btn-secondary:hover {
  background: rgba(24, 30, 48, 0.9);
  border-color: rgba(16, 245, 160, 0.5);
  color: #10F5A0;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -6px rgba(16, 245, 160, 0.2);
}

/* Gradient Text */
.text-gradient-purple-emerald {
  background: linear-gradient(135deg, #A855F7 0%, #C084FC 40%, #10F5A0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-emerald {
  background: linear-gradient(135deg, #10F5A0 0%, #34D399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Animated Conic Ring for Profile Frame & Special Cards */
@keyframes spinConic {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.conic-glow-border {
  position: relative;
  border-radius: 1.5rem;
  padding: 2px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
}

.conic-glow-border::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    transparent,
    rgba(139, 92, 246, 0.9),
    rgba(16, 245, 160, 0.9),
    transparent 65%
  );
  animation: spinConic 6s linear infinite;
  z-index: 0;
}

.conic-glow-border > .conic-content {
  position: relative;
  z-index: 1;
  background: #090C15;
  border-radius: calc(1.5rem - 2px);
}

/* Animated Pricing Gradient Border */
@keyframes animatedGradientFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.pricing-gradient-border {
  position: relative;
  border-radius: 1.5rem;
  background: linear-gradient(135deg, #8B5CF6, #10F5A0, #3B82F6, #8B5CF6);
  background-size: 300% 300%;
  animation: animatedGradientFlow 6s ease infinite;
  padding: 2px;
}

/* Scroll-Reveal Transitions */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Delay helpers */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }

/* Pulse beacon */
@keyframes beaconPulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 245, 160, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(16, 245, 160, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 245, 160, 0);
  }
}

.pulse-beacon {
  width: 10px;
  height: 10px;
  background-color: #10F5A0;
  border-radius: 50%;
  display: inline-block;
  animation: beaconPulse 2s infinite;
}

/* Nav Link Hover & Active */
.nav-link {
  position: relative;
  color: #94A3B8;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
}

.nav-link:hover {
  color: #FFFFFF;
}

.nav-link.active {
  color: #10F5A0;
  background: rgba(16, 245, 160, 0.08);
  font-weight: 600;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0px;
  left: 20%;
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, #8B5CF6, #10F5A0);
  border-radius: 2px;
}

/* Reduce Motion */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  .animate-float-slow, .conic-glow-border::before, .pricing-gradient-border {
    animation: none !important;
  }
}

