/* ===== Variables & Reset ===== */
:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #a5b4fc;
  --accent: #8b5cf6;
  --bg: #0f0f1a;
  --bg-card: #1a1a2e;
  --bg-card-hover: #222240;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --text-heading: #ffffff;
  --border: rgba(99, 102, 241, 0.15);
  --gradient: linear-gradient(135deg, #6366f1, #8b5cf6, #a855f7);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-w: 1200px;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a:hover {
  color: #fff;
}

img {
  max-width: 100%;
  display: block;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-heading);
  line-height: 1.2;
  font-weight: 700;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--primary-light);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 3rem;
}

/* ===== Layout ===== */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 6rem 0;
}

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: background var(--transition), box-shadow var(--transition);
}

.nav.scrolled {
  background: rgba(15, 15, 26, 0.92);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border);
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: #fff;
  text-decoration: none;
}

.nav-brand svg {
  width: 36px;
  height: 36px;
}

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

.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
}

.nav-links a:hover {
  color: #fff;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  text-align: center;
  position: relative;
  padding-top: 5rem;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--primary-light);
  margin-bottom: 2rem;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  background: #34d399;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

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

.hero-description {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

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

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  background: rgba(99, 102, 241, 0.08);
  border-color: var(--primary);
  color: #fff;
}

/* ===== Problem Section ===== */
.problem {
  background: linear-gradient(180deg, var(--bg) 0%, rgba(26, 26, 46, 0.5) 100%);
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.problem-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}

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

.problem-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.problem-card h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.problem-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.problem-stat {
  text-align: center;
  margin-top: 3rem;
  padding: 2rem;
  background: rgba(99, 102, 241, 0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.problem-stat .big-number {
  font-size: 3.5rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.problem-stat p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* ===== Features ===== */
.features {
  text-align: center;
}

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

.feature-card {
  text-align: left;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient);
  opacity: 0;
  transition: opacity var(--transition);
}

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

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 12px;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
}

.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== Feature Health Highlight ===== */
.feature-highlight {
  margin-top: 2rem;
}

.feature-highlight-card {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 2rem 2.5rem;
  background: var(--bg-card);
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  max-width: 520px;
  margin: 0 auto;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-highlight-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(135deg, #ef4444, #f97316, #ef4444);
}

.feature-highlight-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.feature-highlight-content h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.feature-highlight-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== Social Proof / Testimonials ===== */
.social-proof {
  text-align: center;
  background: linear-gradient(180deg, rgba(26, 26, 46, 0.5) 0%, var(--bg) 100%);
}

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

.testimonial-card {
  text-align: left;
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.testimonial-stars {
  color: #facc15;
  font-size: 1rem;
  letter-spacing: 2px;
}

.testimonial-text {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.7;
  flex: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: auto;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.testimonial-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-heading);
}

.testimonial-role {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ===== How It Works ===== */
.how-it-works {
  text-align: center;
  background: linear-gradient(180deg, rgba(26, 26, 46, 0.5) 0%, var(--bg) 100%);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 1rem;
}

.step {
  position: relative;
  padding: 2.5rem 1.5rem 2rem;
}

.step-number {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient);
  border-radius: 50%;
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  margin: 0 auto 1.25rem;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

.step h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.step p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ===== Principles ===== */
.principles {
  text-align: center;
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.principle-card {
  padding: 2.5rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}

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

.principle-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.principle-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.principle-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== Roadmap ===== */
.roadmap {
  text-align: center;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(26, 26, 46, 0.5) 100%);
}

.timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  display: flex;
  gap: 1.5rem;
  text-align: left;
  margin-bottom: 2rem;
  position: relative;
}

.timeline-dot {
  width: 56px;
  min-width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 2px solid var(--primary);
  border-radius: 50%;
  font-size: 1.2rem;
  z-index: 1;
}

.timeline-content {
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  flex: 1;
  transition: all var(--transition);
}

.timeline-content:hover {
  background: var(--bg-card-hover);
  box-shadow: var(--shadow);
}

.timeline-content h3 {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.timeline-content .timeline-date {
  font-size: 0.8rem;
  color: var(--primary-light);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.timeline-content p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ===== CTA ===== */
.cta {
  text-align: center;
  padding: 5rem 0;
}

.cta-box {
  padding: 4rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient);
}

.cta-box h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  margin-bottom: 1rem;
}

.cta-box p {
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 2rem;
}

/* ===== HubSpot Form Wrapper ===== */
.hubspot-form-wrapper {
  max-width: 520px;
  margin: 0 auto;
}

/* Dark theme overrides for HubSpot embedded form */
.hubspot-form-wrapper .hs-form input[type="text"],
.hubspot-form-wrapper .hs-form input[type="email"] {
  width: 100% !important;
  padding: 0.85rem 1.25rem !important;
  background: var(--bg) !important;
  border: 1px solid var(--border) !important;
  border-radius: 50px !important;
  color: var(--text) !important;
  font-size: 0.95rem !important;
  font-family: 'Inter', sans-serif !important;
  outline: none !important;
  transition: border-color 0.3s ease !important;
  box-sizing: border-box !important;
}

.hubspot-form-wrapper .hs-form input[type="text"]:focus,
.hubspot-form-wrapper .hs-form input[type="email"]:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15) !important;
}

.hubspot-form-wrapper .hs-form input::placeholder {
  color: var(--text-muted) !important;
}

.hubspot-form-wrapper .hs-form label {
  color: var(--text) !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  margin-bottom: 0.4rem !important;
}

.hubspot-form-wrapper .hs-form .hs-error-msgs label {
  color: #fca5a5 !important;
  font-size: 0.8rem !important;
}

.hubspot-form-wrapper .hs-form .hs-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  padding: 0.85rem 2rem !important;
  border-radius: 50px !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  font-family: 'Inter', sans-serif !important;
  cursor: pointer !important;
  border: none !important;
  background: linear-gradient(135deg, #6366f1, #8b5cf6, #a855f7) !important;
  color: #fff !important;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3) !important;
  transition: all 0.3s ease !important;
}

.hubspot-form-wrapper .hs-form .hs-button:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4) !important;
}

.hubspot-form-wrapper .hs-form .hs-field-desc {
  color: var(--text-muted) !important;
}

.hubspot-form-wrapper .hs-form fieldset {
  max-width: 100% !important;
}

.hubspot-form-wrapper .hs-form .hs-form-field {
  margin-bottom: 1rem !important;
}

.hubspot-form-wrapper .submitted-message {
  color: #34d399 !important;
  font-size: 1.1rem !important;
  text-align: center !important;
}

.form-success-msg {
  text-align: center;
  padding: 1rem 0;
}

.form-success-msg h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #34d399;
}

.form-success-msg p {
  color: var(--text-muted);
}

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0;
}

.footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--text);
}

.footer-brand svg {
  width: 28px;
  height: 28px;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: #fff;
}

.footer-copy {
  width: 100%;
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===== Animations ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Mobile ===== */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(15, 15, 26, 0.96);
    backdrop-filter: blur(16px);
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  section {
    padding: 4rem 0;
  }

  .hero {
    min-height: auto;
    padding: 8rem 0 4rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

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

  .steps {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin: 1rem auto 0;
  }

  .principles-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .feature-highlight-card {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .problem-grid {
    grid-template-columns: 1fr;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .hubspot-form-wrapper {
    padding: 0 0.5rem;
  }
}
