@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;600;700;800&display=swap');

/* CSS Variables */
:root {
  --bg-primary: #070a13;
  --bg-secondary: #0b0f19;
  --bg-card: rgba(13, 20, 38, 0.45);
  --bg-card-hover: rgba(18, 28, 54, 0.6);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(99, 102, 241, 0.3);
  --border-success-glow: rgba(16, 185, 129, 0.3);
  
  --brand-primary: #6366f1;
  --brand-light: #818cf8;
  --brand-glow: rgba(99, 102, 241, 0.15);
  
  --success-accent: #10b981;
  --success-light: #34d399;
  --success-glow: rgba(16, 185, 129, 0.15);
  
  --danger-accent: #ef4444;
  --danger-light: #f87171;
  
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  
  --font-headings: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
}

body {
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(16, 185, 129, 0.05) 0%, transparent 45%);
  background-attachment: fixed;
  line-height: 1.6;
}

::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 5px;
  border: 2px solid var(--bg-primary);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--brand-primary);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

p {
  color: var(--text-secondary);
  font-weight: 400;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Navigation Header */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background-color: rgba(7, 10, 19, 0.7);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}

header.scrolled {
  background-color: rgba(7, 10, 19, 0.9);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  height: 38px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.nav-link:hover {
  color: var(--brand-light);
}

/* Badges */
.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  color: var(--brand-light);
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(4px);
}

.pill-badge.success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: var(--success-light);
}

/* Text Gradients */
.gradient-text {
  background: linear-gradient(135deg, #a5b4fc 0%, #6366f1 50%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.8rem;
  font-family: var(--font-headings);
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-primary) 0%, #4f46e5 100%);
  color: #fff;
  border: none;
  box-shadow: 0 4px 20px var(--brand-glow);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.5s;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-success {
  background: linear-gradient(135deg, var(--success-accent) 0%, #059669 100%);
  color: #fff;
  border: none;
  box-shadow: 0 4px 20px var(--success-glow);
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

/* Glassmorphism Cards */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2.5rem;
  transition: var(--transition-smooth);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(255,255,255,0.03), transparent 60%);
  pointer-events: none;
  z-index: 1;
}

.glass-card:hover {
  border-color: var(--border-glow);
  box-shadow: 0 25px 50px rgba(99, 102, 241, 0.1);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
}

/* Hero Section */
.hero-section {
  padding: 6.5rem 0 8rem 0;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 4rem;
  align-items: center;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.hero-content .subheading {
  font-size: 1.15rem;
  line-height: 1.6;
  margin-bottom: 2.5rem;
  color: var(--text-secondary);
}

.hero-ctas {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.trust-proof {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.trust-proof div {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.trust-proof svg {
  color: var(--success-accent);
  flex-shrink: 0;
}

/* Hero Before / After Visual Mockup */
.mockup-container {
  position: relative;
  z-index: 5;
}

.mockup-container::after {
  content: '';
  position: absolute;
  width: 130%;
  height: 130%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 60%);
  top: -15%;
  left: -15%;
  z-index: -1;
  pointer-events: none;
}

.before-after-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mini-card-before {
  background: rgba(18, 11, 15, 0.6);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 12px;
  padding: 1.25rem;
  position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  transition: var(--transition-smooth);
}

.mini-card-before:hover {
  border-color: rgba(239, 68, 68, 0.4);
  transform: translateY(-2px);
}

.mini-card-after {
  background: rgba(11, 18, 20, 0.85);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 12px;
  padding: 1.5rem;
  position: relative;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 15px rgba(16, 185, 129, 0.1);
  transition: var(--transition-smooth);
}

.mini-card-after:hover {
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.45), 0 0 25px rgba(16, 185, 129, 0.2);
  transform: translateY(-2px);
}

.card-tag {
  position: absolute;
  top: -10px;
  right: 15px;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--font-headings);
}

.card-tag.bad {
  background: var(--danger-accent);
  color: #fff;
}

.card-tag.good {
  background: var(--success-accent);
  color: #fff;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

/* Problem Section */
.problem-section {
  padding: 8rem 0;
  background-color: var(--bg-secondary);
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 5rem auto;
}

.section-header h2 {
  font-size: 2.75rem;
  margin-bottom: 1.25rem;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.problem-card {
  border-color: rgba(239, 68, 68, 0.05);
}

.problem-card:hover {
  border-color: rgba(239, 68, 68, 0.25);
  box-shadow: 0 25px 50px rgba(239, 68, 68, 0.05);
  background: rgba(25, 15, 20, 0.45);
}

.card-icon-bad {
  color: var(--danger-accent);
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
}

.problem-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

/* Solution Section */
.solution-section {
  padding: 8rem 0;
  position: relative;
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.solution-card:hover {
  border-color: var(--border-success-glow);
  box-shadow: 0 25px 50px rgba(16, 185, 129, 0.08);
}

.card-icon-good {
  color: var(--success-accent);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
}

.solution-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

/* Social Proof/Testimonials Section */
.testimonials-section {
  padding: 8rem 0;
  background-image: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  position: relative;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.testimonial-card {
  padding: 2.25rem;
}

.rating-stars {
  color: #fbbf24;
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
  display: flex;
  gap: 0.2rem;
}

.testimonial-text {
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  line-height: 1.55;
}

.author-block {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-top: 1px solid var(--border-color);
  padding-top: 1.25rem;
}

.author-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--brand-primary);
  color: #fff;
  font-weight: 700;
  font-family: var(--font-headings);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.author-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.author-company {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* FAQ Accordion Section */
.faq-section {
  padding: 8rem 0;
  position: relative;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.faq-item:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.faq-header {
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.faq-title {
  font-family: var(--font-headings);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.faq-icon {
  font-size: 1.25rem;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  padding: 0 2rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.faq-item.active {
  border-color: var(--border-glow);
  background: var(--bg-card-hover);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  color: var(--brand-light);
}

.faq-item.active .faq-content {
  padding-bottom: 1.5rem;
  max-height: 300px; /* arbitrary height to allow CSS transition */
}

/* ROI Section styling */
.roi-section {
  padding: 8rem 0;
  background-color: var(--bg-secondary);
  position: relative;
}

.roi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.roi-sliders {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.roi-card-accent {
  border-color: rgba(16, 185, 129, 0.25);
  background: rgba(11, 25, 20, 0.5);
  box-shadow: 0 25px 55px rgba(16, 185, 129, 0.05), 0 0 20px rgba(16, 185, 129, 0.05);
}

.roi-card-accent:hover {
  border-color: rgba(16, 185, 129, 0.5);
  background: rgba(12, 30, 24, 0.6);
  box-shadow: 0 30px 60px rgba(16, 185, 129, 0.1), 0 0 30px rgba(16, 185, 129, 0.15);
}

.roi-summary-header {
  border-bottom: 1px solid rgba(16, 185, 129, 0.2);
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.found-money-value {
  font-family: var(--font-headings);
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--success-light);
  text-shadow: 0 0 20px rgba(52, 211, 153, 0.3);
  margin: 0.5rem 0;
  letter-spacing: -0.03em;
}

.roi-comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.roi-compare-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
}

.roi-compare-box.success-box {
  background: rgba(16, 185, 129, 0.05);
  border-color: rgba(16, 185, 129, 0.2);
}

.roi-compare-title {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.roi-compare-val {
  font-size: 1.35rem;
  font-weight: 700;
  font-family: var(--font-headings);
}

.roi-compare-box.success-box .roi-compare-val {
  color: var(--success-light);
}

/* Custom Slider inputs */
.slider-container {
  margin: 1.5rem 0 2rem 0;
}

.slider-label-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.custom-range-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  margin-bottom: 1.5rem;
}

.custom-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brand-primary);
  cursor: pointer;
  box-shadow: 0 0 10px var(--brand-primary);
  transition: var(--transition-fast);
}

.custom-range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 0 15px var(--brand-primary);
}

/* CTA & Form */
.cta-section {
  padding: 8rem 0;
  position: relative;
}

.cta-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 4rem;
  align-items: center;
}

.cta-form-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.cta-form-card:hover {
  border-color: var(--border-glow);
}

.cta-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.cta-form-grid .form-group.full-width {
  grid-column: span 2;
}

.form-group {
  margin-bottom: 1.25rem;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.form-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.form-input:focus {
  outline: none;
  border-color: var(--brand-primary);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 10px var(--brand-glow);
}

/* Modal dialogs */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 10, 19, 0.8);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  max-width: 480px;
  width: 90%;
  transform: translateY(20px);
  transition: var(--transition-smooth);
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.success-icon-container {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--success-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
  font-size: 2rem;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}

/* Footer */
footer {
  background-color: #04060b;
  border-top: 1px solid var(--border-color);
  padding: 4rem 0 2.5rem 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  margin-top: 1rem;
  font-size: 0.9rem;
  max-width: 250px;
}

.footer-col h4 {
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-col a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer-col a:hover {
  color: var(--brand-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .hero-grid, .roi-grid, .cta-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
  
  .hero-content {
    text-align: center;
  }
  
  .hero-ctas {
    justify-content: center;
  }
  
  .trust-proof {
    align-items: center;
  }
  
  .problem-grid, .solution-grid, .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  
  .nav-container {
    height: 70px;
  }
  
  .nav-links {
    display: none;
  }
  
  .hero-content h1 {
    font-size: 2.75rem;
  }
  
  .problem-grid, .solution-grid, .testimonial-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .section-header h2 {
    font-size: 2.25rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .cta-form-grid {
    grid-template-columns: 1fr;
  }
  
  .cta-form-grid .form-group.full-width {
    grid-column: span 1;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2.25rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .container {
    padding: 0 1.25rem;
  }
}
