/* products.css */

.products {
  padding: var(--section-pad) 0;
  background: linear-gradient(180deg, transparent 0%, rgba(13, 16, 23, 0.8) 100%);
}

.products-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 64px;
}

/* ── Grid ── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* ── Base card ── */
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  position: relative;
}

.product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(77, 200, 240, 0.05) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.product-card:hover {
  border-color: rgba(77, 200, 240, 0.4);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(77, 200, 240, 0.08);
}

.product-card:hover::before { opacity: 1; }

/* ── Featured card (full-width) ── */
.product-card.featured {
  grid-column: span 2;
  border-color: rgba(77, 200, 240, 0.2);
  background: linear-gradient(135deg, #111520, #0d1423);
}

/* ── Bundle card ── */
.product-card--bundle {
  border-color: rgba(77, 200, 240, 0.25);
  background: linear-gradient(135deg, #111520, #0d1423);
}

/* ── Card inner ── */
.card-inner {
  padding: 36px;
}

.card-inner--row {
  display: flex;
  gap: 40px;
  align-items: center;
}

.card-content { flex: 1; }

/* ── DeepFaceNet SVG icon ── */
.dfn-icon {
  width: 140px;
  height: 140px;
  flex-shrink: 0;
}

.dfn-img { width: 100%; height: 100%; object-fit: contain; }

/* ── Small icon badge ── */
.card-icon {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--cyan);
  stroke-width: 1.5;
}

.card-icon--cyan svg   { stroke: var(--cyan); }
.card-icon--green svg  { stroke: var(--green); }
.card-icon--purple svg { stroke: var(--purple); }

.card-icon--cyan   { background: rgba(77,200,240,0.1); border: 1px solid rgba(77,200,240,0.2); }
.card-icon--green  { background: rgba(57,255,133,0.1); border: 1px solid rgba(57,255,133,0.2); }
.card-icon--purple { background: rgba(150,100,255,0.1); border: 1px solid rgba(150,100,255,0.2); }

/* ── Tags ── */
.card-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  display: inline-block;
}

.tag-new  { background: rgba(57,255,133,0.12); color: var(--green);  border: 1px solid rgba(57,255,133,0.2); }
.tag-hot  { background: rgba(255,100,100,0.12); color: #ff8a8a;      border: 1px solid rgba(255,100,100,0.2); }
.tag-beta { background: rgba(150,100,255,0.12); color: var(--purple); border: 1px solid rgba(150,100,255,0.2); }
.tag-pro  { background: rgba(77,200,240,0.12);  color: var(--cyan);  border: 1px solid rgba(77,200,240,0.2); }

/* ── Card text ── */
.card-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

.card-desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 24px;
}

/* ── Feature list ── */
.card-features {
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-features li {
  font-size: 0.85rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-features li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  flex-shrink: 0;
}

/* ── Card footer ── */
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-price { display: flex; flex-direction: column; }

.price-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.price-val {
  font-family: var(--font-ui);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
}

.price-val span {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 400;
}

/* ── Buy buttons ── */
.btn-buy {
  display: inline-block;
  background: linear-gradient(135deg, var(--cyan), #3ab0d8);
  color: #050810;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  transition: box-shadow 0.2s, transform 0.15s;
}

.btn-buy:hover {
  box-shadow: 0 0 24px var(--cyan-glow);
  transform: scale(1.03);
}

.btn-buy--ghost {
  background: transparent;
  color: var(--cyan);
  border: 1.5px solid rgba(77, 200, 240, 0.3);
}

.btn-buy--ghost:hover {
  border-color: var(--cyan);
  background: rgba(77, 200, 240, 0.07);
  box-shadow: none;
}

.btn-buy--green {
  background: linear-gradient(135deg, var(--green), #28cc6a);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .products-grid { grid-template-columns: 1fr; }
  .product-card.featured { grid-column: span 1; }
}

@media (max-width: 600px) {
  .card-inner--row { flex-direction: column; align-items: center; text-align: center; }
  .card-features { align-items: center; text-align: left; }
  .products-header { flex-direction: column; align-items: flex-start; gap: 20px; }
  .card-footer { flex-direction: column; gap: 16px; align-items: stretch; text-align: center; }
  .btn-buy { width: 100%; text-align: center; }
}
