@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg-color: #000000; /* Pure black for a darker look */
  --card-bg: rgba(20, 20, 25, 0.5); /* Darker glass background */
  --card-border: rgba(255, 255, 255, 0.08);
  --text-main: #ffffff;
  --text-muted: #a1a1aa;
  
  /* Blue Identity */
  --primary: #2563eb; /* Deep vibrant blue */
  --primary-hover: #1d4ed8; 
  --primary-glow: rgba(37, 99, 235, 0.4);
  --accent: #3b82f6; /* Lighter blue for contrast */
  
  --font-sans: 'Inter', sans-serif;
  --font-serif: 'DM Serif Display', serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
  position: relative;
}

/* Background Effects */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 50% -20%, rgba(59, 130, 246, 0.15) 0%, transparent 60%);
  pointer-events: none;
  z-index: -1;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: normal;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h1 em, h2 em {
  font-style: italic;
  color: var(--text-muted);
}

a {
  text-decoration: none;
  color: inherit;
}

.text-gradient {
  background: linear-gradient(to right, #fff, var(--text-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Layout Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding-top: 8rem;
  padding-bottom: 8rem;
  position: relative;
}

/* Navbar (Pill style) */
.navbar-wrapper {
  position: fixed;
  top: 1rem;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  pointer-events: none;
  padding: 0 1rem;
}

.navbar {
  pointer-events: auto;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  padding: 0.5rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  max-width: 100%;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  color: var(--text-muted);
  transition: all 0.3s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  position: relative;
}

.nav-link.active::before {
  content: '';
  position: absolute;
  top: -2px; left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  box-shadow: 0 0 10px var(--primary);
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--text-main);
  color: var(--bg-color);
  font-weight: 600;
  padding: 1rem 2rem;
  border-radius: 9999px;
  transition: all 0.3s ease;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--text-main);
  font-weight: 500;
  padding: 1rem 2rem;
  border-radius: 9999px;
  border: 1px solid var(--card-border);
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  border-radius: 9999px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.badge-icon {
  width: 14px;
  height: 14px;
  color: var(--primary);
}

/* Glass Card */
.glass-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 1.5rem;
  padding: 2.5rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.4s ease;
}

.glass-card:hover {
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

/* Glow Border Effect */
.glow-wrapper {
  position: relative;
}

.glow-wrapper::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px; right: -1px; bottom: -1px;
  background: linear-gradient(135deg, var(--primary), transparent 60%);
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.glow-wrapper:hover::before {
  opacity: 1;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

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

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

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: 8rem;
  padding-bottom: 4rem;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 6rem);
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 3rem;
  line-height: 1.6;
}

/* Dashboard Mockup Animation */
.mockup-container {
  margin-top: 4rem;
  width: 100%;
  max-width: 900px;
  position: relative;
  perspective: 1000px;
}

.mockup-window {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 40px rgba(59, 130, 246, 0.2);
  overflow: hidden;
  transform: rotateX(10deg);
  transform-style: preserve-3d;
  transition: transform 0.5s ease;
}

.mockup-window:hover {
  transform: rotateX(0deg);
}

.mockup-header {
  height: 30px;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  padding: 0 1rem;
  gap: 6px;
}

.mockup-dot {
  width: 10px; height: 10px; border-radius: 50%; background: #334155;
}
.mockup-dot:nth-child(1) { background: #ef4444; }
.mockup-dot:nth-child(2) { background: #eab308; }
.mockup-dot:nth-child(3) { background: #22c55e; }

.mockup-body {
  padding: 2rem;
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 2rem;
  height: 400px;
}

.mockup-sidebar {
  display: flex; flex-direction: column; gap: 1rem;
}

.mockup-item-line {
  height: 12px; background: rgba(255, 255, 255, 0.05); border-radius: 4px;
}

.mockup-content {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}

.mockup-card {
  background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 8px; padding: 1rem;
}

/* Marquee */
.marquee-wrapper {
  overflow: hidden;
  padding: 1rem 0;
  max-width: 800px;
  margin: 0 auto;
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.marquee-content {
  display: flex;
  gap: 4rem;
  white-space: nowrap;
  animation: scroll 30s linear infinite;
}

.marquee-item {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.04em;
  color: rgba(255, 255, 255, 0.4);
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Grid Layouts */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
}

/* MVP Grid */
.mvp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mvp-card {
  padding: 3rem 2rem;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: background 0.3s ease;
}

.mvp-card:hover {
  background: rgba(255, 255, 255, 0.02);
}

.mvp-card:nth-child(3n) {
  border-right: none;
}

.mvp-card:nth-last-child(-n+3) {
  border-bottom: none;
}

.mvp-icon {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  opacity: 0.7;
}

.mvp-title {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.8rem;
}

.mvp-desc {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* Authors / Features */
.author-card {
  position: relative;
}
.author-num {
  font-size: 0.75rem; color: var(--primary); font-weight: bold; letter-spacing: 0.1em; margin-bottom: 1rem; display: block;
}
.author-name {
  font-size: 1.5rem; margin-bottom: 0.5rem;
}
.author-works {
  font-size: 0.875rem; color: var(--text-muted); line-height: 1.5;
}

/* Pricing */
.pricing-card {
  position: relative;
  overflow: hidden;
}

.pricing-card.featured {
  border-color: var(--primary);
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.05) 0%, transparent 100%);
  transform: scale(1.02);
}

.pricing-card.featured::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.price {
  font-family: var(--font-sans);
  font-size: 4rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  display: flex;
  align-items: flex-start;
  margin: 1.5rem 0;
  color: #fff;
}
.price sup { 
  font-size: 1.4rem; 
  margin-top: 0.8rem; 
  font-weight: 500;
  letter-spacing: 0;
  font-family: var(--font-sans); 
  color: var(--text-muted); 
}

.feature-list { list-style: none; margin: 2rem 0; }
.feature-list li {
  display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 1rem; color: var(--text-muted); font-size: 0.95rem;
}
.feature-list li.off { opacity: 0.4; text-decoration: line-through; }
.feature-icon { color: var(--primary); font-size: 1.2rem; }
.feature-list li.off .feature-icon { color: inherit; }

/* FAQ Accordion */
.faq-item {
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 1rem;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-question {
  width: 100%;
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 1.5rem;
  color: var(--text-muted);
  line-height: 1.6;
  transition: all 0.3s ease;
}

.faq-item.active {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding-bottom: 1.5rem;
}

/* Footer */
footer {
  border-top: 1px solid var(--card-border);
  padding: 4rem 0;
  margin-top: 4rem;
}

.footer-content {
  display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 2rem;
}

.footer-brand { font-family: var(--font-serif); font-size: 1.5rem; }
.footer-brand span { display: block; font-family: var(--font-sans); font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 0.5rem; }

.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a { color: var(--text-muted); font-size: 0.875rem; transition: color 0.3s; }
.footer-links a:hover { color: var(--text-main); }

/* Components Fixes for Responsive */
.author-tag {
  position: absolute; top: 1.5rem; right: 1.5rem;
  font-size: 0.6rem; text-transform: uppercase;
  border: 1px solid var(--card-border); padding: 0.3rem 0.6rem;
  border-radius: 9999px;
  background: rgba(0,0,0,0.5);
}

.updates-visual {
  position: relative; height: 400px;
}

.update-card-1 {
  position: absolute; top: 10%; right: 0; width: 80%; z-index: 3;
}
.update-card-2 {
  position: absolute; top: 40%; left: 0; width: 80%; z-index: 2; opacity: 0.8;
}

.pricing-badge {
  position: absolute; top: 2rem; right: 2rem;
  background: rgba(37, 99, 235, 0.1); border: 1px solid var(--primary);
  color: var(--primary); padding: 0.3rem 0.8rem;
  border-radius: 9999px; font-size: 0.6rem; text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Responsive */
@media (max-width: 768px) {
  .hide-mobile { display: none !important; }
  
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  
  .mvp-grid {
    grid-template-columns: 1fr;
  }
  .mvp-card {
    border-right: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    padding: 2.5rem 0;
  }
  .mvp-card:last-child {
    border-bottom: none !important;
  }
  .mockup-body { grid-template-columns: 1fr; height: auto; padding: 1.5rem; }
  .mockup-sidebar { display: none; }
  .hero { padding-top: 8rem; padding-bottom: 2rem; }
  .section { padding-top: 4rem; padding-bottom: 4rem; }
  .glass-card { padding: 1.5rem; }
  
  /* Make navbar scrollable on mobile */
  .navbar {
    overflow-x: auto;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
    border-radius: 1.5rem;
  }
  .navbar::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome, Safari and Opera */
  }
  .navbar {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
  }
  .hero-title { font-size: clamp(2.5rem, 10vw, 4rem); }
  
  .hero .btn-primary, .hero .btn-secondary { width: 100%; margin-bottom: 0.5rem; }
  
  .author-tag {
    position: relative; top: 0; right: 0; display: inline-block; margin-bottom: 1rem;
  }
  
  .pricing-badge {
    position: relative; top: 0; right: 0; display: inline-block; margin-bottom: 1.5rem;
  }
}

/* Premium Pricing Card Styles */
.premium-card {
  background: rgba(8, 8, 12, 0.85) !important;
  border: 1px solid rgba(59, 130, 246, 0.25) !important;
  border-radius: 2rem !important;
  padding: 2.2rem 1.75rem !important;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.9), 0 0 50px -10px rgba(37, 99, 235, 0.15) !important;
}

.premium-card::after {
  content: '';
  position: absolute;
  top: -150px;
  right: -150px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

.premium-card .pricing-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(59, 130, 246, 0.1));
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #60a5fa;
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.premium-card .feature-list li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
  color: #d1d5db;
  font-size: 0.95rem;
}

.premium-card .feature-icon-svg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: rgba(37, 99, 235, 0.15);
  border-radius: 50%;
  color: #60a5fa;
  flex-shrink: 0;
}

.premium-card .btn-premium {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #ffffff;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 1.2rem 2rem;
  border-radius: 9999px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 30px rgba(37, 99, 235, 0.4);
  border: none;
  cursor: pointer;
  width: 100%;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.premium-card .btn-premium::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s ease;
}

.premium-card .btn-premium:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(37, 99, 235, 0.5);
}

.premium-card .btn-premium:hover::before {
  opacity: 1;
}

.premium-card .btn-premium svg {
  transition: transform 0.3s ease;
}

.premium-card .btn-premium:hover svg {
  transform: translateX(4px);
}
