/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --secondary: #ec4899;
  --bg: #0f0f23;
  --bg-card: #1a1a2e;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --border: #334155;
  --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  --radius: 12px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  min-height: 100vh;
  overflow-x: hidden;
}

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

/* Header */
header {
  background: rgba(15, 15, 35, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 16px 0;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  font-size: 1.5rem;
  font-weight: 700;
}

.logo svg {
  width: 40px;
  height: 40px;
  fill: var(--primary);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
}

nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

nav a:hover {
  color: var(--primary);
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-btn svg {
  width: 28px;
  height: 28px;
}

/* Hero Section */
.hero {
  padding: 60px 0 40px;
  text-align: center;
  background: radial-gradient(ellipse at top, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
}

.hero-large {
  padding: 100px 0 80px;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

/* Buttons */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 40px;
  font-size: 1.1rem;
  font-weight: 600;
  color: white;
  background: var(--gradient);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow);
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 50px rgba(99, 102, 241, 0.4);
}

.cta-floating {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  padding: 18px 36px;
  border-radius: 50px;
  box-shadow: 0 10px 40px rgba(99, 102, 241, 0.5);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 10px 40px rgba(99, 102, 241, 0.5); }
  50% { box-shadow: 0 10px 60px rgba(99, 102, 241, 0.8); }
}

/* Sections */
section {
  padding: 80px 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 48px;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.card-icon {
  width: 56px;
  height: 56px;
  background: var(--gradient);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.card-icon svg {
  width: 28px;
  height: 28px;
  stroke: white;
  fill: none;
}

.card h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.card p {
  color: var(--text-muted);
  line-height: 1.7;
}

/* Features */
.features {
  background: linear-gradient(180deg, var(--bg) 0%, rgba(99, 102, 241, 0.05) 100%);
}

/* Stats */
.stats {
  display: flex;
  justify-content: center;
  gap: 80px;
  flex-wrap: wrap;
  margin-top: 60px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-top: 8px;
}

/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.blog-card-content {
  padding: 24px;
}

.blog-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  line-height: 1.4;
}

.blog-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.read-more {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.read-more svg {
  width: 16px;
  height: 16px;
}

/* FAQ */
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 16px;
  overflow: hidden;
}

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

.faq-question svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s;
  flex-shrink: 0;
}

.faq-item.active .faq-question svg {
  transform: rotate(180deg);
}

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

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

/* Footer */
footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 60px 0 30px;
  margin-top: 80px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h4 {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: var(--text);
}

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

.footer-section li {
  margin-bottom: 12px;
}

.footer-section a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-section a:hover {
  color: var(--primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Forms */
.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.submit-btn {
  width: 100%;
  padding: 16px;
  font-size: 1.1rem;
}

/* Article Content */
.article-content {
  max-width: 800px;
  margin: 0 auto;
}

.article-content h2 {
  font-size: 2rem;
  margin: 40px 0 20px;
}

.article-content h3 {
  font-size: 1.5rem;
  margin: 32px 0 16px;
}

.article-content p {
  margin-bottom: 20px;
  line-height: 1.8;
}

.article-content ul,
.article-content ol {
  margin: 20px 0;
  padding-left: 24px;
}

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

.article-content a {
  color: var(--primary);
  text-decoration: none;
}

.article-content a:hover {
  text-decoration: underline;
}

/* Back to Blog */
.back-to-blog {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 32px;
  font-weight: 500;
  transition: color 0.2s;
}

.back-to-blog:hover {
  color: var(--primary);
}

.back-to-blog svg {
  width: 20px;
  height: 20px;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .mobile-menu-btn {
    display: block;
  }

  nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
  }

  nav ul.active {
    display: flex;
  }

  .stats {
    gap: 40px;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .cta-floating {
    bottom: 16px;
    right: 16px;
    padding: 16px 28px;
    font-size: 1rem;
  }
}

/* Utility */
.text-center { text-align: center; }
.mt-4 { margin-top: 24px; }
.mt-8 { margin-top: 48px; }
.mb-4 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 48px; }

/* Color utilities */
.text-white { color: white; }
.text-primary { color: var(--primary); }
.bg-white { background: white; }

/* Spacing utilities */
.mt-2 { margin-top: 16px; }
.mt-6 { margin-top: 36px; }
.mb-2 { margin-bottom: 16px; }
.mb-5 { margin-bottom: 20px; }
.mb-6 { margin-bottom: 36px; }
.my-10 { margin-top: 40px; margin-bottom: 40px; }

/* Typography */
.text-sm { font-size: 0.95rem; }
.text-lg { font-size: 1.1rem; }
.text-xl { font-size: 1.2rem; }
.text-2xl { font-size: 2rem; }
.text-3xl { font-size: 3.5rem; }
.leading-normal { line-height: 1.7; }

/* Layout */
.py-8 { padding-top: 60px; padding-bottom: 60px; }
.py-4 { padding-top: 24px; padding-bottom: 24px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-600 { max-width: 600px; }
.max-w-700 { max-width: 700px; }
.grid { display: grid; }
.gap-4 { gap: 16px; }

/* Backgrounds */
.bg-gradient { background: var(--gradient); }
.bg-light-accent { background: rgba(99, 102, 241, 0.1); }
.bg-gradient-fade { background: linear-gradient(180deg, var(--bg) 0%, rgba(99, 102, 241, 0.1) 100%); }

/* Button variants */
.cta-btn-white {
  background: white;
  color: var(--primary);
}

/* Article content default */
.article-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Blog card title links */
.blog-card h3 a {
  color: var(--text);
  text-decoration: none;
}

/* Divider */
.divider {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 60px 0;
}

/* Hero subtitle */
.hero-subtitle {
  max-width: 700px;
  margin: 0 auto;
}

/* Additional utility classes for inline style replacement */
.hero-section { padding: 60px 0 40px; }
.hero p {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto;
}
.hero-subtitle { /* for non-index hero paragraphs that may need only max-width and margin auto but will inherit other from .hero p */
  /* can be empty as .hero p covers */
}
.article-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.text-muted { color: var(--text-muted); }
.text-sm { font-size: 0.95rem; }
.text-lg { font-size: 1.1rem; }
.text-xl { font-size: 1.2rem; }
.text-2xl { font-size: 2rem; }
.text-3xl { font-size: 3.5rem; }
.leading-normal { line-height: 1.7; }
.text-primary { color: var(--primary); }
.text-white { color: white; }

.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 24px; }
.mt-6 { margin-top: 36px; }
.mt-8 { margin-top: 48px; }
.mb-2 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 24px; }
.mb-5 { margin-bottom: 20px; }
.mb-20 { margin-bottom: 20px; }
.mb-32 { margin-bottom: 32px; }
.mb-6 { margin-bottom: 36px; }
.mb-8 { margin-bottom: 48px; }
.my-10 { margin-top: 40px; margin-bottom: 40px; }

.py-4 { padding-top: 24px; padding-bottom: 24px; }
.py-8 { padding-top: 60px; padding-bottom: 60px; }

.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-600 { max-width: 600px; }
.max-w-700 { max-width: 700px; }

.grid { display: grid; }
.gap-4 { gap: 16px; }

.bg-white { background: white; }
.bg-gradient { background: var(--gradient); }
.bg-light-accent { background: rgba(99, 102, 241, 0.1); }
.bg-gradient-fade { background: linear-gradient(180deg, var(--bg) 0%, rgba(99, 102, 241, 0.1) 100%); }

.cta-section {
  padding: 60px 0;
  text-align: center;
}
.cta-section .cta-title {
  font-size: 2rem;
  margin-bottom: 20px;
}
.cta-section .cta-title-lg {
  font-size: 2.5rem;
  color: white;
  margin-bottom: 24px;
}
.cta-section .cta-text {
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.cta-section .cta-text-white {
  color: rgba(255,255,255,0.9);
  font-size: 1.2rem;
  margin-bottom: 32px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cta-btn-white {
  background: white;
  color: var(--primary);
}

.divider {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 60px 0;
}

.blog-card h3 a {
  color: var(--text);
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

/* Paragraph styling for article content and footer */
.article-content p,
.footer-section p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Hero meta (date, read time) */
.hero-meta {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto;
}

/* Additional spacing */
.mb-12 { margin-bottom: 60px; }
.mb-32 { margin-bottom: 32px; }
.mb-20 { margin-bottom: 20px; }
.mt-0 { margin-top: 0; }

/* Article content container */
.article-content {
  max-width: 800px;
  margin: 0 auto;
}

/* Horizontal rule */
hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 60px 0;
}

/* Back to blog link */
.back-to-blog {
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
