/* Color Palette and System Variables */
:root {
  --primary-blue: #0044cc;
  --dark-blue: #002244;
  --accent-light: #e2e8f0;
  --text-dark: #1a202c;
  --text-light: #ffffff;
  --bg-light: #f4f7f6;
  --border-color: #cbd5e0;
  --transition: all 0.3s ease-in-out;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
  color: var(--text-dark);
  line-height: 1.6;
  background-color: #ffffff;
}

/* --- Preserved Preloader Animation Styles --- */
#preloader-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #ffffff;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader-container.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-logo {
  width: 110px;
  height: 110px;
  object-fit: contain;
  margin-bottom: 25px;
  animation: logoHeartbeat 1.4s ease-in-out infinite;
}

@keyframes logoHeartbeat {
  0%, 100% { transform: scale(1); }
  14%, 42% { transform: scale(1.12); }
}

.progress-meter-container {
  width: 250px;
  height: 16px;
  background-color: #e2e8f0;
  border-radius: 50px;
  padding: 3px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.progress-meter-bar {
  height: 100%;
  width: 0%;
  background-color: var(--primary-blue);
  border-radius: 50px;
  transition: width 0.1s linear, background-color 0.4s ease;
}

.progress-meter-bar.fully-complete {
  background-color: var(--dark-blue) !important;
}

.preloader-text {
  margin-top: 10px;
  font-size: 0.85rem;
  color: #718096;
  font-weight: 600;
}

/* --- Header & Navigation --- */
header {
  position: sticky;
  top: 0;
  background-color: var(--dark-blue);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.8rem 1.5rem;
}

.brand-logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo {
  height: 38px;
  width: auto;
}

.brand-name {
  color: var(--text-light);
  font-weight: 700;
  font-size: 1.2rem;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 18px;
}

.nav-links a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
}

.nav-links a:hover {
  color: #63b3ed;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: var(--text-light);
  border-radius: 2px;
}

/* --- Section Framework --- */
.scroll-section {
  padding: 80px 20px;
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.scroll-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.bg-light {
  background-color: var(--bg-light);
}

.container {
  max-width: 1150px;
  margin: 0 auto;
  text-align: center;
}

h2 {
  font-size: 2rem;
  color: var(--primary-blue);
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
}

h2::after {
  content: '';
  display: block;
  width: 50%;
  height: 3px;
  background-color: var(--primary-blue);
  margin: 6px auto 0;
  border-radius: 2px;
}

/* --- Hero Section --- */
.hero {
  background: linear-gradient(rgba(0, 34, 68, 0.9), rgba(0, 68, 204, 0.8)), url('hero-bg.jpg') center/cover no-repeat;
  color: var(--text-light);
  text-align: center;
  padding: 120px 20px 90px;
}

.hero-logo {
  width: 90px;
  height: auto;
  margin-bottom: 15px;
}

.hero-content h1 {
  font-size: 2.8rem;
  margin-bottom: 15px;
}

.hero-content p {
  font-size: 1.15rem;
  max-width: 700px;
  margin: 0 auto 25px;
  opacity: 0.92;
}

.hero-cta-group {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  background-color: var(--primary-blue);
  color: var(--text-light);
  padding: 12px 28px;
  text-decoration: none;
  border-radius: 25px;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn:hover {
  background-color: #002244;
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--text-light);
}

.btn-outline:hover {
  background-color: var(--text-light);
  color: var(--dark-blue);
}

/* --- Pricing Cards Section --- */
.pricing-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* Centralizes items on incomplete rows */
  gap: 25px;
  align-items: stretch;
}

.pricing-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  padding: 30px 24px;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
  
  /* Flex sizing to match minmax(300px, 1fr) with a max of 3 items per row */
  flex: 1 1 300px;
  max-width: 380px; 
}

.pricing-card:hover {
  transform: translateY(-6px);
}

.pricing-card.featured {
  border: 2px solid var(--primary-blue);
  box-shadow: 0 8px 25px rgba(0, 68, 204, 0.15);
}

.card-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--dark-blue);
  color: #fff;
  padding: 4px 14px;
  font-size: 0.75rem;
  font-weight: bold;
  border-radius: 20px;
  text-transform: uppercase;
}

.badge-popular {
  background: var(--primary-blue);
}

.pricing-card h3 {
  font-size: 1.4rem;
  margin-top: 10px;
  color: var(--dark-blue);
}

.target-audience {
  font-size: 0.88rem;
  color: #4a5568;
  margin: 10px 0;
  min-height: 40px;
}

.price-box {
  margin: 15px 0;
}

.price-box .currency {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-blue);
  display: block;
}

.price-box .usd-price {
  font-size: 0.95rem;
  color: #718096;
  font-weight: 600;
}

.feature-list {
  list-style: none;
  text-align: left;
  margin: 15px 0;
  flex-grow: 1;
}

.feature-list li {
  padding: 8px 0;
  font-size: 0.92rem;
  color: #2d3748;
}

.feature-list li i {
  color: #38a169;
  margin-right: 8px;
}

.btn-breakdown {
  background: var(--accent-light);
  color: var(--dark-blue);
  font-size: 0.82rem;
  padding: 8px 14px;
  border-radius: 6px;
  margin-bottom: 10px;
}

.btn-breakdown:hover {
  background: #cbd5e0;
}

.breakdown-content {
  background: var(--bg-light);
  border: 1px dashed var(--border-color);
  padding: 12px;
  border-radius: 8px;
  font-size: 0.82rem;
  text-align: left;
  margin-bottom: 12px;
}

.breakdown-content ul {
  list-style-type: disc;
  padding-left: 18px;
  margin-top: 5px;
}

/* --- Animated Workflow Diagram --- */
.workflow-diagram {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.workflow-step {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px 18px;
  flex: 1;
  min-width: 200px;
  position: relative;
  transition: transform 0.3s;
}

.workflow-step:hover {
  transform: translateY(-4px);
}

.step-icon-wrapper {
  position: relative;
  width: 70px;
  height: 70px;
  margin: 0 auto 15px;
  background: var(--bg-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-icon {
  font-size: 1.8rem;
  color: var(--primary-blue);
  animation: floatPulse 3s infinite ease-in-out;
}

@keyframes floatPulse {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.step-number {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--dark-blue);
  color: #fff;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
}

.workflow-step h3 {
  font-size: 1.1rem;
  color: var(--dark-blue);
  margin-bottom: 8px;
}

.workflow-step p {
  font-size: 0.85rem;
  color: #4a5568;
}

.workflow-connector {
  font-size: 1.2rem;
  color: var(--primary-blue);
  animation: pulseArrow 1.5s infinite;
}

@keyframes pulseArrow {
  0%, 100% { opacity: 0.4; transform: translateX(0); }
  50% { opacity: 1; transform: translateX(4px); }
}

/* --- Video Showcase --- */
.video-container {
  width: 100%;
  max-width: 850px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  background-color: #000000;
}

.video-container video {
  width: 100%;
  height: auto;
  display: block;
}

/* --- Ecosystem Grid --- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.card {
  background: #ffffff;
  padding: 24px;
  border-radius: 10px;
  border-left: 4px solid var(--primary-blue);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  text-align: left;
}

.ecosystem-card {
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s;
}

.ecosystem-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 68, 204, 0.12);
}

.card-img-box {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.card-img-box img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.hidden {
  display: none !important;
}

.margin-top-xs { margin-top: 6px; }
.margin-top-sm { margin-top: 12px; }
.margin-top-md { margin-top: 25px; }

/* --- Footer --- */
footer {
  background-color: var(--dark-blue);
  color: var(--text-light);
  padding: 25px 20px;
  border-top: 4px solid var(--primary-blue);
}

footer a {
  color: #63b3ed;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 850px) {
  .workflow-diagram {
    flex-direction: column;
  }

  .workflow-connector {
    transform: rotate(90deg);
    margin: 5px 0;
  }
  
  @keyframes pulseArrow {
    0%, 100% { opacity: 0.4; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(4px); }
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  /* Ensure header remains on top of the overlay */
  header {
    position: sticky;
    top: 0;
    z-index: 1000;
  }

  .nav-links {
    position: fixed;
    top: 60px; /* Adjust this value to match your exact header height */
    left: 0;
    width: 100vw;
    height: calc(100dvh - 60px); /* Covers the remaining height below header */
    background-color: var(--dark-blue);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* Aligns links starting below header */
    padding-top: 20px;
    
    /* Smooth toggle controls */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s ease-in-out, visibility 0.35s ease-in-out;
    z-index: 999;
  }

  .nav-links.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
  }

  .nav-links a {
    display: block;
    padding: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .hero-content h1 {
    font-size: 2rem;
  }
}