@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ==========================================================================
   1. CSS Reset & Base Styles
   ========================================================================== */

:root {
  /* Colors */
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --dark-bg: #0a1628;
  --dark-bg-alt: #1e3a5f;
  --light-bg: #f8fafc;
  --text: #1e293b;
  --text-light: #64748b;
  --accent: #06b6d4;
  --success: #10b981;
  --white: #ffffff;
  --border-color: #e2e8f0;
  
  /* Typography */
  --font-family: 'Inter', sans-serif;
  
  /* Layout & Sizing */
  --radius-card: 12px;
  --radius-btn: 8px;
  --max-width: 1200px;
  
  /* Effects */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --transition: all 0.3s ease;
}

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

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

body {
  font-family: var(--font-family);
  color: var(--text);
  background-color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

ul, ol {
  list-style: none;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

button, input, textarea, select {
  font: inherit;
  outline: none;
  border: none;
  background: transparent;
}

button {
  cursor: pointer;
}

/* ==========================================================================
   13. Utility Classes
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section-padding {
  padding: 100px 0;
}

.section-title {
  text-align: center;
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 60px;
  font-size: 1.125rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: var(--radius-btn);
  font-weight: 600;
  transition: var(--transition);
  text-align: center;
  gap: 8px;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.btn-outline:hover {
  background-color: var(--white);
  color: var(--primary);
}

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

.btn-outline-dark:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-secondary {
  background-color: rgba(37, 99, 235, 0.1);
  color: var(--primary);
}

.btn-secondary:hover {
  background-color: rgba(37, 99, 235, 0.2);
}

.btn-full {
  width: 100%;
}

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

/* ==========================================================================
   2. Navigation (.navbar)
   ========================================================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  background-color: transparent;
  transition: var(--transition);
}

.navbar.scrolled {
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  padding: 15px 0;
}

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

.navbar .logo {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--white);
  z-index: 1001;
}

.navbar.scrolled .logo {
  color: var(--dark-bg);
}

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

.nav-links a {
  color: var(--white);
  font-weight: 500;
  position: relative;
  padding-bottom: 4px;
}

.navbar.scrolled .nav-links a {
  color: var(--text);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  background-color: var(--primary);
  color: var(--white) !important;
  padding: 10px 24px;
  border-radius: var(--radius-btn);
}

.nav-cta::after {
  display: none;
}

.nav-cta:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--white);
  transition: var(--transition);
}

.navbar.scrolled .hamburger span {
  background-color: var(--text);
}

/* Mobile Menu wrapper for slide-in effect */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 998;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ==========================================================================
   3. Hero Section (.hero)
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #0a1628 0%, #1e3a5f 50%, #0a1628 100%);
  padding-top: 80px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 15% 50%, rgba(37, 99, 235, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 85% 30%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  max-width: 800px;
  line-height: 1.2;
  margin-bottom: 24px;
}

.hero h1 span {
  background: linear-gradient(to right, #60a5fa, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  color: #94a3b8;
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  max-width: 600px;
  margin-bottom: 40px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-graphic {
  margin-top: 60px;
  width: 100%;
  max-width: 1000px;
  position: relative;
}

.hero-graphic img {
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Floating Dots Animation */
.floating-dots {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.dot {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  animation: float 10s infinite ease-in-out;
}

.dot:nth-child(1) { width: 100px; height: 100px; top: 20%; left: 10%; animation-delay: 0s; }
.dot:nth-child(2) { width: 60px; height: 60px; top: 60%; left: 80%; animation-delay: -2s; }
.dot:nth-child(3) { width: 40px; height: 40px; top: 80%; left: 20%; animation-delay: -4s; }
.dot:nth-child(4) { width: 80px; height: 80px; top: 30%; left: 70%; animation-delay: -6s; }

/* ==========================================================================
   4. Features Section (.features)
   ========================================================================== */

.features {
  background-color: var(--light-bg);
  padding: 100px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 60px;
}

.feature-card {
  background-color: var(--white);
  padding: 40px;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,0.03);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, var(--primary), var(--accent));
  opacity: 0;
  transition: var(--transition);
}

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

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

.feature-card .icon,
.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background-color: rgba(37, 99, 235, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--primary);
  font-size: 1.5rem;
  transition: var(--transition);
}

.feature-icon.icon-cyan {
  background-color: rgba(6, 182, 212, 0.1);
  color: var(--accent);
}

.feature-icon.icon-green {
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--success);
}

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

.feature-card:hover .feature-icon.icon-cyan {
  background-color: var(--accent);
}

.feature-card:hover .feature-icon.icon-green {
  background-color: var(--success);
}

.feature-card h3 {
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.feature-card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* ==========================================================================
   5. Products/Solutions Section (.solutions)
   ========================================================================== */

.solutions {
  background-color: var(--white);
  padding: 100px 0;
}

.solution-item {
  display: flex;
  align-items: center;
  gap: 60px;
  margin-bottom: 100px;
}

.solution-item:last-child {
  margin-bottom: 0;
}

.solution-item:nth-child(even) {
  flex-direction: row-reverse;
}

.solution-image {
  flex: 1;
  position: relative;
}

.solution-image img {
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 2;
}

.solution-image::after {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-card);
  background-color: var(--light-bg);
  z-index: 1;
}

.solution-item:nth-child(even) .solution-image::after {
  left: auto;
  right: -20px;
}

.solution-content {
  flex: 1;
}

.solution-content .badge {
  display: inline-block;
  padding: 4px 12px;
  background-color: rgba(6, 182, 212, 0.1);
  color: var(--accent);
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.solution-content h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text);
}

.solution-content p {
  color: var(--text-light);
  margin-bottom: 30px;
  font-size: 1.125rem;
}

.solution-features {
  margin-bottom: 40px;
}

.solution-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--text);
  font-weight: 500;
}

.solution-features li svg,
.solution-features li i {
  color: var(--success);
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* ==========================================================================
   6. How It Works (.how-it-works)
   ========================================================================== */

.how-it-works {
  background-color: var(--light-bg);
  padding: 100px 0;
}

.steps-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  margin-top: 60px;
  padding-top: 20px;
}

.step-line {
  position: absolute;
  top: 50px; /* Align with middle of circle */
  left: 5%;
  right: 5%;
  height: 2px;
  background: var(--border-color);
  z-index: 1;
}

.step {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 2;
  padding: 0 20px;
}

.step-number {
  width: 60px;
  height: 60px;
  background-color: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 24px;
  border: 4px solid var(--light-bg); /* Mask the line behind it */
  box-shadow: var(--shadow-sm);
}

.step h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text);
}

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

/* ==========================================================================
   7. Stats Section (.stats)
   ========================================================================== */

.stats {
  background: linear-gradient(135deg, #0a1628 0%, #1e3a5f 100%);
  padding: 80px 0;
  position: relative;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.stat-item {
  text-align: center;
  padding: 20px;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.stat-number span {
  color: var(--accent);
}

.stat-label {
  font-size: 1rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

/* ==========================================================================
   8. Pricing Section (.pricing)
   ========================================================================== */

.pricing {
  background-color: var(--white);
  padding: 100px 0;
}

.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 40px auto 60px;
}

.pricing-toggle span {
  font-weight: 600;
  color: var(--text-light);
}

.pricing-toggle span.active {
  color: var(--text);
}

.toggle-switch {
  position: relative;
  width: 60px;
  height: 32px;
  background-color: var(--primary);
  border-radius: 16px;
  cursor: pointer;
  transition: var(--transition);
}

.toggle-slider {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 24px;
  height: 24px;
  background-color: var(--white);
  border-radius: 50%;
  transition: var(--transition);
}

.toggle-switch.yearly .toggle-slider {
  transform: translateX(28px);
}

.badge-discount {
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--success);
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 12px;
  font-weight: 700;
  margin-left: 8px;
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  align-items: center;
}

.pricing-card {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 40px;
  position: relative;
  transition: var(--transition);
}

.pricing-card:hover {
  box-shadow: var(--shadow-lg);
}

.pricing-card.popular {
  border-color: var(--primary);
  border-width: 2px;
  transform: scale(1.05);
  box-shadow: var(--shadow-xl);
  z-index: 2;
}

.pricing-card.popular:hover {
  transform: scale(1.05) translateY(-5px);
}

.popular-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--primary);
  color: var(--white);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
}

.pricing-header {
  text-align: center;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 30px;
}

.pricing-header h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text);
}

.price {
  font-size: 3rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  justify-content: center;
  align-items: baseline;
}

.price span {
  font-size: 1rem;
  color: var(--text-light);
  font-weight: 500;
  margin-left: 4px;
}

.pricing-features {
  margin-bottom: 40px;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--text);
  font-size: 0.95rem;
}

.pricing-features li svg,
.pricing-features li i {
  color: var(--primary);
  font-size: 1.25rem;
}

.pricing-features li.disabled {
  color: #cbd5e1;
}

.pricing-features li.disabled svg,
.pricing-features li.disabled i {
  color: #cbd5e1;
}

/* ==========================================================================
   9. Testimonials (.testimonials)
   ========================================================================== */



/* ==========================================================================
   10. FAQ Section (.faq)
   ========================================================================== */

.faq {
  background-color: var(--white);
  padding: 100px 0;
}

.faq-container {
  max-width: 800px;
  margin: 50px auto 0;
}

.faq-item {
  border-bottom: 1px solid var(--border-color);
  padding: 24px 0;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--text);
  transition: var(--transition);
}

.faq-question:hover {
  color: var(--primary);
}

.faq-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  color: var(--primary);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  color: var(--text-light);
}

.faq-item.active .faq-answer {
  max-height: 200px; /* Adjust based on content */
}

.faq-answer-inner {
  padding-top: 16px;
  padding-bottom: 8px;
}

/* ==========================================================================
   11. Contact Section (.contact)
   ========================================================================== */

.contact {
  background-color: var(--light-bg);
  padding: 100px 0;
}

.contact-container {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 60px;
  margin-top: 50px;
  background-color: var(--white);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.contact-form-wrap {
  padding: 60px;
}

.contact-form-wrap h3 {
  font-size: 1.5rem;
  margin-bottom: 30px;
  color: var(--text);
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-btn);
  font-size: 1rem;
  color: var(--text);
  background-color: var(--white);
  transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-info-wrap {
  background-color: var(--dark-bg);
  padding: 60px;
  color: var(--white);
  display: flex;
  flex-direction: column;
}

.contact-info-wrap h3 {
  font-size: 1.5rem;
  margin-bottom: 30px;
  color: var(--white);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-bottom: 40px;
  flex: 1;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.info-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.info-text h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.info-text p {
  color: #94a3b8;
  font-size: 0.95rem;
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: var(--transition);
}

.social-links a:hover {
  background-color: var(--primary);
  transform: translateY(-3px);
}

/* ==========================================================================
   12. Footer (.footer)
   ========================================================================== */

.footer {
  background-color: var(--dark-bg);
  color: var(--white);
  padding: 80px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand .logo {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 20px;
  display: inline-block;
  color: var(--white);
}

.footer-brand p {
  color: #94a3b8;
  margin-bottom: 24px;
  max-width: 300px;
}

.footer h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--white);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: #94a3b8;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--white);
  padding-left: 4px;
}

.newsletter-form {
  display: flex;
  margin-top: 16px;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 16px;
  border-radius: 8px 0 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--white);
}

.newsletter-form input:focus {
  border-color: var(--primary);
}

.newsletter-form button {
  padding: 12px 20px;
  background-color: var(--primary);
  color: var(--white);
  border-radius: 0 8px 8px 0;
  font-weight: 600;
  transition: var(--transition);
}

.newsletter-form button:hover {
  background-color: var(--primary-hover);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #94a3b8;
  font-size: 0.875rem;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a:hover {
  color: var(--white);
}

/* ==========================================================================
   14. Animations
   ========================================================================== */

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

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(37, 99, 235, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
  }
}

.fade-in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Add stagger effect for grid items */
.features-grid .feature-card:nth-child(1) { transition-delay: 0.1s; }
.features-grid .feature-card:nth-child(2) { transition-delay: 0.2s; }
.features-grid .feature-card:nth-child(3) { transition-delay: 0.3s; }

/* ==========================================================================
   15. Responsive Breakpoints
   ========================================================================== */

/* Tablet Breakpoint */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 3rem;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .solution-item, .solution-item:nth-child(even) {
    gap: 40px;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
  
  .pricing-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .pricing-card.popular {
    transform: none;
  }
  
  .pricing-card.popular:hover {
    transform: translateY(-5px);
  }
  
  .testimonial-card {
    min-width: calc(50% - 15px);
  }
  
  .contact-container {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
}

/* Mobile Breakpoint */
@media (max-width: 768px) {
  .section-padding {
    padding: 60px 0;
  }
  
  /* Navigation */
  .hamburger {
    display: flex;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 30px 30px;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    transition: 0.4s ease;
    z-index: 999;
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .nav-links a {
    color: var(--text);
    font-size: 1.125rem;
    width: 100%;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
  }
  
  .nav-cta {
    width: 100%;
    text-align: center;
    margin-top: 20px;
  }

  /* Hero */
  .hero {
    padding-top: 120px;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-buttons .btn {
    width: 100%;
  }
  
  /* Features */
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  /* Solutions */
  .solution-item, .solution-item:nth-child(even) {
    flex-direction: column;
    gap: 30px;
  }
  
  /* How It Works */
  .steps-container {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }
  
  .step-line {
    display: none; /* Hide line on mobile */
  }
  
  /* Stats */
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  /* Pricing */
  .pricing-cards {
    grid-template-columns: 1fr;
  }
  
  /* Testimonials */
  .testimonial-card {
    min-width: 100%;
  }
  
  /* Contact */
  .contact-form-wrap, .contact-info-wrap {
    padding: 30px 20px;
  }
  
  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .hero-badges {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
}

/* ==========================================================================
   Additional Styles (HTML-CSS Alignment)
   ========================================================================== */

/* Text Gradient */
.text-gradient {
  background: linear-gradient(to right, #60a5fa, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hero Badges */
.hero-badges {
  display: flex;
  gap: 24px;
  margin-top: 48px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #94a3b8;
  font-size: 0.9rem;
}

.hero-badge svg, .hero-badge i {
  width: 18px;
  height: 18px;
  color: var(--accent);
}

/* Floating Circles (Hero) */
.floating-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.06);
  pointer-events: none;
  z-index: 0;
}

.circle-1 {
  width: 300px;
  height: 300px;
  top: 10%;
  left: -5%;
  animation: float 12s infinite ease-in-out;
}

.circle-2 {
  width: 200px;
  height: 200px;
  top: 60%;
  right: -3%;
  animation: float 10s infinite ease-in-out 2s;
}

.circle-3 {
  width: 150px;
  height: 150px;
  bottom: 5%;
  left: 20%;
  animation: float 14s infinite ease-in-out 4s;
}

.hero-bg-pattern,
.hero-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hero-glow {
  background: radial-gradient(ellipse at 50% 50%, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background-color: var(--white);
  z-index: 999;
  padding: 100px 30px 30px;
  box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
  transition: right 0.4s ease;
  overflow-y: auto;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu ul {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mobile-menu ul li a {
  display: block;
  padding: 16px 0;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.mobile-menu ul li a:hover {
  color: var(--primary);
  padding-left: 8px;
}

.mobile-menu .mobile-cta {
  display: inline-block;
  background-color: var(--primary);
  color: var(--white) !important;
  padding: 14px 32px;
  border-radius: var(--radius-btn);
  text-align: center;
  margin-top: 20px;
  border: none;
}

/* Hamburger Animation */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

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

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Button Utilities */
.btn-sm {
  padding: 10px 24px;
  font-size: 0.9rem;
}

.btn-block {
  display: block;
  width: 100%;
  text-align: center;
}

.btn-icon, .btn-icon-right {
  width: 18px;
  height: 18px;
}

/* Solution Mockups */
.solution-visual {
  flex: 1;
  min-width: 0;
}

.solution-text {
  flex: 1;
  min-width: 0;
}

.solution-mockup {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.solution-mockup.mockup-cyan {
  background: linear-gradient(135deg, #164e63, #0f172a);
}

.solution-mockup.mockup-green {
  background: linear-gradient(135deg, #14532d, #0f172a);
}

.mockup-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mockup-dots {
  display: flex;
  gap: 6px;
}

.mockup-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.mockup-dots span:first-child {
  background: #ef4444;
}

.mockup-dots span:nth-child(2) {
  background: #f59e0b;
}

.mockup-dots span:last-child {
  background: #22c55e;
}

.mockup-title {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

.mockup-body {
  display: flex;
  min-height: 250px;
}

.mockup-sidebar {
  width: 60px;
  background: rgba(255, 255, 255, 0.03);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  padding: 16px 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mockup-nav-item {
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
}

.mockup-nav-item.active {
  background: var(--primary);
}

.mockup-content {
  flex: 1;
  padding: 20px;
}

.mockup-card-row {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.mockup-stat-card {
  flex: 1;
  height: 50px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.mockup-stat-card.blue {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.3), rgba(37, 99, 235, 0.1));
  border-color: rgba(37, 99, 235, 0.2);
}

.mockup-stat-card.cyan {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.3), rgba(6, 182, 212, 0.1));
  border-color: rgba(6, 182, 212, 0.2);
}

.mockup-stat-card.green {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(16, 185, 129, 0.1));
  border-color: rgba(16, 185, 129, 0.2);
}

.mockup-chart {
  height: 100px;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.15) 0%, rgba(37, 99, 235, 0.02) 100%);
  border: 1px solid rgba(37, 99, 235, 0.1);
  position: relative;
  overflow: hidden;
}

.mockup-chart::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to right,
    transparent 0%,
    rgba(37, 99, 235, 0.1) 15%,
    rgba(37, 99, 235, 0.2) 30%,
    rgba(37, 99, 235, 0.15) 50%,
    rgba(37, 99, 235, 0.25) 70%,
    rgba(37, 99, 235, 0.1) 85%,
    transparent 100%
  );
  clip-path: polygon(0% 80%, 15% 60%, 30% 70%, 50% 30%, 70% 50%, 85% 20%, 100% 40%, 100% 100%, 0% 100%);
}

/* Solution Badges */
.solution-badge {
  display: inline-block;
  padding: 4px 14px;
  background-color: rgba(37, 99, 235, 0.1);
  color: var(--primary);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.solution-badge.badge-cyan {
  background-color: rgba(6, 182, 212, 0.1);
  color: var(--accent);
}

/* Pricing Card Header & Price (HTML alignment) */
.pricing-card-header {
  text-align: center;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
}

.pricing-card-header h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.pricing-desc {
  color: var(--text-light);
  font-size: 0.9rem;
}

.pricing-card-price {
  text-align: center;
  margin-bottom: 32px;
}

.price-amount {
  font-size: 3rem;
  font-weight: 700;
  color: var(--text);
}

.price-currency {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  margin-left: 2px;
}

.price-period {
  font-size: 1rem;
  color: var(--text-light);
  font-weight: 400;
}

/* Toggle Discount Label */
.toggle-discount {
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--success);
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 700;
  margin-left: 6px;
}

.toggle-label {
  font-weight: 600;
  color: var(--text-light);
  cursor: pointer;
  transition: var(--transition);
}

.toggle-label.active {
  color: var(--text);
}

/* Toggle Switch checkbox hidden */
.toggle-switch input[type="checkbox"] {
  display: none;
}

/* Testimonial Section */
.testimonials {
  background-color: var(--light-bg);
  padding: 100px 0;
  position: relative;
}

.testimonial-wrapper {
  position: relative;
  max-width: 900px;
  margin: 40px auto 0;
  padding: 0 60px;
}

.testimonial-slider {
  overflow: hidden;
  width: 100%;
  border-radius: var(--radius-card);
}

.testimonial-track {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  width: 100%;
}

.testimonial-card {
  flex: 0 0 100%;
  width: 100%;
  box-sizing: border-box;
  background-color: var(--white);
  padding: 48px 40px;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  text-align: center;
}

.testimonial-stars {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
  justify-content: center;
}

.star-filled {
  color: #fbbf24;
  fill: #fbbf24;
  width: 22px;
  height: 22px;
}

.testimonial-text {
  font-size: 1.15rem;
  font-style: italic;
  color: var(--text);
  margin-bottom: 28px;
  line-height: 1.8;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

.author-info {
  text-align: left;
}

.author-info strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}

.author-info span {
  font-size: 0.875rem;
  color: var(--text-light);
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  cursor: pointer;
  transition: var(--transition);
  z-index: 10;
  border: 1px solid var(--border-color);
}

.slider-btn:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  transform: translateY(-50%) scale(1.05);
}

.slider-prev {
  left: 0;
}

.slider-next {
  right: 0;
}

.slider-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
}

.slider-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  padding: 0;
}

.slider-dots .dot.active {
  background: var(--primary);
  width: 24px;
  border-radius: 10px;
}

/* FAQ list wrapper */
.faq-list {
  max-width: 800px;
  margin: 50px auto 0;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 0;
  background: none;
  border: none;
}

.faq-question span {
  flex: 1;
  text-align: left;
}

.faq-answer p {
  padding: 16px 0 8px;
  line-height: 1.7;
}

/* Contact Grid (HTML alignment) */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
  margin-top: 50px;
}

.contact-form-wrapper {
  background: var(--white);
  padding: 40px;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
}

.contact-form select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-btn);
  font-size: 1rem;
  color: var(--text);
  background-color: var(--white);
  transition: var(--transition);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.contact-form select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-error {
  display: block;
  color: #ef4444;
  font-size: 0.8rem;
  margin-top: 6px;
  min-height: 20px;
}

.form-group input.invalid,
.form-group textarea.invalid,
.form-group select.invalid {
  border-color: #ef4444;
}

.contact-info-card {
  background: var(--dark-bg);
  padding: 40px;
  border-radius: 16px;
  color: var(--white);
}

.contact-info-card h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.contact-info-card > p {
  color: #94a3b8;
  margin-bottom: 32px;
  font-size: 0.95rem;
}

.contact-info .info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-info .info-item div strong {
  display: block;
  margin-bottom: 4px;
}

.contact-info .info-item div a,
.contact-info .info-item div span {
  color: #94a3b8;
  font-size: 0.95rem;
}

.contact-info .info-item div a:hover {
  color: var(--white);
}

/* Social Links in Contact */
.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: var(--transition);
}

.social-link:hover {
  background-color: var(--primary);
  transform: translateY(-3px);
}

/* Footer Columns (HTML alignment) */
.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-col h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--white);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col ul a {
  color: #94a3b8;
  transition: var(--transition);
}

.footer-col ul a:hover {
  color: var(--white);
  padding-left: 4px;
}

.footer-logo {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  display: inline-block;
}

.footer-col > p {
  color: #94a3b8;
  margin-bottom: 24px;
  max-width: 300px;
  line-height: 1.7;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
}

.footer-icon {
  width: 16px;
  height: 16px;
  display: inline;
  vertical-align: middle;
  margin-right: 6px;
}

.footer-col ul span {
  color: #94a3b8;
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  border: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
  z-index: 100;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary-hover);
  transform: translateY(-4px);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  padding: 16px 24px;
  border-radius: var(--radius-btn);
  color: var(--white);
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  animation: slideIn 0.4s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 280px;
}

.toast.success {
  background: var(--success);
}

.toast.error {
  background: #ef4444;
}

.toast.info {
  background: var(--primary);
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* Contact Grid responsive */
@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .contact-form-wrapper {
    padding: 24px;
  }

  .contact-info-card {
    padding: 24px;
  }

  .solution-mockup .mockup-body {
    min-height: 180px;
  }

  .slider-btn {
    display: none;
  }

  .testimonial-card {
    min-width: 100%;
  }

  .mobile-menu {
    display: block;
  }
}

@media (max-width: 1024px) {
  .testimonial-card {
    min-width: calc(50% - 15px);
  }

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