/* ═══════════════════════════════════════════
   Homepage Specific Styles
   ═══════════════════════════════════════════ */

/* ── Hero Section ── */
.hero-centered {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: 
      radial-gradient(1200px 600px at 18% 8%, rgba(24,199,245,0.16), transparent 58%),
      radial-gradient(900px 700px at 85% 12%, rgba(110,63,245,0.12), transparent 55%),
      radial-gradient(900px 560px at 50% 108%, rgba(45,107,255,0.08), transparent 60%),
      linear-gradient(180deg,#FFFFFF 0%,#EFF4FF 100%);
  color: #0A1230;
  overflow: hidden;
  padding-top: 180px;
  padding-bottom: var(--space-4xl);
  text-align: center;
}

.hero-centered::before {
  content: '';
  position: absolute;
  top: -120px;
  left: -80px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(24,199,245,0.20), transparent 65%);
  filter: blur(30px);
  animation: drift1 14s ease-in-out infinite;
  pointer-events: none;
}

.hero-centered::after {
  content: '';
  position: absolute;
  bottom: -60px;
  right: -100px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(110,63,245,0.14), transparent 65%);
  filter: blur(30px);
  animation: drift2 17s ease-in-out infinite;
  pointer-events: none;
}

.hero-centered-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.hero-badge-modern {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: #E2E8F0;
  margin-bottom: var(--space-xl);
  backdrop-filter: blur(10px);
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: #3B82F6;
  border-radius: 50%;
  box-shadow: 0 0 10px #3B82F6;
  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
  0% { opacity: 0.5; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
  100% { opacity: 0.5; transform: scale(0.8); }
}

.hero-centered h1 {
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-lg);
  color: #0A1230;
}

.highlight-gradient {
  background: linear-gradient(135deg, #60A5FA 0%, #3B82F6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-centered-desc {
  font-size: var(--font-size-xl);
  color: #4A5578;
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto var(--space-2xl);
}

.hero-centered-actions {
  display: flex;
  justify-content: center;
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

.btn-glow {
  background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
  color: white;
  padding: 18px 40px;
  border-radius: 100px;
  font-weight: 700;
  font-size: var(--font-size-lg);
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
  transition: all 0.3s ease;
}

.btn-glow:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(59, 130, 246, 0.6);
}

.btn-glow svg {
  width: 24px;
  height: 24px;
}

.hero-trust-row {
  display: flex;
  justify-content: center;
  gap: var(--space-2xl);
  margin-bottom: var(--space-3xl);
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.9);
}

.trust-item svg {
  width: 20px;
  height: 20px;
  color: var(--accent-green);
}

/* ── Hero Devices Row ── */
.hero-devices-row {
  margin-top: var(--space-3xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.devices-row-title {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-lg);
}

.devices-row-icons {
  display: flex;
  justify-content: center;
  gap: var(--space-3xl);
  flex-wrap: wrap;
}

.device-icon-item {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--text-secondary);
  font-size: var(--font-size-md);
  font-weight: 500;
  transition: opacity 0.3s ease, color 0.3s ease;
}

.device-icon-item:hover {
  opacity: 1;
  color: var(--primary-500);
}

.device-icon-item svg {
  width: 24px;
  height: 24px;
}

.floating-badge.badge-top {
  top: 10%;
  right: -5%;
  animation: float 6s ease-in-out infinite;
}

.floating-badge.badge-bottom {
  bottom: 15%;
  left: -5%;
  animation: float 8s ease-in-out infinite alternate;
}

.floating-badge span {
  color: #F59E0B;
}

@keyframes spin-slow { 100% { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes spin-slow-reverse { 100% { transform: translate(-50%, -50%) rotate(-360deg); } }
@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0); }
}

/* ── Bento Features Section ── */
.bento-section {
  background: var(--bg-primary);
  padding: var(--space-4xl) 0;
  position: relative;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 250px;
  gap: var(--space-xl);
  margin-top: var(--space-3xl);
}

.bento-card {
  background: #FFFFFF;
  border: 1px solid rgba(96, 165, 250, 0.15);
  border-radius: var(--border-radius-xl);
  padding: var(--space-2xl);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.bento-card:hover {
  transform: translateY(-5px);
  border-color: rgba(96, 165, 250, 0.4);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.bento-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0), transparent);
  transition: all 0.5s ease;
}

.bento-card:hover::before {
  background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.8), transparent);
}

.bento-large {
  grid-column: span 2;
  grid-row: span 2;
}

.bento-wide {
  grid-column: span 2;
}

.bento-icon-wrapper {
  width: 48px;
  height: 48px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.bento-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.bento-content h3 {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.bento-content p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
  font-size: var(--font-size-md);
}

.bento-visual {
  position: absolute;
  right: -10%;
  bottom: -10%;
  width: 60%;
  height: 80%;
  pointer-events: none;
}

.glow-orb {
  position: absolute;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.4) 0%, transparent 70%);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  filter: blur(20px);
}

/* ── Steps Section ── */
.steps-section {
  background: var(--bg-primary);
}

/* ── Devices Section ── */
.devices-section {
  background: var(--bg-secondary);
  position: relative;
}

.devices-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(37, 99, 235, 0.02) 0%, transparent 50%);
  pointer-events: none;
}

/* ── Testimonials Section ── */
.testimonials-section {
  background: var(--bg-primary);
}

/* ── Pricing Section ── */
.pricing-section {
  background: var(--bg-secondary);
  position: relative;
}

.pricing-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 50% 30%, rgba(37, 99, 235, 0.02) 0%, transparent 50%);
  pointer-events: none;
}

/* ── Devices Marquee Section ── */
.devices-marquee-section {
  background: var(--bg-primary);
  padding: var(--space-4xl) 0 var(--space-2xl);
  overflow: hidden;
}

.devices-marquee-section {
  background: #FFFFFF;
  padding: var(--space-4xl) 0;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.devices-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--space-3xl);
}

.devices-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 6px 16px;
  background: rgba(96, 165, 250, 0.1);
  border: 1px solid rgba(96, 165, 250, 0.2);
  border-radius: var(--border-radius-full);
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: #60A5FA;
  margin-bottom: var(--space-lg);
}

.devices-header h2 {
  font-size: var(--font-size-4xl);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.devices-subtitle {
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
  line-height: 1.6;
}

.marquee-container {
  width: 100vw;
  max-width: 100%;
  overflow: hidden;
  position: relative;
  padding: var(--space-xl) 0;
}

.marquee-container::before,
.marquee-container::after {
  content: '';
  position: absolute;
  top: 0;
  width: 250px;
  height: 100%;
  z-index: 2;
}

.marquee-container::before {
  left: 0;
  background: linear-gradient(to right, #FFFFFF 0%, transparent 100%);
}

.marquee-container::after {
  right: 0;
  background: linear-gradient(to left, #FFFFFF 0%, transparent 100%);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: scroll-marquee 40s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: 16px 32px;
  margin: 0 16px;
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 100px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.marquee-item:hover {
  background: #F8FAFC;
  border-color: rgba(96, 165, 250, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.marquee-item svg {
  width: 48px;
  height: 48px;
  color: #3B82F6;
}

.marquee-item span {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--text-primary);
}

.marquee-logo-text {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  font-size: 18px;
  line-height: 1;
}

.faq-answer-inner {
  padding-bottom: 20px;
  font-size: 15px;
  line-height: 1.6;
  color: #5A6485;
}

/* Pricing Cards v2 */
.pricing-grid {
  grid-template-columns: repeat(4, 1fr);
}
.price-card-v2 {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.price-card-v2:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}
.price-btn-v2:hover {
  background: #0A1230 !important;
  color: #fff !important;
  border-color: #0A1230 !important;
}
@media (max-width: 1200px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 760px;
  }
}
@media (max-width: 768px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }
}

@keyframes scroll-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50%)); }
}

/* ── FAQ Section ── */
.faq-section {
  background: var(--bg-primary);
}

/* ── Responsive ── */
@keyframes drift1 { 0%,100% { transform:translate(0,0) scale(1);} 50% { transform:translate(60px,-40px) scale(1.15);} }
@keyframes drift2 { 0%,100% { transform:translate(0,0) scale(1);} 50% { transform:translate(-50px,40px) scale(1.2);} }
@keyframes riseIn { from { opacity:0; transform:translateY(28px);} to { opacity:1; transform:translateY(0);} }
@keyframes pulseGlow2 { 0%,100% { box-shadow:0 0 0 1px rgba(24,199,245,0.4), 0 18px 55px rgba(45,107,255,0.35);} 50% { box-shadow:0 0 0 1px rgba(24,199,245,0.6), 0 22px 70px rgba(45,107,255,0.5);} }
.rise { opacity:0; animation:riseIn 0.7s cubic-bezier(0.22,1,0.36,1) forwards; }
.cta-lift { transition:transform 180ms cubic-bezier(0.22,1,0.36,1), box-shadow 240ms cubic-bezier(0.22,1,0.36,1); }
.cta-lift:hover { transform:translateY(-2px); }

@media (max-width: 1024px) {
  .hero-centered {
    padding-top: 140px;
    padding-bottom: var(--space-3xl);
  }
}

@media (max-width: 768px) {
  .hero-centered {
    padding-top: 120px;
  }

  .hero-centered h1 {
    font-size: clamp(2.5rem, 8vw, 3rem);
  }

  .hero-trust-row {
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
  }

  .hero-devices-row {
    margin-top: var(--space-xl);
    padding-top: var(--space-xl);
  }
  
  .devices-row-icons {
    gap: var(--space-xl);
  }
}

/* Global mobile menu fixes and layout stability overrides */
html, body {
  overflow-x: hidden !important;
  width: 100% !important;
}

@media (max-width: 768px) {
  /* Expand parent navbar to full screen height when mobile menu is active */
  .navbar.menu-open {
    height: 100vh !important;
    background: #0A0F1F !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    transition: none !important;
  }
  
  .navbar.menu-open .container {
    height: auto;
  }

  /* Make links list absolute inside the full screen navbar to avoid clipping */
  .navbar-links {
    display: none;
    position: absolute !important;
    top: 70px !important;
    left: 0 !important;
    right: 0 !important;
    height: calc(100vh - 70px) !important;
    background: #0A0F1F !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: center !important;
    padding-top: 30px !important;
    padding-bottom: 50px !important;
    gap: var(--space-md) !important;
    overflow-y: auto !important;
    z-index: 99999 !important;
  }

  .navbar-links.open {
    display: flex !important;
  }
  
  .navbar-links.open a {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 1.25rem !important;
    padding: 10px 0 !important;
    width: 100% !important;
    text-align: center !important;
  }
  
  .navbar-links.open a:hover,
  .navbar-links.open a.active {
    color: #2D6BFF !important;
  }
  
  /* Fix hamburger toggle visibility on light/dark states */
  .light-hero .navbar:not(.scrolled) .mobile-menu-toggle span {
    background: #0A1230 !important;
  }
  .light-hero .navbar:not(.scrolled) .mobile-menu-toggle.active span {
    background: #FFFFFF !important;
  }
}

/* Stats Section Styles */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat-card {
  border-right: 1px solid rgba(45, 107, 255, 0.18);
}
.stat-card.last-card {
  border-right: none;
}

@media (max-width: 991px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 0;
  }
  .stat-card {
    border-right: none !important;
  }
  /* Optional subtle bottom border for first two cards on tablet */
  .stats-grid > div:nth-child(1),
  .stats-grid > div:nth-child(2) {
    border-bottom: 1px solid rgba(45, 107, 255, 0.1);
    padding-bottom: 24px !important;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .stats-grid > div {
    border-bottom: 1px solid rgba(45, 107, 255, 0.1) !important;
    padding-bottom: 20px !important;
  }
  .stats-grid > div.last-card {
    border-bottom: none !important;
    padding-bottom: 0 !important;
  }
}
