/* =====================================================
   Product Pages Styles (argus, atrium)
   ===================================================== */

/* ===== Product Hero ===== */
.product-hero {
  padding: calc(var(--space-6xl) + 72px) 0 var(--space-6xl);
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.product-hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5xl);
  align-items: center;
}

.product-hero-content {
  max-width: 600px;
}

.product-hero-title {
  font-size: var(--text-5xl);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: var(--space-lg);
  color: var(--text-primary);
}

.product-hero-subtitle {
  font-size: var(--text-lg);
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: var(--space-3xl);
}

.product-hero-ctas {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
  flex-wrap: wrap;
}

.product-hero-proof {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: center;
}

.product-hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ===== UBO Graph Visual ===== */
.ubo-graph-visual {
  width: 100%;
  max-width: 400px;
  padding: var(--space-2xl);
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-primary);
  box-shadow: var(--shadow-lg);
}

.ubo-chain-svg {
  width: 100%;
  height: auto;
}

.ubo-node {
  transition: transform 0.3s ease;
}

.ubo-node:hover {
  transform: scale(1.1);
}

.ubo-node circle {
  transition: all 0.3s ease;
}

.ubo-node:hover circle {
  filter: brightness(1.1);
}

/* ===== Problem Section ===== */
.problem-section {
  padding: var(--space-6xl) 0;
}

.problem-layout {
  max-width: 900px;
  margin: 0 auto;
}

.problem-text {
  text-align: left;
}

/* ===== Solution Section ===== */
.solution-section {
  padding: var(--space-6xl) 0;
}

.solution-intro {
  font-size: var(--text-xl);
  text-align: center;
  color: var(--text-secondary);
  max-width: 800px;
  margin: var(--space-xl) auto var(--space-4xl);
}

.solution-blocks {
  max-width: 900px;
  margin: 0 auto;
}

.solution-claim {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-top: var(--space-3xl);
  text-align: center;
}

/* ===== Features Grid ===== */
.features-section {
  padding: var(--space-6xl) 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2xl);
  margin-top: var(--space-4xl);
}

.feature-card {
  padding: var(--space-2xl);
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-card h3 {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.feature-card p {
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

.feature-meta {
  font-size: var(--text-sm);
  color: var(--accent-primary);
  font-weight: 500;
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-light);
}

/* ===== Audience Section ===== */
.audience-section {
  padding: var(--space-6xl) 0;
}

.audience-blocks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2xl);
  margin-top: var(--space-4xl);
}

.audience-card {
  padding: var(--space-2xl);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  transition: transform 0.3s ease, background 0.3s ease;
}

.audience-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.08);
}

.audience-card h3 {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.audience-card p {
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ===== Integration Section ===== */
.integration-section {
  padding: var(--space-6xl) 0;
}

.integration-text {
  font-size: var(--text-lg);
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 900px;
  margin: var(--space-xl) auto var(--space-3xl);
  text-align: center;
}

.product-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-4xl);
  flex-wrap: wrap;
}

.product-badge {
  padding: var(--space-md) var(--space-xl);
  background: var(--bg-secondary);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-primary);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.product-badge:hover {
  transform: translateY(-2px);
  border-color: var(--accent-primary);
}

.product-badge-separator {
  font-size: var(--text-2xl);
  color: var(--text-secondary);
  font-weight: 300;
}

/* ===== Comparison Section ===== */
.comparison-section {
  padding: var(--space-6xl) 0;
  background: var(--bg-primary);
}

.comparison-text {
  font-size: var(--text-lg);
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 900px;
  margin: var(--space-xl) auto 0;
}

/* ===== Atrium Specific Styles ===== */
.routing-slip-visual {
  width: 100%;
  max-width: 400px;
  padding: var(--space-2xl);
  background: rgba(0, 0, 0, 0.02);
  border-radius: var(--radius-lg);
  border: 2px dashed var(--border-light);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.routing-step {
  padding: var(--space-md);
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  position: relative;
}

.routing-step::after {
  content: '↓';
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: var(--text-lg);
  color: var(--text-secondary);
}

.routing-step:last-child::after {
  display: none;
}

.mini-blocks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  margin-top: var(--space-4xl);
}

.mini-block {
  text-align: center;
}

.mini-block h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.mini-block p {
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text-secondary);
}

.system-badges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  max-width: 800px;
  margin: var(--space-4xl) auto;
}

.system-badge {
  padding: var(--space-2xl);
  background: var(--bg-secondary);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
  text-align: center;
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-primary);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.system-badge:hover {
  transform: translateY(-4px);
  border-color: var(--accent-primary);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .product-hero-container {
    grid-template-columns: 1fr;
    gap: var(--space-3xl);
  }

  .product-hero-visual {
    order: -1;
  }

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

  .audience-blocks {
    grid-template-columns: 1fr;
  }

  .mini-blocks {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .product-hero {
    padding: calc(var(--space-4xl) + 72px) 0 var(--space-4xl);
  }

  .product-hero-title {
    font-size: var(--text-3xl);
  }

  .product-hero-ctas {
    flex-direction: column;
  }

  .product-hero-ctas .btn {
    width: 100%;
  }

  .system-badges {
    grid-template-columns: 1fr;
  }
}

/* ===== Demo Embed Container ===== */
.demo-embed-container {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 600px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-secondary);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 4px 16px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-color);
}

.argus-demo-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  background: transparent;
}

/* Ensure sticky behavior works with iframe */
.cp-walkthrough-sticky .demo-embed-container {
  position: sticky;
  top: 120px;
}

@media (max-width: 1024px) {
  .demo-embed-container {
    min-height: 500px;
  }

  .cp-walkthrough-sticky .demo-embed-container {
    position: relative;
    top: auto;
  }
}

@media (max-width: 768px) {
  .demo-embed-container {
    min-height: 450px;
    border-radius: 8px;
  }
}
