:root {
  --bg-color: #0f172a;
  --text-main: #f8fafc;
  --text-muted: #cbd5e1;
  --accent-base: #6366f1;
  --accent-hover: #4f46e5;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --success: #10b981;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: radial-gradient(circle at 15% 50%, rgba(99, 102, 241, 0.15), transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(16, 185, 129, 0.15), transparent 25%);
}

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

/* Glassmorphism utilities */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 1.5rem;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.25rem 5%;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(to right, #818cf8, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #818cf8;
}

.cta-btn {
  background: var(--accent-base);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px 0 rgba(99, 102, 241, 0.39);
}

.cta-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.23);
}

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

.hero h1 {
  font-size: 4rem;
  line-height: 1.2;
  font-weight: 800;
  margin-bottom: 1.5rem;
  max-width: 900px;
}

.hero h1 span {
  background: linear-gradient(to right, #38bdf8, #818cf8, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 700px;
  margin-bottom: 2.5rem;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
}

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  border-radius: 999px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #6366f1, #a855f7);
  color: #fff;
  box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.5);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px -5px rgba(99, 102, 241, 0.7);
}

.hero-image-container {
  margin-top: 4rem;
  width: 100%;
  max-width: 1100px;
  border-radius: 1.5rem;
  padding: 1rem;
  position: relative;
}

.hero-image-container::before {
  content: '';
  position: absolute;
  top: -2px; left: -2px; right: -2px; bottom: -2px;
  background: linear-gradient(45deg, #6366f1, #ec4899, #3b82f6);
  z-index: -1;
  border-radius: 1.6rem;
  animation: borderGlow 3s ease-in-out infinite alternate;
}

@keyframes borderGlow {
  0% { opacity: 0.5; }
  100% { opacity: 1; }
}

.dashboard-mockup {
  background: #1e293b;
  border-radius: 1rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1);
  overflow: hidden;
}

/* Stats/Features */
.features {
  padding: 6rem 5%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  padding: 2.5rem;
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  display: inline-block;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.feature-card p {
  color: var(--text-muted);
}

/* Pricing */
.pricing-section {
  padding: 6rem 5%;
  text-align: center;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 800;
}

.section-desc {
  color: var(--text-muted);
  margin-bottom: 4rem;
  font-size: 1.1rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.pricing-card {
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  text-align: left;
  position: relative;
  transition: transform 0.4s ease;
}

.pricing-card.popular {
  border: 1px solid #6366f1;
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.2);
}

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

.popular-badge {
  position: absolute;
  top: -15px;
  right: 2rem;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: white;
  padding: 0.25rem 1rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(245, 158, 11, 0.3);
}

.plan-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.plan-price {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.plan-price span {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 500;
}

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

.plan-features li {
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
}

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

.plan-btn {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  padding: 1rem;
  text-align: center;
  border-radius: 0.75rem;
  font-weight: 600;
  transition: all 0.3s;
}

.pricing-card.popular .plan-btn {
  background: var(--accent-base);
}

.plan-btn:hover {
  background: white;
  color: #0f172a;
}

/* Reviews */
.reviews {
  padding: 6rem 5%;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.review-card {
  padding: 2rem;
}

.stars {
  color: #fbbf24;
  margin-bottom: 1rem;
}

.review-text {
  font-style: italic;
  margin-bottom: 1.5rem;
  color: #e2e8f0;
}

.reviewer {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.reviewer-avatar {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #10b981, #3b82f6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

/* FAQ */
.faq-section {
  padding: 6rem 5%;
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 1.5rem;
}

.faq-q {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #f8fafc;
}

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

/* Articles Section */
.articles-section {
  padding: 6rem 5%;
  max-width: 1200px;
  margin: 0 auto;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.article-card {
  padding: 1.5rem;
  transition: all 0.3s ease;
  display: block;
}

.article-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-3px);
}

.article-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #fff;
}

.article-meta {
  font-size: 0.85rem;
  color: var(--accent-base);
}

/* Footer */
footer {
  background: rgba(15, 23, 42, 0.9);
  padding: 4rem 5% 2rem;
  border-top: 1px solid var(--glass-border);
  text-align: center;
}

.footer-links {
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

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

.footer-links a:hover {
  color: #fff;
}

.copyright {
  color: #64748b;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .hero h1 { font-size: 2.5rem; }
  .pricing-card.popular { transform: none; }
  .header { padding: 1rem; }
  .nav-links { display: none; }
}
