@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  line-height: 1.5;
  font-weight: 400;

  color-scheme: dark;
  color: #f8fafc;
  background-color: #050508;

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  --color-bg-primary: #050508;
  --color-bg-secondary: #0a0a12;
  --color-bg-tertiary: #111122;
  --color-primary: #8a3ffc;
  --color-primary-glow: rgba(138, 63, 252, 0.15);
  --color-secondary: #00f0ff;
  --color-text-primary: #f8fafc;
  --color-text-secondary: #94a3b8;
  --color-text-muted: #64748b;
  --border-glass: rgba(255, 255, 255, 0.08);
  --bg-glass: rgba(10, 10, 18, 0.7);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background-color: var(--color-bg-primary);
  color: var(--color-text-primary);
}

/* Background glow effects */

.radial-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--color-primary-glow) 0%, rgba(5, 5, 8, 0) 70%);
  top: -200px;
  left: -200px;
  pointer-events: none;
  z-index: 0;
  filter: blur(80px);
}

.radial-glow-right {
  position: absolute;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.08) 0%, rgba(5, 5, 8, 0) 70%);
  bottom: -200px;
  right: -200px;
  pointer-events: none;
  z-index: 0;
  filter: blur(100px);
}

/* Scrollbar styling */

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg-primary);
}

::-webkit-scrollbar-thumb {
  background: rgba(138, 63, 252, 0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(138, 63, 252, 0.6);
}

/* Glassmorphism Classes */

.glass {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
}

.glass-hover {
  transition: var(--transition-smooth);
}

.glass-hover:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(138, 63, 252, 0.3);
  box-shadow: 0 10px 30px -10px rgba(138, 63, 252, 0.15);
  transform: translateY(-4px);
}

/* Text Gradients */

.text-gradient {
  background: linear-gradient(135deg, #ffffff 30%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-purple-blue {
  background: linear-gradient(135deg, #a78bfa 0%, #8a3ffc 50%, #00f0ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Animations */

@keyframes pulseGlow {
  0%, 100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

.animate-pulse-glow {
  animation: pulseGlow 8s infinite alternate ease-in-out;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.animate-float {
  animation: float 6s infinite ease-in-out;
}

/* Base resets & links */

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

a:hover {
  color: #ffffff;
}

/* ==========================================================================
   Tailwind-like utility class mappings (Vanilla CSS implementations)
   ========================================================================== */

/* Layout & Flexbox */

.flex { display: flex; }

.flex-col { flex-direction: column; }

.items-center { align-items: center; }

.justify-between { justify-content: space-between; }

.justify-center { justify-content: center; }

.hidden { display: none; }

/* Grid & Gaps */

.grid { display: grid; }

.gap-2 { gap: 0.5rem; }

.gap-3 { gap: 0.75rem; }

.gap-4 { gap: 1rem; }

.gap-6 { gap: 1.5rem; }

.gap-8 { gap: 2rem; }

.gap-12 { gap: 3rem; }

.gap-16 { gap: 4rem; }

/* Width & Max Widths */

.w-full { width: 100%; }

.max-w-7xl { max-width: 80rem; }

.max-w-5xl { max-width: 64rem; }

.max-w-4xl { max-width: 56rem; }

.max-w-2xl { max-width: 42rem; }

.max-w-lg { max-width: 32rem; }

.max-w-md { max-width: 28rem; }

.mx-auto { margin-left: auto; margin-right: auto; }

.text-center { text-align: center; }

/* Paddings */

.p-1 { padding: 0.25rem; }

.p-3\.5 { padding: 0.875rem; }

.p-4 { padding: 1rem; }

.p-8 { padding: 2rem; }

.p-10 { padding: 2.5rem; }

.p-12 { padding: 3rem; }

.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }

.px-4 { padding-left: 1rem; padding-right: 1rem; }

.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }

.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }

.px-8 { padding-left: 2rem; padding-right: 2rem; }

.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }

.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }

.py-3\.5 { padding-top: 0.875rem; padding-bottom: 0.875rem; }

.py-4 { padding-top: 1rem; padding-bottom: 1rem; }

.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }

.py-12 { padding-top: 3rem; padding-bottom: 3rem; }

.py-24 { padding-top: 6rem; padding-bottom: 6rem; }

.py-28 { padding-top: 7rem; padding-bottom: 7rem; }

.pt-10 { padding-top: 2.5rem; }

.pt-12 { padding-top: 3rem; }

.pt-24 { padding-top: 6rem; }

.pb-12 { padding-bottom: 3rem; }

/* Margins */

.mb-1 { margin-bottom: 0.25rem; }

.mb-2 { margin-bottom: 0.5rem; }

.mb-4 { margin-bottom: 1rem; }

.mb-6 { margin-bottom: 1.5rem; }

.mb-8 { margin-bottom: 2rem; }

.mb-10 { margin-bottom: 2.5rem; }

.mb-12 { margin-bottom: 3rem; }

.mb-16 { margin-bottom: 4rem; }

.mb-20 { margin-bottom: 5rem; }

.mt-0.5 { margin-top: 0.125rem; }

.mt-20 { margin-top: 5rem; }

/* Stacked child spacing */

.space-y-4 > * + * { margin-top: 1rem; }

.space-y-5 > * + * { margin-top: 1.25rem; }

.space-y-6 > * + * { margin-top: 1.5rem; }

/* Borders & Radius */

.border { border: 1px solid var(--border-glass); }

.border-t { border-top: 1px solid var(--border-glass); }

.rounded-md { border-radius: 0.375rem; }

.rounded-xl { border-radius: 0.75rem; }

.rounded-2xl { border-radius: 1rem; }

.rounded-3xl { border-radius: 1.5rem; }

.rounded-full { border-radius: 9999px; }

/* Typography */

.font-extrabold { font-weight: 800; }

.font-bold { font-weight: 700; }

.font-semibold { font-weight: 600; }

.font-medium { font-weight: 500; }

.font-normal { font-weight: 400; }

.tracking-wide { letter-spacing: 0.025em; }

.tracking-wider { letter-spacing: 0.05em; }

.tracking-widest { letter-spacing: 0.1em; }

.text-xs { font-size: 0.75rem; }

.text-sm { font-size: 0.875rem; }

.text-base { font-size: 1rem; }

.text-lg { font-size: 1.125rem; }

.text-xl { font-size: 1.25rem; }

.text-2xl { font-size: 1.5rem; }

.text-3xl { font-size: 1.875rem; }

.text-4xl { font-size: 2.25rem; }

.text-5xl { font-size: 3rem; }

.text-7xl { font-size: 4.5rem; }

.uppercase { text-transform: uppercase; }

.no-underline { text-decoration: none; }

.leading-none { line-height: 1; }

.leading-relaxed { line-height: 1.625; }

/* Interactive colors & states */

.text-white { color: #ffffff; }

.text-\[\#94a3b8\] { color: #94a3b8; }

.text-\[\#64748b\] { color: #64748b; }

.text-\[\#a78bfa\] { color: #a78bfa; }

.text-\[\#8a3ffc\] { color: #8a3ffc; }

.text-\[\#00f0ff\] { color: #00f0ff; }

.text-\[\#cbd5e1\] { color: #cbd5e1; }

.bg-\[\#0a0a12\] { background-color: #0a0a12; }

.bg-\[\#050508\] { background-color: #050508; }

.fixed { position: fixed; }

.relative { position: relative; }

.absolute { position: absolute; }

.top-0 { top: 0; }

.left-0 { left: 0; }

.right-0 { right: 0; }

.bottom-0 { bottom: 0; }

.z-50 { z-index: 50; }

.z-10 { z-index: 10; }

.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }

.pointer-events-none { pointer-events: none; }

.overflow-hidden { overflow: hidden; }

/* Transitions & Hovers */

.transition-all { transition: all 0.3s ease; }

.duration-200 { transition-duration: 200ms; }

.duration-300 { transition-duration: 300ms; }

.hover\:opacity-90:hover { opacity: 0.9; }

.hover\:opacity-95:hover { opacity: 0.95; }

.cursor-pointer { cursor: pointer; }

.border-0 { border: 0; }

.group-hover\:translate-x-1 {
  transition: transform 0.2s ease;
}

.group:hover .group-hover\:translate-x-1 {
  transform: translateX(4px);
}

/* Forms & inputs */

input, textarea {
  font-family: inherit;
}

.focus\:outline-none:focus { outline: none; }

.focus\:border-\[\#8a3ffc\]:focus { border-color: #8a3ffc; }

.focus\:ring-1:focus { box-shadow: 0 0 0 1px #8a3ffc; }

/* Grid columns & spans */

.col-span-2 { grid-column: span 2 / span 2; }

/* Media Queries / Responsive */

@media (min-width: 640px) {
  .sm\:w-auto { width: auto; }
  .sm\:flex-row { flex-direction: row; }
}

@media (min-width: 768px) {
  .md\:flex { display: flex; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:col-span-1 { grid-column: span 1 / span 1; }
  .md\:gap-12 { gap: 3rem; }
  .md\:p-12 { padding: 3rem; }
  .md\:text-7xl { font-size: 4.5rem; }
  .md\:text-xl { font-size: 1.25rem; }
  .md\:text-3xl { font-size: 1.875rem; }
  .md\:text-5xl { font-size: 3rem; }
  .hidden { display: none; }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ==========================================================================
   Enhanced Animations & Visual Upgrades
   ========================================================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes shimmer {
  from { transform: translateX(-150%); }
  to   { transform: translateX(150%); }
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes spinSlowReverse {
  from { transform: rotate(0deg); }
  to   { transform: rotate(-360deg); }
}

@keyframes orbPulse {
  0%, 100% { opacity: 0.35; transform: scale(1); }
  50%       { opacity: 0.6;  transform: scale(1.08); }
}

@keyframes countUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes borderGlow {
  0%   { box-shadow: 0 0 0 0 rgba(138, 63, 252, 0); }
  50%  { box-shadow: 0 0 20px 4px rgba(138, 63, 252, 0.2); }
  100% { box-shadow: 0 0 0 0 rgba(138, 63, 252, 0); }
}

@keyframes noiseDrift {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-2%, 1%); }
  50%  { transform: translate(1%, -2%); }
  75%  { transform: translate(-1%, 2%); }
  100% { transform: translate(0, 0); }
}

/* Entrance animation utilities */

.animate-fade-in-up {
  opacity: 0;
  animation: fadeInUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.delay-100 { animation-delay: 0.1s; }

.delay-200 { animation-delay: 0.2s; }

.delay-300 { animation-delay: 0.3s; }

.delay-400 { animation-delay: 0.4s; }

.delay-500 { animation-delay: 0.5s; }

.delay-600 { animation-delay: 0.6s; }

.delay-700 { animation-delay: 0.7s; }

/* Animated gradient text */

.text-gradient-animated {
  background: linear-gradient(270deg, #ffffff 0%, #a78bfa 30%, #00f0ff 60%, #8a3ffc 80%, #ffffff 100%);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 7s ease infinite;
}

/* Shimmer button effect */

.btn-shimmer {
  position: relative;
  overflow: hidden;
}

.btn-shimmer::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  transform: translateX(-150%);
  transition: none;
}

.btn-shimmer:hover::after {
  animation: shimmer 0.55s ease forwards;
}

/* Glowing card on hover */

.card-glow {
  transition: box-shadow 0.4s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.4s ease;
}

.card-glow:hover {
  box-shadow: 0 0 0 1px rgba(138, 63, 252, 0.25), 0 20px 60px -10px rgba(138, 63, 252, 0.15);
  transform: translateY(-6px);
  border-color: rgba(138, 63, 252, 0.2) !important;
}

/* Rotating decorative rings */

.ring-spin {
  animation: spinSlow 18s linear infinite;
}

.ring-spin-reverse {
  animation: spinSlowReverse 24s linear infinite;
}

/* Animated orb */

.orb-pulse {
  animation: orbPulse 10s ease-in-out infinite;
}

/* Stats count animation */

.stat-animate {
  animation: countUp 0.6s ease forwards;
}

/* Scrollbar already styled above */

/* Mobile menu hamburger */

.hamburger-btn {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  transition: background 0.2s ease;
  background: transparent;
  border: none;
}

.hamburger-btn:hover {
  background: rgba(255, 255, 255, 0.05);
}

.hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: #94a3b8;
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

.hamburger-btn.open .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  background: #a78bfa;
}

.hamburger-btn.open .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger-btn.open .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  background: #a78bfa;
}

/* Mobile navigation drawer */

.mobile-nav {
  position: fixed;
  top: 73px;
  left: 0;
  right: 0;
  background: rgba(5, 5, 8, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transform: translateY(-110%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 49;
  padding: 1.5rem 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-nav.open {
  transform: translateY(0);
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #94a3b8;
  text-decoration: none;
  transition: all 0.2s ease;
}

.mobile-nav-link:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.mobile-nav-link svg {
  flex-shrink: 0;
}

/* Feature pill tags */

.feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.8125rem;
  color: #cbd5e1;
  transition: all 0.25s ease;
}

.feature-pill:hover {
  background: rgba(138, 63, 252, 0.06);
  border-color: rgba(138, 63, 252, 0.2);
  color: #fff;
}

/* Stat card */

.stat-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 1.5rem 1.25rem;
  text-align: center;
  transition: all 0.3s ease;
}

.stat-card:hover {
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(138, 63, 252, 0.2);
  transform: translateY(-3px);
}

/* Social icon button */

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #64748b;
  transition: all 0.25s ease;
}

.social-btn:hover {
  background: rgba(138, 63, 252, 0.1);
  border-color: rgba(138, 63, 252, 0.3);
  color: #a78bfa;
  transform: translateY(-2px);
}

/* Noise texture overlay */

.noise-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* Header scroll states */

.header-scrolled {
  background: rgba(5, 5, 8, 0.95) !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05), 0 8px 32px -8px rgba(0, 0, 0, 0.5);
}

/* Gradient line separator */

.gradient-separator {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(138, 63, 252, 0.4), rgba(0, 240, 255, 0.3), transparent);
}

/* Tag / badge pill */

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 99px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.93) translateY(12px); }
  to   { opacity: 1; transform: scale(1)    translateY(0); }
}

/* Translate utilities */

.-translate-x-1\/2 { transform: translateX(-50%); }

.translate-x-1 { transform: translateX(0.25rem); }

/* ==========================================================================
   Responsive — Desktop nav show/hide
   ========================================================================== */

.desktop-nav {
  display: none !important;
}

.hamburger-toggle {
  display: flex !important;
}

.nav-cta-text {
  display: none;
}

@media (min-width: 768px) {
  .desktop-nav {
    display: flex !important;
  }
  .hamburger-toggle {
    display: none !important;
  }
  .nav-cta-text {
    display: inline;
  }
}

/* ==========================================================================
   Responsive — global layout fixes
   ========================================================================== */

/* Hero responsive */

@media (max-width: 640px) {
  .hero-cta-group {
    flex-direction: column !important;
    width: 100% !important;
  }
  .hero-cta-group a {
    width: 100% !important;
    min-width: unset !important;
  }
}

/* Products grid */

@media (max-width: 640px) {
  .products-grid {
    grid-template-columns: 1fr !important;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.75rem !important;
  }
}

/* Footer grid */

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
  }
  .footer-bottom {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 1rem !important;
  }
  .footer-links-nav {
    display: none !important;
  }
}

/* Contact items on small */

@media (max-width: 480px) {
  .contact-items {
    gap: 0.625rem !important;
  }
}

/* Products banner responsive */

@media (max-width: 700px) {
  .future-banner {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
  .future-banner-cta {
    width: 100% !important;
    justify-content: center !important;
  }
}
