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

:root {
  /* Color Palette - Cosmic Midnight & Magic Glow */
  --bg-dark-base: #06060c;
  --bg-dark-deep: #090a12;
  --bg-dark-light: #111222;
  --color-text-main: #f3f4f6;
  --color-text-muted: #9ca3af;
  --color-text-dark: #6b7280;
  
  --accent-purple: #c084fc;
  --accent-blue: #38bdf8;
  --accent-cyan: #06b6d4;
  
  --gradient-brand: linear-gradient(90deg, #c084fc 0%, #38bdf8 100%);
  --gradient-btn: linear-gradient(135deg, #a855f7 0%, #3b82f6 100%);
  --gradient-dark: linear-gradient(135deg, #06060c 0%, #090a12 100%);
  
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
  --border-radius-pill: 100px;
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-dark-base);
  background-image: 
    radial-gradient(circle at 5% 30%, rgba(168, 85, 247, 0.2) 0%, rgba(168, 85, 247, 0) 55%),
    radial-gradient(circle at 95% 65%, rgba(6, 182, 212, 0.16) 0%, rgba(6, 182, 212, 0) 50%);
  background-attachment: fixed;
  color: var(--color-text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

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

/* Typography Helpers */
.text-gradient {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark-base);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-dark-light);
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
::-webkit-scrollbar-thumb:hover {
  background: #6366f1;
}

/* Base Glassmorphism Card */
.glass-card {
  background: rgba(17, 18, 34, 0.45);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--border-radius-md);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
  transition: var(--transition-normal);
}

.glass-card:hover {
  border-color: rgba(168, 85, 247, 0.25);
  box-shadow: 0 12px 40px 0 rgba(168, 85, 247, 0.12);
  transform: translateY(-4px);
}

/* Button Designs (Capsule Style) */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 32px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--border-radius-pill);
  background: var(--gradient-btn);
  color: white;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 25px rgba(168, 85, 247, 0.45);
  transition: var(--transition-normal);
  position: relative;
}

.btn-primary:hover {
  box-shadow: 0 0 35px rgba(168, 85, 247, 0.65);
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 31px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--border-radius-pill);
  background: transparent;
  border: 1px solid rgba(56, 189, 248, 0.5);
  color: #e5e7eb;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-secondary:hover {
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.8);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
  transform: translateY(-2px);
}

/* Header & Nav */
.header-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 20px 8%;
  background: rgba(6, 6, 12, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-text {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 35px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
}

.nav-links a:hover {
  color: var(--accent-purple);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 100px 0 60px 0;
  overflow: hidden;
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  width: 100%;
}

.hero-content {
  flex: 1.2;
  text-align: left;
}

.hero-graphic {
  flex: 0.8;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-tag {
  background: rgba(192, 132, 252, 0.08);
  border: 1px solid rgba(192, 132, 252, 0.2);
  padding: 6px 16px;
  border-radius: var(--border-radius-pill);
  color: var(--accent-purple);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: 0.05em;
  display: inline-block;
}

.hero-brand-title {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.03em;
}

.hero-title {
  font-size: 44px;
  line-height: 1.25;
  margin-bottom: 24px;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 16px;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 40px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
}

/* Floating Animation */
@keyframes float {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(1.5deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

.floating-3d-image {
  max-width: 85%;
  height: auto;
  animation: float 6s ease-in-out infinite;
  filter: drop-shadow(0 15px 35px rgba(168, 85, 247, 0.25));
  border-radius: var(--border-radius-lg);
}

/* Stats Counter Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  width: 100%;
  margin-top: 60px;
}

.stat-card {
  padding: 24px 20px;
  text-align: center;
}

.stat-num {
  font-family: 'Outfit', sans-serif;
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 13px;
  color: var(--color-text-muted);
}

/* Pricing Section */
.pricing-section {
  padding: 80px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 55px;
}

.section-title {
  font-size: 36px;
  margin-bottom: 12px;
  color: #ffffff;
}

.section-subtitle {
  font-size: 15px;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px 25px 35px 25px;
  position: relative;
  overflow: hidden;
}

.pricing-card.featured {
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.15);
  background: rgba(22, 20, 42, 0.55);
  transform: translateY(-8px);
}

.pricing-card.featured:hover {
  box-shadow: 0 0 40px rgba(168, 85, 247, 0.25);
  transform: translateY(-12px);
}

.popular-badge {
  position: absolute;
  top: 15px;
  right: -30px;
  background: var(--gradient-btn);
  color: white;
  font-size: 11px;
  font-weight: bold;
  padding: 4px 30px;
  transform: rotate(45deg);
}

.plan-name {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.plan-price-wrapper {
  margin: 15px 0 25px 0;
  display: flex;
  align-items: baseline;
}

.plan-price {
  font-family: 'Outfit', sans-serif;
  font-size: 38px;
  font-weight: 800;
}

.plan-period {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-left: 5px;
}

.plan-features {
  list-style: none;
  margin-bottom: 30px;
  flex-grow: 1;
}

.plan-features li {
  font-size: 13.5px;
  color: var(--color-text-muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.plan-features li::before {
  content: '✓';
  color: var(--accent-blue);
  font-weight: bold;
}

.pricing-card .btn-primary,
.pricing-card .btn-secondary {
  width: 100%;
}

/* Features Grid */
.features-section {
  padding: 80px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.feature-card {
  padding: 35px 30px;
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.15);
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-purple);
  font-size: 22px;
  margin-bottom: 22px;
}

.feature-title {
  font-size: 19px;
  margin-bottom: 10px;
  color: #ffffff;
}

.feature-desc {
  font-size: 13.5px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* Articles Section */
.articles-section {
  padding: 80px 0;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.article-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
}

.article-image-placeholder {
  height: 180px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(168, 85, 247, 0.15));
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: rgba(255, 255, 255, 0.3);
}

.article-body {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.article-meta {
  font-size: 12px;
  color: var(--color-text-dark);
  margin-bottom: 10px;
  display: flex;
  gap: 15px;
}

.article-title {
  font-size: 17px;
  margin-bottom: 12px;
  line-height: 1.45;
  color: #ffffff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-excerpt {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 20px;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.6;
}

.article-link {
  font-size: 14px;
  color: var(--accent-purple);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.article-link:hover {
  color: var(--accent-blue);
}

/* User Reviews Section */
.reviews-section {
  padding: 80px 0;
  position: relative;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.review-card {
  padding: 30px;
}

.reviewer-profile {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.reviewer-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--gradient-btn);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 18px;
  color: white;
}

.reviewer-info h4 {
  font-size: 15.5px;
  margin-bottom: 2px;
}

.reviewer-info span {
  font-size: 12px;
  color: var(--color-text-dark);
}

.review-rating {
  color: #fbbf24;
  font-size: 13px;
  margin-bottom: 12px;
}

.review-text {
  font-size: 13.5px;
  color: var(--color-text-muted);
  font-style: italic;
  line-height: 1.6;
}

/* FAQ Section */
.faq-section {
  padding: 80px 0;
  max-width: 800px;
  margin: 0 auto;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.faq-item {
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--border-radius-md);
  background: rgba(17, 18, 34, 0.25);
  overflow: hidden;
  transition: var(--transition-normal);
}

.faq-question {
  padding: 20px;
  font-size: 15.5px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 13.5px;
  color: var(--color-text-muted);
  display: none;
  line-height: 1.7;
}

.faq-item.active {
  border-color: rgba(168, 85, 247, 0.2);
  background: rgba(17, 18, 34, 0.5);
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-icon {
  transition: var(--transition-normal);
  font-size: 18px;
}

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

/* Article Page Layout */
.article-page {
  padding: 60px 0 100px 0;
}

.article-container {
  display: grid;
  grid-template-columns: 8.2fr 3.8fr;
  gap: 40px;
}

.article-header {
  margin-bottom: 30px;
}

.article-main-title {
  font-size: 36px;
  line-height: 1.3;
  margin-bottom: 20px;
  color: #ffffff;
}

.article-content {
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--color-text-main);
}

.article-content p {
  margin-bottom: 22px;
}

.article-content h2 {
  font-size: 22px;
  margin: 40px 0 20px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.article-content h3 {
  font-size: 18px;
  margin: 30px 0 15px 0;
  color: #ffffff;
}

.article-content ul, .article-content ol {
  margin-left: 20px;
  margin-bottom: 22px;
}

.article-content li {
  margin-bottom: 10px;
}

.article-content blockquote {
  border-left: 4px solid var(--accent-purple);
  background: rgba(168, 85, 247, 0.04);
  padding: 18px 22px;
  margin: 25px 0;
  border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
  font-style: italic;
}

.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.sidebar-widget {
  padding: 25px;
}

.widget-title {
  font-size: 17px;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.widget-links {
  list-style: none;
}

.widget-links li {
  margin-bottom: 12px;
  font-size: 13.5px;
}

.widget-links a {
  color: var(--color-text-muted);
}

.widget-links a:hover {
  color: var(--accent-purple);
}

.cta-widget {
  background: linear-gradient(135deg, rgba(16, 12, 33, 0.8) 0%, rgba(9, 10, 18, 0.8) 100%);
  border: 1px solid rgba(56, 189, 248, 0.2);
  text-align: center;
}

.cta-widget p {
  font-size: 13.5px;
  color: var(--color-text-muted);
  margin-bottom: 22px;
  line-height: 1.6;
}

/* Footer */
.footer {
  background: var(--bg-dark-deep);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding: 60px 0 30px 0;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  font-size: 13.5px;
  color: var(--color-text-muted);
  margin: 15px 0 20px 0;
  max-width: 280px;
  line-height: 1.6;
}

.footer-column h4 {
  font-size: 15.5px;
  margin-bottom: 20px;
  color: #ffffff;
}

.footer-column ul {
  list-style: none;
}

.footer-column li {
  margin-bottom: 10px;
  font-size: 13.5px;
}

.footer-column a {
  color: var(--color-text-muted);
}

.footer-column a:hover {
  color: var(--accent-purple);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--color-text-dark);
}

/* Responsive Web Design (Media Queries) */
@media (max-width: 1024px) {
  .hero-container {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }
  .hero-content {
    text-align: center;
  }
  .hero-ctas {
    justify-content: center;
  }
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .article-container {
    grid-template-columns: 1fr;
  }
  .article-sidebar {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header-nav {
    padding: 15px 20px;
  }
  .nav-links {
    display: none;
  }
  .hero-brand-title {
    font-size: 40px;
  }
  .hero-title {
    font-size: 34px;
  }
  .hero-subtitle {
    font-size: 15px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .reviews-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .article-sidebar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 580px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .articles-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }
  .hero-ctas .btn-primary, .hero-ctas .btn-secondary {
    width: 100%;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}
