/* Root Variables */
:root {
  --primary: #e91e63;
  --primary-dark: #c2185b;
  --secondary: #9c27b0;
  --accent: #ff4081;
  --dark: #1a1a2e;
  --dark-light: #16213e;
  --light: #f8f9fa;
  --gray: #495057;
  --success: #28a745;
  --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  --shadow: 0 10px 40px rgba(0,0,0,0.15);
  --radius: 12px;
  --radius-sm: 8px;
}

/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, 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: 0 2px 20px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

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

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

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

.nav-links a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  transition: color 0.2s;
}

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

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

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

.mobile-menu {
  display: none;
  background: white;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

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

.mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.mobile-menu a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

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

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

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

.hero p {
  font-size: 1.25rem;
  margin-bottom: 40px;
  opacity: 0.95;
}

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

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

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

.btn {
  display: inline-block;
  padding: 16px 40px;
  border-radius: var(--radius);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s;
  text-decoration: none;
}

.btn.secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
  margin-left: 15px;
}

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

.cta-floating {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  background: var(--primary);
  color: white;
  padding: 18px 35px;
  border-radius: 50px;
  box-shadow: var(--shadow);
  font-weight: 700;
  animation: pulse 2s infinite;
}

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

/* Features Section */
.features {
  padding: 100px 0;
  background: white;
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 15px;
}

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

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.feature-card {
  background: var(--light);
  padding: 40px;
  border-radius: var(--radius);
  text-align: center;
  transition: transform 0.3s;
}

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

.feature-card svg {
  width: 64px;
  height: 64px;
  stroke: var(--primary);
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
}

/* Content Sections */
.content-section {
  padding: 80px 0;
}

.content-section h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  text-align: center;
}

.content-section p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--gray);
  margin-bottom: 20px;
}

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

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

.card h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: var(--primary);
}

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

.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(--accent);
}

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

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

.footer-section a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-section a:hover {
  color: white;
}

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

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.faq-item {
  background: white;
  border-radius: var(--radius);
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.faq-question {
  width: 100%;
  padding: 20px;
  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;
}

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

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

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

.faq-item.active .faq-answer {
  padding: 0 20px 20px;
  max-height: 1000px;
}

/* Blog */
.blog-list {
  display: grid;
  gap: 30px;
  margin-top: 40px;
}

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

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

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

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

.blog-card a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.blog-meta {
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: 15px;
}

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

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

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

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

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

.back-link {
  display: inline-block;
  margin-bottom: 30px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

/* Contact Form */
.contact-form {
  max-width: 600px;
  margin: 40px auto 0;
}

.form-group {
  margin-bottom: 25px;
}

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

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

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

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

.submit-btn {
  width: 100%;
  background: var(--primary);
  color: white;
  padding: 18px;
  border: none;
  border-radius: var(--radius);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.submit-btn:hover {
  background: var(--primary-dark);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

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

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

  .hero p {
    font-size: 1.1rem;
  }

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

/* Content section heading styles */
.content-section h1 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 30px;
  text-align: center;
}

.content-section h3 {
  font-size: 1.5rem;
  margin: 30px 0 15px;
  color: var(--dark);
}

/* Link styles in content */
.content-section a,
.article-content a {
  color: var(--primary);
  text-decoration: none;
}

.content-section a:hover,
.article-content a:hover {
  text-decoration: underline;
  color: var(--primary-dark);
}

/* Step numbers in How It Works */
.step-number {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 20px;
  font-weight: 700;
}

/* Article CTA wrapper */
.article-cta {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid #eee;
  text-align: center;
}

/* Button spacing when multiple CTAs */
.cta-btn + .cta-btn {
  margin-left: 15px;
}

/* Features grid compact variant for How It Works */
.features-grid--compact {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  margin-top: 60px;
}
