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

:root {
  --primary: #3B82F6;
  --primary-dark: #2563EB;
  --secondary: #8B5CF6;
  --accent: #EC4899;
  --dark: #0F172A;
  --gray-900: #111827;
  --gray-800: #1F2937;
  --gray-600: #4B5563;
  --gray-400: #9CA3AF;
  --gray-200: #E5E7EB;
  --gray-100: #F3F4F6;
  --white: #FFFFFF;
  --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  --shadow: 0 10px 40px rgba(59, 130, 246, 0.15);
  --shadow-lg: 0 20px 60px rgba(59, 130, 246, 0.25);
  --radius: 12px;
  --radius-lg: 20px;
}

html {
  scroll-behavior: smooth;
}

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

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

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

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

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

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

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

.nav a {
  text-decoration: none;
  color: var(--gray-600);
  font-weight: 500;
  font-size: 16px;
  transition: color 0.2s;
}

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

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--gray-600);
}

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

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 73px;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 24px;
  box-shadow: var(--shadow);
}

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

.mobile-menu a {
  display: block;
  padding: 12px 0;
  text-decoration: none;
  color: var(--gray-600);
  font-weight: 500;
  border-bottom: 1px solid var(--gray-100);
}

/* Hero Section */
.hero {
  padding: 100px 0 120px;
  background: linear-gradient(180deg, var(--gray-100) 0%, var(--white) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 20%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(139, 92, 246, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

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

.hero h1 {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--dark);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero h1 span {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 20px;
  color: var(--gray-600);
  margin-bottom: 40px;
  line-height: 1.7;
  opacity: 0.9;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

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

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

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

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

.btn-large {
  padding: 20px 48px;
  font-size: 18px;
}

/* CTA Button */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--gradient);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: all 0.2s;
}

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

.cta-floating {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 16px 32px;
  z-index: 1000;
  border-radius: 50px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4); }
  50% { box-shadow: 0 0 0 15px rgba(59, 130, 246, 0); }
}

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

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-header h2 {
  font-size: 42px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-header p {
  font-size: 18px;
  color: var(--gray-600);
  line-height: 1.7;
}

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

.feature-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 40px;
  transition: all 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--primary);
}

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

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

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

.feature-card h4 {
  font-size: 18px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 8px;
}

.feature-card h4 a {
  color: var(--primary);
  text-decoration: none;
}

.feature-card h4 a:hover {
  text-decoration: underline;
}

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

/* Stats */
.stats {
  background: var(--dark);
  color: var(--white);
  padding: 80px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  text-align: center;
}

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

.stat-label {
  font-size: 16px;
  color: var(--gray-400);
  margin-top: 8px;
}

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

.blog-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  transition: all 0.2s;
}

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

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

.blog-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
  line-height: 1.4;
}

.blog-card p {
  color: var(--gray-600);
  margin-bottom: 20px;
  line-height: 1.7;
}

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

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

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 8px;
}

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

.faq-question:hover {
  color: var(--primary);
}

.faq-question svg {
  width: 24px;
  height: 24px;
  color: var(--gray-400);
  transition: transform 0.2s;
}

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

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

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

.faq-answer p {
  padding-bottom: 24px;
  color: var(--gray-600);
  line-height: 1.7;
}

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

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

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

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

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

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gray-600);
}

.contact-item svg {
  width: 24px;
  height: 24px;
  color: var(--primary);
}

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

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

footer h4 {
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
}

footer a {
  display: block;
  color: var(--gray-400);
  text-decoration: none;
  margin-bottom: 12px;
  transition: color 0.2s;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid var(--gray-800);
  font-size: 14px;
}

/* Page Header */
.page-header {
  background: var(--gradient);
  padding: 100px 0;
  text-align: center;
  color: var(--white);
}

.page-header h1 {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 16px;
}

.page-header p {
  font-size: 18px;
  opacity: 0.9;
}

/* Content Sections */
.content-section {
  padding: 80px 0;
  max-width: 800px;
  margin: 0 auto;
}

.content-section h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 24px;
}

.content-section h3 {
  font-size: 24px;
  font-weight: 600;
  color: var(--dark);
  margin: 32px 0 16px;
}

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

.content-section ul {
  margin-bottom: 24px;
  padding-left: 24px;
}

.content-section li {
  margin-bottom: 12px;
  color: var(--gray-600);
  line-height: 1.7;
}

/* Blog Article */
.blog-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 24px;
}

.blog-content h1 {
  font-size: 42px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 24px;
  line-height: 1.2;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  color: var(--gray-600);
  font-size: 14px;
}

.blog-body {
  font-size: 18px;
  line-height: 1.8;
  color: var(--gray-800);
}

.blog-body p {
  margin-bottom: 24px;
}

.blog-body h2 {
  font-size: 28px;
  font-weight: 700;
  margin: 40px 0 20px;
  color: var(--dark);
}

.blog-body ul {
  margin: 24px 0;
  padding-left: 24px;
}

.blog-body li {
  margin-bottom: 12px;
}

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

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

  .hero h1 {
    font-size: 36px;
  }

  .hero p {
    font-size: 18px;
  }

  .section-header h2 {
    font-size: 32px;
  }

  .page-header h1 {
    font-size: 36px;
  }

  .container {
    padding: 0 16px;
  }
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.form button {
  width: 100%;
}

/* Utility classes for spacing and alignment */
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mt-60 { margin-top: 60px; }
.mt-80 { margin-top: 80px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-40 { margin-bottom: 40px; }
.mb-60 { margin-bottom: 60px; }
.p-32 { padding: 32px; }
.p-40 { padding: 40px; }
.p-48 { padding: 48px; }
.p-60 { padding: 60px; }
.bg-white { background-color: var(--white); }
.bg-gray-100 { background-color: var(--gray-100); }
.bg-gradient-blue { background: linear-gradient(135deg, #EFF6FF 0%, #F5F3FF 100%); }
.bg-gradient-green { background: linear-gradient(135deg, #F0FDF4 0%, #ECFDF5 100%); }
.bg-gradient-red { background: linear-gradient(135deg, #FEF2F2 0%, #FFF7ED 100%); }
.rounded-lg { border-radius: var(--radius-lg); }
.border-left-accent { border-left: 4px solid var(--accent); }
.border-error { border: 2px solid #FECACA; }
.italic { font-style: italic; }
.font-bold { font-weight: 700; }
.text-primary { color: var(--primary); }
.text-white { color: var(--white); }
.opacity-90 { opacity: 0.9; }

/* Component-specific classes */
.hero-cta-wrapper {
  margin-top: 32px;
  text-align: center;
}
.cta-highlight {
  text-align: center;
  padding: 48px;
  background: linear-gradient(135deg, #EFF6FF 0%, #F5F3FF 100%);
  border-radius: var(--radius-lg);
  margin-top: 60px;
}
.testimonial {
  background: var(--gray-100);
  padding: 40px;
  border-radius: var(--radius-lg);
  margin-bottom: 40px;
}
.testimonial-text {
  font-style: italic;
  margin-bottom: 16px;
}
.testimonial-author {
  font-weight: 600;
  color: var(--primary);
}
.safety-note {
  margin-top: 60px;
  padding: 32px;
  background: linear-gradient(135deg, #FEF2F2 0%, #F5F3FF 100%);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--accent);
}
.emergency-note {
  margin-top: 60px;
  padding: 40px;
  background: linear-gradient(135deg, #FEF2F2 0%, #FFF7ED 100%);
  border-radius: var(--radius-lg);
  border: 2px solid #FECACA;
}
.info-box {
  margin-top: 60px;
  padding: 32px;
  background: linear-gradient(135deg, #F0FDF4 0%, #ECFDF5 100%);
  border-radius: var(--radius-lg);
}
.related-articles {
  margin-top: 32px;
}
.related-articles .feature-card p {
  font-size: 14px;
  margin-top: 8px;
}
.feature-card h3 a {
  color: var(--primary);
  text-decoration: none;
}
.feature-card h3 a:hover {
  text-decoration: underline;
}

.feature-card h4 {
  font-size: 18px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 8px;
}

.feature-card h4 a {
  color: var(--primary);
  text-decoration: none;
}

.feature-card h4 a:hover {
  text-decoration: underline;
}

.blog-back-link a {
  font-size: 18px;
  color: var(--primary);
  text-decoration: none;
}

.blog-back-link a:hover {
  text-decoration: underline;
}
.blog-back-link {
  margin-top: 48px;
  text-align: center;
  font-size: 18px;
}
.cta-btn.light {
  background: var(--white);
  color: var(--primary);
}
.step-icon {
  margin: 0 auto 24px;
}
.section-white {
  padding: 80px 0;
  background: var(--white);
}
.section-gray {
  padding: 100px 0;
  background: var(--gray-100);
}
.section-cta {
  padding: 100px 0;
  background: var(--gradient);
  color: white;
  text-align: center;
}

.section-cta h2 {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 24px;
}

.section-cta p {
  font-size: 20px;
  margin-bottom: 40px;
  opacity: 0.9;
}
.stats {
  background: linear-gradient(135deg, var(--dark) 0%, var(--gray-900) 100%);
}
