/* ============================================
   Main Page Styles
   ============================================ */

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--header-height) + var(--space-8)) var(--space-6) var(--space-16);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, var(--brand-accent-radial), transparent),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(169, 96, 238, 0.08), transparent);
  pointer-events: none;
}

.hero__content {
  position: relative;
  max-width: 800px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-8);
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2ea85e;
  animation: pulse-glow 2s ease infinite;
}

.hero__title {
  font-size: var(--text-6xl);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin-bottom: var(--space-6);
}

.hero__subtitle {
  font-size: var(--text-xl);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto var(--space-10);
  line-height: var(--leading-relaxed);
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* --- Products --- */
.products__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.product-card {
  position: relative;
  overflow: hidden;
}

.product-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-6);
  font-size: 24px;
}

.product-card__icon--office {
  background: linear-gradient(135deg, rgba(33, 115, 70, 0.2), rgba(42, 87, 154, 0.2));
  border: 1px solid var(--brand-accent-border);
}

.product-card__title {
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-bottom: var(--space-3);
}

.product-card__desc {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-6);
}

.product-card__apps {
  display: flex;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.product-card__app {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: var(--radius-full);
  border: 1px solid;
}

.product-card__app--sheets {
  color: #34A853;
  border-color: rgba(52, 168, 83, 0.3);
  background: rgba(52, 168, 83, 0.1);
}

.product-card__app--coming {
  color: var(--text-muted);
  border-color: var(--border-primary);
  background: transparent;
  font-weight: 500;
}

.product-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--brand-primary);
  transition: gap var(--transition-fast);
}

.product-card__link:hover {
  gap: var(--space-3);
}

.product-card__link svg {
  width: 16px;
  height: 16px;
}

/* --- Why Section --- */
.why__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.why-card__icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-5);
  background: var(--brand-accent-bg);
  color: var(--brand-primary);
}

.why-card__icon svg {
  width: 20px;
  height: 20px;
}

.why-card__title {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-3);
}

.why-card__desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding-top: calc(var(--header-height) + var(--space-12));
    padding-bottom: var(--space-12);
  }

  .hero__title {
    font-size: var(--text-4xl);
  }

  .hero__subtitle {
    font-size: var(--text-lg);
  }

  .products__grid,
  .why__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: var(--text-3xl);
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
  }
}
