/* ========================================
   Home Page Styles
   ======================================== */

/* --- Hero --- */
.hero {
  padding: 80px 0 96px;
  background: linear-gradient(135deg, var(--white) 0%, var(--orange-light) 100%);
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero__title {
  margin-bottom: 24px;
}

.hero__highlight {
  color: var(--orange);
  position: relative;
}

.hero__subtitle {
  font-size: 1.2rem;
  color: var(--control-grey);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 520px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.hero__note {
  font-size: 0.85rem;
  color: var(--control-grey);
}

/* Dashboard illustration */
.hero__dashboard {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.hero__dashboard-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  background: var(--light-grey);
  border-bottom: 1px solid var(--border);
}

.hero__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.hero__dot--red {
  background: #ff5f57;
}
.hero__dot--yellow {
  background: #ffbd2e;
}
.hero__dot--green {
  background: #28c840;
}

.hero__dashboard-title {
  margin-left: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--control-grey);
}

.hero__dashboard-body {
  padding: 28px;
}

.hero__stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.hero__stat {
  text-align: center;
  padding: 20px 12px;
  background: var(--orange-light);
  border-radius: var(--radius-sm);
}

.hero__stat-number {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--orange);
}

.hero__stat-label {
  font-size: 0.78rem;
  color: var(--control-grey);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hero__rooms {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero__room {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  background: var(--light-grey);
}

.hero__room--active {
  background: #e8f5e9;
}

.hero__room-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #28c840;
  animation: pulse 2s infinite;
}

.hero__room-dot--waiting {
  background: #ffbd2e;
  animation: pulse 1.5s infinite;
}

.hero__room--waiting {
  background: #fff8e1;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* --- Stats Bar --- */
.stats-bar {
  padding: 56px 0;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.stats__item {
  text-align: center;
}

.stats__number {
  display: block;
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--orange);
  margin-bottom: 4px;
}

.stats__label {
  font-size: 0.95rem;
  color: var(--control-grey);
  font-weight: 500;
}

/* --- Steps --- */
.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  margin-top: 48px;
}

.step {
  flex: 1;
  max-width: 320px;
  padding: 0 24px;
}

.step__number {
  width: 56px;
  height: 56px;
  background: var(--orange);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 auto 20px;
}

.step__title {
  margin-bottom: 12px;
}

.step__text {
  font-size: 0.95rem;
  color: var(--control-grey);
  line-height: 1.65;
}

.step__connector {
  width: 60px;
  height: 2px;
  background: var(--orange-dark);
  margin-top: 28px;
  flex-shrink: 0;
}

/* --- Animations --- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .hero__subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__actions {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 48px 0 64px;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }

  .step__connector {
    width: 2px;
    height: 32px;
    margin: 0;
  }

  .step {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .stats {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero__stat-row {
    grid-template-columns: 1fr;
  }
}
