/* CSS Design System & Theme Variable Tokens */
:root {
  --void-black: #050505;
  --midnight-blue: #0a1628;
  --cosmic-gold: #D4AF37;
  --cosmic-gold-light: #E5C158;
  --star-white: #FAFAFA;
  --nebula-gray: #8892a0;
  
  --font-sans: 'Noto Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Reset and Global Styles */
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html,
body {
  max-width: 100vw;
  overflow-x: hidden;
  background: var(--void-black);
  color: var(--star-white);
  font-family: var(--font-sans);
  min-height: 100vh;
}

body {
  background: radial-gradient(ellipse at center, var(--midnight-blue) 0%, var(--void-black) 70%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Glassmorphism Styles */
.glass {
  background: rgba(10, 22, 40, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-light {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-dark {
  background: rgba(5, 5, 5, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Cosmic Gold Glows */
.glow-gold {
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.4),
              0 0 25px rgba(212, 175, 55, 0.25),
              0 0 50px rgba(212, 175, 55, 0.15),
              0 0 80px rgba(212, 175, 55, 0.1);
  border-color: rgba(212, 175, 55, 0.5) !important;
}

.text-glow {
  text-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

.text-glow-subtle {
  text-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

.nav-item-glow button:hover,
.nav-item-glow a:hover {
  text-shadow: 0 0 12px rgba(212, 175, 55, 0.6),
               0 0 24px rgba(212, 175, 55, 0.3);
}

/* Background Vignette */
.vignette {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(5, 5, 5, 0.8) 100%);
  z-index: 1;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--void-black);
}

::-webkit-scrollbar-thumb {
  background: var(--midnight-blue);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--cosmic-gold);
}

/* Focus and Selection */
*:focus-visible {
  outline: none;
}

::selection {
  background: rgba(212, 175, 55, 0.3);
  color: var(--star-white);
}

/* Utility Layout Classes */
.fixed { position: fixed; }
.absolute { position: absolute; }
.relative { position: relative; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.bottom-0 { bottom: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }
.z-50 { z-index: 50; }

.min-h-screen { min-height: 100vh; }
.w-full { width: 100%; }

.grid {
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 769px) {
  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}
.max-w-3xl { max-width: 48rem; } /* 768px */
.max-w-4xl { max-width: 56rem; } /* 896px */
.max-w-5xl { max-width: 64rem; } /* 1024px */
.max-w-7xl { max-width: 80rem; } /* 1280px */
.max-w-lg { max-width: 32rem; } /* 512px */

.mx-auto { margin-left: auto; margin-right: auto; }
.mx-4 { margin-left: 1rem; margin-right: 1rem; }
.mt-4 { margin-top: 1rem; }
.mt-12 { margin-top: 3rem; }
.mt-8 { margin-top: 2rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mr-4 { margin-right: 1rem; }
.ml-4 { margin-left: 1rem; }
.ml-auto { margin-left: auto; }

.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.pt-32 { padding-top: 8rem; }
.pb-32 { padding-bottom: 8rem; }
.pb-12 { padding-bottom: 3rem; }
.pb-6 { padding-bottom: 1.5rem; }
.pt-4 { padding-top: 1rem; }
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-row-reverse { flex-direction: row-reverse; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }
.flex-shrink-0 { flex-shrink: 0; }
.flex-shrink { flex-shrink: 1; }
.flex-1 { flex: 1 1 0%; }
.flex-wrap { flex-wrap: wrap; }

.gap-1.5 { gap: 0.375rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

.hidden { display: none !important; }
.pointer-events-none { pointer-events: none; }
.cursor-pointer { cursor: pointer; }
.cursor-text { cursor: text; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-6xl { font-size: 3.75rem; line-height: 1; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.tracking-wider { tracking-wider: 0.05em; letter-spacing: 0.05em; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-wide { letter-spacing: 0.025em; }
.uppercase { text-transform: uppercase; }
.leading-none { line-height: 1; }
.leading-relaxed { line-height: 1.625; }

.text-star-white { color: var(--star-white); }
.text-cosmic-gold { color: var(--cosmic-gold); }
.text-nebula-gray { color: var(--nebula-gray); }
.bg-midnight-blue { background-color: var(--midnight-blue); }
.bg-cosmic-gold { background-color: var(--cosmic-gold); }
.bg-void-black { background-color: var(--void-black); }

.rounded-full { border-radius: 9999px; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.border { border: 1px solid rgba(255, 255, 255, 0.1); }
.border-2 { border-width: 2px; }
.border-t { border-top: 1px solid rgba(255, 255, 255, 0.1); }

.w-6 { width: 1.5rem; }
.h-6 { height: 1.5rem; }
.w-8 { width: 2rem; }
.h-8 { height: 2rem; }
.w-12 { width: 3rem; }
.h-12 { height: 3rem; }
.w-16 { width: 4rem; }
.h-16 { height: 4rem; }
.w-20 { width: 5rem; }
.h-20 { height: 5rem; }
.h-0.5 { height: 0.125rem; }
.object-cover { object-fit: cover; }

/* Transition utilities */
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.duration-300 { transition-duration: 300ms; }
.duration-500 { transition-duration: 500ms; }
.ease-out { transition-timing-function: cubic-bezier(0, 0, 0.2, 1); }

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

@keyframes twinkle {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(212, 175, 55, 0.3); }
  50% { box-shadow: 0 0 40px rgba(212, 175, 55, 0.6); }
}

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

/* Header & Navigation items custom classes */
.logo-btn {
  background: none;
  border: none;
  outline: none;
  font-family: inherit;
  width: fit-content;
}

.nav-link {
  background: none;
  border: none;
  outline: none;
  color: var(--nebula-gray);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  transition: color 0.30s ease;
  text-decoration: none;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--star-white);
  transition: width 0.3s ease;
}
.nav-link:hover {
  color: var(--cosmic-gold);
}
.nav-link:hover::after {
  width: 100%;
}
.nav-link.active {
  color: var(--cosmic-gold);
}
.nav-link.active::after {
  width: 100%;
  background-color: var(--cosmic-gold);
}

.mobile-nav-link {
  background: none;
  border: none;
  outline: none;
  color: var(--nebula-gray);
  transition: color 0.3s ease;
  text-decoration: none;
  display: block;
  width: 100%;
}
.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--cosmic-gold);
}

/* Main Forms & Search */
.search-form {
  width: 100%;
  max-width: 48rem;
  margin: 0 auto;
}

.suggestions-container {
  max-width: 44rem !important;
  margin-left: auto;
  margin-right: auto;
}

.search-box textarea {
  line-height: 1.5;
  scrollbar-width: none; /* Firefox */
  background-color: transparent !important;
  color: var(--star-white);
  border: none;
}
.search-box textarea::placeholder {
  color: var(--nebula-gray);
  opacity: 0.8;
}
.search-box textarea::-webkit-scrollbar {
  display: none; /* Safari & Chrome */
}

/* Suggestions & Buttons */
.suggestion-btn {
  cursor: pointer;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  outline: none;
  padding: 0.6rem 1.25rem;
  font-size: 0.875rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}
.suggestion-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(212, 175, 55, 0.3);
}

/* Modals Overlay */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(5, 5, 5, 0.8);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.modal-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  transform: scale(0.9) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.modal-overlay.show .modal-card {
  transform: scale(1) translateY(0);
}

.modal-close {
  background: none;
  border: none;
  cursor: pointer;
}

/* Chat Bubbles and Layout */
.message-bubble {
  max-width: 85%;
  word-wrap: break-word;
}

/* Prose/Markdown Styles */
.prose {
  color: var(--star-white);
  font-size: 0.925rem;
  line-height: 1.6;
}

.prose p {
  margin: 0.5rem 0;
}

.prose strong {
  color: var(--cosmic-gold);
  font-weight: 600;
}

.prose ul, .prose ol {
  margin: 0.5rem 0 0.5rem 1.5rem;
}

.prose li {
  margin: 0.25rem 0;
}

.prose code {
  color: var(--cosmic-gold-light);
  background-color: var(--midnight-blue);
  padding: 0.125rem 0.25rem;
  border-radius: 0.25rem;
  font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
  font-size: 0.85em;
}

.prose pre {
  background-color: var(--midnight-blue);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.75rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 0.75rem 0;
}

.prose pre code {
  background-color: transparent;
  color: inherit;
  padding: 0;
  border-radius: 0;
  font-size: inherit;
}

/* Animations for new messages */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-message {
  animation: fadeInUp 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Blinking Dots */
@keyframes dotBlink {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

.dot-blink {
  animation: dotBlink 1s infinite ease-in-out;
}

/* Pricing Page Grid & Styles */
.pricing-grid {
  width: 100%;
}

.pricing-card {
  background: rgba(10, 22, 40, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.25rem;
  padding: 2.25rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 540px;
  transition: all 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-4px);
}

.pricing-card.glow-gold {
  border: 2px solid var(--cosmic-gold) !important;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.3),
              0 0 30px rgba(212, 175, 55, 0.15);
}

.pricing-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.pricing-card .price-container {
  margin-bottom: 1.5rem;
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.pricing-card .price-amount {
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--star-white);
}

.pricing-card .price-period {
  color: var(--nebula-gray);
  font-size: 0.875rem;
}

.pricing-card .description {
  color: var(--nebula-gray);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  min-height: 40px;
}

.pricing-card ul {
  list-style: none;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pricing-card li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--nebula-gray);
}

.pricing-card li i {
  color: var(--cosmic-gold);
  flex-shrink: 0;
  margin-top: 0.125rem;
}

/* CTA Buttons */
.pricing-card .cta-btn {
  width: 100%;
  padding: 0.85rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  text-align: center;
  transition: all 0.3s ease;
}

.pricing-card .cta-btn.active {
  background-color: var(--cosmic-gold);
  color: var(--void-black);
}

.pricing-card .cta-btn.active:hover {
  background-color: var(--cosmic-gold-light);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}

.pricing-card .cta-btn.disabled {
  background-color: rgba(10, 22, 40, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--nebula-gray);
  cursor: not-allowed;
}

/* Navigation layout selectors */
#mobile-menu-toggle {
  display: none;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

/* Mobile Responsiveness Media Queries */
@media (max-width: 768px) {
  #mobile-menu-toggle {
    display: block !important;
  }
  
  .desktop-nav {
    display: none !important;
  }
  
  .hidden-mobile {
    display: none !important;
  }
  
  .hidden-desktop {
    display: block !important;
  }
  
  .grid {
    grid-template-columns: 1fr !important;
  }
  
  .header-container {
    padding: 0.25rem 0;
  }
}
