/* ===========================
   PRODUCTS PAGE STYLES
   =========================== */

.products-section {
  padding: 5rem 0 7rem;
}

/* FLAGSHIP CARD */
.product-hero-card {
  background: linear-gradient(135deg, rgba(139,92,246,0.1), rgba(59,130,246,0.07));
  border: 1px solid rgba(139, 92, 246, 0.4);
  border-radius: 20px;
  padding: 4rem;
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
}

.logo {
  width: 3.5vw;      /* scales with screen */
  max-width: 150px; /* prevents it getting huge */
  height: auto;
}

.logo-main {
  width: 20vw;      /* scales with screen */
  max-width: 750px; /* prevents it getting huge */
  height: auto;
  margin-bottom: 10px;
}

.product-hero-card::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(139,92,246,0.12), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.phc-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  color: #fff;
  font-family: 'Syne', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 1rem;
  border-radius: 100px;
  margin-bottom: 2rem;
}

.phc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.product-icon-lg {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.phc-content h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.phc-tagline {
  font-family: 'Syne', sans-serif;
  font-size: 0.9rem;
  color: var(--purple-light);
  font-weight: 600;
  margin-bottom: 1rem;
}

.phc-content p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.product-features {
  list-style: none;
  margin-bottom: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.product-features li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding-left: 1.1rem;
  position: relative;
}

.product-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--purple-light);
  font-size: 0.75rem;
}

.product-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* PRODUCT MOCKUP */
.phc-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-mockup {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}

.pm-header {
  background: var(--bg-secondary);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border-bottom: 1px solid var(--border);
}

.pm-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.pm-dot.red { background: #ef4444; }
.pm-dot.yellow { background: #eab308; }
.pm-dot.green { background: #22c55e; }

.pm-title {
  font-family: 'Syne', sans-serif;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-left: 0.5rem;
  font-weight: 600;
}

.pm-body {
  padding: 1.25rem;
}

.pm-stat-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.pm-stat {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  flex: 1;
}

.pm-val {
  display: block;
  font-family: 'Syne', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.pm-val.success { color: #22c55e; }

.pm-lbl {
  font-size: 0.7rem;
  color: var(--text-muted);
  display: block;
}

.pm-chart {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 80px;
  margin-bottom: 1.25rem;
  background: var(--bg-secondary);
  border-radius: 8px;
  padding: 0.75rem;
  border: 1px solid var(--border);
}

.pm-bar {
  flex: 1;
  background: rgba(139, 92, 246, 0.3);
  border-radius: 3px 3px 0 0;
  transition: height 0.5s;
}

.pm-bar.active {
  background: linear-gradient(to top, var(--purple), var(--blue-light));
}

.pm-row {}

.pm-device-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.pm-device-row:last-child { border-bottom: none; }

.pm-device-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.pm-device-dot.online { background: #22c55e; }
.pm-device-dot.warning { background: var(--orange); }

.pm-device-val {
  margin-left: auto;
  font-family: 'Syne', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* PRODUCT GRID */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.4s;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(139, 92, 246, 0.1);
}

.product-card.featured {
  border-color: rgba(249, 115, 22, 0.35);
  background: linear-gradient(135deg, rgba(249,115,22,0.06), rgba(139,92,246,0.06));
}

.product-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.product-icon {
  font-size: 2rem;
}

.product-tag {
  font-family: 'Syne', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 100px;
}

.ai-tag { background: rgba(139,92,246,0.15); color: var(--purple-light); border: 1px solid rgba(139,92,246,0.3); }
.saas-tag { background: rgba(59,130,246,0.15); color: var(--blue-light); border: 1px solid rgba(59,130,246,0.3); }
.iot-tag { background: rgba(249,115,22,0.15); color: var(--orange-light); border: 1px solid rgba(249,115,22,0.3); }
.sec-tag { background: rgba(34,197,94,0.1); color: #4ade80; border: 1px solid rgba(34,197,94,0.3); }

.product-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

.product-tagline {
  font-size: 0.78rem;
  color: var(--orange-light);
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  margin-bottom: 0.875rem;
}

.product-card > p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.product-mini-features {
  list-style: none;
  margin-bottom: 1.5rem;
  flex: 1;
}

.product-mini-features li {
  font-size: 0.82rem;
  color: var(--text-secondary);
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--border);
  padding-left: 1.1rem;
  position: relative;
}

.product-mini-features li:last-child { border-bottom: none; }

.product-mini-features li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--purple-light);
  font-size: 0.75rem;
}

.product-pricing-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  padding: 0.5rem 0;
  border-top: 1px solid var(--border);
}

.product-pricing-hint strong {
  color: var(--text-primary);
}

/* CTA reuse */
.cta-banner { padding: 7rem 0; }
.cta-inner {
  background: linear-gradient(135deg, rgba(139,92,246,0.12), rgba(59,130,246,0.08));
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 16px;
  padding: 5rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-orbs { position: absolute; inset: 0; pointer-events: none; }
.cta-orb { position: absolute; border-radius: 50%; filter: blur(60px); }
.cta-orb-1 { width: 300px; height: 300px; background: rgba(139,92,246,0.15); top: -100px; left: -50px; }
.cta-orb-2 { width: 250px; height: 250px; background: rgba(249,115,22,0.1); bottom: -80px; right: -30px; }
.cta-inner h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; position: relative; z-index: 1; }
.cta-inner p { font-size: 1.05rem; color: var(--text-secondary); margin-bottom: 2.5rem; position: relative; z-index: 1; }
.cta-inner .btn-primary { position: relative; z-index: 1; }

@media (max-width: 1024px) {
  .phc-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .product-hero-card { padding: 2rem; }
  .products-grid { grid-template-columns: 1fr; }
  .product-features { grid-template-columns: 1fr; }
}


@media (max-width: 768px) {

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

  .packages-section h1 {
    font-size: 2rem;
  }

  /* LOGO BIGGER ON MOBILE */
  .logo {
    width: 10vw;
  }

  .logo-main {
    width: 45vw;
  }

  /* BUTTON FULL WIDTH + CENTER */
  .package-btn {
    width: 100%;
    max-width: 320px;
    margin: 20px auto 0 auto; /* THIS centers it */
  }
}

@media (max-width: 480px) {
  .package {
    padding: 25px 18px;
  }

  .package-btn {
    max-width: 100%;
  }
}
@media (max-width: 768px) {
  .section-tag {
    color: rgba(255, 255, 255, 0.95);        /* white text */
    background: rgba(255, 255, 255, 0.4);    /* semi-transparent white */
    border: 1px solid rgba(255, 255, 255, 0.5);

    font-size: 0.7rem;                       /* slightly smaller */
    letter-spacing: 0.1em;
    padding: 0.25rem 0.9rem;

    backdrop-filter: blur(6px);              /* glass effect */
  }
}
