/* ========================================
   PRODUCT HERO
   ======================================== */

.product-hero {
  position: relative;
  padding: 140px 0 80px;
  text-align: center;
  overflow: hidden;
  background-color: var(--bg-deep);
}

.product-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.product-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.product-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    rgba(7, 12, 24, 0.6) 0%,
    rgba(7, 12, 24, 0.95) 70%
  );
}

.product-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}

.product-hero-inner h1 {
  margin-bottom: 20px;
}

.product-hero-inner p {
  color: var(--text-2);
  font-size: 1.1rem;
  line-height: 1.7;
}

/* ========================================
   PRODUCT DETAIL SECTION
   ======================================== */

.product-detail {
  padding: 100px 0;
  border-bottom: 1px solid var(--bg-border);
}

.product-detail:nth-child(odd) {
  background-color: var(--bg-card);
}

.product-detail-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.product-detail-inner.reversed {
  direction: rtl;
}

.product-detail-inner.reversed > * {
  direction: ltr;
}

.product-detail-content .tag {
  margin-bottom: 12px;
}

.product-detail-content h2 {
  margin-bottom: 16px;
}

.product-detail-content .product-tagline {
  color: var(--accent-2);
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 20px;
}

.product-detail-content .product-description {
  color: var(--text-2);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 28px;
}

.product-detail-content .product-description p + p {
  margin-top: 16px;
}

/* ========================================
   CAPABILITIES TABLE
   ======================================== */

.capabilities-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-bottom: 28px;
  border: 1px solid var(--bg-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.capabilities-table th,
.capabilities-table td {
  padding: 12px 16px;
  text-align: left;
  font-size: 0.88rem;
}

.capabilities-table th {
  background-color: rgba(37, 99, 235, 0.06);
  color: var(--text-2);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.capabilities-table td {
  color: var(--text-1);
  border-top: 1px solid var(--bg-border);
}

.capabilities-table td:first-child {
  font-weight: 600;
  color: var(--accent-2);
  white-space: nowrap;
  width: 40%;
}

.capabilities-table tr:hover td {
  background-color: rgba(37, 99, 235, 0.03);
}

/* ========================================
   ARCHITECTURE DIAGRAM
   ======================================== */

.architecture-diagram {
  margin-bottom: 28px;
  padding: 24px;
  background-color: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-lg);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.8;
  color: var(--text-2);
  overflow-x: auto;
  white-space: pre;
}

.architecture-diagram .arch-label {
  color: var(--accent);
  font-weight: 600;
}

.architecture-diagram .arch-arrow {
  color: var(--accent-2);
}

.architecture-diagram .arch-node {
  color: var(--text-1);
  font-weight: 600;
}

/* Visual column */

.product-visual {
  position: relative;
}

.product-visual img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--bg-border);
  box-shadow:
    0 0 60px rgba(37, 99, 235, 0.08),
    0 20px 60px rgba(0, 0, 0, 0.3);
}

.product-visual .product-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.12) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: -1;
}

/* ========================================
   FEATURES LIST (for Hub & Analytics)
   ======================================== */

.product-features {
  list-style: none;
  margin-bottom: 32px;
}

.product-features li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  font-size: 0.92rem;
  color: var(--text-1);
  line-height: 1.5;
}

.product-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 5px;
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18'%3E%3Ccircle cx='9' cy='9' r='9' fill='%232563EB' opacity='0.15'/%3E%3Cpath d='M6 9l2 2 4-4' stroke='%232563EB' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
}

/* ========================================
   PRODUCT NAV PILLS
   ======================================== */

.product-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 24px 0;
  border-bottom: 1px solid var(--bg-border);
  background-color: var(--bg-card);
}

.product-nav a {
  padding: 10px 24px;
  border-radius: 20px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-2);
  background-color: transparent;
  border: 1px solid var(--bg-border);
  transition: all 0.2s;
  text-decoration: none;
}

.product-nav a:hover,
.product-nav a.active {
  color: var(--text-1);
  background-color: rgba(37, 99, 235, 0.1);
  border-color: var(--accent);
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 960px) {
  .product-detail-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .product-detail-inner.reversed {
    direction: ltr;
  }

  .product-visual {
    order: -1;
  }

  .product-nav {
    flex-wrap: wrap;
    gap: 8px;
  }

  .capabilities-table {
    display: block;
    overflow-x: auto;
  }
}

@media (max-width: 600px) {
  .product-hero {
    padding: 120px 0 60px;
  }

  .product-hero-inner p {
    font-size: 1rem;
  }

  .product-detail {
    padding: 64px 0;
  }

  .product-nav a {
    padding: 8px 16px;
    font-size: 0.8rem;
  }

  .capabilities-table th,
  .capabilities-table td {
    padding: 10px 12px;
    font-size: 0.8rem;
  }

  .capabilities-table td:first-child {
    width: auto;
    white-space: normal;
  }
}