/* ===== Variables ===== */
:root {
  --bg: hsl(260, 20%, 5%);
  --fg: hsl(45, 30%, 90%);
  --card-bg: hsl(260, 25%, 8%);
  --primary: hsl(45, 80%, 55%);
  --primary-fg: hsl(260, 20%, 5%);
  --secondary: hsl(270, 40%, 20%);
  --muted: hsl(260, 10%, 55%);
  --border-gold: hsla(45, 80%, 55%, 0.1);
  --gold: hsl(45, 80%, 55%);
  --gold-light: hsl(45, 70%, 70%);
  --gold-dark: hsl(45, 90%, 40%);
  --purple-deep: hsl(270, 60%, 15%);
  --purple-glow: hsl(280, 80%, 50%);
  --muted-bg: hsl(260, 20%, 12%);
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Raleway', sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 { font-family: 'Cinzel', serif; font-weight: 400; }
a { color: var(--gold-light); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--gold); }
img { max-width: 100%; display: block; }

/* ===== Starfield ===== */
#starfield {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
}

/* ===== Utilities ===== */
.text-center { text-align: center; }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; line-height: 1.8; }
.text-muted { color: var(--muted); font-weight: 300; }
.text-light { color: hsla(45, 30%, 90%, 0.7); font-weight: 300; }
.mb-12 { margin-bottom: 3rem; }
.text-gradient-gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ===== Layout ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.container-sm { max-width: 720px; margin: 0 auto; padding: 0 1.5rem; }
.section { position: relative; z-index: 10; padding: 6rem 1.5rem; }

.bg-mystic-gradient {
  background: linear-gradient(180deg, var(--bg), var(--purple-deep), var(--bg));
}

/* ===== Grids ===== */
.grid-3 { display: grid; gap: 2rem; }
.grid-4 { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 640px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* ===== Card ===== */
.card {
  background: linear-gradient(145deg, var(--card-bg), var(--secondary));
  border: 1px solid var(--border-gold);
  border-radius: 0.75rem;
  padding: 2rem;
}
.card-hover { cursor: pointer; transition: transform 0.5s, box-shadow 0.5s; }
.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 30px hsla(45, 80%, 55%, 0.15), 0 0 60px hsla(45, 80%, 55%, 0.05);
}
.card h3 { color: var(--fg); font-size: 1.125rem; margin-bottom: 0.5rem; }
.card-icon { font-size: 3rem; margin-bottom: 1rem; }

.glow-gold {
  box-shadow: 0 0 30px hsla(45, 80%, 55%, 0.15), 0 0 60px hsla(45, 80%, 55%, 0.05);
}

/* ===== Section Title ===== */
.section-title {
  font-size: clamp(1.875rem, 5vw, 3rem);
  margin-bottom: 4rem;
  background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ===== Step Number ===== */
.step-num {
  font-family: 'Cinzel', serif;
  font-size: 2.5rem;
  color: var(--gold);
  margin-bottom: 1rem;
}

/* ===== Hero ===== */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.4; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, hsla(260,20%,5%,0.6), hsla(260,20%,5%,0.3), var(--bg));
}
.hero-content {
  position: relative; z-index: 10;
  text-align: center; padding: 1.5rem; max-width: 56rem; margin: 0 auto;
}
.hero-brand {
  color: var(--gold-light);
  font-size: 0.875rem; letter-spacing: 0.3em; text-transform: uppercase;
  margin-bottom: 1.5rem;
  opacity: 0; animation: fadeUp 1.2s ease-out forwards;
}
.hero-title {
  font-size: clamp(2.25rem, 6vw, 4.5rem);
  line-height: 1.1; margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0; animation: fadeUp 1.2s ease-out forwards;
}
.hero-subtitle {
  color: hsla(45, 30%, 90%, 0.7);
  font-size: clamp(1rem, 2vw, 1.25rem);
  max-width: 42rem; margin: 0 auto 2.5rem;
  font-weight: 300;
  opacity: 0; animation: fadeUp 1s 0.6s ease-out forwards;
}

/* ===== Button ===== */
.btn-primary {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: var(--primary);
  color: var(--primary-fg);
  font-family: 'Cinzel', serif;
  font-size: 1.125rem; letter-spacing: 0.05em;
  border-radius: 0.5rem; border: none; cursor: pointer;
  box-shadow: 0 0 30px hsla(45, 80%, 55%, 0.15);
  transition: transform 0.3s;
  opacity: 0; animation: fadeUp 0.8s 1s ease-out forwards;
}
.btn-primary:hover { transform: scale(1.05); color: var(--primary-fg); }
.btn-full { width: 100%; text-align: center; opacity: 1; animation: none; margin-top: 1rem; }

/* ===== Scroll Indicator ===== */
.scroll-indicator {
  position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
  animation: bounce 2s infinite;
}
.scroll-mouse {
  width: 1.5rem; height: 2.5rem;
  border-radius: 9999px; border: 2px solid hsla(45,80%,55%,0.3);
  display: flex; align-items: flex-start; justify-content: center; padding-top: 0.5rem;
}
.scroll-dot { width: 4px; height: 8px; background: var(--gold); border-radius: 9999px; }

/* ===== Form ===== */
.form-card { padding: 2rem; }
@media (min-width: 768px) { .form-card { padding: 3rem; } }
.form-group { margin-bottom: 1.5rem; }
.form-group label {
  display: block; font-family: 'Cinzel', serif;
  font-size: 0.875rem; color: var(--gold-light);
  letter-spacing: 0.1em; margin-bottom: 0.5rem;
}
.form-group input {
  width: 100%; padding: 0.75rem 1rem;
  background: hsla(260,20%,12%,0.5);
  border: 1px solid var(--border-gold);
  border-radius: 0.5rem;
  color: var(--fg); font-family: 'Raleway', sans-serif; font-size: 1rem;
  outline: none; transition: border-color 0.3s, box-shadow 0.3s;
}
.form-group input::placeholder { color: var(--muted); }
.form-group input:focus {
  border-color: hsla(45,80%,55%,0.4);
  box-shadow: 0 0 30px hsla(45,80%,55%,0.15);
}

/* ===== Quotes ===== */
.quote-star { color: var(--gold); font-size: 1.5rem; margin-bottom: 1rem; }
.quote-text {
  color: hsla(45,30%,90%,0.8);
  font-weight: 300; font-style: italic;
  margin-bottom: 1.5rem; line-height: 1.7;
}
.quote-author {
  color: var(--gold-light); font-family: 'Cinzel', serif;
  font-size: 0.875rem; font-style: normal;
}

/* ===== Contact ===== */
.contact-info { font-size: 1.125rem; line-height: 2.5; color: hsla(45,30%,90%,0.7); }

/* ===== Footer ===== */
.footer {
  position: relative; z-index: 10;
  padding: 3rem 1.5rem;
  border-top: 1px solid hsla(45,80%,55%,0.1);
}
.footer-inner {
  display: flex; flex-direction: column; align-items: center;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .footer-inner { flex-direction: row; justify-content: space-between; }
}
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: var(--muted); font-size: 0.875rem; }
.footer-links a:hover { color: var(--gold); }

/* ===== Animations ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* Scroll animations */
.animate-on-scroll {
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-on-scroll.visible {
  opacity: 1; transform: translateY(0);
}
