/* Shared Base Styles */
*, ::before, ::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Utility: Animate onScroll fade-up */
.animate-fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.animate-fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hover lift */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.10);
}

/* Glass morphism */
.glass-panel {
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: 16px;
}

/* Smooth pulse for CTA rings */
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(59,130,246,0.45); }
  70% { box-shadow: 0 0 0 18px rgba(59,130,246,0); }
  100% { box-shadow: 0 0 0 0 rgba(59,130,246,0); }
}
.pulse-ring {
  animation: pulse-ring 2.4s infinite;
}

/* Section spacing */
.section-pad {
  padding: 80px 0;
}
@media (max-width: 768px) {
  .section-pad {
    padding: 48px 0;
  }
}

/* ============ PAGE-SPECIFIC CUSTOM STYLES ============ */

/* --- Orange/Slate Theme Overrides --- */
:root {
  --primary: #f97316;
  --primary-dark: #ea580c;
  --primary-light: #fb923c;
  --secondary: #334155;
  --secondary-dark: #1e293b;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
}

/* Hero overlay gradient */
.hero-overlay {
  background: linear-gradient(135deg, rgba(51,65,85,0.88) 0%, rgba(30,41,59,0.78) 100%);
}

/* Orange CTA button */
.btn-orange {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #fff;
  font-weight: 700;
  padding: 14px 36px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.35s ease;
  box-shadow: 0 8px 28px rgba(249,115,22,0.42);
  text-decoration: none;
  border: none;
  cursor: pointer;
  letter-spacing: 0.02em;
}
.btn-orange:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 38px rgba(249,115,22,0.55);
}
.btn-orange:active {
  transform: translateY(0);
  box-shadow: 0 4px 16px rgba(249,115,22,0.35);
}

/* Outline button */
.btn-outline-slate {
  background: transparent;
  color: #334155;
  font-weight: 700;
  padding: 12px 32px;
  border-radius: 50px;
  border: 2px solid #334155;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.35s ease;
  text-decoration: none;
  cursor: pointer;
}
.btn-outline-slate:hover {
  background: #334155;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(51,65,85,0.25);
}

/* Orange ring pulse for download CTA */
@keyframes pulse-orange {
  0% { box-shadow: 0 0 0 0 rgba(249,115,22,0.55); }
  70% { box-shadow: 0 0 0 22px rgba(249,115,22,0); }
  100% { box-shadow: 0 0 0 0 rgba(249,115,22,0); }
}
.pulse-orange {
  animation: pulse-orange 2.2s infinite;
}

/* Card with orange accent */
.card-orange-accent {
  border-top: 4px solid #f97316;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: all 0.35s ease;
}
.card-orange-accent:hover {
  box-shadow: 0 14px 38px rgba(249,115,22,0.12);
  transform: translateY(-4px);
}

/* Download card */
.download-card {
  background: #fff;
  border: 2px solid #e2e8f0;
  border-radius: 20px;
  padding: 32px 28px;
  text-align: center;
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}
.download-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #f97316, #fb923c, #f97316);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.download-card:hover {
  border-color: #f97316;
  box-shadow: 0 18px 45px rgba(249,115,22,0.15);
  transform: translateY(-8px);
}
.download-card:hover::before {
  opacity: 1;
}
.download-card .icon-wrap {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2rem;
  color: #f97316;
}

/* Stat number counter style */
.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: #f97316;
  line-height: 1.2;
}
.stat-label {
  color: #64748b;
  font-size: 0.95rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Slate section background */
.bg-slate-section {
  background: #334155;
  color: #fff;
}

/* Orange badge */
.badge-orange {
  display: inline-block;
  background: #fff7ed;
  color: #f97316;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 4px 14px;
  border-radius: 50px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Step number circle */
.step-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #fff;
  font-weight: 800;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(249,115,22,0.35);
  flex-shrink: 0;
}

/* Testimonial card */
.testimonial-card {
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.05);
  position: relative;
}
.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 10px;
  left: 18px;
  font-size: 4rem;
  color: #f97316;
  opacity: 0.18;
  font-family: Georgia, serif;
  line-height: 1;
}

/* FAQ accordion style */
.faq-item {
  border-bottom: 1px solid #e2e8f0;
}
.faq-question {
  cursor: pointer;
  padding: 18px 0;
  font-weight: 700;
  color: #1e293b;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.25s ease;
}
.faq-question:hover {
  color: #f97316;
}
.faq-question .faq-icon {
  transition: transform 0.3s ease;
  color: #f97316;
}
.faq-question.active .faq-icon {
  transform: rotate(180deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  color: #475569;
  line-height: 1.7;
}
.faq-answer.open {
  max-height: 300px;
  padding-bottom: 18px;
}

/* Footer */
.site-footer {
  background: #1e293b;
  color: #cbd5e1;
  font-size: 0.925rem;
}
.site-footer a {
  color: #fb923c;
  text-decoration: none;
  transition: color 0.25s ease;
}
.site-footer a:hover {
  color: #f97316;
}
.site-footer h5 {
  color: #f8fafc;
  font-weight: 700;
  margin-bottom: 16px;
}

/* Mobile nav overlay */
.mobile-nav {
  background: rgba(30,41,59,0.97);
  backdrop-filter: blur(10px);
}
.mobile-nav a {
  color: #f1f5f9;
  font-size: 1.15rem;
  font-weight: 600;
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  text-decoration: none;
  transition: color 0.25s ease;
}
.mobile-nav a:hover {
  color: #f97316;
}

/* Scrollbar style */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* Responsive tweaks */
@media (max-width: 768px) {
  .btn-orange, .btn-outline-slate {
    padding: 12px 24px;
    font-size: 0.9rem;
  }
  .stat-number {
    font-size: 2.2rem;
  }
  .download-card {
    padding: 24px 18px;
  }
}
