/* ═══════════════════════════════════════════════════════════
   PRODUCT PAGES — Premium UI Redesign
   ═══════════════════════════════════════════════════════════ */

:root {
  --navy: #080f1e;
  --navy-dark: #04070f;
  --navy-mid: #0f1e3c;
  --blue: #4f8ef7;
  --blue-light: #7eb3ff;
  --blue-glow: #2563eb;
  --blue-dim: rgba(79,142,247,.15);
  --accent: #7c6af7;
  --accent-light: #a78bfa;
  --accent-dim: rgba(124,106,247,.12);
  --g50: #f8fafc;
  --g100: #f1f5f9;
  --g200: #e2e8f0;
  --g300: #cbd5e1;
  --g400: #94a3b8;
  --g500: #64748b;
  --g600: #475569;
  --g800: #1e293b;
  --green: #10b981;
  --green-light: #34d399;
  --orange: #f59e0b;
  --purple: #8b5cf6;
  --teal: #14b8a6;
  --ease: cubic-bezier(.4,0,.2,1);
  --spring: cubic-bezier(.34,1.56,.64,1);
}

/* ── NAVBAR & FOOTER ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 76px;
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0,0,0,.04);
  z-index: 1000;
  transition: all 0.3s var(--ease);
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}

.navbar.scrolled {
  height: 68px;
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
}

/* Navbar inner container */
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 36px;
  gap: 40px;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 24px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-logo-img {
  height: 40px;
  width: auto;
  transition: height 0.3s var(--ease);
}

/* Animated logo text - ensure it displays on product pages */
.nav-logo-text {
  display: inline-flex !important;
  align-items: center !important;
  min-width: 120px !important;
  height: auto !important;
  overflow: visible !important;
  vertical-align: middle !important;
}

.nav-logo-animated {
  display: none !important;
  font-size: 24px !important;
  font-weight: 700 !important;
  letter-spacing: -.05em !important;
  color: #4f8ef7 !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  animation: none !important;
}

.nav-logo-animated.active {
  display: inline-block !important;
  animation: fadeInUp 0.5s ease !important;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Nav right section */
.nav-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  flex: 1;
}

/* ── BODY ── */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
  color: var(--g800);
  overflow-x: hidden;
}

/* ── PRODUCT HERO ── */
.product-hero-section {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 30px 80px;
  margin-top: 76px;
  background: linear-gradient(135deg, #ffffff 0%, #f8faff 50%, #f0f9ff 100%);
  overflow: hidden;
}

.product-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(79, 142, 247, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(124, 106, 247, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(37, 99, 235, 0.08) 0%, transparent 50%);
  pointer-events: none;
  animation: gradientShift 15s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% {
    background:
      radial-gradient(circle at 20% 50%, rgba(79, 142, 247, 0.12) 0%, transparent 50%),
      radial-gradient(circle at 80% 80%, rgba(124, 106, 247, 0.08) 0%, transparent 50%),
      radial-gradient(circle at 80% 20%, rgba(37, 99, 235, 0.08) 0%, transparent 50%);
  }
  50% {
    background:
      radial-gradient(circle at 80% 40%, rgba(79, 142, 247, 0.12) 0%, transparent 50%),
      radial-gradient(circle at 20% 70%, rgba(124, 106, 247, 0.08) 0%, transparent 50%),
      radial-gradient(circle at 30% 30%, rgba(37, 99, 235, 0.08) 0%, transparent 50%);
  }
}

.product-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--blue-dim);
  border: 1px solid var(--blue-light);
  border-radius: 12px;
  color: var(--blue-glow);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
  animation: float 3s ease-in-out infinite;
}

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

.product-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--blue-glow);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.product-hero-title {
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 900;
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 24px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue-glow) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.product-hero-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--g600);
  line-height: 1.6;
  margin: 0 auto 40px;
  max-width: 700px;
  text-align: center;
}

.product-cta-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.product-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s var(--spring);
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.product-btn-primary {
  background: linear-gradient(135deg, var(--blue-glow), var(--blue));
  color: white;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
}

.product-btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.4);
}

.product-btn-secondary {
  background: white;
  color: var(--blue-glow);
  border: 2px solid var(--blue-glow);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.product-btn-secondary:hover {
  background: var(--blue-dim);
  transform: translateY(-2px);
}

/* ── FEATURES SECTION ── */
.product-features-section {
  padding: 100px 30px;
  max-width: 1400px;
  margin: 0 auto;
}

.product-section-header {
  text-align: center;
  margin-bottom: 80px;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.product-section-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--blue-glow);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  padding: 6px 12px;
  background: var(--blue-dim);
  border-radius: 8px;
}

.product-section-title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 900;
  color: var(--navy);
  margin: 16px 0;
  line-height: 1.2;
}

.product-section-subtitle {
  font-size: 18px;
  color: var(--g600);
  max-width: 600px;
  margin: 16px auto 0;
}

/* ── FEATURES GRID ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  margin-bottom: 80px;
}

.feature-card {
  background: white;
  border-radius: 16px;
  padding: 32px;
  border: 1px solid var(--g200);
  transition: all 0.3s var(--spring);
  animation: fadeInUp 0.6s ease-out 0.3s both;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(8, 15, 30, 0.1);
  border-color: var(--blue-light);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 28px;
  background: var(--blue-dim);
  color: var(--blue-glow);
  transition: all 0.3s var(--ease);
}

.feature-card:hover .feature-icon {
  background: linear-gradient(135deg, var(--blue-glow), var(--accent));
  color: white;
  transform: scale(1.1) rotate(5deg);
}

.feature-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 12px;
}

.feature-description {
  font-size: 15px;
  color: var(--g600);
  line-height: 1.6;
  margin: 0;
}

/* ── BENEFITS SECTION ── */
.product-benefits-section {
  padding: 100px 30px;
  background: linear-gradient(135deg, var(--navy-mid) 0%, var(--navy-dark) 100%);
  color: white;
}

.benefits-container {
  max-width: 1400px;
  margin: 0 auto;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 60px;
}

.benefit-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 32px;
  backdrop-filter: blur(12px);
  transition: all 0.3s var(--spring);
  animation: fadeInUp 0.6s ease-out 0.4s both;
}

.benefit-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-8px);
}

.benefit-number {
  font-size: 48px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--blue-light), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}

.benefit-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.benefit-title {
  font-size: 16px;
  font-weight: 700;
  margin-top: 8px;
}

/* ── HOW IT WORKS ── */
.product-how-section {
  padding: 100px 30px;
  max-width: 1400px;
  margin: 0 auto;
}

.steps-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 60px;
  position: relative;
}

.step-card {
  position: relative;
  animation: fadeInUp 0.6s ease-out 0.5s both;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue-glow), var(--accent));
  color: white;
  font-size: 24px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
}

.step-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 12px;
}

.step-description {
  font-size: 15px;
  color: var(--g600);
  line-height: 1.6;
  margin: 0;
}

/* ── CTA SECTION ── */
.product-cta-section {
  padding: 100px 30px;
  background: linear-gradient(135deg, #f8faff 0%, #ffffff 100%);
}

.cta-container {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.cta-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 900;
  color: var(--navy);
  margin: 0 0 24px;
}

.cta-subtitle {
  font-size: 18px;
  color: var(--g600);
  margin: 0 0 40px;
  line-height: 1.6;
}

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

/* ── BACK LINK ── */
.product-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 30px 0 0;
  padding: 12px 20px;
  background: transparent;
  color: var(--g600);
  text-decoration: none;
  font-weight: 600;
  border: 1px solid var(--g300);
  border-radius: 10px;
  transition: all 0.3s var(--ease);
  font-size: 14px;
}

.product-back-link:hover {
  color: var(--blue-glow);
  border-color: var(--blue-glow);
  background: var(--blue-dim);
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .product-hero-section {
    min-height: 500px;
    padding: 80px 20px 60px;
  }

  .product-hero-title {
    font-size: 42px;
  }

  .product-hero-subtitle {
    font-size: 16px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .feature-card {
    padding: 24px;
  }

  .product-features-section,
  .product-benefits-section,
  .product-how-section,
  .product-cta-section {
    padding: 60px 20px;
  }

  .steps-container {
    gap: 24px;
  }

  .product-section-title {
    font-size: 32px;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .product-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .product-hero-section {
    min-height: 400px;
    padding: 60px 16px 50px;
  }

  .product-hero-title {
    font-size: 32px;
  }

  .product-cta-group {
    gap: 12px;
  }

  .product-btn {
    padding: 12px 24px;
    font-size: 14px;
  }

  .features-grid {
    gap: 16px;
  }

  .feature-card {
    padding: 20px;
  }

  .feature-icon {
    width: 48px;
    height: 48px;
    font-size: 24px;
  }

  .product-features-section,
  .product-benefits-section,
  .product-how-section,
  .product-cta-section {
    padding: 50px 16px;
  }

  .product-section-title {
    font-size: 28px;
  }

  .benefit-number {
    font-size: 36px;
  }
}
