﻿:root {
  /* Official Colors */
  --color-primary: #264A80;
  /* Admiral Blue */
  --color-primary-light: #325d9e;
  --color-primary-dark: #193359;

  /* Modern Accents */
  --color-accent: #38bdf8;
  /* Sky blue for highlights */
  --color-accent: #0ea5e9;
  /* Brighter Sky blue */
  --color-accent-light: #e0f2fe;

  --color-bg: #ffffff;
  /* White background for less heaviness */
  --color-surface: #f1f5f9;
  /* Slate 100 */

  --color-text-main: #0f172a;
  --color-text-muted: #64748b;

  /* Utilities */
  --border-radius-sm: 12px;
  --border-radius-md: 20px;
  --border-radius-lg: 32px;

  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 12px 30px -10px rgba(38, 74, 128, 0.15);
  --shadow-lg: 0 25px 50px -12px rgba(38, 74, 128, 0.25);

  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-main);
  scroll-behavior: smooth;
  font-size: 16px;
  color: var(--color-text-main);
  background-color: var(--color-bg);
}

body {
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Typography */
h1,
h2,
h3,
h4 {
  color: var(--color-text-main);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  margin-bottom: 1.25rem;
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
  color: var(--color-text-muted);
}

.text-gradient {
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Layout & Containers */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 7rem 0;
}

/* Components: Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-weight: 600;
  border-radius: 100px;
  /* Pill shape for modern look */
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-size: 1.05rem;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
  opacity: 0;
  transition: var(--transition);
}

.btn:hover::before {
  opacity: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, #3b82f6 100%);
  color: white;
  box-shadow: 0 8px 20px -6px rgba(59, 130, 246, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px -8px rgba(59, 130, 246, 0.6);
  color: white;
}

.btn-secondary {
  background-color: white;
  color: var(--color-primary);
  border: 1px solid rgba(38, 74, 128, 0.2);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--color-primary);
  background-color: var(--color-bg);
  transform: translateY(-2px);
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  backdrop-filter: blur(10px);
}

.btn-outline-light:hover {
  background: white;
  color: var(--color-primary);
}

/* ================= Navbar ================= */
.navbar {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 3rem);
  max-width: 1200px;
  padding: 0.75rem 2rem;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 100px;
  box-shadow: 0 10px 40px -10px rgba(15, 23, 42, 0.1);
  transition: var(--transition);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
  width: 100%;
}

.logo img {
  height: 48px;
  transition: var(--transition);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-links li a {
  font-weight: 500;
  color: var(--color-text-muted);
  transition: var(--transition);
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
  border-radius: 100px;
}

.nav-links li a:not(.btn):hover {
  color: var(--color-primary);
  background: rgba(59, 130, 246, 0.08);
  /* Modern pill hover */
}

/* ================= Navbar Dropdown ================= */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  visibility: hidden;
  pointer-events: none;
  position: absolute;
  background-color: white;
  min-width: 650px;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15), 0 10px 15px -10px rgba(0, 0, 0, 0.1);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  z-index: 1001;
  top: 100%;
  left: -200px;
  /* Center align roughly */
  border: 1px solid rgba(226, 232, 240, 0.8);
  margin-top: 15px;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
}

/* Invisible bridge to prevent hover loss between link and dropdown */
.dropdown-content::after {
  content: '';
  position: absolute;
  top: -20px;
  left: 0;
  width: 100%;
  height: 20px;
  background: transparent;
}

.dropdown-content::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: white;
  border-top: 1px solid rgba(226, 232, 240, 0.8);
  border-left: 1px solid rgba(226, 232, 240, 0.8);
}

.dropdown:hover .dropdown-content {
  visibility: visible;
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0);
}

.mega-menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.mega-menu-item {
  display: flex !important;
  align-items: flex-start !important;
  gap: 1rem;
  padding: 1rem !important;
  text-decoration: none;
  border-radius: 12px !important;
  transition: all 0.3s ease !important;
  background: transparent !important;
  border: 1px solid transparent;
}

.mega-menu-item:hover {
  background: #f8fafc !important;
  border-color: rgba(226, 232, 240, 1);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
}

.mega-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.mega-menu-item:hover .mega-icon {
  transform: scale(1.1) rotate(5deg);
}

.mega-text h4 {
  color: var(--color-text-main);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.mega-text p {
  color: var(--color-text-muted);
  font-size: 0.8rem;
  margin: 0;
  line-height: 1.4;
}


@media (max-width: 768px) {
  .detailed-module-row {
    flex-direction: column;
    gap: 2rem;
  }

  .module-subfeatures {
    padding-left: 0;
    border-left: none;
    border-top: 1px solid rgba(226, 232, 240, 0.8);
    padding-top: 2rem;
  }
}

.nav-links li a.btn {
  color: white;
}

.nav-links li a.btn:hover {
  color: white;
}

.hamburger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
}

.hamburger span {
  display: block;
  width: 28px;
  height: 2px;
  background-color: var(--color-primary);
  border-radius: 4px;
  transition: var(--transition);
}

/* ================= Hero Section ================= */
.hero {
  padding-top: 12rem;
  padding-bottom: 8rem;
  padding-top: 11rem;
  padding-bottom: 7rem;
  background: white;
  /* Clean modern white */
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
  top: -250px;
  left: -200px;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
  bottom: -200px;
  right: -100px;
  z-index: 0;
}

.hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5rem;
  position: relative;
  z-index: 1;
}

.hero-content {
  flex: 1;
  max-width: 650px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.5rem 1.25rem;
  background: rgba(38, 74, 128, 0.08);
  color: var(--color-primary);
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 2rem;
  border: 1px solid rgba(38, 74, 128, 0.15);
}

.hero-cta {
  display: flex;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

/* Simulated Dynamic Mockup */
.hero-visual {
  flex: 1.2;
  position: relative;
  perspective: 1000px;
}

.hero-image-wrapper {
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  display: flex;
  overflow: hidden;
  transform: rotateY(-5deg) rotateX(5deg);
  animation: float 6s ease-in-out infinite;
}

.hero-image-wrapper img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

/* Re-added styling for Module Mockups */
.mockup-window {
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: rotateY(-5deg) rotateX(5deg);
  animation: float 6s ease-in-out infinite;
}

/* Floating Badges */
.float-badge {
  position: absolute;
  background: white;
  padding: 1rem 1.5rem;
  border-radius: 16px;
  box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.08);
  /* Lighter shadow */
  display: flex;
  align-items: center;
  gap: 1.25rem;
  z-index: 10;
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.badge-1 {
  bottom: -30px;
  left: -40px;
  animation: floatObj 5s ease-in-out infinite;
}

.badge-2 {
  top: 60px;
  right: -50px;
  animation: floatObj 7s ease-in-out infinite;
  animation-delay: 2s;
}

.badge-icon {
  width: 48px;
  height: 48px;
  background: var(--color-accent-light);
  color: var(--color-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.badge-text h4 {
  font-size: 1rem;
  margin: 0;
  color: var(--color-text-main);
}

.badge-text p {
  font-size: 0.85rem;
  margin: 0;
  color: var(--color-text-muted);
}

@keyframes float {
  0% {
    transform: rotateY(-5deg) rotateX(5deg) translateY(0);
  }

  50% {
    transform: rotateY(-5deg) rotateX(5deg) translateY(-15px);
  }

  100% {
    transform: rotateY(-5deg) rotateX(5deg) translateY(0);
  }
}

@keyframes floatObj {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0);
  }
}

@keyframes fillBar {
  0% {
    width: 30%;
  }

  100% {
    width: 85%;
  }
}

/* ================= Clients Carousel ================= */
.clients-carousel {
  padding: 2rem 0;
  background: white;
  border-bottom: 1px solid var(--color-bg);
  overflow: hidden;
}

.trusted-title {
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-primary);
  letter-spacing: 1.5px;
  margin-bottom: 2.5rem;
}

.carousel-track {
  display: flex;
  width: calc(250px * 14);
  /* 7 images duplicated */
  animation: scroll 30s linear infinite;
  align-items: center;
}

.carousel-slide {
  width: 250px;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0.5;
  filter: grayscale(100%);
  transition: var(--transition);
}

.carousel-slide:hover {
  opacity: 1;
  filter: grayscale(0%);
}

.carousel-slide img {
  height: 100px;
  max-width: 160px;
  object-fit: contain;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(-250px * 7));
  }
}

/* ================= Modules ================= */
.solutions {
  background-color: #f8fafc;
  background-image:
    radial-gradient(at 0% 0%, rgba(59, 130, 246, 0.08) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(14, 165, 233, 0.08) 0px, transparent 50%),
    linear-gradient(to right, rgba(226, 232, 240, 0.5) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(226, 232, 240, 0.5) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
  position: relative;
  overflow: hidden;
  padding-bottom: 9rem;
}

/* Floating Shapes in Background */
.bg-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-shape {
  position: absolute;
  filter: blur(40px);
  opacity: 0.4;
  border-radius: 50%;
  animation: floatShape 20s infinite alternate ease-in-out;
}

.shape-1 {
  width: 300px;
  height: 300px;
  background: rgba(59, 130, 246, 0.15);
  /* Primary */
  top: 10%;
  left: -100px;
  animation-duration: 25s;
}

.shape-2 {
  width: 250px;
  height: 250px;
  background: rgba(14, 165, 233, 0.15);
  /* Accent */
  top: 40%;
  right: -50px;
  animation-duration: 22s;
  animation-delay: -5s;
}

.shape-3 {
  width: 400px;
  height: 400px;
  background: rgba(59, 130, 246, 0.1);
  /* Primary lighter */
  bottom: 10%;
  left: 20%;
  animation-duration: 28s;
  animation-delay: -10s;
}

.shape-4 {
  width: 200px;
  height: 200px;
  background: rgba(14, 165, 233, 0.15);
  /* Accent */
  bottom: 30%;
  right: 15%;
  animation-duration: 18s;
  animation-delay: -2s;
}

@keyframes floatShape {
  0% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }

  50% {
    transform: translate(50px, -50px) scale(1.1) rotate(180deg);
  }

  100% {
    transform: translate(-30px, 80px) scale(0.9) rotate(360deg);
  }
}

.solutions::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
}

.solutions::after {
  content: '';
  position: absolute;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.04) 0%, rgba(255, 255, 255, 0) 70%);
  top: 20%;
  right: -300px;
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
  animation: floatBg 15s infinite alternate ease-in-out;
}

@keyframes floatBg {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(-100px, 100px) scale(1.1);
  }
}

.section-header {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 5rem auto;
  position: relative;
  z-index: 1;
}

.detailed-modules {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.detailed-module-row {
  display: flex;
  gap: 4rem;
  align-items: flex-start;
  padding: 2.5rem;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  border-radius: var(--border-radius-lg);
  box-shadow: 0 10px 40px -10px rgba(15, 23, 42, 0.05);
  border: 1px solid rgba(226, 232, 240, 0.8);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.detailed-module-row::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(600px circle at var(--mouse-x, 0) var(--mouse-y, 0),
      rgba(14, 165, 233, 0.08),
      transparent 40%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  z-index: 0;
}

.detailed-module-row:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px -12px rgba(14, 165, 233, 0.15);
  border-color: rgba(59, 130, 246, 0.3);
  background: white;
}

.detailed-module-row:hover::before {
  opacity: 1;
}

.module-main {
  flex: 1.2;
}

.module-subfeatures {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-left: 3rem;
  border-left: 1px solid rgba(226, 232, 240, 0.8);
}

.subfeature h4 {
  font-size: 1.1rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.subfeature h4::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}

.subfeature p {
  font-size: 0.95rem;
  margin-bottom: 0;
  line-height: 1.5;
}

.module-divider {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(226, 232, 240, 0.8), transparent);
  margin: 0;
}

.module-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--color-surface) 0%, white 100%);
  color: var(--color-primary);
  border-radius: 16px;
  box-shadow: 0 8px 24px -6px rgba(14, 165, 233, 0.15);
  border: 1px solid rgba(226, 232, 240, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  font-size: 1.5rem;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.module-icon::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--color-accent), var(--color-primary));
  z-index: -1;
  opacity: 0;
  transition: opacity 0.5s;
}

.detailed-module-row:hover .module-icon {
  color: white;
  transform: scale(1.1) translateY(-5px) rotate(5deg);
  background: transparent;
  box-shadow: 0 15px 30px -5px rgba(14, 165, 233, 0.4);
  border-color: transparent;
}

.detailed-module-row:hover .module-icon::after {
  opacity: 1;
}

.module-main h3 {
  font-size: 1.45rem;
  margin-bottom: 1rem;
  transition: color 0.3s;
}

.detailed-module-row:hover .module-main h3 {
  color: var(--color-primary);
}

.module-main p {
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.data-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.data-sources span {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.35rem 0.85rem;
  background: var(--color-surface);
  /* Neutral slate background */
  color: var(--color-text-muted);
  /* Softer text color */
  border: 1px solid rgba(226, 232, 240, 0.8);
  /* Subtle gray border */
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.3s;
}

.data-sources span:hover {
  background: white;
  color: var(--color-text-main);
  transform: translateY(-2px);
  border-color: var(--color-primary);
  box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.05);
}

.module-link {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  color: var(--color-primary);
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
  border-radius: 100px;
  background: rgba(59, 130, 246, 0.05);
  transition: all 0.3s;
}

.module-link i {
  margin-left: 8px;
  transition: transform 0.3s;
}

.detailed-module-row:hover .module-link {
  background: var(--color-accent);
  color: white;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.detailed-module-row:hover .module-link i {
  transform: translateX(6px);
  color: white;
}

/* ================= Features ================= */
.features {
  background: white;
}

.features .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 6rem;
}

.feature-list li {
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  border-radius: var(--border-radius-md);
  transition: var(--transition);
}

.feature-list li:hover {
  background: var(--color-bg);
}

.feature-list-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: var(--color-accent-light);
  color: var(--color-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Dynamic Feature Area Mockup */
.feature-mockup {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  background: white;
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 15px 40px -10px rgba(15, 23, 42, 0.05);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.feature-mockup::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  z-index: 1;
  animation: pulseBg 4s infinite alternate;
}

@keyframes pulseBg {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.5;
  }

  100% {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 1;
  }
}

.central-node {
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, var(--color-primary), #3b82f6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2.5rem;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 0 20px rgba(59, 130, 246, 0.1);
  animation: pulseNode 3s infinite;
}

.orbit-node {
  position: absolute;
  width: 60px;
  height: 60px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 10px 20px -5px rgba(15, 23, 42, 0.1);
  border: 1px solid rgba(226, 232, 240, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  font-size: 1.5rem;
  z-index: 3;
}

.orbit-1 {
  top: 15%;
  left: 15%;
  animation: floatObj 4s infinite alternate;
}

.orbit-2 {
  top: 15%;
  right: 15%;
  animation: floatObj 5s infinite alternate;
}

.orbit-3 {
  bottom: 15%;
  left: 25%;
  animation: floatObj 6s infinite alternate;
}

.orbit-4 {
  bottom: 20%;
  right: 15%;
  animation: floatObj 4.5s infinite alternate;
}

@keyframes pulseNode {
  0% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.3);
  }

  70% {
    box-shadow: 0 0 0 30px rgba(59, 130, 246, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
  }
}

/* ================= CTA Footer Section ================= */
.cta-section {
  background-color: #0f172a;
  background-image:
    radial-gradient(at 0% 0%, rgba(59, 130, 246, 0.15) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(14, 165, 233, 0.15) 0px, transparent 50%),
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 30px 30px, 30px 30px;
  color: white;
  text-align: center;
  padding: 8rem 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 100%, rgba(59, 130, 246, 0.1) 0%, transparent 80%);
  z-index: 0;
  pointer-events: none;
  animation: pulseBg 8s infinite alternate ease-in-out;
}

.cta-section .cta-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.cta-text {
  text-align: left;
}

.cta-text h2 {
  color: white;
  margin-bottom: 1.5rem;
  font-size: 2.5rem;
}

.cta-text p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
  font-size: 1.15rem;
}

.cta-benefits {
  list-style: none;
  padding: 0;
}

.cta-benefits li {
  color: white;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.cta-benefits i {
  color: #60a5fa;
}

.cta-form-box {
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  padding: 3rem;
  border-radius: 8px;
  /* Less rounded corners */
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.4), 0 0 0 1px rgba(226, 232, 240, 0.8);
  color: var(--color-text-main);
  text-align: left;
  position: relative;
}

.cta-form-box h3 {
  margin-bottom: 2rem;
  color: var(--color-primary);
  font-size: 1.75rem;
  letter-spacing: -0.5px;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--color-text-main);
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(226, 232, 240, 1);
  border-radius: 6px;
  /* Sharper edges for inputs */
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: #fcfcfd;
  box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.02);
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-primary);
  background: white;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15), inset 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  transform: translateY(-1px);
}

.row-group {
  display: flex;
  gap: 1rem;
}

.half-width {
  flex: 1;
}

.form-disclaimer {
  text-align: center;
  font-size: 0.8rem !important;
  color: var(--color-text-muted) !important;
  margin: 1rem 0 0 0 !important;
}

/* ================= Testimonials ================= */
.testimonials {
  background: var(--color-surface);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: white;
  padding: 2.5rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(226, 232, 240, 0.8);
  transition: var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(59, 130, 246, 0.3);
}

.quote-icon {
  color: var(--color-accent);
  font-size: 2rem;
  margin-bottom: 1.5rem;
  opacity: 0.5;
}

.testimonial-content p {
  font-style: italic;
  font-size: 1.05rem;
  color: var(--color-text-main);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid rgba(226, 232, 240, 0.8);
  padding-top: 1.5rem;
}

.author-avatar {
  width: 50px;
  height: 50px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-size: 1.5rem;
}

.author-info strong {
  display: block;
  font-size: 0.95rem;
  color: var(--color-text-main);
  margin-bottom: 0.2rem;
}

.author-info span {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* ================= Footer ================= */
.footer {
  background: #0f172a;
  /* Very dark modern slate instead of raw navy */
  color: white;
  padding: 5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  margin-top: 1.5rem;
  max-width: 320px;
}

.footer-col h4 {
  color: white;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.footer-col ul li {
  margin-bottom: 1rem;
}

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: white;
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero .container {
    flex-direction: column;
    text-align: center;
    gap: 4rem;
  }

  .hero-content {
    margin: 0 auto;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-visual {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
  }

  .features .container {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .video-grid {
    grid-template-columns: 1fr !important;
    gap: 3rem !important;
  }

  .video-content {
    text-align: center;
  }

  .video-features {
    justify-content: center;
    flex-wrap: wrap;
  }

  .cta-section .cta-container {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .cta-text {
    text-align: center;
  }

  .cta-benefits {
    display: inline-block;
    text-align: left;
    margin: 0 auto 2rem auto;
  }

  .row-group {
    flex-direction: column;
    gap: 0;
  }

  .half-width {
    width: 100%;
  }

  .feature-mockup {
    order: -1;
    max-width: 500px;
    margin: 0 auto;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .navbar {
    top: 0;
    width: 100%;
    border-radius: 0;
    padding: 1rem 1.5rem;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 300px;
    background: white;
    flex-direction: column;
    padding-top: 6rem;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    overflow-y: auto;
  }

  .nav-links.active {
    right: 0;
  }

  .hamburger {
    display: flex;
    z-index: 1001;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand p {
    margin: 1.5rem auto;
  }

  .hero h1 {
    font-size: 2.5rem;
  }
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.appear {
  opacity: 1;
  transform: translateY(0);
}

/* Fix mega-menu grid for mobile */
@media (max-width: 768px) {
  .mega-menu-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .dropdown-content {
    min-width: 100%;
    position: static;
    box-shadow: none;
    border: none;
    padding: 0;
    margin-top: 10px; display: none;
  }

  .nav-links li {
    width: 100%;
    text-align: left;
    padding: 0 1rem;
  }

    .nav-links li a:not(.btn) {
    display: block;
    padding: 1rem 0;
  }
  
  .mega-menu-item {
    padding: 0.5rem 0 !important;
  }
}


/* Contact Page Grid */
.contact-grid {
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem !important;
  }
}
