/* CSS Variables for product.css */
:root {
  --text-primary: #e6e8ec;
  --text-secondary: #a3a8b3;
  --divider: #1a1d24;
  --accent: #6b7cff;
}

.product-section {
  padding: clamp(56px, 8vw, 120px) 0;
}

.section-head.center {
  text-align: center;
  margin-bottom: 32px;
}

.section-head .kicker {
  color: #8a8f98;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.product-title {
  font-size: clamp(28px, 4.6vw, 40px);
  line-height: 1.2;
  margin: 0 0 8px;
  text-wrap: balance;
}

.product-subtitle {
  color: #8a8f98;
  max-width: 760px;
  margin: 0 auto;
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 28px;
}

.product-card {
  position: relative;
  overflow: hidden;
  display: flex;
  width: 100%;
  min-height: 240px;
  padding: 24px;
  background: #0f1114;
  border: 1px solid var(--divider);
  border-radius: 24px;
  text-align: left;
  cursor: pointer;
  isolation: isolate;
}

.product-card .chevron {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--divider);
  color: #747b88;
  background: rgba(255, 255, 255, 0.02);
}

.product-card:hover .chevron {
  color: #cbd3e1;
  background: rgba(255, 255, 255, 0.04);
}

.card-content {
  z-index: 1;
}

.badge-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.badge {
  color: #9aa3b2;
  font-size: 12px;
  font-weight: 600;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.dot.green {
  background: #2bd576;
}
.dot.yellow {
  background: #ffcc33;
}
.dot.blue {
  background: #6b7cff;
}
.dot.purple {
  background: #b084ff;
}
.dot.teal {
  background: #2be4c7;
}
.dot.gray {
  background: #8a8f98;
}
.dot.red {
  background: #ef4444;
}

.card-title {
  margin: 0 0 4px;
  font-size: 24px;
  /* color: #f7f8f8; */
  color: #fff;
}
.card-sub {
  margin: 0;
  /* color: #8a8f98; */
  color: #fff;
  font-size: 16px;
  max-width: 450px;
}

.card-bg {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  filter: brightness(0.6);
}
.product-card:hover .card-bg {
  transform: scale(1.03);
  transition: transform 0.35s ease;
}
.bg-1 {
  background: url("../images/product/AI-authoring.webp") center/cover no-repeat;
}
.bg-2 {
  background: url("../images/product/Asset-Recommendation.webp") center/cover no-repeat;
}
.bg-3 {
  background: url("../images/product/admin-management.webp") center/cover no-repeat;
}
.bg-4 {
  background: url("../images/product/Performance-Dashboards.webp") center/cover no-repeat;
}
.bg-5 {
  background: url("../images/product/page-builder.webp") center/cover no-repeat;
}
.bg-6 {
  background: url("../images//product//ads-management.webp") center/cover no-repeat;
}
/* .bg-7 {
  background: url("../images/card-2.png") center/cover no-repeat;
} */

/* Product Page Modal Styles - More Specific to Override main.css */
.productpagemodal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
  align-items: center;
  justify-content: center;
}

.productpagemodal-overlay.active {
  display: flex;
  opacity: 1;
  visibility: visible;
}

.productpagemodal-container {
  display: none;
  background: #0b0c10;
  border: 1px solid var(--divider);
  border-radius: 16px;
  max-width: 90vw;
  max-height: 90vh;
  width: 1000px;
  overflow: hidden;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  transition: transform 0.3s ease;
  z-index: 1001;
}

.productpagemodal-overlay.active .productpagemodal-container {
  transform: translate(-50%, -50%) scale(1);
}

.productpagemodal-container.active {
  display: block;
  visibility: visible;
  opacity: 1;
}

.productpagemodal-header {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10;
}

.productpagemodal-close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--divider);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.productpagemodal-close:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.05);
}

.productpagemodal-content {
  padding: 60px 40px 40px;
  overflow-y: auto;
  max-height: 90vh;

  /* Custom scrollbar styling */
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

/* Webkit scrollbar styles for Chrome/Safari/Edge */
.productpagemodal-content::-webkit-scrollbar {
  width: 6px;
}

.productpagemodal-content::-webkit-scrollbar-track {
  background: transparent;
}

.productpagemodal-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.productpagemodal-content::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

.productpagemodal-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 60px;
}

.productpagemodal-hero-content h1 {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.productpagemodal-subtitle {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.productpagemodal-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

.productpagemodal-hero-visual img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 14px;
  line-height: 1;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-primary {
  color: white;
  background: linear-gradient(90deg, var(--accent), #8b5cf6);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 8px 20px rgba(107, 124, 255, 0.28);
}

.btn-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.btn-secondary {
  color: var(--text-primary);
  background: #141821;
  border: 1px solid var(--divider);
}

.btn-secondary:hover {
  background: #171b25;
  transform: translateY(-1px);
}

/* Modal Content Styles */
.productpagemodal-sections {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 40px;
}

.productpagemodal-section {
  margin-bottom: 32px;
}

.productpagemodal-section h2 {
  font-size: 32px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.productpagemodal-section h3 {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.productpagemodal-section p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 20px;
  max-width: 600px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.feature-item {
  padding: 24px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--divider);
  border-radius: 12px;
  text-align: center;
  transition: all 0.2s ease;
}

.feature-item:hover {
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-2px);
}

.feature-item span {
  font-size: 32px;
  color: var(--accent);
  margin-bottom: 16px;
  display: block;
}

.feature-item h4 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.feature-item p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

/* Responsive Modal */

@media (min-width: 900px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  .product-card:nth-child(1),
  .product-card:nth-child(2) {
    grid-column: 1 / -1;
    min-height: 300px;
  }
}

@media (max-width: 900px) {
  .productpagemodal-hero {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .productpagemodal-hero-content h1 {
    font-size: 36px;
  }

  .productpagemodal-content {
    padding: 40px 24px 24px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 600px) {
  .productpagemodal-container {
    max-width: 95vw;
    max-height: 95vh;
  }

  .productpagemodal-hero-content h1 {
    font-size: 28px;
  }

  .productpagemodal-subtitle {
    font-size: 16px;
  }

  .productpagemodal-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .productpagemodal-section h2 {
    font-size: 24px;
  }

  .productpagemodal-section h3 {
    font-size: 20px;
  }
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 1px, 1px);
  clip-path: inset(50%);
  border: 0;
  white-space: nowrap;
}

/* Global thin scrollbar styling */
html {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

/* Webkit scrollbar styles for the main page */
html::-webkit-scrollbar {
  width: 8px;
}

html::-webkit-scrollbar-track {
  background: transparent;
}

html::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

html::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}
