@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@400;500;600;700&family=Prompt:wght@500;600;700&display=swap');

.modern-home {
  --astro-bg: #071426;
  --astro-panel: rgba(13, 24, 47, 0.78);
  --astro-line: rgba(244, 211, 141, 0.25);
  --astro-gold: #f4d38d;
  --astro-muted: #b7c0d5;
  --astro-text: #f8fbff;
  color: var(--astro-text);
  font-family: "Noto Sans Thai", Tahoma, sans-serif;
}

.modern-home,
.modern-home * {
  letter-spacing: 0;
}

.modern-home a {
  color: inherit;
}

.modern-home .container {
  max-width: 1180px;
}

.astro-hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  padding: 72px 0 42px;
  background:
    radial-gradient(circle at 20% 18%, rgba(128, 216, 255, 0.22), transparent 28%),
    radial-gradient(circle at 78% 24%, rgba(217, 164, 65, 0.24), transparent 28%),
    linear-gradient(135deg, rgba(7, 20, 38, 0.96), rgba(41, 21, 74, 0.94) 58%, rgba(6, 15, 32, 0.96));
  border-bottom: 1px solid var(--astro-line);
}

.astro-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.75) 0 1px, transparent 1.6px),
    radial-gradient(circle, rgba(244, 211, 141, 0.55) 0 1px, transparent 1.7px);
  background-position: 0 0, 38px 62px;
  background-size: 112px 112px, 148px 148px;
  opacity: 0.34;
  pointer-events: none;
}

.astro-hero::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -170px;
  top: 68px;
  border: 1px solid rgba(244, 211, 141, 0.28);
  border-radius: 50%;
  box-shadow: inset 0 0 0 32px rgba(244, 211, 141, 0.035), inset 0 0 0 88px rgba(128, 216, 255, 0.025);
  pointer-events: none;
}

.astro-hero-inner {
  position: relative;
  z-index: 1;
}

.astro-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--astro-gold);
  font-size: 0.92rem;
  font-weight: 600;
  text-transform: uppercase;
}

.astro-eyebrow::before {
  content: "";
  width: 36px;
  height: 1px;
  background: var(--astro-gold);
}

.astro-title {
  max-width: 780px;
  margin: 18px 0;
  font-family: "Prompt", "Noto Sans Thai", sans-serif;
  font-size: clamp(2.35rem, 6vw, 5.25rem);
  font-weight: 700;
  line-height: 1.04;
}

.astro-lead {
  max-width: 660px;
  color: var(--astro-muted);
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.8;
}

.astro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.astro-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
}

.astro-btn-primary {
  background: linear-gradient(135deg, #f6d889, #c9912f);
  color: #1a1326;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.astro-btn-secondary {
  border: 1px solid var(--astro-line);
  color: var(--astro-text);
  background: rgba(255, 255, 255, 0.06);
}

.astro-service-grid {
  margin-top: 44px;
}

.astro-service-card,
.astro-number-card,
.astro-api-fallback {
  background: var(--astro-panel);
  border: 1px solid var(--astro-line);
  border-radius: 8px;
  backdrop-filter: blur(10px);
}

.astro-service-card {
  min-height: 164px;
  padding: 22px;
  transition: border-color .18s ease, transform .18s ease, background .18s ease;
}

.astro-service-card:hover,
.astro-number-card:hover {
  border-color: rgba(244, 211, 141, 0.55);
  background: rgba(18, 30, 58, 0.9);
  transform: translateY(-2px);
}

.astro-service-card strong {
  display: block;
  margin-bottom: 8px;
  font-family: "Prompt", "Noto Sans Thai", sans-serif;
  font-size: 1.18rem;
}

.astro-service-card p {
  color: var(--astro-muted);
  line-height: 1.65;
  margin: 0;
}

.astro-modern-section {
  position: relative;
  margin-top: -54px;
  padding: 0 0 44px;
  z-index: 2;
}

.astro-section-panel {
  background: rgba(5, 13, 27, 0.9);
  border: 1px solid var(--astro-line);
  border-radius: 8px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
}

.astro-section-title {
  font-family: "Prompt", "Noto Sans Thai", sans-serif;
  font-weight: 700;
}

.astro-section-subtitle,
.astro-loading,
.astro-number-meta,
.astro-api-fallback {
  color: var(--astro-muted);
}

.astro-number-card {
  min-height: 150px;
  padding: 18px;
  transition: border-color .18s ease, transform .18s ease, background .18s ease;
}

.astro-number-phone {
  color: var(--astro-gold);
  font-family: "Prompt", "Noto Sans Thai", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
}

.astro-number-price {
  color: #fff;
  font-weight: 700;
}

.astro-loading {
  min-height: 170px;
}

.astro-api-fallback {
  padding: 22px;
}

@media (max-width: 767.98px) {
  .astro-hero {
    min-height: auto;
    padding: 48px 0 72px;
  }

  .astro-hero::after {
    width: 300px;
    height: 300px;
    right: -124px;
    top: 64px;
  }

  .astro-actions {
    flex-direction: column;
  }

  .astro-btn {
    width: 100%;
  }

  .astro-modern-section {
    margin-top: -42px;
  }
}
