/* ==========================================================================
   PulSaaS — Stylesheet (Dark Tech Modern)
   ========================================================================== */

/* --- CSS Variables & Design Tokens --- */
:root {
  /* Color Palette */
  --bg-primary: #070b14;
  --bg-secondary: #0d1527;
  --bg-card: rgba(13, 22, 40, 0.65);
  --bg-card-hover: rgba(18, 30, 54, 0.85);

  /* Accents & Neons */
  --accent-cyan: #06b6d4;
  --accent-cyan-light: #38bdf8;
  --accent-indigo: #6366f1;
  --accent-indigo-light: #818cf8;
  --accent-violet: #a855f7;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;

  /* Text Colors */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-accent: #38bdf8;

  /* Borders & Glassmorphism */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-card: rgba(255, 255, 255, 0.1);
  --border-hover: rgba(56, 189, 248, 0.4);
  --border-active-card: rgba(6, 182, 212, 0.35);

  /* Shadows & Glows */
  --glow-cyan: rgba(6, 182, 212, 0.25);
  --glow-indigo: rgba(99, 102, 241, 0.25);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5), 0 0 1px 1px rgba(255, 255, 255, 0.05);
  --shadow-card-hover: 0 20px 40px -15px rgba(0, 0, 0, 0.7), 0 0 25px rgba(6, 182, 212, 0.15);

  /* Typography */
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  
  /* Layout */
  --container-max-width: 1140px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
  --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Base & Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  background: radial-gradient(ellipse 90% 60% at 50% -10%, #0d1829 0%, #070b14 100%);
}

::selection {
  background: var(--accent-cyan);
  color: #000;
}

/* --- Ambient Background Glow & Grid --- */
.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
  animation: pulseGlow 12s ease-in-out infinite alternate;
}

.bg-glow-1 {
  width: 550px;
  height: 550px;
  top: -150px;
  left: 15%;
  background: radial-gradient(circle, var(--accent-cyan) 0%, rgba(99, 102, 241, 0.2) 70%, transparent 100%);
}

.bg-glow-2 {
  width: 600px;
  height: 600px;
  top: 35%;
  right: -100px;
  background: radial-gradient(circle, var(--accent-indigo) 0%, rgba(168, 85, 247, 0.15) 70%, transparent 100%);
  animation-delay: -6s;
}

.bg-grid-overlay {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

@keyframes pulseGlow {
  0% { transform: scale(1) translateY(0); opacity: 0.35; }
  100% { transform: scale(1.15) translateY(30px); opacity: 0.55; }
}

/* --- Layout Container --- */
.site-container {
  position: relative;
  z-index: 1;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* --- Header --- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.brand-logo:hover {
  opacity: 0.9;
}

.header-logo {
  max-height: 42px;
  width: auto;
  margin-right: 15px;
  display: block;
  filter: drop-shadow(0 0 12px rgba(56, 189, 248, 0.25)) drop-shadow(0 0 2px rgba(255, 255, 255, 0.4));
  transition: filter 0.3s ease;
}

.brand-logo:hover .header-logo,
.header-logo:hover {
  filter: drop-shadow(0 0 16px rgba(56, 189, 248, 0.4)) drop-shadow(0 0 4px rgba(255, 255, 255, 0.6));
}

.pulse-indicator {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 12px;
  height: 12px;
}

.pulse-core {
  width: 8px;
  height: 8px;
  background-color: var(--accent-cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-cyan);
}

.pulse-ring {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: rgba(6, 182, 212, 0.4);
  animation: pulseDot 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* Nav Actions */
.btn-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  text-decoration: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
}

.btn-nav:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  transform: translateY(-1px);
}

.icon-mail {
  width: 16px;
  height: 16px;
  color: var(--accent-cyan-light);
}

/* --- Hero Section --- */
.hero-section {
  padding: 80px 0 60px;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.25);
  color: var(--accent-cyan-light);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 24px;
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.1);
}

.badge-live-dot {
  width: 7px;
  height: 7px;
  background: var(--accent-cyan);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-cyan);
}

.hero-title {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
  color: #ffffff;
}

.text-gradient {
  background: linear-gradient(135deg, var(--accent-cyan-light) 0%, var(--accent-indigo-light) 50%, var(--accent-violet) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-description {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 680px;
  margin-bottom: 40px;
  font-weight: 400;
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-top: 8px;
}

.feature-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.feature-icon {
  width: 15px;
  height: 15px;
  color: var(--accent-cyan-light);
}

/* --- Products Section --- */
.products-section {
  padding: 40px 0 80px;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-cyan);
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #fff;
  margin-bottom: 12px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 540px;
  margin: 0 auto;
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}

/* --- Product Cards --- */
.product-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card-hover);
  background: var(--bg-card-hover);
}

/* Active card highlight */
.card-featured {
  border-color: var(--border-active-card);
  background: linear-gradient(180deg, rgba(14, 28, 54, 0.75) 0%, rgba(10, 18, 35, 0.65) 100%);
}

.card-featured::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), var(--accent-indigo), transparent);
}

.card-featured:hover {
  border-color: rgba(56, 189, 248, 0.6);
}

/* Card Glow Effect Behind */
.card-glow-effect {
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 100px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.2) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(30px);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.product-card:hover .card-glow-effect {
  opacity: 1;
}

/* Card Header */
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.product-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-subtle);
}

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

.icon-cyan {
  background: rgba(6, 182, 212, 0.12);
  color: var(--accent-cyan-light);
  border-color: rgba(6, 182, 212, 0.25);
}

.icon-indigo {
  background: rgba(99, 102, 241, 0.12);
  color: var(--accent-indigo-light);
  border-color: rgba(99, 102, 241, 0.25);
}

.icon-violet {
  background: rgba(168, 85, 247, 0.12);
  color: #c084fc;
  border-color: rgba(168, 85, 247, 0.25);
}

/* Status Pills */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.status-pill .status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

/* Live Status */
.status-active {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-active .status-dot {
  background: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
  animation: pulseDot 2s infinite;
}

/* Upcoming Status */
.status-upcoming {
  background: rgba(245, 158, 11, 0.1);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.status-upcoming .status-dot {
  background: var(--accent-amber);
}

/* Lab / R&D Status */
.status-lab {
  background: rgba(168, 85, 247, 0.12);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.25);
}

.status-lab .status-dot {
  background: var(--accent-violet);
}

/* Card Body */
.card-body {
  margin-bottom: 28px;
  flex-grow: 1;
}

.card-title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 12px;
}

.card-description {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Tags */
.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

.tag-accent {
  background: rgba(6, 182, 212, 0.08);
  color: var(--accent-cyan-light);
  border-color: rgba(6, 182, 212, 0.2);
}

.tag-upcoming {
  background: rgba(245, 158, 11, 0.08);
  color: #fcd34d;
  border-color: rgba(245, 158, 11, 0.2);
}

.tag-lab {
  background: rgba(168, 85, 247, 0.08);
  color: #d8b4fe;
  border-color: rgba(168, 85, 247, 0.2);
}

/* Card Footer & CTAs */
.card-footer {
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  margin-top: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border-radius: var(--radius-md);
  transition: var(--transition-smooth);
}

.btn-primary {
  width: 100%;
  padding: 12px 20px;
  font-size: 0.9375rem;
  background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 16px rgba(6, 182, 212, 0.35);
  gap: 10px;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #22d3ee 0%, #60a5fa 100%);
  box-shadow: 0 6px 24px rgba(6, 182, 212, 0.5);
  transform: translateY(-2px);
}

.btn-arrow {
  width: 18px;
  height: 18px;
  transition: transform 0.25s ease;
}

.btn-primary:hover .btn-arrow {
  transform: translateX(4px);
}

.card-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 10px 0;
}

.card-notice svg {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
}

/* --- Footer --- */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-subtle);
  padding: 36px 0;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.copyright-text {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.footer-link:hover {
  color: var(--accent-cyan-light);
}

.footer-link svg {
  width: 16px;
  height: 16px;
}

/* --- Responsive Media Queries --- */
@media (max-width: 960px) {
  .products-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto;
  }

  .hero-section {
    padding: 60px 0 40px;
  }
}

@media (max-width: 640px) {
  .site-container {
    padding: 0 18px;
  }

  .site-header {
    padding: 20px 0;
  }

  .hero-section {
    padding: 40px 0 30px;
  }

  .hero-features {
    flex-direction: column;
    width: 100%;
  }

  .feature-item {
    justify-content: center;
    width: 100%;
  }

  .product-card {
    padding: 24px 20px;
  }

  .footer-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

