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

:root {
  --primary: #e91e63;
  --primary-dark: #c2185b;
  --secondary: #7c4dff;
  --accent: #ff6b9d;
  --dark: #1a1a2e;
  --dark-light: #16213e;
  --light: #f8f9fa;
  --gray: #6b7280;
  --gray-light: #e5e7eb;
  --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --radius: 12px;
  --radius-sm: 8px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background: var(--light);
  overflow-x: hidden;
}

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

/* Header */
header {
  background: white;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--dark);
}

.logo img {
  width: 40px;
  height: 40px;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

nav a {
  color: var(--gray);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
  white-space: nowrap;
}

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

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-btn svg {
  width: 28px;
  height: 28px;
  color: var(--dark);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: white;
  box-shadow: var(--shadow-lg);
  padding: 20px;
  flex-direction: column;
  gap: 16px;
  z-index: 99;
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu a {
  color: var(--dark);
  text-decoration: none;
  font-weight: 500;
  padding: 12px;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}

.mobile-menu a:hover {
  background: var(--gray-light);
}

/* Hero Section */
.hero {
  background: var(--gradient);
  color: white;
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.1;
}

.hero p {
  font-size: 1.25rem;
  opacity: 0.95;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 40px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: white;
  color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.3);
}

.cta-btn {
  background: var(--gradient);
  color: white;
  padding: 18px 48px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}

.cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.cta-floating {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  padding: 20px 36px;
  font-size: 1.2rem;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

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

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

.section-subtitle {
  text-align: center;
  color: var(--gray);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto 60px;
}

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

.feature-card {
  background: white;
  padding: 40px 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

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

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon svg {
  width: 32px;
  height: 32px;
  color: white;
}

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

.feature-card p {
  color: var(--gray);
  line-height: 1.7;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  background: var(--dark);
  border-radius: var(--radius);
  padding: 60px 40px;
  margin-top: 60px;
}

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

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

.stat-label {
  font-size: 1rem;
  opacity: 0.8;
}

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

.blog-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

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

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

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

.blog-card p {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.blog-link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s;
}

.blog-link:hover {
  gap: 8px;
}

/* Footer */
footer {
  background: var(--dark);
  color: white;
  padding: 60px 0 30px;
  margin-top: 100px;
}

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

.footer-col h4 {
  font-size: 1.125rem;
  margin-bottom: 20px;
  color: white;
}

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

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

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

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

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--gray-light);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  transition: border-color 0.2s;
  font-family: inherit;
}

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

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

/* FAQ Accordion */
.faq-item {
  background: white;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

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

.faq-question:hover {
  background: var(--gray-light);
}

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

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer-content {
  padding: 0 24px 24px;
  color: var(--gray);
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

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

.article-content h2 {
  font-size: 2rem;
  margin: 48px 0 20px;
  color: var(--dark);
}

.article-content h3 {
  font-size: 1.5rem;
  margin: 36px 0 16px;
  color: var(--dark);
}

.article-content p {
  margin-bottom: 20px;
  line-height: 1.8;
  color: var(--gray);
}

.article-content ul,
.article-content ol {
  margin-bottom: 24px;
  padding-left: 24px;
  color: var(--gray);
}

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

.article-meta {
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--gray-light);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 32px;
  transition: gap 0.2s;
}

.back-link:hover {
  gap: 12px;
}

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

  nav {
    display: none;
  }

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

  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .section-title {
    font-size: 2rem;
  }

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

@media (max-width: 480px) {
  .hero {
    padding: 60px 0;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }
}

/* Utility */
.text-center {
  text-align: center;
}

.mt-32 {
  margin-top: 32px;
}

.mb-32 {
  margin-bottom: 32px;
}

/* Smooth scroll padding for fixed header */
section[id] {
  scroll-margin-top: 80px;
}

/* Utility classes */
.ml-16 { margin-left: 16px; }
.mt-24 { margin-top: 24px; }
.mt-48 { margin-top: 48px; }
.mt-64 { margin-top: 64px; }
.mb-24 { margin-bottom: 24px; }
.mb-48 { margin-bottom: 48px; }
.mb-64 { margin-bottom: 64px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.w-full { width: 100%; }
.max-w-600 { max-width: 600px; }
.max-w-800 { max-width: 800px; }
.max-w-900 { max-width: 900px; }
.p-40 { padding: 40px; }
.p-32 { padding: 32px; }
.pt-48 { padding-top: 48px; }
.pb-48 { padding-bottom: 48px; }
.text-white { color: white; }
.text-gray { color: var(--gray); }
.text-sm { font-size: 0.9rem; }
.d-flex { display: flex; }
.d-grid { display: grid; }
.flex-shrink-0 { flex-shrink: 0; }
.align-items-center { align-items: center; }
.justify-content-center { justify-content: center; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-20 { gap: 20px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }
 .gap-48 { gap: 48px; }
 .align-items-start { align-items: flex-start; }
 .gap-8 { gap: 8px; }
 .mb-16 { margin-bottom: 16px; }
 .mb-20 { margin-bottom: 20px; }
 .opacity-95 { opacity: 0.95; }
 .flex-column { flex-direction: column; }
.list-none { list-style: none; }
.border-top { border-top: 1px solid var(--gray-light); }
.rounded { border-radius: var(--radius); }
.bg-gray-light { background: var(--gray-light); }
.bg-dark { background: var(--dark); }
.bg-gradient { background: var(--gradient); }
.bg-dark, .bg-gradient {
  color: white;
}

/* Component: step circle */
.step-circle {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  color: white;
}

/* Component: avatar circle */
.avatar-circle {
  width: 64px;
  height: 64px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
}

/* Component: light callout */
.callout-light {
  background: var(--gray-light);
  padding: 40px;
  border-radius: var(--radius);
  margin-top: 64px;
}

/* Component: dark highlight section */
.highlight-dark {
  background: var(--dark);
  color: white;
  padding: 60px 40px;
  border-radius: var(--radius);
  margin-top: 80px;
}

/* Component: gradient callout */
.callout-gradient {
  background: var(--gradient);
  color: white;
  padding: 40px;
  border-radius: var(--radius);
  margin-top: 64px;
  text-align: center;
}

/* Component: story card */
.story-card {
  background: white;
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.story-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.mt-16 { margin-top: 16px; }
.mb-40 { margin-bottom: 40px; }
.opacity-90 { opacity: 0.9; }

.story-meta {
  color: var(--gray);
  font-size: 0.9rem;
}

.story-meta h4 {
  margin-bottom: 4px;
}

/* Features grid in dark section */
.features-grid-dark {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  text-align: left;
  max-width: 900px;
  margin: 0 auto;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Related articles list */
.text-primary {
  color: var(--primary);
}
.underline {
  text-decoration: underline;
}

.related-list a {
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.related-list a:hover {
  text-decoration: underline;
}

/* Improved contrast for section-subtitle on light gray background */
.section-gray .section-subtitle {
  color: #4b5563;
}

/* Preserve button original styles when combined with .cta-btn */
.btn-primary.cta-btn {
  background: white;
  color: var(--primary);
}
.btn-secondary.cta-btn {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.5);
}
