/* ===== hero ===== */
.hero-section {
  position: relative;
  min-height: 100vh;
  background:
    linear-gradient(rgba(5, 10, 20, 0.72), rgba(5, 10, 20, 0.84)),
    url("/static/images/main-hero.jpg") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 20px 100px;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(255, 106, 44, 0.10), transparent 42%),
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.10), transparent 28%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1100px;
}

.hero-badge {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 107, 44, 0.4);
  background: rgba(255, 107, 44, 0.08);
  color: #ff8c5a;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 28px;
  box-shadow: 0 12px 30px rgba(255, 107, 44, 0.08);
}

.hero-title {
  font-size: clamp(2.8rem, 6vw, 5.6rem);
  line-height: 1.08;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 22px;
  letter-spacing: -0.03em;
}

.hero-title span {
  color: #ff6b2c;
  text-shadow: 0 0 22px rgba(255, 107, 44, 0.22);
}

.hero-desc {
  max-width: 780px;
  margin: 0 auto;
  font-size: 1.15rem;
  color: #d8deea;
  line-height: 1.8;
}

.hero-actions {
  margin-top: 38px;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-btn {
  min-width: 180px;
  height: 54px;
  font-size: 1rem;
}

.hero-stats {
  margin-top: 56px;
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.stat-card {
  min-width: 180px;
  padding: 24px 22px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.stat-card strong {
  display: block;
  font-size: 2.3rem;
  font-weight: 800;
  color: #ff6b2c;
  margin-bottom: 8px;
}

.stat-card span {
  color: #c4cde0;
  font-size: 0.98rem;
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 1;
}

.hero-scroll a {
  color: #b8c4dd;
  font-size: 0.82rem;
  letter-spacing: 0.24em;
  position: relative;
}

.hero-scroll a::after {
  content: "";
  display: block;
  width: 1px;
  height: 28px;
  background: rgba(255, 255, 255, 0.35);
  margin: 10px auto 0;
  animation: scrollLine 1.8s infinite;
}

/* ===== common section ===== */
.main-section {
  padding: 105px 20px;
  position: relative;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-head {
  text-align: center;
  margin-bottom: 52px;
}

.section-label {
  display: inline-block;
  font-weight: 700;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.section-head h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.3;
  margin-bottom: 14px;
  font-weight: 800;
}

.section-subtext {
  max-width: 760px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.7;
}

/* ===== light section ===== */
.feature-section,
.alert-section {
  background: #f6f7fb;
}

.feature-section .section-label,
.alert-section .section-label {
  color: #f05a28;
}

.feature-section .section-head h2,
.alert-section .section-head h2 {
  color: #111827;
}

.feature-section .section-subtext,
.alert-section .section-subtext {
  color: #6b7280;
}

/* ===== dark section ===== */
.tech-section,
.service-section {
  background:
    radial-gradient(circle at top right, rgba(255, 106, 44, 0.10), transparent 28%),
    radial-gradient(circle at bottom left, rgba(59, 130, 246, 0.08), transparent 24%),
    #0b1020;
}

.tech-section .section-label,
.service-section .section-label {
  color: #ff8c5a;
}

.tech-section .section-head h2,
.service-section .section-head h2 {
  color: #ffffff;
}

.tech-section .section-subtext,
.service-section .section-subtext {
  color: #b9c4d8;
}

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

.feature-card {
  padding: 32px 28px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid #eceef4;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.10);
}

.feature-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff3ed;
  color: #f05a28;
  font-size: 1.4rem;
  margin-bottom: 18px;
}

.feature-card h3 {
  font-size: 1.24rem;
  margin-bottom: 14px;
  color: #111827;
}

.feature-card p {
  color: #6b7280;
  line-height: 1.75;
}

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

.flow-card {
  padding: 28px 24px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 90, 31, 0.12), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 107, 44, 0.18);
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.flow-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.26);
}

.flow-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffb08d;
  font-size: 0.85rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.flow-card strong {
  display: block;
  font-size: 1.14rem;
  margin-bottom: 10px;
}

.flow-card p {
  color: #c7d0e2;
  line-height: 1.7;
  font-size: 0.96rem;
}

/* ===== alert ===== */
.alert-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.alert-card {
  padding: 28px 22px;
  border-radius: 20px;
  text-align: center;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.10);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.alert-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.14);
}

.alert-name {
  display: block;
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.alert-card p {
  font-size: 0.94rem;
  line-height: 1.65;
  opacity: 0.95;
}

.alert-card.low {
  background: #2e7d32;
}

.alert-card.caution {
  background: #f9a825;
  color: #111;
}

.alert-card.danger {
  background: #ef6c00;
}

.alert-card.emergency {
  background: #c62828;
}

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

.service-card {
  padding: 30px 26px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(8px);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.24);
}

.service-card h3 {
  font-size: 1.2rem;
  color: #ffffff;
  margin-bottom: 14px;
}

.service-card p {
  color: #c7d0e2;
  line-height: 1.75;
}

/* ===== reveal animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

/* ===== keyframes ===== */
@keyframes scrollLine {
  0% {
    opacity: 0.2;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(8px);
  }
  100% {
    opacity: 0.2;
    transform: translateY(0);
  }
}

/* ===== responsive ===== */
@media (max-width: 1100px) {
  .feature-grid,
  .flow-grid,
  .service-grid {
    grid-template-columns: 1fr 1fr;
  }

  .alert-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .hero-section {
    min-height: auto;
    padding: 130px 20px 90px;
  }

  .hero-desc {
    font-size: 1rem;
  }

  .hero-stats {
    gap: 18px;
  }

  .stat-card {
    min-width: 100%;
  }

  .feature-grid,
  .flow-grid,
  .alert-grid,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .main-section {
    padding: 82px 20px;
  }

  .section-head {
    margin-bottom: 38px;
  }

  .hero-btn {
    width: 100%;
    max-width: 280px;
  }
}