@import url('https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css');
@import url('https://cdn.jsdelivr.net/npm/remixicon@2.5.0/fonts/remixicon.css');

:root {
  --nx-void: #0a0e1a;
  --nx-deep: #10152b;
  --nx-surface: #161d3a;
  --nx-primary: #6C4FF6;
  --nx-primary-dark: #4B32C3;
  --nx-cyan: #26E5D9;
  --nx-magenta: #FF3D9A;
  --nx-amber: #FFB84D;
  --nx-text-light: #E8EAF6;
  --nx-text-muted: #9AA3C7;
  --nx-border: #2A3358;
  --nx-gradient: linear-gradient(135deg, #6C4FF6 0%, #26E5D9 100%);
  --nx-gradient-dark: linear-gradient(135deg, #10152b 0%, #1c2450 100%);
  --nx-shadow-glow: 0 0 30px rgba(108, 79, 246, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background-color: #f7f8fc;
  color: #1a1f36;
  line-height: 1.6;
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--nx-void);
}
::-webkit-scrollbar-thumb {
  background: var(--nx-gradient);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--nx-magenta);
}

/* ===== Sticky Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--nx-void);
  border-bottom: 1px solid var(--nx-border);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  transition: all 0.3s ease;
}

.site-header .logo-text {
  background: var(--nx-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.nav-link {
  position: relative;
  color: var(--nx-text-muted);
  font-weight: 500;
  transition: color 0.25s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0%;
  height: 2px;
  background: var(--nx-gradient);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--nx-text-light);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--nx-cyan);
}

/* ===== Mobile Menu ===== */
.mobile-menu {
  background-color: var(--nx-deep);
  border-top: 1px solid var(--nx-border);
}

.mobile-menu a {
  color: var(--nx-text-light);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-menu-toggle {
  color: var(--nx-text-light);
  font-size: 1.75rem;
  cursor: pointer;
}

/* ===== Buttons ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--nx-gradient);
  color: #ffffff;
  font-weight: 600;
  padding: 0.85rem 2rem;
  border-radius: 0.6rem;
  border: none;
  box-shadow: var(--nx-shadow-glow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 45px rgba(38, 229, 217, 0.45);
  filter: brightness(1.08);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--nx-cyan);
  font-weight: 600;
  padding: 0.8rem 1.9rem;
  border-radius: 0.6rem;
  border: 2px solid var(--nx-cyan);
  transition: all 0.25s ease;
}

.btn-outline:hover {
  background-color: var(--nx-cyan);
  color: var(--nx-void);
}

.btn-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--nx-surface);
  color: var(--nx-text-light);
  font-weight: 600;
  padding: 0.85rem 2rem;
  border-radius: 0.6rem;
  border: 1px solid var(--nx-border);
  transition: all 0.25s ease;
}

.btn-dark:hover {
  border-color: var(--nx-primary);
  box-shadow: 0 0 20px rgba(108, 79, 246, 0.3);
}

/* ===== Cards / Grid ===== */
.nx-card {
  background: #ffffff;
  border: 1px solid #e6e8f5;
  border-radius: 1rem;
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.nx-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(108, 79, 246, 0.15);
  border-color: var(--nx-primary);
}

.nx-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 0.75rem;
  background: var(--nx-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.nx-card-dark {
  background: var(--nx-gradient-dark);
  border: 1px solid var(--nx-border);
  border-radius: 1rem;
  padding: 2rem;
  color: var(--nx-text-light);
}

/* ===== Pricing card static badge ===== */
.nx-badge-popular {
  background: var(--nx-gradient);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* ===== Accordion ===== */
.accordion-item {
  border: 1px solid #e2e5f5;
  border-radius: 0.75rem;
  margin-bottom: 1rem;
  overflow: hidden;
  background: #ffffff;
}

.accordion-header {
  cursor: pointer;
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: #1a1f36;
  transition: background-color 0.25s ease;
}

.accordion-header:hover {
  background-color: #f4f5fc;
}

.accordion-header .accordion-icon {
  transition: transform 0.3s ease;
  color: var(--nx-primary);
}

.accordion-header.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  display: none;
  padding: 0 1.5rem 1.25rem;
  color: #4a5178;
}

/* ===== Forms ===== */
.nx-form input,
.nx-form textarea,
.nx-form select {
  width: 100%;
  padding: 0.85rem 1.1rem;
  border: 1.5px solid #dcdff0;
  border-radius: 0.6rem;
  background-color: #fbfbfe;
  color: #1a1f36;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.nx-form input:focus,
.nx-form textarea:focus,
.nx-form select:focus {
  outline: none;
  border-color: var(--nx-primary);
  box-shadow: 0 0 0 4px rgba(108, 79, 246, 0.15);
}

.nx-form label {
  font-weight: 600;
  font-size: 0.9rem;
  color: #1a1f36;
  margin-bottom: 0.35rem;
  display: block;
}

.nx-form-dark input,
.nx-form-dark textarea,
.nx-form-dark select {
  background-color: var(--nx-surface);
  border: 1.5px solid var(--nx-border);
  color: var(--nx-text-light);
}

.nx-form-dark label {
  color: var(--nx-text-light);
}

/* ===== Cookie Banner ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background-color: var(--nx-void);
  border-top: 1px solid var(--nx-border);
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.4);
  color: var(--nx-text-light);
  padding: 1.25rem 1.5rem;
}

.cookie-banner h3 {
  color: #ffffff;
}

.cookie-banner p {
  color: var(--nx-text-muted);
}

.cookie-banner a {
  color: var(--nx-cyan);
  text-decoration: underline;
}

.cookie-banner .btn-primary {
  padding: 0.6rem 1.5rem;
}

/* ===== Loading Spinner ===== */
.nx-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--nx-border);
  border-top-color: var(--nx-primary);
  border-radius: 50%;
  animation: nx-spin 0.9s linear infinite;
}

@keyframes nx-spin {
  to { transform: rotate(360deg); }
}

/* ===== Section Utilities ===== */
.nx-section-dark {
  background: var(--nx-gradient-dark);
  color: var(--nx-text-light);
}

.nx-hero-gradient {
  background: radial-gradient(circle at top right, rgba(108, 79, 246, 0.35), transparent 55%),
              radial-gradient(circle at bottom left, rgba(38, 229, 217, 0.25), transparent 55%),
              var(--nx-void);
}

.nx-glow-text {
  background: var(--nx-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nx-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--nx-primary), transparent);
}

/* ===== Animations ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-up {
  animation: fadeUp 0.7s ease both;
}

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

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

/* ===== Stats / Badges ===== */
.nx-stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--nx-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nx-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background-color: rgba(108, 79, 246, 0.12);
  color: var(--nx-primary-dark);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(108, 79, 246, 0.25);
}

/* ===== Responsive Helpers ===== */
@media (max-width: 768px) {
  .nx-hero-gradient {
    background: radial-gradient(circle at top, rgba(108, 79, 246, 0.3), transparent 60%), var(--nx-void);
  }
  .nx-card {
    padding: 1.5rem;
  }
}