/* =========================================================
   LeadFinesse — Global Stylesheet
   Brand: Teal #11b9a8 | Purple #6139da | Dark #1B1A1A | Gold #BF9000
   Fonts: Outfit (headlines) | Arimo (body)
   ========================================================= */

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

:root {
  --teal: #03baa9;
  --teal-light: #0fd4c2;
  --teal-dark: #029a8c;
  --purple: #6239d5;
  --purple-light: #7b57e8;
  --purple-dark: #5028b8;
  --dark: #1B1A1A;
  --dark-card: #232222;
  --dark-surface: #2a2929;
  --gold: #BF9000;
  --white: #FFFFFF;
  --gray-100: #f5f5f5;
  --gray-200: #e5e5e5;
  --gray-300: #d4d4d4;
  --gray-400: #a3a3a3;
  --gray-500: #737373;
  --off-white: #fafaf9;
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Arimo', sans-serif;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.32, 0.72, 0, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.7;
  color: var(--gray-400);
  background: var(--dark);
  overflow-x: hidden;
}

::selection {
  background: var(--purple);
  color: var(--dark);
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.025em;
}

h1 { font-size: clamp(2.8rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

p { max-width: 65ch; }

.text-teal { color: var(--purple); }
.text-purple { color: var(--teal); }
.text-gold { color: var(--gold); }
.text-white { color: var(--white); }
.text-muted { color: var(--gray-500); }

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

.container-narrow {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-wide {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 100px 0;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 24px;
  transition: all 0.5s var(--ease-spring);
}

.nav.scrolled {
  background: rgba(27, 26, 26, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo span {
  color: var(--purple);
}

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

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-400);
  transition: color 0.3s var(--ease-spring);
  position: relative;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--purple);
  transition: width 0.4s var(--ease-out-expo);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all 0.4s var(--ease-spring);
  transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(3px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(3px, -5px);
}

/* Mobile overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(27, 26, 26, 0.95);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ease-spring);
}

.mobile-menu.active {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu a {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.6s var(--ease-out-expo);
}

.mobile-menu.active a {
  transform: translateY(0);
  opacity: 1;
}

.mobile-menu.active a:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active a:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.active a:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.active a:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu.active a:nth-child(5) { transition-delay: 0.3s; }
.mobile-menu.active a:nth-child(6) { transition-delay: 0.35s; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 16px 32px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: all 0.5s var(--ease-spring);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.5s var(--ease-spring);
}

.btn:active {
  transform: scale(0.97);
}

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

.btn-primary:hover {
  background: var(--purple-light);
  box-shadow: 0 0 40px rgba(98, 57, 213, 0.3);
  transform: translateY(-2px);
}

/* Nav CTA button — teal with white text */
.btn-nav {
  background: var(--teal) !important;
  color: var(--white) !important;
}

.btn-nav:hover {
  background: var(--teal-light) !important;
  box-shadow: 0 0 40px rgba(3, 186, 169, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.15);
}

.btn-secondary:hover {
  border-color: var(--purple);
  color: var(--purple);
  transform: translateY(-2px);
}

.btn-purple {
  background: var(--teal);
  color: var(--white);
}

.btn-purple:hover {
  background: var(--teal-light);
  box-shadow: 0 0 40px rgba(97, 57, 218, 0.25);
  transform: translateY(-2px);
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0,0,0,0.15);
  transition: transform 0.4s var(--ease-spring);
}

.btn:hover .btn-icon {
  transform: translateX(3px);
}

/* --- Pill Badge --- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 8px 18px;
  border-radius: 100px;
  border: 1px solid rgba(17, 185, 168, 0.2);
  color: var(--purple);
  background: rgba(17, 185, 168, 0.06);
}

.pill-teal {
  border-color: rgba(3, 186, 169, 0.2);
  color: var(--teal);
  background: rgba(3, 186, 169, 0.06);
}

/* --- Cards (Double-Bezel Architecture) --- */
.card-shell {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 24px;
  padding: 3px;
  transition: all 0.6s var(--ease-spring);
}

.card-shell:hover {
  border-color: rgba(17, 185, 168, 0.15);
  box-shadow: 0 20px 60px -15px rgba(0,0,0,0.4);
}

.card-core {
  background: var(--dark-card);
  border-radius: 21px;
  padding: 36px;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.card-core::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
}

/* --- Stat Counter --- */
.stat {
  text-align: center;
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--purple);
  line-height: 1;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--gray-500);
  margin-top: 8px;
}

/* --- Testimonial --- */
.testimonial {
  position: relative;
  padding: 40px;
  border-left: 3px solid var(--purple);
  background: rgba(17, 185, 168, 0.03);
  border-radius: 0 16px 16px 0;
}

.testimonial p {
  font-size: 1.1rem;
  color: var(--gray-300);
  font-style: italic;
  max-width: 100%;
}

.testimonial-author {
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--gray-500);
}

/* --- Section Divider --- */
.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
}

/* --- Feature Icon --- */
.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(17, 185, 168, 0.1);
  border: 1px solid rgba(17, 185, 168, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--purple);
  font-size: 1.3rem;
  flex-shrink: 0;
}

.feature-icon-teal {
  background: rgba(3, 186, 169, 0.1);
  border-color: rgba(3, 186, 169, 0.15);
  color: var(--teal);
}

/* --- Checklist --- */
.checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 1rem;
  color: var(--gray-300);
  line-height: 1.6;
}

.checklist li .check {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(17, 185, 168, 0.12);
  color: var(--purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  margin-top: 2px;
}

/* --- Grid Layouts --- */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-2-1 {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  align-items: start;
}

.grid-1-2 {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  align-items: start;
}

/* --- Scroll Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s var(--ease-out-expo);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* --- Hero-specific --- */
.hero {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(17, 185, 168, 0.12) 0%, transparent 70%);
  filter: blur(80px);
  animation: float-orb 12s ease-in-out infinite;
}

.hero-bg::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(97, 57, 218, 0.1) 0%, transparent 70%);
  filter: blur(80px);
  animation: float-orb 15s ease-in-out infinite reverse;
}

@keyframes float-orb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 15px) scale(0.95); }
}

/* --- Grain Overlay --- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* --- Footer --- */
.footer {
  padding: 60px 0 40px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer-brand p {
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--gray-500);
  max-width: 300px;
}

.footer-heading {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-400);
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--gray-500);
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--purple);
}

.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--gray-500);
}

/* --- Specific Sections --- */
.pain-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.pain-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  border-radius: 16px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
  transition: all 0.5s var(--ease-spring);
}

.pain-item:hover {
  border-color: rgba(191, 144, 0, 0.15);
  background: rgba(191, 144, 0, 0.03);
}

.pain-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(191, 144, 0, 0.1);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

/* --- Timeline / Steps --- */
.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--purple), var(--teal));
  opacity: 0.3;
}

.timeline-item {
  position: relative;
  padding-bottom: 48px;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -33px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 20px rgba(17, 185, 168, 0.3);
}

.timeline-item:nth-child(even) .timeline-dot {
  background: var(--teal);
  box-shadow: 0 0 20px rgba(97, 57, 218, 0.3);
}

/* --- Pricing Card --- */
.pricing-card {
  position: relative;
}

.pricing-card.featured {
  transform: scale(1.02);
}

.pricing-card.featured .card-shell {
  border-color: rgba(17, 185, 168, 0.25);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

/* --- Form --- */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-400);
}

.form-input {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 14px 20px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: var(--white);
  transition: all 0.3s var(--ease-spring);
  outline: none;
}

.form-input:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(17, 185, 168, 0.1);
}

.form-input::placeholder {
  color: var(--gray-500);
}

/* --- Marquee --- */
.marquee-track {
  display: flex;
  gap: 48px;
  animation: marquee 30s linear infinite;
  width: max-content;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-item {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gray-500);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 12px;
}

.marquee-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--purple);
  opacity: 0.5;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2-1 { grid-template-columns: 1fr; }
  .grid-1-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .pain-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  body { font-size: 16px; }
  section { padding: 64px 0; }

  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .hero { min-height: auto; padding: 120px 0 80px; }

  h1 { font-size: clamp(2rem, 8vw, 3rem); }
  h2 { font-size: clamp(1.6rem, 6vw, 2.4rem); }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }

  .btn { padding: 14px 24px; font-size: 0.9rem; }
}

/* --- Standalone landing page overrides --- */
.landing-page .nav,
.landing-page .footer { display: none; }

/* --- Number counter animation --- */
@keyframes count-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}
