/* ============================================
   Home Page Styles (index.html)
   ============================================ */

/* ---- Hero Section ---- */
.hero {
  min-height: 100vh;
  background: var(--color-bg-gray);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 56px;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: center;
  width: 100%;
}

.hero-content {
  z-index: 2;
}

.hero-label {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 12px;
  font-weight: 500;
  color: var(--color-accent);
  margin-bottom: 20px;
  display: block;
}

.hero-title {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 600;
  line-height: 1.1;
  color: var(--color-text-dark);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--color-text);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 420px;
}

.hero-cta {
  padding: 16px 36px;
  font-size: 16px;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-laptop {
  position: relative;
  width: 100%;
  max-width: 720px;
}

.hero-laptop img {
  width: 100%;
  position: relative;
  z-index: 2;
}

.hero-video-wrap {
  position: absolute;
  top: 4%;
  left: 12%;
  width: 76%;
  height: 64%;
  border-radius: 8px;
  overflow: hidden;
  z-index: 1;
  background: #000;
}

.hero-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Mobile fallback gradient */
.hero-video-fallback {
  display: none;
  position: absolute;
  top: 4%;
  left: 12%;
  width: 76%;
  height: 64%;
  border-radius: 8px;
  overflow: hidden;
  z-index: 1;
  background: linear-gradient(135deg, #c8102e 0%, #000 50%, #c8102e 100%);
  background-size: 400% 400%;
  animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ---- Features Grid ---- */
.features {
  background: #fff;
  padding: var(--section-padding) 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  row-gap: 80px;
}

.feature-card {
  padding: 40px 32px;
  border-radius: var(--radius-lg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.08);
}

.feature-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 24px;
}

.feature-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.feature-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--color-text-dark);
}

.feature-card p {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 8px;
}

/* ---- Stats Section ---- */
.stats {
  background: var(--color-accent);
  padding: 160px 0;
  position: relative;
  overflow: hidden;
}

.stats-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.stats-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 600;
  color: #fff;
  line-height: 1;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 400;
}

/* ---- Multi-platform Download ---- */
.platform-download {
  background: var(--color-bg-gray);
  padding: var(--section-padding) 0;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.platform-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.platform-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

.platform-icon svg {
  width: 48px;
  height: 48px;
  margin: 0 auto 20px;
}

.platform-card h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.platform-card p {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-bottom: 24px;
}

.platform-card .btn {
  width: 100%;
  padding: 12px 24px;
  font-size: 14px;
}

/* ---- Deep Feature Intro ---- */
.deep-features {
  background: #fff;
  padding: var(--section-padding) 0;
}

.deep-feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 100px;
}

.deep-feature-row:last-child {
  margin-bottom: 0;
}

.deep-feature-row.reverse {
  direction: rtl;
}

.deep-feature-row.reverse > * {
  direction: ltr;
}

.deep-feature-visual {
  background: var(--color-bg-gray);
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.deep-feature-visual img {
  width: 80%;
  height: 80%;
  object-fit: contain;
}

.deep-feature-text h3 {
  font-size: 28px;
  margin-bottom: 20px;
}

.deep-feature-text p {
  font-size: 16px;
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

/* ---- Testimonials ---- */
.testimonials {
  background: var(--color-bg-gray);
  padding: var(--section-padding) 0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.testimonial-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
}

.testimonial-card .star-rating {
  margin-bottom: 16px;
}

.testimonial-text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text);
  margin-bottom: 20px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-bg-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-accent);
  flex-shrink: 0;
}

.testimonial-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-dark);
}

.testimonial-role {
  font-size: 13px;
  color: var(--color-text-secondary);
}

/* ---- Comparison ---- */
.comparison {
  background: #fff;
  padding: var(--section-padding) 0;
}

.comparison-wrap {
  overflow-x: auto;
}

/* ---- FAQ ---- */
.faq {
  background: var(--color-bg-gray);
  padding: var(--section-padding) 0;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
  }

  .platform-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .deep-feature-row,
  .deep-feature-row.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 40px;
  }

  .deep-feature-row.reverse > * {
    direction: ltr;
  }
}

@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .features-grid {
    grid-template-columns: 1fr;
    row-gap: 40px;
  }

  .stats {
    padding: 100px 0;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .stat-number {
    font-size: 40px;
  }

  .platform-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .hero-video-wrap video {
    display: none;
  }

  .hero-video-fallback {
    display: block;
  }
}
