/* ============================================
   PRODUCTS PAGE — Product Line Layout
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&display=swap');

/* --- Page wrapper --- */
.pl-page {
  font-family: 'Montserrat', 'Inter', sans-serif;
  overflow-x: hidden;
}

.pl-page h1,
.pl-page h2,
.pl-page h3,
.pl-page h4 {
  font-family: 'Montserrat', 'Inter', sans-serif;
}

/* --- Hero Section --- */
.pl-hero {
  padding: 130px 0 60px;
  background: linear-gradient(135deg, #0a1628 0%, #0f2847 50%, #0c1a30 100%);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.pl-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #00adef, #00d4ff, #00adef);
}

.pl-hero-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 1.25rem;
}

.pl-hero-title h1 {
  color: #ffffff;
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 0;
}

.pl-hero-title .pl-dash {
  color: #00adef;
  font-size: 2.2rem;
  font-weight: 300;
}

.pl-hero-title .pl-subtitle-text {
  color: #00d4ff;
  font-size: 2.2rem;
  font-weight: 700;
}

.pl-hero p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.05rem;
  max-width: 750px;
  line-height: 1.7;
}

@media (max-width: 767px) {
  .pl-hero-title h1,
  .pl-hero-title .pl-dash,
  .pl-hero-title .pl-subtitle-text {
    font-size: 1.5rem;
  }
}

/* --- Products Section (Light Background) --- */
.pl-products {
  background: #f4f6f9;
  padding: 4rem 0 2rem;
  position: relative;
}

.pl-product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

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

/* --- Product Card --- */
.pl-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 2.5rem 2rem 2rem;
  position: relative;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  border: 1px solid #e8ecf2;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.pl-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: #00adef;
}

.pl-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  border-color: #00adef;
}

.pl-card-tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #00adef;
  margin-bottom: 6px;
}

.pl-card-tag .pl-new-badge {
  display: inline-block;
  background: #00adef;
  color: #ffffff;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.6rem;
  margin-left: 6px;
  vertical-align: middle;
}

.pl-card h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: #0c1a30;
  margin-bottom: 1.5rem;
  letter-spacing: -0.3px;
}

.pl-card-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  flex-grow: 1;
}

.pl-card-features li {
  position: relative;
  padding: 6px 0 6px 20px;
  font-size: 0.92rem;
  color: #3a4a5c;
  line-height: 1.5;
}

.pl-card-features li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #0c1a30;
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.3;
}

.pl-card-footer {
  border-top: 1px solid #e8ecf2;
  padding-top: 1.25rem;
  margin-top: auto;
}

.pl-card-footer p {
  font-size: 0.78rem;
  color: #8a9ab5;
  font-style: italic;
  line-height: 1.5;
  margin: 0;
}

/* --- Card Video --- */
.card-video {
  display: block;
  max-width: 70%;
  height: auto;
  margin: 20px auto;
  border-radius: 15px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06), inset 0 0 20px rgba(0, 0, 0, 0.15);
  background: #f4f6f9;
  filter: contrast(1.2) brightness(1.1);
  -webkit-mask-image: radial-gradient(circle, black 70%, transparent 100%);
  mask-image: radial-gradient(circle, black 70%, transparent 100%);
}

/* --- Connection Lines Section --- */
.pl-connectors {
  background: #f4f6f9;
  padding: 0;
  position: relative;
  height: 80px;
}

.pl-connector-visual {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  padding: 0 1.5rem;
}

.pl-connector-line {
  position: absolute;
  width: 2px;
  background: #00adef;
  top: 0;
  height: 100%;
}

.pl-connector-line::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #00adef;
}

.pl-connector-line:nth-child(1) { left: 16.66%; }
.pl-connector-line:nth-child(2) { left: 50%; }
.pl-connector-line:nth-child(3) { left: 83.33%; }

/* Horizontal merge line */
.pl-connector-merge {
  position: absolute;
  bottom: 0;
  left: 16.66%;
  right: 16.67%;
  height: 2px;
  background: #00adef;
}

/* Center drop line */
.pl-connector-drop {
  position: absolute;
  bottom: -40px;
  left: 50%;
  width: 2px;
  height: 40px;
  background: #00adef;
  transform: translateX(-50%);
}

.pl-connector-drop::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid #00adef;
}

@media (max-width: 1023px) {
  .pl-connectors {
    display: none;
  }
}

/* --- Spacer for connector drop --- */
.pl-connector-spacer {
  background: #f4f6f9;
  height: 50px;
}

@media (max-width: 1023px) {
  .pl-connector-spacer {
    height: 0;
  }
}

/* --- Core Platform Section — Enhanced Foundation Block --- */
.pl-platform-section {
  position: relative;
  padding: 3.5rem 0 4.5rem;
  /* Lighter glowing background to stand out */
  background: linear-gradient(180deg,
    rgba(0, 229, 255, 0.04) 0%,
    rgba(10, 20, 60, 0.85) 30%,
    rgba(10, 20, 60, 0.9) 70%,
    rgba(0, 229, 255, 0.04) 100%
  );
  /* Prominent glowing border on all sides */
  border: 1px solid rgba(0, 229, 255, 0.3);
  border-left: none;
  border-right: none;
  box-shadow:
    0 -8px 40px rgba(0, 229, 255, 0.08),
    0 8px 40px rgba(168, 85, 247, 0.08),
    inset 0 0 60px rgba(0, 229, 255, 0.03);
  overflow: hidden;
  margin-top: 0;
}

/* Animated gradient top bar — acts as "landing strip" */
.pl-platform-topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--cyan) 20%,
    var(--violet) 50%,
    var(--lightblue) 80%,
    transparent 100%
  );
  animation: topbar-shimmer 4s ease-in-out infinite;
}

@keyframes topbar-shimmer {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* Ambient glow orb behind content */
.pl-platform-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 300px;
  background: radial-gradient(ellipse,
    rgba(0, 229, 255, 0.07) 0%,
    rgba(168, 85, 247, 0.05) 40%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

.pl-platform-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Pill hover effect */
.pl-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 229, 255, 0.2);
  filter: brightness(1.15);
}

/* Legacy .pl-platform still in use for backward compat */
.pl-platform {
  background: #0c1a30;
  padding: 4rem 0 5rem;
  position: relative;
  color: #ffffff;
}

.pl-platform::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, #00adef, transparent);
}

.pl-platform h2 {
  color: #ffffff;
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  letter-spacing: -0.3px;
}

.pl-platform h2 span { color: #00adef; }

.pl-platform-subtitle {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

/* --- Pill Buttons --- */
.pl-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.pl-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  background: rgba(0, 173, 239, 0.12);
  border: 1.5px solid #00adef;
  color: #00d4ff;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  transition: all 0.3s ease;
  cursor: default;
}

.pl-pill:hover {
  background: rgba(0, 173, 239, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 173, 239, 0.2);
}

.pl-pill i {
  font-size: 0.85rem;
}

/* --- CTA Section --- */
.pl-cta {
  background: #0a1628;
  padding: 4rem 0;
  text-align: center;
  border-top: 1px solid rgba(0, 173, 239, 0.15);
}

.pl-cta h2 {
  color: #ffffff;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.pl-cta p {
  color: rgba(255, 255, 255, 0.5);
  max-width: 520px;
  margin: 0 auto 2rem;
  font-size: 1rem;
}

.pl-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  background: #00adef;
  color: #ffffff;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0, 173, 239, 0.3);
}

.pl-cta-btn:hover {
  background: #00c4ff;
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 173, 239, 0.4);
  color: #ffffff;
}

/* --- Footer Override --- */
.pl-page .footer {
  background: #060e1a;
  border-top: 1px solid rgba(0, 173, 239, 0.1);
}

/* --- Scroll Reveal --- */
.pl-reveal {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.pl-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 767px) {
  .pl-hero {
    padding: 120px 0 40px;
  }

  .pl-card {
    padding: 2rem 1.5rem 1.5rem;
  }

  .pl-platform h2 {
    font-size: 1.4rem;
  }

  .pl-pill {
    padding: 10px 20px;
    font-size: 0.8rem;
  }
}
