/* Root Variables */
:root {
  --primary: #e11d48;
  --primary-dark: #be123c;
  --secondary: #0ea5e9;
  --accent: #f59e0b;
  --dark: #1e293b;
  --dark-light: #334155;
  --light: #f8fafc;
  --gray: #64748b;
  --success: #10b981;
  --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;
}

img { max-width: 100%; height: auto; }

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* 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;
  stroke: var(--primary);
}

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

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

.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;
}

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

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

.hero-content p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 30px;
  opacity: 0.95;
  line-height: 1.6;
}

/* Buttons */
button, .btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  font-size: 1rem;
  text-align: center;
}

.btn {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn:hover {
  background: white;
  color: var(--primary);
  text-decoration: none;
}

.cta-btn {
  background: white;
  color: var(--primary);
  border: none;
  font-size: 1.125rem;
  padding: 1rem 2rem;
}

.cta-btn:hover {
  background: var(--primary-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(225, 29, 72, 0.4);
}

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

.cta-btn.primary:hover {
  background: #d97706;
}

.cta-floating {
  position: fixed;
  bottom: 30px;
  right: 30px;
  padding: 18px 35px;
  background: var(--accent);
  color: white;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4);
  z-index: 999;
  font-weight: 700;
  animation: pulse 2s infinite;
}

.submit-btn {
  background: var(--accent);
  color: white;
  padding: 1rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1.125rem;
  border: none;
  cursor: pointer;
  display: inline-block;
  transition: all 0.3s ease;
  text-align: center;
}

.submit-btn:hover {
  background: #d97706;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}

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

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

section:nth-child(even) {
  background: white;
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 15px;
  font-weight: 700;
  color: var(--dark);
}

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

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

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

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

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

.feature-card h3 {
  margin-bottom: 12px;
  font-size: 1.3rem;
  color: var(--dark);
}

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

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-top: 50px;
}

.step {
  text-align: center;
}

.step h3 {
  margin: 15px 0 10px;
  font-size: 1.2rem;
  color: var(--dark);
}

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

.step-number {
  background: var(--gradient);
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  font-size: 1.5rem;
  font-weight: bold;
}

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

.content-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 25px;
  color: var(--dark);
}

.content-section h1, .content-section h2 {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.content-section p {
  max-width: 800px;
  margin: 0 auto 15px;
  color: var(--gray);
  line-height: 1.8;
}

.content-section ul {
  max-width: 800px;
  margin: 0 auto 15px;
  padding-left: 30px;
  color: var(--gray);
  line-height: 1.8;
}

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

/* Stats */
.stats {
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
  margin-top: 3rem;
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  display: block;
}

.stat-label {
  color: var(--gray);
  font-size: 1rem;
}

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

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

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

.footer-col p {
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
}

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

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

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

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

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

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

.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;
  color: var(--text, var(--dark));
}

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

.faq-question[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 20px;
  color: var(--gray);
  display: none;
}

.faq-answer.show {
  display: block;
  padding-bottom: 20px;
}

.faq-item.active .faq-answer {
  display: block;
  padding-bottom: 20px;
}

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

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

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

.blog-card-content {
  padding: 1.5rem;
}

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

.blog-card p {
  color: var(--gray);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

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

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

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--dark);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  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;
}

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

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

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

  .hero-content p {
    font-size: 1.125rem;
  }

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

  .cta-floating {
    bottom: 1rem;
    right: 1rem;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }

  .stats {
    gap: 2rem;
  }

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

/* Utility Classes */
.text-center { text-align: center; }
.text-gray { color: var(--gray); }
.mt-2 { margin-top: 15px; }
.mt-4 { margin-top: 30px; }
.mb-2 { margin-bottom: 15px; }
.mb-4 { margin-bottom: 30px; }
.m-auto { margin-left: auto; margin-right: auto; }
.max-w-700 { max-width: 700px; }
.max-w-800 { max-width: 800px; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.bg-alt { background-color: var(--light); }
.bg-primary {
  background-color: var(--primary);
  color: white;
}

.back-link {
  display: inline-flex;
  align-items: center;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  margin-bottom: 20px;
}

.back-link:hover {
  text-decoration: underline;
}

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

.related-posts {
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid #e0e0e0;
}

.related-posts h3 {
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.related-posts ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.related-posts a {
  color: var(--primary);
  text-decoration: none;
}

.related-posts a:hover {
  text-decoration: underline;
}
