/* ─── HERO ─────────────────────────────────────────────────────────── */
.hero {
  padding-top: 140px;
  padding-bottom: 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 80px; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 500px;
  background: radial-gradient(ellipse at center, rgba(0,212,170,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 20px;
}

.hero-logo img.hero-mark     { height: 96px; width: auto; }
.hero-logo img.hero-wordmark { height: 80px; width: auto; }

h1 {
  font-size: clamp(28px, 3.8vw, 52px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 12px;
}

.hero-sub {
  font-size: 19px;
  color: var(--muted);
  max-width: 820px;
  margin: 0 auto 0;
  line-height: 1.65;
}

/* ─── PRODUCT GRID ─────────────────────────────────────────────────── */
.products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 40px 100px;
}

@media (max-width: 580px) {
  .products { grid-template-columns: 1fr; }
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,212,170,0.3), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.product-card:hover {
  border-color: rgba(0,212,170,0.2);
  transform: translateY(-3px);
  box-shadow: 0 24px 80px rgba(0,0,0,0.4), 0 0 60px rgba(0,212,170,0.04);
}

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

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

.product-icon img { width: 100%; height: 100%; object-fit: cover; }

.product-icon-emoji {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: rgba(0,212,170,0.1);
  border: 1px solid rgba(0,212,170,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
}

.product-body { flex: 1; }

.product-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0,212,170,0.1);
  border: 1px solid rgba(0,212,170,0.2);
  border-radius: 100px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #00d4aa;
  margin-bottom: 14px;
}

.product-badge-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #00d4aa;
}

.product-badge.free {
  background: rgba(74,222,128,0.08);
  border-color: rgba(74,222,128,0.2);
  color: #4ade80;
}

.product-badge.free .product-badge-dot { background: #4ade80; }

.product-badge.dctl {
  background: rgba(240,146,43,0.1);
  border-color: rgba(240,146,43,0.25);
  color: #f0922b;
}

.product-badge.dctl .product-badge-dot { background: #f0922b; }

.scaffold-card-icon {
  width: 56px; height: 56px;
  background: #E60501;
  border-radius: 14px;
  font-family: 'Bebas Neue', 'Impact', sans-serif;
  font-size: 36px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 20px rgba(230,5,1,0.3);
}

.product-card h2 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  line-height: 1.2;
}

.product-card p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 0;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.product-platforms { display: flex; gap: 12px; }

.product-platform {
  font-size: 11px;
  color: var(--subtle);
  display: flex;
  align-items: center;
  gap: 4px;
}

.product-platform svg { opacity: 0.45; }

.product-link {
  font-size: 13px;
  font-weight: 600;
  color: #00d4aa;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ─── MOBILE ───────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .products { padding-left: 16px; padding-right: 16px; }
  .hero { padding-left: 20px; padding-right: 20px; }
  .hero-logo { flex-direction: column; gap: 10px; }
  .hero-logo img.hero-mark { height: 64px; }
  .hero-logo img.hero-wordmark { height: 44px; }
}
