/* ═══════════════════════════════════════════════════════════
   VERVE Pulse — Marketing Website
   Brand: Black #000, Orange #FF7F40, White #FFF
   Font: Poppins
   ═══════════════════════════════════════════════════════════ */

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

:root {
  --black: #000000;
  --orange: #FF7F40;
  --orange-light: #FFF0E8;
  --orange-dark: #E56A2E;
  --white: #FFFFFF;
  --grey-900: #111111;
  --grey-800: #1A1A1A;
  --grey-700: #2D2D2D;
  --grey-600: #58595B;
  --grey-400: #9CA3AF;
  --grey-300: #D1D5DB;
  --grey-200: #E6E7E8;
  --grey-100: #F4F4F5;
  --grey-50: #FAFAFA;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --shadow-xl: 0 16px 48px rgba(0,0,0,0.16);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--grey-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
ul { list-style: none; }

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

/* ─── Typography ─── */
h1 { font-size: 3.5rem; font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
h2 { font-size: 2.5rem; font-weight: 700; line-height: 1.15; letter-spacing: -0.015em; }
h3 { font-size: 1.5rem; font-weight: 600; line-height: 1.3; }
h4 { font-size: 1.125rem; font-weight: 600; line-height: 1.4; }
p { color: var(--grey-600); }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-center { text-align: center; }
.text-orange { color: var(--orange); }
.text-grey { color: var(--grey-400); }
.text-white { color: var(--white); }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }

/* ─── Spacing ─── */
.section { padding: 100px 0; }
.section-sm { padding: 60px 0; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mt-64 { margin-top: 64px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-48 { margin-bottom: 48px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }
.gap-48 { gap: 48px; }

/* ─── Layout ─── */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }

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

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 32px; border-radius: 50px; font-family: 'Poppins', sans-serif;
  font-size: 0.95rem; font-weight: 600; cursor: pointer; border: none;
  transition: var(--transition); white-space: nowrap;
}
.btn-primary {
  background: var(--orange); color: var(--white);
}
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary {
  background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.3);
}
.btn-secondary:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.btn-outline {
  background: transparent; color: var(--grey-900); border: 2px solid var(--grey-200);
}
.btn-outline:hover { border-color: var(--orange); color: var(--orange); }
.btn-dark {
  background: var(--grey-900); color: var(--white);
}
.btn-dark:hover { background: var(--grey-700); transform: translateY(-1px); }
.btn-lg { padding: 18px 40px; font-size: 1.05rem; }
.btn-sm { padding: 10px 24px; font-size: 0.85rem; }
.btn-icon { width: 48px; height: 48px; padding: 0; border-radius: 50%; }

/* ─── Badge ─── */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 16px; border-radius: 50px; font-size: 0.8rem; font-weight: 600;
}
.badge-orange { background: var(--orange-light); color: var(--orange); }
.badge-dark { background: var(--grey-800); color: var(--orange); }

/* ─── Cards ─── */
.card {
  background: var(--white); border-radius: var(--radius-lg); padding: 32px;
  border: 1px solid var(--grey-200); transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); border-color: var(--grey-300); }
.card-dark {
  background: var(--grey-800); border-color: var(--grey-700); color: var(--white);
}
.card-dark p { color: var(--grey-400); }
.card-dark:hover { border-color: var(--grey-600); }
.card-highlight {
  border: 2px solid var(--orange); position: relative;
}
.card-icon {
  width: 52px; height: 52px; border-radius: 14px; display: flex;
  align-items: center; justify-content: center; font-size: 1.4rem;
  margin-bottom: 16px;
}
.card-icon-orange { background: var(--orange-light); color: var(--orange); }
.card-icon-dark { background: var(--grey-800); color: var(--orange); }

/* ─── Navigation ─── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(0,0,0,0.92); backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; height: 72px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo-text {
  font-size: 1.2rem; font-weight: 700; color: var(--white); letter-spacing: -0.01em;
}
.nav-logo-text span { font-weight: 400; color: var(--orange); }
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a {
  color: var(--grey-400); font-size: 0.9rem; font-weight: 500;
  transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-cta { display: flex; align-items: center; gap: 16px; }
.nav-cta .btn { padding: 10px 24px; font-size: 0.85rem; }

/* Mobile nav */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--white); margin: 5px 0; transition: var(--transition); }

/* ─── Hero ─── */
.hero {
  background: var(--black); color: var(--white); padding: 160px 0 100px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -50%; right: -20%; width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(255,127,64,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 720px; }
.hero-content h1 { margin-bottom: 24px; }
.hero-content p { font-size: 1.2rem; color: var(--grey-400); margin-bottom: 40px; max-width: 560px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 48px; margin-top: 64px; padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.hero-stat-value { font-size: 2rem; font-weight: 700; color: var(--white); }
.hero-stat-label { font-size: 0.85rem; color: var(--grey-400); margin-top: 4px; }

/* Hero centered variant */
.hero-centered { text-align: center; padding: 160px 0 80px; }
.hero-centered .hero-content { max-width: 800px; margin: 0 auto; }
.hero-centered .hero-content p { max-width: 600px; margin: 0 auto 40px; }
.hero-centered .hero-actions { justify-content: center; }

/* ─── Section Headers ─── */
.section-header { text-align: center; max-width: 640px; margin: 0 auto 64px; }
.section-header .badge { margin-bottom: 16px; }
.section-header h2 { margin-bottom: 16px; }
.section-header p { font-size: 1.1rem; }

/* ─── Feature Grid ─── */
.feature-card { padding: 36px; }
.feature-card h4 { margin-bottom: 8px; }
.feature-card p { font-size: 0.95rem; }

/* ─── Pricing ─── */
.pricing-card { padding: 40px; text-align: center; }
.pricing-card .price { font-size: 3rem; font-weight: 700; color: var(--grey-900); }
.pricing-card .price-period { font-size: 0.95rem; color: var(--grey-400); }
.pricing-card .plan-name { font-size: 1.3rem; font-weight: 700; margin-bottom: 4px; }
.pricing-card .plan-desc { font-size: 0.9rem; color: var(--grey-400); margin-bottom: 24px; }
.pricing-features { text-align: left; margin: 28px 0; }
.pricing-features li {
  padding: 10px 0; font-size: 0.9rem; color: var(--grey-600);
  display: flex; align-items: flex-start; gap: 10px;
  border-bottom: 1px solid var(--grey-100);
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-features .check { color: var(--orange); font-weight: 700; flex-shrink: 0; }
.pricing-card-dark .price { color: var(--white); }
.pricing-card-dark .pricing-features li { color: var(--grey-400); border-color: var(--grey-700); }
.pricing-popular {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--orange); color: var(--white); padding: 6px 20px;
  border-radius: 50px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ─── FAQ ─── */
.faq-item {
  border-bottom: 1px solid var(--grey-200); padding: 24px 0;
}
.faq-question {
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; width: 100%; background: none; border: none;
  font-family: 'Poppins', sans-serif; font-size: 1.05rem; font-weight: 600;
  color: var(--grey-900); text-align: left; padding: 0;
}
.faq-question:hover { color: var(--orange); }
.faq-arrow {
  width: 24px; height: 24px; flex-shrink: 0; transition: var(--transition);
  color: var(--grey-400);
}
.faq-item.open .faq-arrow { transform: rotate(180deg); color: var(--orange); }
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height 0.35s ease, padding 0.35s ease;
}
.faq-item.open .faq-answer { max-height: 500px; padding-top: 16px; }
.faq-answer p { font-size: 0.95rem; line-height: 1.7; }

/* ─── Testimonials ─── */
.testimonial-card { padding: 36px; }
.testimonial-text { font-size: 1.05rem; line-height: 1.7; color: var(--grey-600); font-style: italic; margin-bottom: 20px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 44px; height: 44px; border-radius: 50%; background: var(--orange-light);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: var(--orange); font-size: 1rem;
}
.testimonial-name { font-weight: 600; font-size: 0.9rem; }
.testimonial-role { font-size: 0.8rem; color: var(--grey-400); }

/* ─── CTA Banner ─── */
.cta-banner {
  background: var(--black); color: var(--white); border-radius: var(--radius-xl);
  padding: 80px 60px; text-align: center; position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; top: -100px; right: -100px; width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255,127,64,0.15) 0%, transparent 70%);
}
.cta-banner h2 { margin-bottom: 16px; position: relative; }
.cta-banner p { color: var(--grey-400); margin-bottom: 32px; position: relative; }
.cta-banner .btn { position: relative; }

/* ─── Footer ─── */
.footer { background: var(--grey-900); color: var(--white); padding: 80px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; }
.footer-brand p { color: var(--grey-400); font-size: 0.9rem; margin-top: 16px; max-width: 300px; }
.footer-col h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--grey-400); margin-bottom: 20px; }
.footer-col a { display: block; color: var(--grey-400); font-size: 0.9rem; padding: 6px 0; transition: var(--transition); }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  margin-top: 60px; padding-top: 24px; border-top: 1px solid var(--grey-700);
  display: flex; justify-content: space-between; align-items: center;
}
.footer-bottom p { font-size: 0.8rem; color: var(--grey-600); }
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a { font-size: 0.8rem; color: var(--grey-600); }
.footer-bottom-links a:hover { color: var(--grey-400); }

/* ─── Comparison Table ─── */
.comparison-table { width: 100%; border-collapse: collapse; }
.comparison-table th {
  padding: 16px 20px; text-align: left; font-size: 0.85rem; font-weight: 600;
  border-bottom: 2px solid var(--grey-200); color: var(--grey-600);
}
.comparison-table td {
  padding: 14px 20px; font-size: 0.9rem; border-bottom: 1px solid var(--grey-100);
}
.comparison-table tr:hover td { background: var(--grey-50); }
.comparison-table .highlight-col { background: var(--orange-light); }

/* ─── Founder Block ─── */
.founder-block {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: center;
}
.founder-image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-lg);
}
.founder-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}
.founder-role {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--orange);
  margin-bottom: 20px;
}
@media (max-width: 768px) {
  .founder-block {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }
  .founder-image-wrap {
    max-width: 400px;
    margin: 0 auto;
  }
}

/* ─── Stats Row ─── */
.stats-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.stat-card { text-align: center; padding: 32px 16px; }
.stat-value { font-size: 2.5rem; font-weight: 700; color: var(--orange); }
.stat-label { font-size: 0.9rem; color: var(--grey-600); margin-top: 8px; }

/* ─── Feature Detail Sections ─── */
.feature-detail {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
  padding: 80px 0;
}
.feature-detail:nth-child(even) { direction: rtl; }
.feature-detail:nth-child(even) > * { direction: ltr; }
.feature-detail-content .badge { margin-bottom: 16px; }
.feature-detail-content h3 { font-size: 1.75rem; margin-bottom: 16px; }
.feature-detail-content p { margin-bottom: 24px; }
.feature-detail-list li {
  padding: 8px 0; font-size: 0.9rem; color: var(--grey-600);
  display: flex; align-items: center; gap: 10px;
}
.feature-detail-list .check { color: var(--orange); font-weight: 700; }
.feature-detail-visual {
  background: var(--grey-100); border-radius: var(--radius-xl); padding: 48px;
  display: flex; align-items: center; justify-content: center; min-height: 360px;
  position: relative; overflow: hidden;
}
.feature-visual-mockup {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 24px; width: 100%;
}

/* ─── Contact Form ─── */
.contact-form .form-group { margin-bottom: 20px; }
.contact-form label {
  display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 8px; color: var(--white);
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea {
  width: 100%; padding: 14px 18px; border: 1px solid var(--grey-700); border-radius: var(--radius);
  font-family: 'Poppins', sans-serif; font-size: 0.95rem; color: var(--white);
  transition: var(--transition); background: var(--grey-800);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--grey-600); }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,127,64,0.15);
}
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form select option { background: var(--grey-800); color: var(--white); }

/* Legacy class-based form styles */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 8px; color: var(--grey-900); }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 14px 18px; border: 1px solid var(--grey-200); border-radius: var(--radius);
  font-family: 'Poppins', sans-serif; font-size: 0.95rem; color: var(--grey-900);
  transition: var(--transition); background: var(--white);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,127,64,0.1);
}
.form-textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ─── Logo Icon (SVG inline) ─── */
.pulse-icon {
  width: 36px; height: 36px; background: var(--black); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.pulse-icon svg { width: 22px; height: 22px; }

/* ─── Dividers ─── */
.divider { height: 1px; background: var(--grey-200); margin: 0; }
.divider-dark { background: var(--grey-700); }

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  h1 { font-size: 2.75rem; }
  h2 { font-size: 2rem; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .feature-detail { grid-template-columns: 1fr; gap: 40px; }
  .feature-detail:nth-child(even) { direction: ltr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.75rem; }
  .section { padding: 64px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 120px 0 60px; }
  .hero-stats { flex-direction: column; gap: 24px; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .cta-banner { padding: 48px 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form .form-grid { grid-template-columns: 1fr; }
  .comparison-table { font-size: 0.8rem; }
  .comparison-table th, .comparison-table td { padding: 10px 12px; }
}

/* ─── Animations ─── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate { opacity: 0; animation: fadeInUp 0.6s ease forwards; }
.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }

/* ─── Free with VERVE banner ─── */
.free-banner {
  background: linear-gradient(135deg, var(--orange) 0%, #E56A2E 100%);
  color: var(--white); text-align: center; padding: 16px 24px;
  font-size: 0.9rem; font-weight: 600;
}
.free-banner a { text-decoration: underline; font-weight: 700; }

/* ─── Mobile Nav Open State ─── */
@media (max-width: 768px) {
  .nav-links.show {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.96);
    backdrop-filter: blur(20px);
    padding: 24px;
    gap: 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    animation: mobileNavIn 0.25s ease;
  }
  .nav-links.show a {
    padding: 14px 0;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .nav-links.show a:last-child { border-bottom: none; }
  .nav-cta { display: none; }
  .nav-links.show + .nav-cta,
  .nav-toggle ~ .nav-cta { }
  /* Show CTA buttons inside mobile menu */
  .nav-links.show::after {
    content: '';
    display: block;
    height: 16px;
  }
}

@keyframes mobileNavIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── Mega Menu ─── */
.nav-item-mega {
  position: static;
}
.nav-item-mega > a {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}
.nav-item-mega > a .chevron-down {
  width: 14px;
  height: 14px;
  transition: transform 0.25s ease;
  opacity: 0.5;
}
.nav-item-mega:hover > a .chevron-down,
.nav-item-mega.open > a .chevron-down {
  transform: rotate(180deg);
  opacity: 1;
}
.nav-item-mega:hover > a,
.nav-item-mega.open > a {
  color: var(--white);
}

.mega-menu {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--grey-200);
  box-shadow: 0 16px 48px rgba(0,0,0,0.12);
  padding: 48px 0 40px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  z-index: 999;
}

.nav-item-mega:hover .mega-menu,
.nav-item-mega.open .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-menu-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
}

.mega-col-header {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--orange);
  padding-bottom: 12px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--orange);
}

.mega-item {
  display: block;
  padding: 10px 0;
  transition: var(--transition);
}
.mega-item:hover {
  transform: translateX(4px);
}
.mega-item-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--grey-900);
  margin-bottom: 2px;
  transition: color 0.2s ease;
}
.mega-item:hover .mega-item-title {
  color: var(--orange);
}
.mega-item-desc {
  font-size: 0.82rem;
  color: var(--grey-400);
  line-height: 1.4;
}

.mega-menu-footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 24px 0;
  margin-top: 32px;
  border-top: 1px solid var(--grey-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mega-menu-footer p {
  font-size: 0.9rem;
  color: var(--grey-600);
  font-weight: 500;
}
.mega-menu-footer .btn {
  font-size: 0.85rem;
  padding: 10px 24px;
}
.mega-menu-footer .btn-primary {
  color: var(--white);
}

/* Mega menu on mobile — collapse to list */
@media (max-width: 768px) {
  .mega-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border-bottom: none;
    padding: 0;
    background: transparent;
    display: none;
  }
  .nav-item-mega.open .mega-menu {
    display: block;
  }
  .mega-menu-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 16px 0;
  }
  .mega-col-header {
    color: var(--orange);
    border-color: rgba(255,127,64,0.3);
  }
  .mega-item-title { color: var(--white); }
  .mega-item-desc { color: var(--grey-400); }
  .mega-menu-footer {
    padding: 16px 0 0;
    border-color: rgba(255,255,255,0.08);
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
  .mega-menu-footer p { color: var(--grey-400); }
}

/* ─── Nav Dropdown (Resources) ─── */
.nav-dropdown {
  position: relative;
}
.nav-dropdown > a {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}
.nav-dropdown > a .chevron-down {
  width: 14px;
  height: 14px;
  transition: transform 0.25s ease;
  opacity: 0.5;
}
.nav-dropdown:hover > a .chevron-down,
.nav-dropdown.open > a .chevron-down {
  transform: rotate(180deg);
  opacity: 1;
}
.nav-dropdown:hover > a,
.nav-dropdown.open > a {
  color: var(--white);
}
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  min-width: 560px;
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.12);
  padding: 28px 32px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  z-index: 999;
  margin-top: 12px;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.nav-dropdown-section-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--orange);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--orange);
}
.nav-dropdown-item {
  display: block;
  padding: 6px 0;
  text-decoration: none;
  transition: transform 0.15s ease;
}
.nav-dropdown-item:hover {
  transform: translateX(4px);
}
.nav-dropdown-item-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--grey-900);
  transition: color 0.15s ease;
}
.nav-dropdown-item:hover .nav-dropdown-item-title {
  color: var(--orange);
}
.nav-dropdown-item-desc {
  font-size: 0.78rem;
  color: var(--grey-400);
  line-height: 1.3;
}
.nav-dropdown-footer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--grey-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-dropdown-footer a {
  font-size: 0.85rem;
  color: var(--orange);
  font-weight: 600;
  text-decoration: none;
}
.nav-dropdown-footer a:hover {
  text-decoration: underline;
}
@media (max-width: 768px) {
  .nav-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0;
    min-width: 0;
    background: transparent;
    display: none;
    margin-top: 0;
  }
  .nav-dropdown.open .nav-dropdown-menu {
    display: block;
  }
  .nav-dropdown-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 12px 0;
  }
  .nav-dropdown-section-title {
    color: var(--orange);
    border-color: rgba(255,127,64,0.3);
  }
  .nav-dropdown-item-title { color: var(--white); }
  .nav-dropdown-item-desc { color: var(--grey-400); }
  .nav-dropdown-footer {
    border-color: rgba(255,255,255,0.08);
    padding: 12px 0 0;
  }
  .nav-dropdown-footer a { color: var(--orange); }
}

/* ─── Scroll Reveal ─── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.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; }

/* ─── Scroll offset for anchored sections ─── */
[id] {
  scroll-margin-top: 140px;
}

/* ─── Feature Category Dividers ─── */
.feature-category-divider {
  background: var(--black);
  color: var(--white);
  text-align: center;
  padding: 72px 0;
  position: relative;
  overflow: hidden;
}
.feature-category-divider::before {
  content: '';
  position: absolute;
  top: -40%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,127,64,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.feature-category-divider:nth-child(odd)::before { left: -10%; }
.feature-category-divider:nth-child(even)::before { right: -10%; left: auto; }
.feature-category-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--orange);
  margin-bottom: 16px;
}
.feature-category-divider h2 {
  color: var(--white);
  position: relative;
  max-width: 500px;
  margin: 0 auto;
}

/* ─── Feature detail reversed layout ─── */
.feature-detail-reversed {
  direction: rtl;
}
.feature-detail-reversed > * {
  direction: ltr;
}

/* ─── Enhanced mockup components ─── */

/* Browser chrome */
.mockup-browser {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--white);
}
.mockup-browser-bar {
  background: var(--grey-100);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--grey-200);
}
.mockup-browser-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.mockup-browser-dot:nth-child(1) { background: #EF4444; }
.mockup-browser-dot:nth-child(2) { background: #F59E0B; }
.mockup-browser-dot:nth-child(3) { background: #10B981; }
.mockup-browser-url {
  margin-left: 12px;
  background: var(--grey-200);
  border-radius: 6px;
  padding: 4px 14px;
  font-size: 0.7rem;
  color: var(--grey-400);
  flex: 1;
  max-width: 200px;
}
.mockup-browser-body {
  padding: 20px;
}

/* Status dots */
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.status-green { background: #10B981; }
.status-amber { background: #F59E0B; }
.status-red { background: #EF4444; }

/* Mini chart */
.mini-chart {
  height: 72px;
  background: linear-gradient(180deg, rgba(255,127,64,0.12) 0%, transparent 100%);
  border-bottom: 2px solid var(--orange);
  border-radius: 4px 4px 0 0;
  position: relative;
}
.mini-chart-line {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
}
.mini-chart-line svg {
  width: 100%;
  height: 100%;
}

/* Pulsing dot */
.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--orange);
  border-radius: 50%;
  display: inline-block;
  animation: pulse-glow 2s infinite;
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,127,64,0.4); }
  50% { box-shadow: 0 0 0 6px rgba(255,127,64,0); }
}

/* Stat mini cards inside mockups */
.mockup-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.mockup-stat {
  background: var(--grey-50);
  border-radius: 8px;
  padding: 12px;
  text-align: center;
}
.mockup-stat-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--grey-900);
}
.mockup-stat-label {
  font-size: 0.7rem;
  color: var(--grey-400);
  margin-top: 2px;
}

/* Filter pills inside mockups */
.mockup-pills {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}
.mockup-pill {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--grey-100);
  color: var(--grey-600);
}
.mockup-pill-active {
  background: var(--orange);
  color: var(--white);
}

/* AI insight box */
.mockup-ai-insight {
  margin-top: 12px;
  padding: 10px 14px;
  background: var(--orange-light);
  border-radius: 10px;
  font-size: 0.8rem;
  color: var(--orange);
  font-weight: 500;
  line-height: 1.5;
}
.mockup-ai-insight-dark {
  background: rgba(255,127,64,0.15);
}

/* Location cards for multi-site */
.mockup-location {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--grey-100);
  font-size: 0.82rem;
}
.mockup-location:last-child { border-bottom: none; }

/* Lead row */
.mockup-lead {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--grey-100);
  font-size: 0.82rem;
}
.mockup-lead:last-child { border-bottom: none; }
.mockup-lead-score {
  width: 60px;
  height: 5px;
  border-radius: 3px;
  background: var(--grey-200);
  overflow: hidden;
  flex-shrink: 0;
}
.mockup-lead-score-fill {
  height: 100%;
  border-radius: 3px;
}

/* Shift grid for staff management */
.mockup-shift-grid {
  display: grid;
  grid-template-columns: 80px repeat(5, 1fr);
  gap: 4px;
  font-size: 0.7rem;
}
.mockup-shift-name {
  font-weight: 600;
  display: flex;
  align-items: center;
  font-size: 0.75rem;
  color: var(--grey-900);
}
.mockup-shift-block {
  border-radius: 4px;
  padding: 4px;
  text-align: center;
  font-weight: 500;
  font-size: 0.65rem;
}

/* Feature detail visual variants */
.feature-detail-visual-dark {
  background: var(--grey-900);
}
.feature-detail-visual-dark .feature-visual-mockup {
  background: var(--grey-800);
}

/* Section subtle backgrounds */
.section-alt { background: var(--grey-50); }

@media (max-width: 1024px) {
  .feature-detail-reversed { direction: ltr; }
  .mockup-stat-row { grid-template-columns: repeat(3, 1fr); }
  .mockup-shift-grid { grid-template-columns: 60px repeat(5, 1fr); }
}

@media (max-width: 768px) {
  .feature-category-divider { padding: 48px 0; }
  .mockup-stat-row { grid-template-columns: 1fr 1fr 1fr; }
  .mockup-shift-grid { font-size: 0.6rem; }
}
