@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 {
  --nh-void: #0a0e1a;
  --nh-deep: #121829;
  --nh-surface: #1a2138;
  --nh-primary: #6c5ce7;
  --nh-primary-dark: #5341d6;
  --nh-primary-light: #a29bfe;
  --nh-accent: #00e5c7;
  --nh-accent-dark: #00b8a0;
  --nh-signal: #ff6b9d;
  --nh-warm: #ffb86c;
  --nh-cream: #f4f2ff;
  --nh-gray-100: #e8e6f5;
  --nh-gray-300: #b8b5cc;
  --nh-gray-600: #6b6890;
  --nh-gray-800: #2a2f4a;
  --nh-border: #2d3555;
  --nh-shadow: rgba(108, 92, 231, 0.25);
  --nh-gradient: linear-gradient(135deg, var(--nh-primary) 0%, var(--nh-accent) 100%);
  --nh-gradient-dark: linear-gradient(135deg, var(--nh-void) 0%, var(--nh-deep) 100%);
  --nh-radius: 14px;
  --nh-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--nh-gray-800);
  background-color: #fdfdfe;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nh-void);
  border-bottom: 1px solid var(--nh-border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.35);
  transition: var(--nh-transition);
}

.site-header .logo-mark {
  filter: drop-shadow(0 0 8px var(--nh-shadow));
}

.nav-link {
  position: relative;
  color: var(--nh-gray-300);
  font-weight: 500;
  transition: var(--nh-transition);
}

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

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

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

.nav-link.active {
  color: var(--nh-accent);
}

/* Mobile Menu */
.mobile-menu-toggle {
  color: var(--nh-gray-100);
  font-size: 1.75rem;
  cursor: pointer;
}

.mobile-menu {
  background: var(--nh-deep);
  border-top: 1px solid var(--nh-border);
}

.mobile-menu a {
  color: var(--nh-gray-100);
  border-bottom: 1px solid var(--nh-border);
}

.mobile-menu a:hover {
  background: var(--nh-surface);
  color: var(--nh-accent);
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--nh-gradient);
  color: #ffffff;
  font-weight: 600;
  padding: 0.85rem 2rem;
  border-radius: 999px;
  border: none;
  box-shadow: 0 8px 24px var(--nh-shadow);
  transition: var(--nh-transition);
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px var(--nh-shadow);
  filter: brightness(1.08);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--nh-primary-light);
  font-weight: 600;
  padding: 0.8rem 1.9rem;
  border-radius: 999px;
  border: 2px solid var(--nh-primary);
  transition: var(--nh-transition);
  cursor: pointer;
}

.btn-secondary:hover {
  background: var(--nh-primary);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--nh-accent);
  font-weight: 600;
  transition: var(--nh-transition);
}

.btn-ghost:hover {
  color: var(--nh-accent-dark);
  gap: 0.7rem;
}

/* Cards */
.nh-card {
  background: #ffffff;
  border: 1px solid #eceaf7;
  border-radius: var(--nh-radius);
  padding: 2rem;
  transition: var(--nh-transition);
  box-shadow: 0 2px 12px rgba(26, 33, 56, 0.06);
}

.nh-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(108, 92, 231, 0.15);
  border-color: var(--nh-primary-light);
}

.nh-card-dark {
  background: var(--nh-surface);
  border: 1px solid var(--nh-border);
  border-radius: var(--nh-radius);
  padding: 2rem;
  color: var(--nh-gray-100);
  transition: var(--nh-transition);
}

.nh-card-dark:hover {
  border-color: var(--nh-accent);
  box-shadow: 0 0 32px rgba(0, 229, 199, 0.15);
}

.icon-badge {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--nh-gradient);
  color: #ffffff;
  font-size: 1.5rem;
  box-shadow: 0 8px 20px var(--nh-shadow);
}

/* Section backgrounds */
.section-dark {
  background: var(--nh-gradient-dark);
  color: var(--nh-gray-100);
}

.section-tint {
  background: #f7f6fd;
}

/* Accordion */
.accordion-item {
  border: 1px solid #e5e3f2;
  border-radius: 12px;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: var(--nh-transition);
}

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  background: #ffffff;
  font-weight: 600;
  color: var(--nh-deep);
  transition: var(--nh-transition);
}

.accordion-header:hover {
  background: #f7f6fd;
}

.accordion-header.active {
  background: var(--nh-gradient);
  color: #ffffff;
}

.accordion-header .accordion-icon {
  transition: transform 0.3s ease;
}

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

.accordion-content {
  display: none;
  padding: 1.25rem 1.5rem;
  background: #fdfdfe;
  color: var(--nh-gray-600);
  border-top: 1px solid #eeecf9;
}

/* Forms */
.nh-form-group {
  margin-bottom: 1.5rem;
}

.nh-form-group label {
  display: block;
  font-weight: 600;
  color: var(--nh-deep);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.nh-form-group input,
.nh-form-group textarea,
.nh-form-group select {
  width: 100%;
  padding: 0.85rem 1.1rem;
  border: 2px solid #e5e3f2;
  border-radius: 10px;
  background: #fbfaff;
  color: var(--nh-deep);
  transition: var(--nh-transition);
  font-family: inherit;
}

.nh-form-group input:focus,
.nh-form-group textarea:focus,
.nh-form-group select:focus {
  outline: none;
  border-color: var(--nh-primary);
  background: #ffffff;
  box-shadow: 0 0 0 4px var(--nh-shadow);
}

.nh-form-group input::placeholder,
.nh-form-group textarea::placeholder {
  color: var(--nh-gray-300);
}

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

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

/* Fade / Reveal Animations */
@keyframes nh-fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes nh-glow-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(0, 229, 199, 0.25); }
  50% { box-shadow: 0 0 40px rgba(0, 229, 199, 0.5); }
}

.nh-pulse {
  animation: nh-glow-pulse 3s ease-in-out infinite;
}

/* Hero */
.hero-grid-lines {
  background-image:
    linear-gradient(rgba(108, 92, 231, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108, 92, 231, 0.08) 1px, transparent 1px);
  background-size: 48px 48px;
}

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

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--nh-void);
  border-top: 1px solid var(--nh-border);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.4);
  padding: 1.5rem;
}

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

.cookie-banner p {
  color: var(--nh-gray-300);
}

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

.cookie-banner a:hover {
  color: var(--nh-primary-light);
}

.cookie-btn-accept {
  background: var(--nh-gradient);
  color: #ffffff;
  font-weight: 600;
  padding: 0.7rem 1.75rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: var(--nh-transition);
}

.cookie-btn-accept:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.cookie-btn-decline {
  background: transparent;
  color: var(--nh-gray-300);
  font-weight: 600;
  padding: 0.7rem 1.5rem;
  border: 2px solid var(--nh-border);
  border-radius: 999px;
  cursor: pointer;
  transition: var(--nh-transition);
}

.cookie-btn-decline:hover {
  border-color: var(--nh-gray-300);
  color: #ffffff;
}

/* Footer */
.site-footer {
  background: var(--nh-void);
  color: var(--nh-gray-300);
  border-top: 1px solid var(--nh-border);
}

.site-footer h4 {
  color: #ffffff;
}

.site-footer a {
  color: var(--nh-gray-300);
  transition: var(--nh-transition);
}

.site-footer a:hover {
  color: var(--nh-accent);
}

.footer-social {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--nh-surface);
  color: var(--nh-gray-300);
  transition: var(--nh-transition);
}

.footer-social:hover {
  background: var(--nh-gradient);
  color: #ffffff;
  transform: translateY(-3px);
}

/* Badges / Tags */
.nh-badge {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: rgba(108, 92, 231, 0.12);
  color: var(--nh-primary-dark);
}

.nh-badge-accent {
  background: rgba(0, 229, 199, 0.14);
  color: var(--nh-accent-dark);
}

/* Divider */
.nh-divider {
  height: 4px;
  width: 64px;
  background: var(--nh-gradient);
  border-radius: 999px;
}

/* Timeline */
.nh-timeline {
  position: relative;
  padding-left: 2.5rem;
  border-left: 2px solid var(--nh-border);
}

.nh-timeline-item {
  position: relative;
  padding-bottom: 2.5rem;
}

.nh-timeline-item::before {
  content: '';
  position: absolute;
  left: -2.6rem;
  top: 0.25rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--nh-gradient);
  box-shadow: 0 0 0 4px var(--nh-void);
}

/* Utility */
.nh-shadow-glow {
  box-shadow: 0 12px 40px var(--nh-shadow);
}

@media (max-width: 768px) {
  .nh-card, .nh-card-dark {
    padding: 1.5rem;
  }
  .btn-primary, .btn-secondary {
    width: 100%;
  }
}