/* === Products === */

.products {
  padding: 7rem 0;
  position: relative;
}

.products > .container > .reveal:first-child {
  text-align: center;
}

.products > .container > .reveal:first-child .section-label {
  justify-content: center;
}

.products > .container > .reveal:first-child .section-subtitle {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* Gradient divider line */
.products-divider {
  width: 80px;
  height: 3px;
  margin: 2rem auto 0;
  border-radius: 3px;
  background: var(--gradient-main);
  opacity: 0.6;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3.5rem;
}

/* --- Card base --- */
.product-card {
  padding: 2.5rem 2rem;
  background: var(--product-card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  perspective: 1000px;
  transform-style: preserve-3d;
}

/* Radial glow inside card on hover */
.product-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(0, 122, 204, 0.12) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

/* Gradient border glow */
.product-card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  background: var(--gradient-main);
  border-radius: 21px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.5s ease;
}

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

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

.product-card:hover {
  border-color: rgba(0, 122, 204, 0.4);
  transform: translateY(-8px) rotateX(2deg) rotateY(-1deg);
  box-shadow:
    0 20px 60px var(--shadow-hover),
    0 0 40px rgba(0, 122, 204, 0.08),
    0 0 80px rgba(0, 122, 204, 0.04);
}

/* --- Featured card (GK.IA) --- */
.product-card.featured {
  border-color: rgba(0, 122, 204, 0.3);
  box-shadow: 0 0 40px rgba(0, 122, 204, 0.06);
}

.product-card.featured::before {
  opacity: 0.1;
}

.product-card.featured:hover::before {
  opacity: 0.3;
}

.product-card.featured:hover {
  box-shadow:
    0 24px 72px var(--shadow-hover),
    0 0 60px rgba(0, 122, 204, 0.12),
    0 0 100px rgba(0, 122, 204, 0.06);
}

/* --- Badge "Mais popular" --- */
.product-badge {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--gradient-main);
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  z-index: 2;
  box-shadow: 0 4px 16px rgba(0, 122, 204, 0.3);
}

/* --- Card number (01, 02, 03) --- */
.product-number {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-family: 'Outfit', sans-serif;
  font-size: 4rem;
  font-weight: 900;
  line-height: 1;
  color: var(--blue-azure);
  opacity: 0.04;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  transition: opacity 0.5s ease;
}

.product-card.featured .product-number {
  top: 3.2rem;
}

.product-card:hover .product-number {
  opacity: 0.08;
}

/* --- Icon wrap --- */
.product-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.75rem;
  position: relative;
  z-index: 1;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
}

.product-card:hover .product-icon-wrap {
  transform: scale(1.08);
  box-shadow: 0 0 24px rgba(0, 122, 204, 0.15);
}

/* Icon pulse ring on hover */
.product-icon-wrap::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 22px;
  border: 2px solid var(--blue-azure);
  opacity: 0;
  transition: opacity 0.4s ease;
  animation: none;
}

.product-card:hover .product-icon-wrap::after {
  opacity: 1;
  animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.12); opacity: 0; }
}

.product-card:nth-child(1) .product-icon-wrap {
  background: linear-gradient(135deg, rgba(0, 180, 255, 0.15), rgba(0, 122, 204, 0.05));
  border: 1px solid rgba(0, 180, 255, 0.2);
}

.product-card:nth-child(2) .product-icon-wrap {
  background: linear-gradient(135deg, rgba(46, 134, 171, 0.15), rgba(46, 134, 171, 0.05));
  border: 1px solid rgba(46, 134, 171, 0.2);
}

.product-card:nth-child(3) .product-icon-wrap {
  background: linear-gradient(135deg, rgba(0, 102, 166, 0.2), rgba(0, 102, 166, 0.05));
  border: 1px solid rgba(0, 102, 166, 0.25);
}

/* --- Tag --- */
.product-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 1;
}

/* --- Title --- */
.product-card h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

/* --- Description --- */
.product-card .desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.75rem;
  font-weight: 300;
  position: relative;
  z-index: 1;
}

/* --- Features list --- */
.product-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 2rem;
  flex-grow: 1;
  position: relative;
  z-index: 1;
}

.product-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.product-features li .check {
  color: var(--blue-glow);
  font-weight: 700;
  font-size: 0.9rem;
  margin-top: 2px;
  flex-shrink: 0;
}

/* --- Feature pills --- */
.product-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-grow: 1;
  position: relative;
  z-index: 1;
}

.pill {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--blue-light);
  background: var(--pill-bg, rgba(46, 134, 171, 0.08));
  border: 1px solid var(--pill-border, rgba(46, 134, 171, 0.15));
  border-radius: 50px;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.product-card:hover .pill {
  background: var(--pill-bg-hover, rgba(0, 122, 204, 0.12));
  border-color: rgba(0, 122, 204, 0.25);
}

/* --- Link --- */
.product-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--blue-light);
  text-decoration: none;
  transition: all 0.3s;
  position: relative;
  z-index: 1;
}

.product-link:hover {
  gap: 0.85rem;
  color: var(--blue-glow);
}
