/* ══════════════════════════════════════════
   LEM — Products Page
   products.css
   ══════════════════════════════════════════ */

/* ── HERO ── */
.products-hero {
  min-height: 52vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 130px 40px 80px;
  position: relative;
  overflow: hidden;
}

.products-hero canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.products-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(201,168,76,0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.products-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 740px;
}

.products-hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  letter-spacing: 0.06em;
  color: var(--text);
  line-height: 1.2;
  margin-top: 18px;
}

.products-hero-sub {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--text-soft);
  line-height: 1.85;
  margin-top: 26px;
  max-width: 620px;
  margin-inline: auto;
}

/* ── PRODUCTS SECTION ── */
#products {
  max-width: 1180px;
  margin: 0 auto;
  padding: 80px 60px 120px;
  display: flex;
  flex-direction: column;
  gap: 110px;
}

/* ── PRODUCT BLOCK ── */
.product-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.product-block--reverse {
  direction: rtl;
}

.product-block--reverse > * {
  direction: ltr;
}

/* ── PRODUCT INFO (text side) ── */
.product-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
}

.product-icon-wrap {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
}

.product-icon-wrap svg {
  display: block;
  width: 100%;
  height: 100%;
}

.product-badge {
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(201,168,76,0.25);
  padding: 5px 14px;
  border-radius: 20px;
  background: rgba(201,168,76,0.06);
  white-space: nowrap;
}

.product-name {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(2rem, 3.2vw, 3rem);
  letter-spacing: 0.08em;
  color: var(--text);
  line-height: 1.1;
}

.product-desc {
  font-size: 0.87rem;
  line-height: 1.95;
  color: var(--text-soft);
  margin-bottom: 28px;
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.product-cta {
  margin-top: 36px;
}

/* ── PRODUCT VISUAL (mockup side) ── */
.product-visual {
  position: relative;
}

.product-visual::before {
  content: '';
  position: absolute;
  inset: -25%;
  pointer-events: none;
  z-index: -1;
  border-radius: 50%;
}

.product-block:nth-child(1) .product-visual::before {
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(59,130,246,0.09) 0%, transparent 70%);
}

.product-block:nth-child(2) .product-visual::before {
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(59,130,246,0.07) 0%, transparent 70%);
}

.product-block:nth-child(3) .product-visual::before {
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(13,61,145,0.11) 0%, transparent 70%);
}

.product-mockup {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    0 24px 80px rgba(0,0,0,0.45),
    0 0 0 1px rgba(255,255,255,0.03);
  transition: transform 0.45s ease, box-shadow 0.45s ease;
}

.product-mockup:hover {
  transform: translateY(-8px) rotate(0.4deg);
  box-shadow:
    0 36px 100px rgba(0,0,0,0.55),
    0 0 50px rgba(201,168,76,0.07),
    0 0 0 1px rgba(255,255,255,0.05);
}

.mockup-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: #111827;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.mockup-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.mockup-dot:nth-child(1) { background: rgba(255,95,87,0.65); }
.mockup-dot:nth-child(2) { background: rgba(255,189,46,0.65); }
.mockup-dot:nth-child(3) { background: rgba(40,201,64,0.65); }

.mockup-url {
  margin-left: 14px;
  font-size: 0.63rem;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.28);
  font-family: 'Montserrat', monospace;
}

.mockup-screen {
  display: block;
  width: 100%;
  line-height: 0;
}

.mockup-screen svg {
  display: block;
  width: 100%;
  height: auto;
}

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  #products {
    padding: 60px 32px 100px;
    gap: 80px;
  }

  .product-block {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .product-block--reverse {
    direction: ltr;
  }

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

@media (max-width: 600px) {
  #products {
    padding: 48px 20px 80px;
    gap: 64px;
  }

  .products-hero {
    padding: 110px 24px 60px;
  }
}
