﻿/* =============================================================================
   PRODUCTS-PAGE.CSS — Stripe-Style Products Showcase
   ============================================================================= */

/* ── Hero ── */
.products-hero {
  padding: 140px 0 72px;
  background: linear-gradient(160deg, var(--bg-primary) 0%, var(--bg-section) 100%);
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.products-hero .section-label {
  display: inline-block;
  margin-bottom: 20px;
}

.products-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.15;
}

.products-hero p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── Category Navigation ── */
.category-nav {
  position: sticky;
  top: 68px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  z-index: 90;
}

.category-nav-inner {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.category-nav-inner::-webkit-scrollbar {
  display: none;
}

.category-tab {
  padding: 18px 22px;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-secondary);
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  flex-shrink: 0;
}

.category-tab:hover {
  color: var(--text-primary);
}

.category-tab.active {
  color: var(--purple);
  border-bottom-color: var(--purple);
  font-weight: 600;
}

/* ── Product Category Sections ── */
.prod-section {
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}

.prod-section:nth-child(odd) {
  background: var(--bg-primary);
}

.prod-section:nth-child(even) {
  background: var(--bg-section);
}

.prod-section-header {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 44px;
}

.prod-section-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.prod-section-meta {
  flex: 1;
}

.prod-section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 5px;
}

.prod-section-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.2;
}

.prod-section-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 480px;
  line-height: 1.65;
}

/* ── Product Tiles Grid ── */
.product-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* Featured tile spans 2 columns */
.product-tile.featured {
  grid-column: span 2;
  background: linear-gradient(140deg, #faf8ff 0%, #f3effd 100%);
  border-color: rgba(124, 58, 237, 0.18);
}

.product-tile {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 24px;
  cursor: pointer;
  transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  position: relative;
  user-select: none;
  -webkit-user-select: none;
}

.product-tile:hover {
  box-shadow: 0 6px 24px rgba(124, 58, 237, 0.1);
  transform: translateY(-2px);
  border-color: rgba(124, 58, 237, 0.22);
}

.product-tile:active {
  transform: translateY(0);
}

.tile-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.tile-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.tile-header {
  flex: 1;
  min-width: 0;
}

.tile-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
}

.tile-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 100px;
  margin-top: 4px;
  background: rgba(124, 58, 237, 0.08);
  color: var(--purple);
}

.tile-tag.soon {
  background: rgba(255, 165, 0, 0.1);
  color: #a16800;
}

.tile-tag.crypto {
  background: rgba(245, 158, 11, 0.12);
  color: #92590a;
}

.tile-tag.new {
  background: rgba(15, 211, 172, 0.1);
  color: #0a9471;
}

.tile-desc {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.tile-arrow {
  font-size: 0.78rem;
  color: var(--purple);
  font-weight: 600;
  margin-top: auto;
  padding-top: 6px;
  opacity: 0;
  transition: opacity 0.15s ease;
  align-self: flex-end;
}

.product-tile:hover .tile-arrow {
  opacity: 1;
}

/* Featured tile overrides */
.product-tile.featured .tile-desc {
  font-size: 0.88rem;
}

.featured-bullets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.featured-bullet {
  font-size: 0.76rem;
  padding: 3px 11px;
  border-radius: 100px;
  background: rgba(124, 58, 237, 0.07);
  color: var(--purple);
  font-weight: 500;
}

/* Crypto section accent */
.prod-section.crypto-section .product-tile.featured {
  background: linear-gradient(140deg, #fff9ed 0%, #fef3c7 100%);
  border-color: rgba(245, 158, 11, 0.25);
}

.prod-section.crypto-section .prod-section-label {
  color: #d97706;
}

/* ── Google AI Section ── */
.google-ai-section {
  padding: 100px 0;
  background: linear-gradient(135deg, #080514 0%, #130828 100%);
  position: relative;
  overflow: hidden;
}

.google-ai-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 15% 60%, rgba(66, 133, 244, 0.18) 0%, transparent 45%),
    radial-gradient(ellipse at 85% 25%, rgba(234, 67, 53, 0.12) 0%, transparent 40%),
    radial-gradient(ellipse at 55% 85%, rgba(52, 168, 83, 0.12) 0%, transparent 40%),
    radial-gradient(ellipse at 50% 50%, rgba(251, 188, 5, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.google-ai-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.google-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 100px;
  padding: 7px 18px;
  margin-bottom: 24px;
}

.google-badge-dots {
  display: flex;
  gap: 4px;
  align-items: center;
}

.google-badge-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}

.g-blue   { background: #4285F4; }
.g-red    { background: #EA4335; }
.g-yellow { background: #FBBC05; }
.g-green  { background: #34A853; }

.google-badge-text {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: 0.04em;
}

.google-ai-content h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.2;
}

.google-ai-content > p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 440px;
}

.google-ai-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.google-ai-pill {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 500;
}

.google-ai-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.google-ai-feature {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: background 0.2s;
}

.google-ai-feature:hover {
  background: rgba(255, 255, 255, 0.07);
}

.google-ai-feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.15rem;
}

.google-ai-feature-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 3px;
}

.google-ai-feature-desc {
  font-size: 0.79rem;
  color: rgba(255, 255, 255, 0.48);
  line-height: 1.5;
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .product-tiles {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-tile.featured {
    grid-column: span 2;
  }

  .google-ai-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 640px) {
  .prod-section {
    padding: 56px 0;
  }

  .product-tiles {
    grid-template-columns: 1fr;
  }

  .product-tile.featured {
    grid-column: span 1;
  }

  .prod-section-header {
    flex-direction: column;
    gap: 12px;
  }

  .category-tab {
    padding: 14px 16px;
    font-size: 0.82rem;
  }
}

