/* === Product Pages - Dark Neon Design System === */

/* === Color System (matches main.css) === */
.product-page {
  --neon-cyan: #00e6ff;
  --neon-magenta: #ff2eff;
  --neon-yellow: #ffee55;
  --ink-900: #06080f;
  --ink-800: #0a0e1a;
  --text-main: #e6f0ff;
  --text-dim: #b7c2d0;

  /* Product-specific accents (overridden per product) */
  --accent-primary: var(--neon-cyan);
  --accent-secondary: var(--neon-magenta);
}

/* TradingView accents - warm finance colors */
.product-page.tradingview {
  --accent-primary: #F59E0B;
  --accent-secondary: #10B981;
  --accent-glow: rgba(245, 158, 11, 0.6);
}

/* Status Hub accents - cool dev colors */
.product-page.status-hub {
  --accent-primary: #8B5CF6;
  --accent-secondary: #06B6D4;
  --accent-glow: rgba(139, 92, 246, 0.6);
}

/* === Base Styles === */
.product-page {
  min-height: 100vh;
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  color: var(--text-main);
  background:
    radial-gradient(ellipse 120% 80% at 50% 0%,
      rgba(var(--accent-primary-rgb, 0, 230, 255), 0.08) 0%,
      transparent 50%),
    radial-gradient(ellipse 100% 60% at 80% 100%,
      rgba(255, 46, 255, 0.05) 0%,
      transparent 50%),
    radial-gradient(1400px 800px at 50% 30%,
      #0f1419 0%,
      var(--ink-800) 50%,
      var(--ink-900) 100%);
  position: relative;
}

.product-page.tradingview {
  background:
    radial-gradient(ellipse 120% 80% at 50% 0%,
      rgba(245, 158, 11, 0.1) 0%,
      transparent 50%),
    radial-gradient(ellipse 100% 60% at 80% 100%,
      rgba(16, 185, 129, 0.06) 0%,
      transparent 50%),
    radial-gradient(1400px 800px at 50% 30%,
      #0f1419 0%,
      var(--ink-800) 50%,
      var(--ink-900) 100%);
}

.product-page.status-hub {
  background:
    radial-gradient(ellipse 120% 80% at 50% 0%,
      rgba(139, 92, 246, 0.1) 0%,
      transparent 50%),
    radial-gradient(ellipse 100% 60% at 80% 100%,
      rgba(6, 182, 212, 0.06) 0%,
      transparent 50%),
    radial-gradient(1400px 800px at 50% 30%,
      #0f1419 0%,
      var(--ink-800) 50%,
      var(--ink-900) 100%);
}

/* Vignette */
.product-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 200px 80px rgba(0,0,0,.7);
  z-index: 0;
}

/* === Typography === */
.product-page h1,
.product-page h2,
.product-page h3 {
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
}

.product-page code,
.product-page .code-block {
  font-family: 'JetBrains Mono', 'Fira Code', 'Monaco', 'Consolas', monospace;
}

/* === Product Header === */
.product-header {
  padding: 20px 0;
  position: relative;
  z-index: 10;
  border-bottom: 1px solid rgba(42, 53, 80, 0.4);
  background: rgba(10, 14, 26, 0.6);
  backdrop-filter: blur(12px);
}

.product-header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-logo {
  font-size: 1.6rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--neon-cyan);
  text-shadow:
    0 0 8px rgba(0, 230, 255, .9),
    0 0 18px rgba(0, 230, 255, .6);
  transition: all 0.3s ease;
}

.product-logo:hover {
  text-shadow:
    0 0 12px rgba(0, 230, 255, 1),
    0 0 24px rgba(0, 230, 255, .8);
}

.product-logo .plus {
  color: var(--neon-magenta);
  text-shadow:
    0 0 8px rgba(255, 46, 255, .9),
    0 0 18px rgba(255, 46, 255, .6);
}

.product-nav {
  display: flex;
  gap: 32px;
  align-items: center;
}

.product-nav a {
  text-decoration: none;
  color: var(--text-dim);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 8px 0;
  position: relative;
  transition: all 0.3s ease;
}

.product-nav a:hover {
  color: var(--neon-cyan);
  text-shadow: 0 0 8px rgba(0, 230, 255, 0.6);
}

.product-nav a.active {
  color: var(--accent-primary);
  text-shadow: 0 0 8px var(--accent-glow);
}

.product-nav a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-primary);
  box-shadow: 0 0 8px var(--accent-glow);
  border-radius: 1px;
}

/* Mobile hamburger */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text-main);
}

.mobile-menu-toggle svg {
  width: 24px;
  height: 24px;
}

/* === Hero Section === */
.product-hero {
  padding: 100px 24px 80px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.product-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 40px;
  background: linear-gradient(135deg,
    rgba(20, 25, 40, 0.9),
    rgba(30, 35, 50, 0.9));
  border: 2px solid var(--accent-primary);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 30px var(--accent-glow),
    0 0 60px rgba(255, 46, 255, 0.1),
    inset 0 0 20px rgba(0, 0, 0, 0.3);
  position: relative;
}

.product-icon::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 26px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  z-index: -1;
  opacity: 0.5;
  filter: blur(8px);
}

.product-icon svg {
  width: 48px;
  height: 48px;
  color: var(--accent-primary);
  filter: drop-shadow(0 0 8px var(--accent-glow));
}

.product-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--text-main) 0%, var(--accent-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.product-hero .subtitle {
  font-size: 1.2rem;
  color: var(--text-dim);
  margin-bottom: 48px;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* Install command box */
.install-box {
  background: rgba(20, 25, 40, 0.8);
  border: 1px solid rgba(42, 53, 80, 0.6);
  border-left: 3px solid var(--accent-primary);
  border-radius: 12px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 600px;
  margin: 0 auto 40px;
  margin-left: auto;
  margin-right: auto;
  gap: 16px;
  box-shadow:
    0 0 20px rgba(0, 0, 0, 0.3),
    0 0 40px var(--accent-glow, rgba(0, 230, 255, 0.1));
  backdrop-filter: blur(8px);
  position: relative;
}

.install-box code {
  font-size: 0.95rem;
  text-align: center;
  flex: 1;
  color: var(--accent-primary);
  text-shadow: 0 0 6px var(--accent-glow);
}

.copy-button {
  background: rgba(42, 53, 80, 0.4);
  border: 1px solid rgba(42, 53, 80, 0.6);
  cursor: pointer;
  padding: 10px;
  color: var(--text-dim);
  border-radius: 8px;
  transition: all 0.3s ease;
  flex-shrink: 0;
  position: absolute;
  right: 16px;
}

.copy-button:hover {
  background: rgba(42, 53, 80, 0.8);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  box-shadow: 0 0 12px var(--accent-glow);
}

.copy-button svg {
  width: 20px;
  height: 20px;
}

.copy-button.copied {
  color: #10B981;
  border-color: #10B981;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: var(--ink-900);
  border: none;
  box-shadow:
    0 0 20px var(--accent-glow),
    0 4px 16px rgba(0, 0, 0, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow:
    0 0 30px var(--accent-glow),
    0 8px 24px rgba(0, 0, 0, 0.4);
}

.btn-ghost {
  background: rgba(20, 25, 40, 0.8);
  color: var(--text-main);
  border: 2px solid rgba(42, 53, 80, 0.6);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  box-shadow: 0 0 20px var(--accent-glow);
  transform: translateY(-2px);
}

.btn svg {
  width: 20px;
  height: 20px;
}

/* === Features Section === */
.product-features {
  padding: 80px 24px;
  position: relative;
  z-index: 1;
}

.product-features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(42, 53, 80, 0.6) 20%,
    rgba(42, 53, 80, 0.6) 80%,
    transparent);
}

.features-container {
  max-width: 1200px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  background: rgba(20, 25, 40, 0.7);
  border: 1px solid rgba(42, 53, 80, 0.5);
  border-radius: 16px;
  padding: 32px;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg,
    rgba(var(--accent-primary-rgb, 0, 230, 255), 0.03) 0%,
    rgba(255, 46, 255, 0.02) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-primary);
  box-shadow:
    0 0 24px var(--accent-glow, rgba(0, 230, 255, 0.15)),
    0 8px 32px rgba(0, 0, 0, 0.3);
}

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

.feature-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg,
    rgba(var(--accent-primary-rgb, 0, 230, 255), 0.15),
    rgba(255, 46, 255, 0.1));
  border: 1px solid rgba(42, 53, 80, 0.5);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.feature-icon svg {
  width: 28px;
  height: 28px;
  color: var(--accent-primary);
  filter: drop-shadow(0 0 4px var(--accent-glow));
}

.feature-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.feature-card p {
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
  position: relative;
  z-index: 1;
}

/* === Tagline Section === */
.product-tagline {
  padding: 80px 24px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.tagline-text {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--accent-primary);
  font-style: italic;
  margin: 0;
  text-shadow: 0 0 20px var(--accent-glow);
}

/* === Product Footer === */
.product-footer {
  padding: 32px 24px;
  border-top: 1px solid rgba(42, 53, 80, 0.4);
  position: relative;
  z-index: 1;
}

.product-footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--text-dim);
}

.product-footer a {
  color: var(--text-dim);
  text-decoration: none;
  transition: all 0.3s ease;
}

.product-footer a:hover {
  color: var(--accent-primary);
  text-shadow: 0 0 8px var(--accent-glow);
}

.footer-separator {
  color: rgba(42, 53, 80, 0.6);
}

/* === Mobile Responsive === */
@media (max-width: 768px) {
  .product-nav {
    display: none;
  }

  .product-nav.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 14, 26, 0.95);
    border-bottom: 1px solid rgba(42, 53, 80, 0.4);
    padding: 16px 24px;
    gap: 8px;
    backdrop-filter: blur(12px);
  }

  .mobile-menu-toggle {
    display: block;
  }

  .product-hero {
    padding: 60px 20px 48px;
  }

  .product-hero h1 {
    font-size: 1.8rem;
  }

  .product-hero .subtitle {
    font-size: 1.05rem;
  }

  .product-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 32px;
  }

  .product-icon svg {
    width: 36px;
    height: 36px;
  }

  .install-box {
    flex-direction: column;
    gap: 12px;
    padding: 16px;
  }

  .install-box code {
    font-size: 0.8rem;
    text-align: center;
    word-break: break-all;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    justify-content: center;
    padding: 14px 24px;
  }

  .product-features {
    padding: 48px 20px;
  }

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

  .feature-card {
    padding: 24px;
  }

  .product-tagline {
    padding: 48px 20px;
  }

  .tagline-text {
    font-size: 1.25rem;
  }

  .product-footer-content {
    flex-direction: column;
    gap: 12px;
  }

  .footer-separator {
    display: none;
  }
}

/* === Animations === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-hero {
  animation: fadeInUp 0.6s ease-out;
}

.feature-card {
  animation: fadeInUp 0.5s ease-out backwards;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .product-hero,
  .feature-card {
    animation: none;
  }

  * {
    transition: none !important;
  }
}
