/* ============================================
   PAGES — Page-specific Styles
   ============================================ */

/* ---- Navigation ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  background: rgba(20, 20, 43, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(60, 145, 255, 0.08);
  transition: all var(--transition-base);
}

.nav.scrolled {
  background: rgba(20, 20, 43, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xl);
  font-weight: 800;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: var(--tracking-tight);
}

.nav-logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 16px;
}

.nav-links {
  display: none;
  align-items: center;
  gap: var(--space-1);
}

.nav-link {
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  text-decoration: none;
}
.nav-link:hover,
.nav-link.active {
  color: #3C91FF;
  background: rgba(60, 145, 255, 0.08);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.nav-cart-btn {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
  color: rgba(255, 255, 255, 0.65);
}
.nav-cart-btn:hover {
  background: rgba(60, 145, 255, 0.08);
  color: #3C91FF;
}

.nav-login-btn {
  font-size: var(--text-xs) !important;
  padding: 0.4rem 0.875rem !important;
  gap: var(--space-1) !important;
  white-space: nowrap;
}

.nav-hamburger {
  width: 40px;
  height: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
}
.nav-hamburger:hover {
  background: rgba(60, 145, 255, 0.08);
}
.nav-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 1px;
  transition: all var(--transition-base);
}
.nav-hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}
.nav-hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu */
.nav-mobile {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: #14142B;
  z-index: var(--z-overlay);
  padding: var(--space-4);
  transform: translateX(100%);
  transition: transform var(--transition-base);
}
.nav-mobile.open {
  transform: translateX(0);
}

.nav-mobile .nav-link {
  display: block;
  padding: var(--space-4);
  font-size: var(--text-lg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.7);
}

@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .nav-hamburger { display: none; }
  .nav-mobile { display: none; }
  .nav-inner { padding: 0 var(--space-8); }
}

/* ---- Hero Section — HCLTech Dark Style ---- */
.hero {
  padding: calc(64px + var(--space-16)) 0 var(--space-16);
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 0.3rem 0.875rem;
  border-radius: var(--radius-full);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  margin-bottom: var(--space-6);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: text-reveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero h1 {
  margin-bottom: var(--space-4);
  color: #ffffff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
  animation: text-reveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, #e0f2fe 30%, #bfdbfe 60%, #93c5fd 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
  animation: gradient-shift 4s ease infinite;
}

.hero-description {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.9);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-8);
  max-width: 560px;
  animation: text-reveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-12);
  animation: text-reveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

.hero-stats {
  display: flex;
  gap: var(--space-10);
  animation: text-reveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

.hero-stat-value {
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--text-primary);
}

.hero-stat-label {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  margin-top: var(--space-1);
}

/* White text overrides inside hero */
.hero .hero-stat-value {
  color: #ffffff;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.15);
}

.hero .hero-stat-label {
  color: rgba(255, 255, 255, 0.75);
}

/* Hero secondary button override */
.hero .btn-secondary,
.page-hero .btn-secondary,
.about-hero .btn-secondary {
  border-color: rgba(255, 255, 255, 0.5);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(4px);
}
.hero .btn-secondary:hover,
.page-hero .btn-secondary:hover,
.about-hero .btn-secondary:hover {
  border-color: #ffffff;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.25);
}

/* ---- Trusted-by logos ---- */
.trusted-section {
  background: linear-gradient(135deg, #eef6ff 0%, #f5f0ff 50%, #e8f4ff 100%);
  border-top: 1px solid rgba(60, 145, 255, 0.08);
  border-bottom: 1px solid rgba(139, 92, 246, 0.08);
  position: relative;
  overflow: hidden;
}

.trusted-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(60, 145, 255, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.trusted-section p {
  color: #6b7280 !important;
}

.trusted-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-10);
  opacity: 0.5;
}

.trusted-logos span {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-gray-400);
  letter-spacing: var(--tracking-wide);
}

/* ---- How It Works ---- */
.how-it-works-section {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 40%, #f0fdfa 100%);
  position: relative;
  overflow: hidden;
}

.how-it-works-section::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -15%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.how-it-works-section .section-eyebrow {
  color: #059669;
}

.how-it-works-section .section-header h2 {
  color: #14142B;
}

.how-it-works-section .section-header p {
  color: #4a5568;
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  counter-reset: step;
}

.step-card {
  text-align: center;
  padding: var(--space-8);
  position: relative;
  background: rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(16, 185, 129, 0.1);
  transition: all var(--transition-base);
}

.step-card:hover {
  transform: translateY(-4px);
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.2);
}

.step-number {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #10B981, #059669);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xl);
  font-weight: 800;
  margin: 0 auto var(--space-4);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.step-card h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
  color: #14142B;
}

.step-card p {
  margin: 0 auto;
  font-size: var(--text-sm);
  color: #4a5568;
}

@media (min-width: 768px) {
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---- Testimonials ---- */
.testimonials-section {
  background: linear-gradient(135deg, #e8f4ff 0%, #f0e6ff 50%, #e0f2fe 100%);
  position: relative;
  overflow: hidden;
}

.testimonials-section::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(60, 145, 255, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.testimonials-section::after {
  content: '';
  position: absolute;
  bottom: -25%;
  left: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

.testimonials-section .section-eyebrow {
  color: #5F1EBE;
}

.testimonials-section .section-header h2 {
  color: #14142B;
}

.testimonials-section .section-header p {
  color: #4a5568;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(60, 145, 255, 0.12);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(60, 145, 255, 0.06);
}

.testimonial-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.testimonial-card:nth-child(1)::before {
  background: linear-gradient(90deg, #3C91FF, #60A5FA);
}
.testimonial-card:nth-child(2)::before {
  background: linear-gradient(90deg, #8B5CF6, #A78BFA);
}
.testimonial-card:nth-child(3)::before {
  background: linear-gradient(90deg, #10B981, #34D399);
}

.testimonial-card:hover {
  transform: translateY(-6px);
  border-color: rgba(60, 145, 255, 0.25);
  box-shadow: 0 16px 48px rgba(60, 145, 255, 0.12), 0 4px 16px rgba(95, 30, 190, 0.08);
  background: #ffffff;
}

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

.testimonial-quote-icon {
  color: rgba(60, 145, 255, 0.35);
  margin-bottom: var(--space-3);
}

.testimonial-text {
  font-size: var(--text-base);
  color: #374151;
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-5);
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(60, 145, 255, 0.1);
}

.testimonial-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #ffffff;
  font-size: var(--text-sm);
  flex-shrink: 0;
}

.testimonial-card:nth-child(1) .testimonial-avatar {
  background: linear-gradient(135deg, #3C91FF, #2B7AE8);
}
.testimonial-card:nth-child(2) .testimonial-avatar {
  background: linear-gradient(135deg, #8B5CF6, #5F1EBE);
}
.testimonial-card:nth-child(3) .testimonial-avatar {
  background: linear-gradient(135deg, #10B981, #059669);
}

.testimonial-name {
  font-weight: 600;
  font-size: var(--text-sm);
  color: #14142B;
}

.testimonial-role {
  font-size: var(--text-xs);
  color: #6b7280;
}

.testimonial-stars {
  display: flex;
  gap: 2px;
  margin-bottom: var(--space-3);
  color: #f59e0b;
  font-size: var(--text-sm);
}

/* ---- CTA Band ---- */
.cta-band {
  background: linear-gradient(135deg, #1e40af 0%, #5F1EBE 40%, #7c3aed 70%, #3C91FF 100%);
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cta-band::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
  animation: orb-float-1 12s ease-in-out infinite;
}

.cta-band::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -15%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(60, 145, 255, 0.15) 0%, transparent 60%);
  pointer-events: none;
  animation: orb-float-2 15s ease-in-out infinite;
}

.cta-band h2 {
  color: white;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.85);
}

/* CTA secondary button — visible on dark background */
.cta-secondary-btn,
.cta-band .btn-secondary {
  border: 2px solid rgba(255, 255, 255, 0.5) !important;
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.1) !important;
}
.cta-secondary-btn:hover,
.cta-band .btn-secondary:hover {
  border-color: #ffffff !important;
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.2) !important;
}

/* ---- App Detail Page ---- */
.app-detail-hero {
  padding-top: calc(64px + var(--space-8));
  padding-bottom: var(--space-8);
  position: relative;
  overflow: hidden;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  margin-bottom: var(--space-6);
}
.breadcrumb a {
  color: var(--text-tertiary);
}
.breadcrumb a:hover {
  color: var(--color-primary);
}
.breadcrumb .separator {
  color: var(--color-gray-300);
}

.app-detail-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--space-6);
  padding-bottom: var(--space-8);
}

.app-detail-icon {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-xl);
  background: white;
  padding: 12px;
  box-shadow: var(--shadow-md);
}

.app-detail-info {
  flex: 1;
  min-width: 200px;
}

.app-detail-info h1 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-2);
}

.app-detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.app-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}

/* Features grid */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

.feature-item {
  display: flex;
  gap: var(--space-4);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-item h4 {
  font-size: var(--text-base);
  margin-bottom: var(--space-1);
}

.feature-item p {
  font-size: var(--text-sm);
}

@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---- Cart Page ---- */
.cart-page {
  min-height: 80vh;
}

.cart-page-body {
  padding: var(--space-10) 0 var(--space-16);
}

.cart-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.cart-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  transition: all var(--transition-fast);
}

.cart-item:hover {
  border-color: var(--color-primary-light);
  box-shadow: var(--shadow-sm);
}

.cart-item-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  background: var(--color-gray-50);
  padding: 8px;
  flex-shrink: 0;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}
.cart-item-info h3 {
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: 2px;
}
.cart-item-info p {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
}

.cart-item-price {
  font-size: var(--text-lg);
  font-weight: 700;
  white-space: nowrap;
}

.cart-item-remove {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--text-tertiary);
  font-size: 1.25rem;
  transition: all var(--transition-fast);
}
.cart-item-remove:hover {
  background: var(--color-error-light);
  color: var(--color-error);
}

/* Cart summary */
.cart-summary {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  height: fit-content;
  position: sticky;
  top: calc(64px + var(--space-4));
}

.cart-summary h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-4);
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  padding: var(--space-3) 0;
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.cart-summary-total {
  display: flex;
  justify-content: space-between;
  padding: var(--space-4) 0;
  border-top: 2px solid var(--border-color);
  margin-top: var(--space-2);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-primary);
}

.cart-empty {
  text-align: center;
  padding: var(--space-16) var(--space-4);
}

.cart-empty-icon {
  width: 80px;
  height: 80px;
  background: var(--color-gray-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-4);
}

.cart-empty h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-2);
}

.cart-empty p {
  margin: 0 auto var(--space-6);
}

@media (min-width: 1024px) {
  .cart-layout {
    grid-template-columns: 1fr 380px;
  }
}

/* ---- Sub-Page Dark Hero Banner ---- */
.page-hero {
  padding: calc(64px + var(--space-12)) 0 var(--space-12);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.page-hero h1 {
  color: #ffffff;
  font-size: var(--text-3xl);
  margin-bottom: var(--space-3);
  animation: text-reveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--text-lg);
  max-width: 600px;
  margin: 0 auto;
  animation: text-reveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.page-hero .page-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 0.3rem 0.875rem;
  border-radius: var(--radius-full);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  margin-bottom: var(--space-4);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: text-reveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ---- Form Pages ---- */
.form-page {
  min-height: 80vh;
}

.form-page-header {
  text-align: center;
  margin-bottom: var(--space-10);
}

.form-page-header h1 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-3);
  color: var(--text-primary);
}

.form-page-header p {
  margin: 0 auto;
  font-size: var(--text-lg);
  color: var(--text-secondary);
}

.form-page-body {
  padding: var(--space-10) 0 var(--space-16);
}

.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
  max-width: 700px;
  margin: 0 auto;
}

/* ---- Footer ---- */
.footer {
  background: #14142B;
  color: rgba(255, 255, 255, 0.7);
  padding: var(--space-16) 0 var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-10);
}

.footer-brand {
  max-width: 320px;
}

.footer-brand .nav-logo {
  color: white;
  margin-bottom: var(--space-4);
}
.footer-brand .nav-logo .nav-logo-icon {
  background: rgba(255, 255, 255, 0.1);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.5);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}

.footer h4 {
  color: white;
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  margin-bottom: var(--space-4);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.5);
  font-size: var(--text-sm);
  transition: color var(--transition-fast);
}
.footer-links a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-6);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.4);
}

.footer-social {
  display: flex;
  gap: var(--space-3);
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  transition: all var(--transition-fast);
}
.footer-social a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

@media (max-width: 1023px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: span 2;
  }
}

@media (max-width: 639px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-brand {
    grid-column: span 1;
  }
}

/* ---- Marquee / Trusted By ---- */
.marquee-wrapper {
  overflow: hidden;
  position: relative;
}

.marquee-wrapper::before,
.marquee-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

.marquee-wrapper::before {
  left: 0;
  background: linear-gradient(to right, #eef6ff, transparent);
}

.marquee-wrapper::after {
  right: 0;
  background: linear-gradient(to left, #eef6ff, transparent);
}

.marquee-track {
  display: flex;
  gap: var(--space-10);
  animation: marquee-scroll 25s linear infinite;
  width: max-content;
}

.marquee-track span {
  font-size: var(--text-lg);
  font-weight: 700;
  color: rgba(20, 20, 43, 0.3);
  letter-spacing: var(--tracking-wide);
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.3s ease;
}

.marquee-track span:hover {
  color: #5F1EBE;
}

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---- Upcoming Apps Banner ---- */
.upcoming-banner {
  background: linear-gradient(135deg, #14142B 0%, #1a1a40 100%);
  padding: var(--space-4) 0;
  overflow: hidden;
  position: relative;
}

.upcoming-track {
  display: flex;
  gap: var(--space-12);
  animation: marquee-scroll 20s linear infinite;
  width: max-content;
}

.upcoming-track span {
  font-size: var(--text-sm);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: var(--tracking-wide);
}

/* ---- Stats Section ---- */
.stats-section {
  background: linear-gradient(135deg, #f0e6ff 0%, #e8f4ff 40%, #ede9fe 100%);
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: -40%;
  left: -15%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

.stats-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(60, 145, 255, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.stats-section .section-eyebrow {
  color: #5F1EBE;
}

.stats-section .section-header h2 {
  color: #14142B;
}

.stats-section .section-header p {
  color: #4a5568;
}

/* ---- Stat Cards ---- */
.stat-card {
  padding: var(--space-6);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(60, 145, 255, 0.1);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(60, 145, 255, 0.06);
}

.stat-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.stat-card:nth-child(1)::before { background: linear-gradient(90deg, #3C91FF, #60A5FA); }
.stat-card:nth-child(2)::before { background: linear-gradient(90deg, #5F1EBE, #8B5CF6); }
.stat-card:nth-child(3)::before { background: linear-gradient(90deg, #10B981, #34D399); }
.stat-card:nth-child(4)::before { background: linear-gradient(90deg, #F59E0B, #FBBF24); }

.stat-card:hover {
  transform: translateY(-6px);
  border-color: rgba(60, 145, 255, 0.2);
  box-shadow: 0 12px 40px rgba(60, 145, 255, 0.1), 0 4px 16px rgba(95, 30, 190, 0.06);
  background: #ffffff;
}

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

.stat-card .hero-stat-value {
  color: #14142B;
  font-size: var(--text-3xl);
  font-weight: 800;
}

.stat-card .hero-stat-label {
  color: #6b7280;
}

.stat-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-3);
}

.stat-icon-blue {
  background: linear-gradient(135deg, rgba(60, 145, 255, 0.15), rgba(96, 165, 250, 0.2));
  color: #2B7AE8;
}
.stat-icon-purple {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(167, 139, 250, 0.2));
  color: #5F1EBE;
}
.stat-icon-green {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(52, 211, 153, 0.2));
  color: #059669;
}
.stat-icon-amber {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(251, 191, 36, 0.2));
  color: #D97706;
}

/* ---- About Page Hero ---- */
.about-hero {
  padding: calc(64px + var(--space-16)) 0 var(--space-16);
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
}

/* White text for about-hero on dark background */
.about-hero h1 {
  color: #ffffff;
  animation: text-reveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.about-hero h1 .gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, #e0f2fe 30%, #bfdbfe 60%, #93c5fd 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
  animation: gradient-shift 4s ease infinite;
}

.about-hero .hero-description {
  color: rgba(255, 255, 255, 0.9);
}

.about-hero .hero-eyebrow {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

/* ---- App Detail Page Hero ---- */
.app-detail-hero.hero-gradient {
  padding-top: calc(64px + var(--space-8));
}

.app-detail-hero.hero-gradient .breadcrumb a,
.app-detail-hero.hero-gradient .breadcrumb .separator,
.app-detail-hero.hero-gradient .breadcrumb {
  color: rgba(255, 255, 255, 0.5);
}

.app-detail-hero.hero-gradient .breadcrumb a:hover {
  color: #3C91FF;
}

.app-detail-hero.hero-gradient .app-detail-info h1 {
  color: #ffffff;
}

.app-detail-hero.hero-gradient .app-detail-info .app-detail-tagline {
  color: rgba(255, 255, 255, 0.65);
}

.app-detail-hero.hero-gradient .app-detail-meta {
  color: rgba(255, 255, 255, 0.55);
}

.app-detail-hero.hero-gradient .badge-primary {
  background: rgba(60, 145, 255, 0.15);
  color: #3C91FF;
}

.app-detail-hero.hero-gradient .app-detail-meta .stars {
  color: #f59e0b;
}

/* ---- App Catalog Section ---- */
.app-catalog-section {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  position: relative;
}

.app-catalog-section .section-eyebrow {
  color: #3C91FF;
}

.app-catalog-section .section-header h2 {
  color: #14142B;
}

.app-catalog-section .section-header p {
  color: #4a5568;
}

/* ---- Section Header ---- */
.section-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.section-header .section-eyebrow {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  margin-bottom: var(--space-3);
}

.section-header h2 {
  margin-bottom: var(--space-3);
}

.section-header p {
  margin: 0 auto;
  font-size: var(--text-lg);
}

/* ============================================
   PIPELINE FLOW — Animated CI/CD Stages
   ============================================ */
.pipeline-section {
  background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 40%, #eef2ff 100%);
  padding: var(--space-16) 0;
  position: relative;
  overflow: hidden;
}

.pipeline-section::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -15%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(60, 145, 255, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.pipeline-section .section-eyebrow { color: #3C91FF; }
.pipeline-section .section-header h2 { color: #14142B; }
.pipeline-section .section-header p { color: #4a5568; }

.pipeline-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  overflow-x: auto;
  padding: var(--space-6) 0;
  position: relative;
}

.pipeline-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  position: relative;
  opacity: 0;
  transform: translateX(-60px) scale(0.6);
  animation: pipeline-zoom-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.pipeline-stage:nth-child(1) { animation-delay: 0.2s; }
.pipeline-stage:nth-child(3) { animation-delay: 0.5s; }
.pipeline-stage:nth-child(5) { animation-delay: 0.8s; }
.pipeline-stage:nth-child(7) { animation-delay: 1.1s; }
.pipeline-stage:nth-child(9) { animation-delay: 1.4s; }

@keyframes pipeline-zoom-in {
  0% {
    opacity: 0;
    transform: translateX(-60px) scale(0.4);
    filter: blur(4px);
  }
  50% {
    opacity: 1;
    transform: translateX(8px) scale(1.15);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
    filter: blur(0);
  }
}

.pipeline-node {
  width: 90px;
  height: 90px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: #ffffff;
  border: 2px solid rgba(60, 145, 255, 0.15);
  box-shadow: 0 4px 20px rgba(60, 145, 255, 0.08);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: default;
  position: relative;
}

.pipeline-node:hover {
  transform: scale(1.18);
  border-color: rgba(60, 145, 255, 0.4);
  box-shadow: 0 8px 40px rgba(60, 145, 255, 0.2), 0 0 20px rgba(60, 145, 255, 0.1);
}

.pipeline-node.active {
  animation: pipeline-pulse 2s ease-in-out infinite;
}

@keyframes pipeline-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(60, 145, 255, 0.08); }
  50% { box-shadow: 0 4px 30px rgba(60, 145, 255, 0.25), 0 0 15px rgba(60, 145, 255, 0.15); }
}

.pipeline-node svg {
  color: #3C91FF;
}

.pipeline-node.node-build { border-color: rgba(60, 145, 255, 0.25); }
.pipeline-node.node-build svg { color: #3C91FF; }

.pipeline-node.node-test { border-color: rgba(245, 158, 11, 0.25); }
.pipeline-node.node-test svg { color: #F59E0B; }

.pipeline-node.node-security { border-color: rgba(239, 68, 68, 0.25); }
.pipeline-node.node-security svg { color: #EF4444; }

.pipeline-node.node-deploy { border-color: rgba(16, 185, 129, 0.25); }
.pipeline-node.node-deploy svg { color: #10B981; }

.pipeline-node.node-monitor { border-color: rgba(139, 92, 246, 0.25); }
.pipeline-node.node-monitor svg { color: #8B5CF6; }

.pipeline-label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: #374151;
  text-align: center;
}

.pipeline-status {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
}

.pipeline-status.running {
  background: rgba(60, 145, 255, 0.1);
  color: #2563EB;
  animation: status-blink 1.5s ease-in-out infinite;
}

@keyframes status-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.pipeline-status.pending {
  background: rgba(156, 163, 175, 0.15);
  color: #9CA3AF;
}

/* Pipeline connector arrows */
.pipeline-connector {
  display: flex;
  align-items: center;
  opacity: 0;
  animation: connector-draw 0.4s ease forwards;
}

.pipeline-connector:nth-child(2) { animation-delay: 0.4s; }
.pipeline-connector:nth-child(4) { animation-delay: 0.7s; }
.pipeline-connector:nth-child(6) { animation-delay: 1.0s; }
.pipeline-connector:nth-child(8) { animation-delay: 1.3s; }

@keyframes connector-draw {
  0% { opacity: 0; transform: scaleX(0); }
  100% { opacity: 1; transform: scaleX(1); }
}

.pipeline-connector-line {
  width: 50px;
  height: 2px;
  background: linear-gradient(90deg, rgba(60, 145, 255, 0.3), rgba(139, 92, 246, 0.3));
  position: relative;
}

.pipeline-connector-line::after {
  content: '';
  position: absolute;
  right: -4px;
  top: -3px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 4px 0 4px 6px;
  border-color: transparent transparent transparent rgba(139, 92, 246, 0.4);
}

/* Animated data dot travelling along connector */
.pipeline-connector-line::before {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  background: #3C91FF;
  border-radius: 50%;
  top: -2px;
  animation: data-travel 2s ease-in-out infinite;
}

@keyframes data-travel {
  0% { left: -6px; opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { left: calc(100% + 2px); opacity: 0; }
}

@media (max-width: 767px) {
  .pipeline-flow {
    flex-direction: column;
    gap: var(--space-2);
  }
  .pipeline-connector {
    transform: rotate(90deg);
  }
  .pipeline-connector-line {
    width: 30px;
  }
}

/* ============================================
   DB PERFORMANCE GRAPHS — Animated Charts
   ============================================ */
.db-graphs-section {
  background: linear-gradient(135deg, #fefce8 0%, #f0fdf4 40%, #ecfdf5 100%);
  padding: var(--space-16) 0;
  position: relative;
  overflow: hidden;
}

.db-graphs-section::before {
  content: '';
  position: absolute;
  top: -30%;
  left: -15%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.db-graphs-section .section-eyebrow { color: #059669; }
.db-graphs-section .section-header h2 { color: #14142B; }
.db-graphs-section .section-header p { color: #4a5568; }

.db-graphs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .db-graphs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.db-graph-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  border: 1px solid rgba(16, 185, 129, 0.1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  transition: all var(--transition-base);
}

.db-graph-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.2);
}

.db-graph-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}

.db-graph-title {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.db-graph-title h4 {
  font-size: var(--text-sm);
  font-weight: 600;
  color: #14142B;
  margin: 0;
}

.db-graph-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.db-graph-badge.oracle { background: rgba(239, 68, 68, 0.1); color: #DC2626; }
.db-graph-badge.mysql { background: rgba(60, 145, 255, 0.1); color: #2563EB; }
.db-graph-badge.mssql { background: rgba(139, 92, 246, 0.1); color: #7C3AED; }
.db-graph-badge.postgres { background: rgba(16, 185, 129, 0.1); color: #059669; }

.db-graph-metric {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: #14142B;
}

.db-graph-metric .trend {
  font-size: var(--text-xs);
  font-weight: 600;
  margin-left: var(--space-1);
}
.db-graph-metric .trend.up { color: #10B981; }
.db-graph-metric .trend.down { color: #EF4444; }

/* SVG Chart Area */
.db-chart {
  width: 100%;
  height: 120px;
  position: relative;
  overflow: hidden;
}

.db-chart svg {
  width: 100%;
  height: 100%;
}

.db-chart-line {
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 500;
  stroke-dashoffset: 500;
  animation: chart-draw 2s ease forwards;
}

@keyframes chart-draw {
  to { stroke-dashoffset: 0; }
}

.db-chart-area {
  opacity: 0;
  animation: chart-area-fade 1s 1.5s ease forwards;
}

@keyframes chart-area-fade {
  to { opacity: 0.15; }
}

.db-chart-line.oracle { stroke: #EF4444; }
.db-chart-area.oracle { fill: #EF4444; }

.db-chart-line.mysql { stroke: #3C91FF; }
.db-chart-area.mysql { fill: #3C91FF; }

.db-chart-line.mssql { stroke: #8B5CF6; }
.db-chart-area.mssql { fill: #8B5CF6; }

.db-chart-line.postgres { stroke: #10B981; }
.db-chart-area.postgres { fill: #10B981; }

/* Animated dots on chart lines */
.db-chart-dot {
  r: 4;
  fill: #ffffff;
  stroke-width: 2.5;
  opacity: 0;
  animation: dot-pop 0.3s ease forwards;
}

.db-chart-dot.oracle { stroke: #EF4444; }
.db-chart-dot.mysql { stroke: #3C91FF; }
.db-chart-dot.mssql { stroke: #8B5CF6; }
.db-chart-dot.postgres { stroke: #10B981; }

.db-chart-dot:nth-child(1) { animation-delay: 0.5s; }
.db-chart-dot:nth-child(2) { animation-delay: 0.8s; }
.db-chart-dot:nth-child(3) { animation-delay: 1.1s; }
.db-chart-dot:nth-child(4) { animation-delay: 1.4s; }
.db-chart-dot:nth-child(5) { animation-delay: 1.7s; }
.db-chart-dot:nth-child(6) { animation-delay: 2.0s; }

@keyframes dot-pop {
  0% { opacity: 0; r: 0; }
  60% { r: 6; }
  100% { opacity: 1; r: 4; }
}

/* Live indicator */
.db-live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  margin-right: 6px;
  animation: live-pulse 1.5s ease-in-out infinite;
}

@keyframes live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

/* Grid lines for chart background */
.db-chart-grid line {
  stroke: rgba(0, 0, 0, 0.06);
  stroke-width: 1;
}

.db-chart-grid text {
  font-size: 9px;
  fill: #9CA3AF;
}

/* ============================================
   VISUALIZATION DASHBOARDS — Shared Styles
   (Storage, Cost, System, Security, API)
   ============================================ */

/* Section backgrounds by type */
.storage-viz-section {
  background: linear-gradient(135deg, #eef2ff 0%, #e0f2fe 40%, #f0f4ff 100%);
  padding: var(--space-16) 0;
  position: relative;
  overflow: hidden;
}
.storage-viz-section .section-eyebrow { color: #3C91FF; }

.cost-viz-section {
  background: linear-gradient(135deg, #fefce8 0%, #fff7ed 40%, #fffbeb 100%);
  padding: var(--space-16) 0;
  position: relative;
  overflow: hidden;
}
.cost-viz-section .section-eyebrow { color: #F59E0B; }

.system-viz-section {
  background: linear-gradient(135deg, #fef2f2 0%, #fff1f2 40%, #fef2f2 100%);
  padding: var(--space-16) 0;
  position: relative;
  overflow: hidden;
}
.system-viz-section .section-eyebrow { color: #EF4444; }

.security-viz-section {
  background: linear-gradient(135deg, #fef2f2 0%, #fef2f2 30%, #fff7ed 100%);
  padding: var(--space-16) 0;
  position: relative;
  overflow: hidden;
}
.security-viz-section .section-eyebrow { color: #DC2626; }

.api-viz-section {
  background: linear-gradient(135deg, #ecfdf5 0%, #f0fdfa 40%, #ecfdf5 100%);
  padding: var(--space-16) 0;
  position: relative;
  overflow: hidden;
}
.api-viz-section .section-eyebrow { color: #14B8A6; }

/* Shared viz section headers */
.storage-viz-section .section-header h2,
.cost-viz-section .section-header h2,
.system-viz-section .section-header h2,
.security-viz-section .section-header h2,
.api-viz-section .section-header h2 {
  color: #14142B;
}
.storage-viz-section .section-header p,
.cost-viz-section .section-header p,
.system-viz-section .section-header p,
.security-viz-section .section-header p,
.api-viz-section .section-header p {
  color: #4a5568;
}

/* Viz grid — 2×2 card layout */
.storage-viz-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}
@media (min-width: 768px) {
  .storage-viz-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Viz cards */
.viz-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  transition: all var(--transition-base);
}
.viz-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  border-color: rgba(60, 145, 255, 0.15);
}

.viz-card-header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}
.viz-card-header h4 {
  font-size: var(--text-sm);
  font-weight: 600;
  color: #14142B;
  margin: 0;
  flex: 1;
}

/* Viz badges */
.viz-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.viz-badge.live {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  animation: live-pulse 1.5s ease-in-out infinite;
}
.viz-badge.amber {
  background: rgba(245, 158, 11, 0.1);
  color: #D97706;
}
.viz-badge.danger {
  background: rgba(220, 38, 38, 0.1);
  color: #DC2626;
  animation: live-pulse 1.5s ease-in-out infinite;
}

/* Gauge charts */
.gauge-container {
  text-align: center;
  padding: var(--space-2) 0;
}
.gauge-svg {
  width: 160px;
  max-width: 100%;
}
.gauge-fill {
  animation: gauge-animate 1.5s ease-out forwards;
}
@keyframes gauge-animate {
  from { stroke-dashoffset: 157; }
}
.gauge-value {
  font-size: var(--text-3xl);
  font-weight: 800;
  color: #14142B;
  margin-top: -8px;
}
.gauge-label {
  font-size: var(--text-xs);
  color: #6B7280;
  margin-top: var(--space-1);
}

/* Big number metric */
.viz-big-number {
  font-size: var(--text-4xl);
  font-weight: 800;
  color: #14142B;
  margin-bottom: var(--space-3);
}
.viz-unit {
  font-size: var(--text-lg);
  font-weight: 500;
  color: #6B7280;
  margin-left: 2px;
}

/* Metric row */
.viz-metric-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-sm);
  color: #6B7280;
  margin-top: var(--space-2);
}
.viz-metric-row .trend.up { color: #10B981; font-weight: 600; }
.viz-metric-row .trend.down { font-weight: 600; }

/* Bar chart groups */
.viz-bar-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.viz-bar-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: #374151;
}
.viz-bar-item span:first-child {
  min-width: 60px;
  font-weight: 500;
}
.viz-bar-item span:last-child {
  min-width: 55px;
  text-align: right;
  font-weight: 600;
}
.viz-bar {
  flex: 1;
  height: 8px;
  background: #f3f4f6;
  border-radius: 4px;
  overflow: hidden;
}
.viz-bar-fill {
  height: 100%;
  border-radius: 4px;
  animation: bar-grow 1s ease-out forwards;
  transform-origin: left;
}
@keyframes bar-grow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
.viz-bar-fill.blue { background: linear-gradient(90deg, #3C91FF, #60A5FA); }
.viz-bar-fill.purple { background: linear-gradient(90deg, #8B5CF6, #A78BFA); }
.viz-bar-fill.green { background: linear-gradient(90deg, #10B981, #34D399); }
.viz-bar-fill.amber { background: linear-gradient(90deg, #F59E0B, #FBBF24); }
.viz-bar-fill.red { background: linear-gradient(90deg, #EF4444, #F87171); }
.viz-bar-fill.gray { background: linear-gradient(90deg, #9CA3AF, #D1D5DB); }

/* Tiering stack */
.tier-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.tier-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: #374151;
}
.tier-row span { flex: 1; }
.tier-row strong { font-weight: 700; color: #14142B; }
.tier-color {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}
.tier-color.hot { background: linear-gradient(135deg, #EF4444, #F97316); }
.tier-color.warm { background: linear-gradient(135deg, #F59E0B, #FBBF24); }
.tier-color.cold { background: linear-gradient(135deg, #3C91FF, #60A5FA); }

/* Fleet status grid */
.fleet-status {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}
.fleet-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: #f9fafb;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
}
.fleet-item span { flex: 1; color: #374151; }
.fleet-item strong { font-size: var(--text-lg); font-weight: 800; color: #14142B; }
.fleet-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.fleet-dot.green { background: #10B981; box-shadow: 0 0 6px rgba(16, 185, 129, 0.4); }
.fleet-dot.amber { background: #F59E0B; box-shadow: 0 0 6px rgba(245, 158, 11, 0.4); }
.fleet-dot.red { background: #EF4444; box-shadow: 0 0 6px rgba(239, 68, 68, 0.4); animation: live-pulse 1.5s ease-in-out infinite; }
.fleet-dot.blue { background: #3C91FF; box-shadow: 0 0 6px rgba(60, 145, 255, 0.4); }
.fleet-dot.gray { background: #9CA3AF; }

/* Extra chart line/area colors for new viz types */
.db-chart-line.storage { stroke: #3C91FF; }
.db-chart-area.storage { fill: #3C91FF; }
.db-chart-line.cost { stroke: #F59E0B; }
.db-chart-area.cost { fill: #F59E0B; }
.db-chart-dot.cost { stroke: #F59E0B; }
.db-chart-line.linux { stroke: #EF4444; }
.db-chart-area.linux { fill: #EF4444; }
.db-chart-line.security { stroke: #DC2626; }
.db-chart-area.security { fill: #DC2626; }
.db-chart-line.api { stroke: #14B8A6; }
.db-chart-area.api { fill: #14B8A6; }

/* ============================================
   ABOUT PAGE — Leadership Cards & HQ Map
   ============================================ */

/* Leader Cards */
.leader-card {
  position: relative;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.leader-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(60, 145, 255, 0.15), 0 4px 16px rgba(95, 30, 190, 0.1);
}

.leader-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  position: relative;
}
.leader-avatar::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid transparent;
  animation: leader-ring-spin 6s linear infinite;
}
@keyframes leader-ring-spin {
  0% { border-color: rgba(60, 145, 255, 0.3) transparent rgba(95, 30, 190, 0.3) transparent; transform: rotate(0deg); }
  100% { border-color: rgba(60, 145, 255, 0.3) transparent rgba(95, 30, 190, 0.3) transparent; transform: rotate(360deg); }
}

.leader-avatar-ceo {
  background: linear-gradient(135deg, #3C91FF, #1e40af);
  box-shadow: 0 4px 20px rgba(60, 145, 255, 0.3);
}
.leader-avatar-cofounder {
  background: linear-gradient(135deg, #5F1EBE, #7c3aed);
  box-shadow: 0 4px 20px rgba(95, 30, 190, 0.3);
}
.leader-avatar-vp {
  background: linear-gradient(135deg, #10B981, #059669);
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
}
.leader-avatar-product {
  background: linear-gradient(135deg, #F59E0B, #D97706);
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3);
}

.leader-tagline {
  font-size: var(--text-xs);
  color: #6b7280;
  margin-top: var(--space-2);
  font-style: italic;
  line-height: 1.4;
}

/* ---- HQ Section — Light Blue Digital Earth Globe ---- */
.hq-section {
  background: linear-gradient(180deg, #0d2040 0%, #102850 40%, #143255 70%, #0e2242 100%);
  position: relative;
  overflow: hidden;
}
.hq-section::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 150, 255, 0.06) 0%, transparent 60%);
  pointer-events: none;
}
.hq-section::after {
  content: '';
  position: absolute;
  bottom: -15%;
  left: -8%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 100, 200, 0.04) 0%, transparent 60%);
  pointer-events: none;
}

.hq-section .section-eyebrow { color: #5CB8FF; }
.hq-section .section-header h2 { color: #e0f0ff; }
.hq-section .section-header p { color: rgba(180, 210, 240, 0.7); }

.hq-map-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
  align-items: center;
}
@media (min-width: 1024px) {
  .hq-map-container {
    flex-direction: row;
    gap: var(--space-12);
    align-items: center;
  }
}

/* ---- Globe Wrapper ---- */
.globe-wrapper {
  position: relative;
  width: 520px;
  height: 520px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 900px;
}

/* ---- Globe Sphere (3D scrolling illusion) ---- */
.globe-sphere {
  width: 420px;
  height: 420px;
  border-radius: 50%;
  position: relative;
  z-index: 2;
  overflow: hidden;
}

/* Dark-to-light blue sphere background */
.globe-dark-bg {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 38%, #3568b0, #255088 50%, #1a4070 100%);
  z-index: 0;
}

/* Map wrapper — horizontally scrolling to simulate 3D spin */
.globe-map-clip {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
  z-index: 1;
}
.globe-map-svg {
  display: flex;
  height: 130%;
  position: absolute;
  top: -15%;
  left: 0;
  pointer-events: none;
  animation: globe-map-scroll 35s linear infinite;
}
.globe-map-img {
  width: 720px;
  height: 100%;
  flex-shrink: 0;
  object-fit: contain;
}
@keyframes globe-map-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-720px); }
}

/* 3D spherical edge darkening — makes the flat map look curved */
.globe-sphere::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  z-index: 4;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 50%,
      transparent 0%,
      transparent 50%,
      rgba(20,45,80,0.1) 62%,
      rgba(15,38,70,0.25) 72%,
      rgba(12,32,60,0.5) 82%,
      rgba(8,25,50,0.78) 92%,
      rgba(5,18,40,0.92) 100%
    );
}

/* Overlay SVG effects */
.globe-overlay-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

/* Scanning beam across globe */
.globe-scan-beam {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
  pointer-events: none;
  z-index: 3;
}
.globe-scan-beam::before {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 200%;
  background: linear-gradient(180deg,
    transparent 0%,
    transparent 45%,
    rgba(60, 160, 255, 0.04) 48%,
    rgba(60, 160, 255, 0.08) 50%,
    rgba(60, 160, 255, 0.04) 52%,
    transparent 55%,
    transparent 100%
  );
  animation: scan-sweep 5s ease-in-out infinite;
}
@keyframes scan-sweep {
  0% { transform: translateY(0); }
  100% { transform: translateY(100%); }
}

/* ---- HQ Label (floating outside globe) ---- */
.globe-hq-label {
  position: absolute;
  right: -10px;
  top: 55%;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 8px;
}
.globe-hq-label-line {
  width: 30px;
  height: 1px;
  background: linear-gradient(90deg, rgba(60,160,255,0.6), rgba(60,160,255,0.1));
}
.globe-hq-label-box {
  background: rgba(10, 30, 60, 0.9);
  border: 1px solid rgba(60, 160, 255, 0.35);
  border-radius: 8px;
  padding: 8px 14px;
  box-shadow: 0 4px 20px rgba(50, 130, 255, 0.15), inset 0 0 20px rgba(40, 100, 200, 0.05);
  display: flex;
  flex-direction: column;
  gap: 2px;
  animation: hq-label-float 3s ease-in-out infinite;
}
@keyframes hq-label-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
.globe-hq-tag {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #5CB8FF;
  text-transform: uppercase;
}
.globe-hq-city {
  font-size: 12px;
  font-weight: 600;
  color: #e0f0ff;
}

/* ---- Rotating Ring Orbits (Light Blue) ---- */
.globe-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(80, 180, 255, 0.18);
  pointer-events: none;
  z-index: 1;
}
.globe-ring-1 {
  width: 470px;
  height: 470px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotateX(65deg) rotateZ(0deg);
  animation: ring-orbit-1 14s linear infinite;
  border-style: dashed;
  border-color: rgba(80, 180, 255, 0.22);
}
.globe-ring-2 {
  width: 485px;
  height: 485px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotateX(75deg) rotateZ(45deg);
  animation: ring-orbit-2 20s linear infinite;
  border-color: rgba(90, 160, 250, 0.16);
}
.globe-ring-3 {
  width: 460px;
  height: 460px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotateX(55deg) rotateZ(-30deg);
  animation: ring-orbit-3 16s linear infinite;
  border-color: rgba(80, 200, 220, 0.14);
  border-style: dotted;
}

@keyframes ring-orbit-1 {
  0% { transform: translate(-50%, -50%) rotateX(65deg) rotateZ(0deg); }
  100% { transform: translate(-50%, -50%) rotateX(65deg) rotateZ(360deg); }
}
@keyframes ring-orbit-2 {
  0% { transform: translate(-50%, -50%) rotateX(75deg) rotateZ(45deg); }
  100% { transform: translate(-50%, -50%) rotateX(75deg) rotateZ(405deg); }
}
@keyframes ring-orbit-3 {
  0% { transform: translate(-50%, -50%) rotateX(55deg) rotateZ(-30deg); }
  100% { transform: translate(-50%, -50%) rotateX(55deg) rotateZ(330deg); }
}

/* ---- Orbiting Satellites (Dark) ---- */
.globe-orbit {
  position: absolute;
  top: 50%; left: 50%;
  border-radius: 50%;
  pointer-events: none;
  z-index: 3;
}
.globe-orbit-1 {
  width: 500px;
  height: 500px;
  transform: translate(-50%, -50%);
  animation: satellite-orbit-1 9s linear infinite;
}
.globe-orbit-2 {
  width: 460px;
  height: 460px;
  transform: translate(-50%, -50%);
  animation: satellite-orbit-2 13s linear infinite reverse;
}

@keyframes satellite-orbit-1 {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}
@keyframes satellite-orbit-2 {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.globe-satellite {
  width: 7px;
  height: 7px;
  background: #5CB8FF;
  border-radius: 50%;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 10px rgba(92, 184, 255, 0.7), 0 0 25px rgba(60, 150, 255, 0.4);
}
.globe-satellite::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: rgba(60, 160, 255, 0.15);
  animation: sat-ping 2s ease-out infinite;
}
@keyframes sat-ping {
  0% { transform: translate(-50%, -50%) scale(0.5); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(2.5); opacity: 0; }
}

.globe-satellite.sat-2 {
  background: #7CC8FF;
  box-shadow: 0 0 10px rgba(124, 200, 255, 0.6), 0 0 20px rgba(60, 150, 255, 0.3);
  width: 5px;
  height: 5px;
}
.globe-satellite.sat-2::after {
  background: rgba(60, 160, 255, 0.1);
}

/* ---- Star-like Floating Particles (Dark) ---- */
.globe-particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.g-particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgba(0, 200, 255, 0.6);
  border-radius: 50%;
  opacity: 0;
  animation: g-float 6s ease-in-out infinite;
}

.g-p1  { top: 10%; left: 15%; animation-delay: 0s; animation-duration: 5s; }
.g-p2  { top: 20%; left: 80%; animation-delay: 0.8s; animation-duration: 7s; background: rgba(100, 180, 255, 0.5); }
.g-p3  { top: 75%; left: 10%; animation-delay: 1.5s; animation-duration: 6s; }
.g-p4  { top: 85%; left: 75%; animation-delay: 2.2s; animation-duration: 5.5s; background: rgba(0, 150, 200, 0.5); }
.g-p5  { top: 5%;  left: 50%; animation-delay: 0.5s; animation-duration: 8s; width: 1px; height: 1px; }
.g-p6  { top: 50%; left: 5%;  animation-delay: 3s;   animation-duration: 6.5s; background: rgba(0, 220, 200, 0.4); }
.g-p7  { top: 45%; left: 90%; animation-delay: 1s;   animation-duration: 5s; }
.g-p8  { top: 90%; left: 40%; animation-delay: 2.5s; animation-duration: 7s; background: rgba(100, 180, 255, 0.4); width: 1px; height: 1px; }
.g-p9  { top: 30%; left: 5%;  animation-delay: 0.3s; animation-duration: 6s; }
.g-p10 { top: 65%; left: 88%; animation-delay: 1.8s; animation-duration: 5.5s; background: rgba(0, 220, 200, 0.3); width: 1px; height: 1px; }
.g-p11 { top: 15%; left: 35%; animation-delay: 3.5s; animation-duration: 7s; width: 3px; height: 3px; }
.g-p12 { top: 80%; left: 55%; animation-delay: 4s;   animation-duration: 6s; background: rgba(100, 180, 255, 0.3); }

@keyframes g-float {
  0%   { opacity: 0; transform: translateY(0) scale(0.5); }
  20%  { opacity: 0.7; transform: translateY(-8px) scale(1); }
  50%  { opacity: 0.3; transform: translateY(-20px) scale(0.8); }
  80%  { opacity: 0.6; transform: translateY(-12px) scale(1.1); }
  100% { opacity: 0; transform: translateY(-30px) scale(0.3); }
}

/* ---- HQ Info Panel (Dark Theme) ---- */
.hq-info-panel {
  flex: 1;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.hq-info-card {
  background: rgba(12, 30, 55, 0.85);
  border: 1px solid rgba(60, 160, 255, 0.18);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: 0 8px 32px rgba(40, 120, 220, 0.12), inset 0 0 30px rgba(40, 100, 200, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}
.hq-info-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #5CB8FF, #3B9FFF, transparent);
}

.hq-info-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-lg);
  background: rgba(50, 130, 255, 0.1);
  border: 1px solid rgba(60, 160, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
}

.hq-info-card h3 {
  font-size: var(--text-xl);
  font-weight: 700;
  color: #e0f0ff;
  margin-bottom: var(--space-2);
}

.hq-address {
  font-size: var(--text-sm);
  color: rgba(160, 200, 240, 0.6);
  line-height: var(--leading-relaxed);
}

/* HQ Stats Row (Dark) */
.hq-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}
.hq-stat {
  background: rgba(12, 30, 55, 0.7);
  border: 1px solid rgba(60, 160, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-3);
  text-align: center;
  transition: all var(--transition-base);
}
.hq-stat:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(50, 140, 255, 0.15);
  border-color: rgba(60, 170, 255, 0.25);
}
.hq-stat-value {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: #5CB8FF;
  line-height: 1;
}
.hq-stat-label {
  font-size: var(--text-xs);
  color: rgba(160, 200, 240, 0.5);
  margin-top: var(--space-1);
  font-weight: 500;
}

/* HQ Tech Badges (Dark) */
.hq-tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.hq-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(20, 50, 100, 0.3);
  border: 1px solid rgba(60, 160, 255, 0.15);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  color: rgba(180, 220, 255, 0.8);
  transition: all var(--transition-fast);
}
.hq-badge:hover {
  border-color: rgba(60, 170, 255, 0.3);
  background: rgba(20, 60, 120, 0.4);
  box-shadow: 0 2px 12px rgba(50, 140, 255, 0.15);
}
.hq-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00e5a0;
  box-shadow: 0 0 6px rgba(0, 229, 160, 0.5);
  animation: live-pulse 1.5s ease-in-out infinite;
}

/* ---- Mobile Adjustments ---- */
@media (max-width: 767px) {
  .globe-wrapper {
    width: 360px;
    height: 360px;
  }
  .globe-sphere {
    width: 290px;
    height: 290px;
  }
  .globe-ring-1 { width: 330px; height: 330px; }
  .globe-ring-2 { width: 340px; height: 340px; }
  .globe-ring-3 { width: 320px; height: 320px; }
  .globe-orbit-1 { width: 350px; height: 350px; }
  .globe-orbit-2 { width: 320px; height: 320px; }
  .hq-stats-row {
    grid-template-columns: 1fr;
  }
  .globe-hq-label {
    right: -5px;
    top: 60%;
  }
  .globe-hq-label-box {
    padding: 6px 10px;
  }
  .globe-hq-tag { font-size: 7px; }
  .globe-hq-city { font-size: 10px; }
}
