/* =========================================================
   PRODUCTS PAGE — Styles
   ========================================================= */

/* ── Product Hero ── */
.product-hero-section {
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
}
.product-hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 70% at 30% 50%, rgba(79,70,229,0.12) 0%, transparent 65%);
  pointer-events: none;
}
.product-hero-section::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(59,130,246,0.07) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* ── Product Full Cards ── */
.product-full-section {
  padding: 100px 0;
  border-bottom: 1px solid var(--border-dim);
  scroll-margin-top: 80px;
  position: relative;
}
.product-full-section:nth-child(even) {
  background: var(--bg-card);
}
.product-full-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.product-full-inner.reverse {
  direction: rtl;
}
.product-full-inner.reverse > * {
  direction: ltr;
}

/* ── Product Label/Tag ── */
.product-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
  width: fit-content;
}
.product-label svg { width: 13px; height: 13px; }
.label-blue   { color: var(--accent-blue);   background: rgba(59,130,246,0.1);  border: 1px solid rgba(59,130,246,0.2); }
.label-green  { color: var(--accent-green);  background: rgba(16,185,129,0.1);  border: 1px solid rgba(16,185,129,0.2); }
.label-orange { color: var(--accent-orange); background: rgba(245,158,11,0.1);  border: 1px solid rgba(245,158,11,0.2); }
.label-purple { color: #a78bfa;              background: rgba(124,58,237,0.1);  border: 1px solid rgba(124,58,237,0.2); }
.label-red    { color: var(--accent-red);    background: rgba(239,68,68,0.1);   border: 1px solid rgba(239,68,68,0.2); }
.label-teal   { color: #14b8a6;              background: rgba(20,184,166,0.1);  border: 1px solid rgba(20,184,166,0.2); }

/* ── Product Text Block ── */
.product-text h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.product-text h2 span {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.product-tagline {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 28px;
  max-width: 480px;
}

/* ── Feature Grid (2 col) ── */
.feature-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 30px;
}
.fg-item {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-md);
  padding: 16px;
  transition: all var(--t-med);
}
.product-full-section:nth-child(even) .fg-item {
  background: var(--bg-dark);
}
.fg-item:hover {
  border-color: var(--border-bright);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(79,70,229,0.12);
}
.fg-icon {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 10px;
}
.fg-icon svg { width: 18px; height: 18px; color: #fff; }
.fg-item h4 {
  font-size: 0.87rem;
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1.3;
}
.fg-item p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ── Pricing hint ── */
.pricing-hint {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: rgba(79,70,229,0.06);
  border: 1px solid rgba(79,70,229,0.15);
  border-radius: var(--radius-md);
  margin-bottom: 26px;
}
.pricing-hint svg {
  width: 20px; height: 20px;
  color: var(--accent-purple);
  flex-shrink: 0;
}
.pricing-hint-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.pricing-hint-text strong {
  color: var(--text-primary);
  font-weight: 700;
}

/* ── Product actions ── */
.product-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── Product Visual Stack ── */
.product-visuals {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.pv-main {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-dim);
  box-shadow: 0 24px 70px rgba(0,0,0,0.28);
  position: relative;
}
.pv-main img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  transition: transform var(--t-slow);
  display: block;
}
.pv-main:hover img { transform: scale(1.03); }
.pv-main-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(6,6,15,0.6) 100%);
  pointer-events: none;
}
.pv-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.pv-thumb {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-dim);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.pv-thumb img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  transition: transform var(--t-slow);
  display: block;
}
.pv-thumb:hover img { transform: scale(1.05); }

/* Floating product badge */
.pv-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(13,13,30,0.92);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
body.light-theme .pv-badge { background: rgba(255,255,255,0.94); }
.pv-badge .pbi {
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.pv-badge .pbi svg { width: 14px; height: 14px; color: #fff; }
.pv-badge-text { line-height: 1.3; }
.pv-badge-text small { display: block; font-size: 0.68rem; color: var(--text-muted); font-weight: 400; }

/* ── Products overview grid (top of page) ── */
.products-overview {
  padding: 70px 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border-dim);
  border-bottom: 1px solid var(--border-dim);
}
.overview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.overview-card {
  background: var(--bg-dark);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  cursor: pointer;
  transition: all var(--t-med);
  text-decoration: none;
  color: inherit;
  display: block;
}
.overview-card:hover {
  border-color: var(--border-bright);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(79,70,229,0.15);
}
.oc-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.oc-icon svg { width: 22px; height: 22px; color: #fff; }
.overview-card h3 { font-size: 0.97rem; font-weight: 700; margin-bottom: 6px; }
.overview-card p { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 14px; }
.oc-link {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.78rem; font-weight: 700; color: var(--accent-blue);
}
.oc-link svg { width: 13px; height: 13px; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .product-full-inner { grid-template-columns: 1fr; gap: 40px; }
  .product-full-inner.reverse { direction: ltr; }
  .overview-grid { grid-template-columns: repeat(2, 1fr); }
  .pv-main img { height: 260px; }
}
@media (max-width: 768px) {
  .product-full-section { padding: 60px 0; }
  .feature-grid-2 { grid-template-columns: 1fr; }
  .overview-grid { grid-template-columns: 1fr; }
  .pv-row { grid-template-columns: 1fr; }
  .pv-thumb img { height: 180px; }
}
