/* ── Base & Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { min-height: 100vh; overflow-x: hidden; }

/* ── Hero Gradient ── */
.hero-gradient {
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(200, 150, 12, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 20% 60%, rgba(15, 23, 42, 0.9) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 60%, rgba(15, 23, 42, 0.9) 0%, transparent 60%),
    linear-gradient(180deg, #0A0F1E 0%, #0F172A 40%, #0A0F1E 100%);
}

/* ── Noise Texture ── */
.hero-noise {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  background-size: 128px 128px;
}

/* ── Gold Orbs ── */
.hero-orb--1 { top: 10%; left: 15%; background: radial-gradient(circle, rgba(245, 208, 97, 0.6) 0%, transparent 70%); }
.hero-orb--2 { bottom: 15%; right: 10%; background: radial-gradient(circle, rgba(200, 150, 12, 0.5) 0%, transparent 70%); }
.hero-orb--3 { top: 50%; left: 50%; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(212, 160, 23, 0.4) 0%, transparent 70%); }

/* ── Gold Grid ── */
.hero-grid {
  background-image:
    linear-gradient(rgba(245, 208, 97, 0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 208, 97, 0.5) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ── Vignette ── */
.hero-vignette {
  background: radial-gradient(ellipse at center, transparent 40%, rgba(6, 11, 24, 0.7) 100%);
}

/* ── Hero Badge Animation ── */
.hero-badge {
  animation: badge-in 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.2s;
}

@keyframes badge-in {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Hero Text Animations ── */
#hero h1 {
  animation: hero-text-in 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.4s;
}

#hero p {
  animation: hero-text-in 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.6s;
}

#hero > div > div:last-child > div {
  animation: hero-text-in 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.8s;
}

#hero > div > div:last-child > div > div {
  animation: hero-text-in 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 1s;
}

@keyframes hero-text-in {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Scroll Indicator ── */
.hero-vignette ~ .absolute.bottom-8 {
  animation: fade-in 1s ease both;
  animation-delay: 1.4s;
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ── Scroll Reveal ── */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal[data-reveal] {
  opacity: 0;
  transform: translateY(32px);
}

@media (prefers-reduced-motion: no-preference) {
  .reveal[data-reveal] {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ── Nav Link Hover ── */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: linear-gradient(90deg, #F5D061, #D4A017);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* ── Header Scroll State ── */
#site-header.scrolled {
  background: rgba(6, 11, 24, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(200, 150, 12, 0.1), 0 4px 32px rgba(0, 0, 0, 0.3);
}

/* ── Mobile Menu ── */
.mobile-link {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease, transform 0.4s ease, color 0.2s ease;
}

#mobile-menu.open .mobile-link {
  opacity: 1;
  transform: translateY(0);
}

#mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(5) { transition-delay: 0.25s; }

/* ── Menu Lines Animation ── */
#menu-toggle.active .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
  width: 24px;
}
#menu-toggle.active .menu-line:nth-child(2) {
  opacity: 0;
  width: 0;
}
#menu-toggle.active .menu-line:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
  width: 24px;
}

/* ── Gold Divider Accent ── */
.gold-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245, 208, 97, 0.4), transparent);
}

/* ── Button Ripple Effect ── */
button[type="submit"]:active {
  transform: scale(0.98);
}

/* ── Image Hover Glow ── */
.group:hover .relative > img {
  filter: brightness(1.05);
}

/* ── Custom Scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #060B18; }
::-webkit-scrollbar-thumb { background: #1E293B; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #C8960C; }

/* ── Selection ── */
::selection { background: rgba(200, 150, 12, 0.3); color: #F5D061; }
