/* =========================
   PRODUCTS PAGE
   ========================= */

.products-page {
  padding: 0;
}

/* =========================
   PRODUCTS HERO
   ========================= */

.products-hero {
  padding: 120px 24px 80px;
  border-bottom: 1px solid var(--border-dark);
  position: relative;
  overflow: hidden;
}

.products-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.08), transparent 60%);
  background-size: 60px 60px, 60px 60px, 100% 100%;
  opacity: 0.35;
}

.products-hero-container {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.products-hero h1 {
  font-size: 44px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.products-hero p {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 0;
}

.products-hero-note {
  display: inline-block;
  margin-top: 24px;
  font-size: 14px;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

@media (max-width: 768px) {
  .products-hero {
    padding: 96px 24px 64px;
  }
  .products-hero h1 {
    font-size: 32px;
  }
  .products-hero p {
    font-size: 16px;
  }
}

/* =========================
   MODULES SECTION
   ========================= */

.products-modules {
  padding: 100px 0;
  border-bottom: 1px solid var(--border-dark);
}

.products-modules-header {
  max-width: 600px;
  margin-bottom: 48px;
}

.products-modules-header h2 {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.products-modules-header p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.module-card {
  padding: 28px;
  border: 1px solid var(--border-dark);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.01);
  display: flex;
  flex-direction: column;
}

.module-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.module-card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 16px;
  flex: 1;
}

.module-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.module-tags span {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid var(--border-dark);
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.02);
}

.module-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
}

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

@media (max-width: 768px) {
  .products-modules {
    padding: 80px 0;
  }
  .products-modules-header h2 {
    font-size: 24px;
  }
}

/* =========================
   HOW IT WORKS
   ========================= */

.products-how {
  padding: 100px 0;
  border-bottom: 1px solid var(--border-dark);
}

.products-how-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 48px;
}

.products-how-intro h2 {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.products-how-intro p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.how-items {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.how-item {
  padding-top: 14px;
  border-top: 1px solid var(--border-dark);
}

.how-item:first-child {
  border-top: none;
}

.how-item h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
}

.how-item p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
}

@media (max-width: 900px) {
  .products-how-layout {
    grid-template-columns: 1fr;
  }
  .products-how-intro {
    margin-bottom: 24px;
  }
}

@media (max-width: 768px) {
  .products-how {
    padding: 80px 0;
  }
  .products-how-intro h2 {
    font-size: 24px;
  }
}

/* =========================
   MODELS / PRICING
   ========================= */

.products-models {
  padding: 100px 0;
  border-bottom: 1px solid var(--border-dark);
}

.products-models-header {
  max-width: 600px;
  margin-bottom: 48px;
}

.products-models-header h2 {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.products-models-header p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.models-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.model-card {
  padding: 28px;
  border: 1px solid var(--border-dark);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.01);
  text-align: center;
}

.model-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.model-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.model-card .model-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid var(--border-dark);
  color: var(--text-secondary);
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.model-card .model-badge:hover {
  border-color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.model-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
}

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

@media (max-width: 768px) {
  .products-models {
    padding: 80px 0;
  }
  .products-models-header h2 {
    font-size: 24px;
  }
}

/* =========================
   CTA BANNER
   ========================= */

.products-cta {
  padding: 100px 0;
}

.products-cta-box {
  border: 1px solid var(--border-dark);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.01);
  padding: 48px;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.products-cta h2 {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.products-cta p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.products-cta a {
  display: inline-block;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  padding: 12px 28px;
  border: 1px solid var(--border-dark);
  border-radius: 10px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.products-cta a:hover {
  border-color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

@media (max-width: 768px) {
  .products-cta {
    padding: 80px 0;
  }
  .products-cta h2 {
    font-size: 24px;
  }
  .products-cta-box {
    padding: 32px;
  }
}
