:root {
  --primary: #2563eb;
  --primary-dark: #1e40af;
  --primary-deep: #0f172a; /* Slate 900 */
  --accent: #3b82f6;
  --text-main: #1e293b;
  --text-light: #f8fafc;
  --text-muted: #64748b;
  --bg-white: #ffffff;
  --bg-light: #f1f5f9;
  --border: #e2e8f0;
  --radius: 8px;
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--font-sans);
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--bg-white);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Typography */
h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.subtext {
  font-size: 1.125rem;
  max-width: 700px;
  margin-bottom: 2rem;
}

/* Sections */
section {
  padding: 3.5rem 0;
}

.section-light {
  background-color: var(--bg-light);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Navbar */
.navbar {
  height: 70px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(229, 231, 235, 0.5);
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  transition: var(--transition);
}

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

/* Navigation Redesign */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
  transition: all 0.3s ease;
}

.navbar .container {
  max-width: 100%;
  padding: 0 5%;
}

.navbar--scrolled {
  box-shadow: var(--shadow);
  border-bottom: none;
  padding: 0.5rem 0;
}

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

.logo-link img {
  height: 48px;
  width: auto;
  display: block;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 3rem;
}

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

.nav-links > li {
  position: relative;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 500;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links li.has-dropdown:hover > a {
  color: var(--primary);
}

.chevron {
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: -3px;
  transition: transform 0.2s;
}

.has-dropdown:hover .chevron {
  transform: rotate(-135deg);
  margin-top: 3px;
}

/* Dropdown Styles */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: white;
  min-width: 280px;
  padding: 0.75rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
  display: flex;
  flex-direction: column;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  gap: 2px;
}

.dropdown-menu a:hover {
  background: var(--bg-light);
}

.dropdown-menu a strong {
  font-size: 0.95rem;
  color: var(--text-main);
}

.dropdown-menu a span {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 400;
}

.divider {
  height: 1px;
  background: var(--border);
  margin: 0.4rem 0.5rem;
}

.coming-soon {
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0.6;
}

.coming-soon strong {
  font-size: 0.95rem;
}

.coming-soon span {
  font-size: 0.7rem;
  background: #fef3c7;
  color: #92400e;
  padding: 2px 6px;
  border-radius: 4px;
  width: fit-content;
  font-weight: 700;
}

/* CTA Buttons */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.btn-text {
  background: none;
  color: var(--text-main);
  padding: 0.5rem 0;
  font-size: 0.95rem;
  font-weight: 600;
}

.btn-text:hover {
  color: var(--primary);
}

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

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-main);
  transition: 0.3s;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

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

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

/* Mobile Menu Specifics */
@media (max-width: 992px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed; /* Fixed to cover screen properly */
    top: 70px; /* Below navbar */
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem;
    gap: 1.5rem;
    border-top: 1px solid var(--border);
    opacity: 0;
    visibility: hidden;
    transform: translateX(100%); /* Slide in from right */
    transition: var(--transition);
    overflow-y: auto;
  }

  .nav-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
    gap: 0;
  }

  .nav-links > li {
    width: 100%;
  }

  .nav-links a {
    padding: 1rem 0;
    width: 100%;
    justify-content: space-between;
    border-bottom: 1px solid #f3f4f6;
  }

  .dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: none;
    padding: 0 0 1rem 1rem;
    display: none;
    /* Toggle via JS */
  }

  .nav-links li.active-dropdown .dropdown-menu {
    display: flex;
  }

  .nav-actions {
    width: 100%;
    flex-direction: column;
    gap: 0.75rem;
  }

  .nav-actions .btn {
    width: 100%;
    text-align: center;
    padding: 0.8rem;
  }
}

/* Hero Section - B2B Deep Blue */
.hero {
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 4rem 1.5rem;
  text-align: center;
  position: relative;
  background: linear-gradient(135deg, #1e3a8a 0%, #172554 100%);
  color: white;
  overflow: hidden;
}

/* Tech Grid Pattern */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.5;
  z-index: 0;
}

/* Subtle Glow */
.hero::after {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3.5rem;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
  line-height: 1.1;
}

.hero .subtext {
  color: #bfdbfe; /* Light blue text */
  font-size: 1.25rem;
  max-width: 750px;
  margin: 0 auto 3rem;
  line-height: 1.7;
}

.hero .btn-primary {
  background: white;
  color: #1e3a8a;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.hero .btn-primary:hover {
  background: #eff6ff;
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
}

.hero .btn-outline {
  border-color: rgba(255,255,255,0.4);
  color: white;
}

.hero .btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: white;
}

/* Hero Badge Styling */
.hero .card-badge {
    position: relative;
    top: auto;
    right: auto;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(4px);
    padding: 0.5rem 1rem;
    margin-bottom: 2rem !important; /* Force spacing */
    display: inline-block;
    letter-spacing: 0.05em;
    font-size: 0.8rem;
    text-transform: uppercase;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.hero .card-badge.live {
    background: rgba(34, 197, 94, 0.2); /* Green tint */
    color: #86efac;
    border-color: rgba(34, 197, 94, 0.4);
}

.hero .scroll-indicator span {
    border-color: rgba(255,255,255,0.7);
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

.hero h1 {
  animation: fadeInUp 0.8s ease-out;
}

.hero .subtext {
  animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero .cta-group {
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.hero .scroll-indicator {
    position: relative; /* relative positioning */
    margin-top: 4rem; /* Space from buttons */
    bottom: auto;
    left: auto; 
    right: auto;
    transform: none;
    display: inline-flex; /* content width only */
    margin: 4rem auto 0; /* Center horizontally */
    flex-direction: row; /* Horizontal layout */
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: simpleFloat 3s ease-in-out infinite;
}

.hero .scroll-indicator:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.hero .scroll-indicator p {
    font-size: 0.9rem !important; /* Force override inline styles */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: white !important;
    opacity: 1 !important;
    margin: 0 !important;
}

.hero .scroll-indicator span {
    width: 20px;
    height: 20px;
    border-right: 3px solid white;
    border-bottom: 3px solid white;
    transform: rotate(45deg);
    margin-top: -6px;
    margin-right: 0;
}

@keyframes simpleFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

/* Hide on mobile to avoid overlap */
@media (max-width: 768px) {
    .hero .scroll-indicator {
        display: none;
    }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 50px; /* Pill shape */
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-size: 0.95rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 12px -1px rgba(37, 99, 235, 0.3);
}

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

.btn-outline:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
}

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

/* Product Cards */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.product-card {
  background: white;
  padding: 2.5rem 2rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  border-color: var(--primary);
}

.product-card:hover .product-icon {
    background: var(--primary);
    color: white;
}

.product-card:hover .btn-text {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.product-icon {
  width: 64px;
  height: 64px;
  background: var(--bg-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.product-icon img,
.product-icon svg {
  width: 32px;
  height: 32px;
}

.card-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #f3f4f6;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.card-badge.live {
  background: #dcfce7;
  color: #166534;
}

/* Platform Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.feature-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.25rem;
}

.feature-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.card {
  background: white;
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  height: 100%;
}

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

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--primary);
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Steps / How It Works */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.step-item {
  text-align: center;
  position: relative;
}

.step-number {
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin: 0 auto 1.5rem;
}

/* System Comparison */
.system-options {
  margin-bottom: 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.system-card {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.system-card h3 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

/* Pricing Grid Enhancement */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 0 auto;
}

.pricing-card {
  padding: 3rem 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-align: center;
  background: white;
}

.pricing-card.featured {
  border: 2px solid var(--primary);
  transform: scale(1.05);
  box-shadow: var(--shadow);
  z-index: 1;
}

.features-list {
  list-style: none;
  padding: 1.5rem 0;
  text-align: left;
}

.features-list li {
  padding: 0.5rem 0;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.features-list li::before {
  content: "✓";
  color: var(--primary);
  font-weight: bold;
}

.pricing-card.featured {
  border: 2px solid var(--primary);
  position: relative;
}

.discount-badge {
  background: #fef3c7;
  color: #92400e;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 700;
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.9rem;
}

.bundle-price {
  text-decoration: line-through;
  color: var(--text-muted);
  font-size: 1.25rem;
}

.price-final {
  color: #166534;
  font-size: 3rem;
  font-weight: 800;
}

/* Pricing cards refinement */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pricing-card p {
  font-weight: 600;
  color: var(--primary);
  margin-top: -0.5rem;
}

.pricing-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

/* Footer */
footer {
  padding: 4rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.25rem; /* Smaller font for mobile */
  }

  .hero .subtext {
    font-size: 1.1rem;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .nav-links {
    display: none;
  }

  .cta-group {
    flex-direction: column;
  }

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

  section {
    padding: 2.5rem 0;
  }

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

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

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

/* Utility */
.hidden {
  display: none;
}

.text-center {
  text-align: center;
}

.mt-4 {
  margin-top: 1rem;
}

/* Iframe Responsive Height */
.lead-form-iframe {
    width: 100%;
    height: 600px;
    border: none;
    border-radius: var(--radius);
}

@media (max-width: 650px) {
    .lead-form-iframe {
        height: 1100px; /* Taller on mobile for stacked fields */
    }
}
