/* ── Base & Smooth Scroll ── */
html {
  scroll-behavior: smooth;
}

/* ── Hero Background ── */
#hero {
  background: radial-gradient(ellipse at 50% 0%, #0c1929 0%, #030712 60%, #020617 100%);
}

.hero-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 40% at 50% 45%, rgba(56, 189, 248, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Starfield ── */
.stars-layer {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 10% 20%, rgba(255, 255, 255, 0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 30% 65%, rgba(255, 255, 255, 0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 55% 15%, rgba(255, 255, 255, 0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 70% 50%, rgba(255, 255, 255, 0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 85% 30%, rgba(255, 255, 255, 0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 15% 80%, rgba(255, 255, 255, 0.35) 0%, transparent 100%),
    radial-gradient(1px 1px at 45% 90%, rgba(255, 255, 255, 0.45) 0%, transparent 100%),
    radial-gradient(1px 1px at 90% 75%, rgba(255, 255, 255, 0.4) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 25% 40%, rgba(125, 211, 252, 0.5) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 60% 70%, rgba(125, 211, 252, 0.4) 0%, transparent 100%),
    radial-gradient(2px 2px at 80% 10%, rgba(255, 255, 255, 0.7) 0%, transparent 100%),
    radial-gradient(1px 1px at 5% 55%, rgba(255, 255, 255, 0.3) 0%, transparent 100%);
  background-size: 100% 100%;
  animation: twinkle 8s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes twinkle {
  0% { opacity: 0.7; }
  100% { opacity: 1; }
}

/* ── Shooting Stars ── */
.shooting-stars {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.shooting-star {
  position: absolute;
  width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(125, 211, 252, 0.6), rgba(255, 255, 255, 0.9));
  border-radius: 999px;
  opacity: 0;
  transform: rotate(-35deg);
  animation: shoot var(--duration, 1.2s) ease-in var(--delay, 0s) forwards;
}

.shooting-star::after {
  content: '';
  position: absolute;
  right: 0;
  top: -1px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 6px 2px rgba(125, 211, 252, 0.8);
}

@keyframes shoot {
  0% {
    opacity: 0;
    transform: rotate(-35deg) translateX(0);
  }
  5% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: rotate(-35deg) translateX(400px);
  }
}

/* ── Domain Cards ── */
.domain-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  border-radius: 1rem;
  background: linear-gradient(145deg, rgba(17, 24, 39, 0.8) 0%, rgba(10, 15, 30, 0.9) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.domain-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top left, rgba(56, 189, 248, 0.08) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.domain-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.25);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(56, 189, 248, 0.1);
}

.domain-card:hover::before {
  opacity: 1;
}

.domain-name {
  position: relative;
  font-size: 1.125rem;
  font-weight: 600;
  color: #f1f5f9;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.domain-tag {
  position: relative;
  font-size: 0.8125rem;
  color: #64748b;
  margin-bottom: 1.25rem;
}

.inquiry-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: auto;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #38bdf8;
  transition: color 0.2s ease, gap 0.2s ease;
}

.inquiry-link::after {
  content: '→';
  transition: transform 0.2s ease;
}

.inquiry-link:hover {
  color: #7dd3fc;
}

.inquiry-link:hover::after {
  transform: translateX(3px);
}

/* ── CTA Panel ── */
.cta-panel {
  padding: 3rem 2rem;
  border-radius: 1.5rem;
  background: linear-gradient(160deg, rgba(17, 24, 39, 0.9) 0%, rgba(10, 15, 30, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  color: #030712;
  background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
  border-radius: 9999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 24px rgba(56, 189, 248, 0.35);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(56, 189, 248, 0.5);
}

.cta-button:active {
  transform: translateY(0);
}

/* ── Footer Credit ── */
.footer-credit {
  color: #94a3b8;
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-credit:hover {
  color: #38bdf8;
}

/* ── Section Divider Glow ── */
#domains::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(600px, 80%);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.3), transparent);
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .stars-layer {
    animation: none;
  }

  .shooting-star {
    display: none;
  }

  .domain-card:hover,
  .cta-button:hover {
    transform: none;
  }
}
