
:root {
  --background: 230 40% 8%;
  --foreground: 40 20% 97%;
  --primary: 270 80% 60%;
  --primary-foreground: 0 0% 100%;
  --secondary: 320 80% 60%;
  --secondary-foreground: 0 0% 100%;
  --accent: 45 90% 55%;
  --accent-foreground: 230 40% 8%;
  --destructive: 0 84% 60%;
  --destructive-foreground: 0 0% 98%;
  --muted: 230 30% 15%;
  --muted-foreground: 230 20% 70%;
  --card: 230 35% 12%;
  --card-foreground: 40 20% 97%;
  --popover: 230 35% 12%;
  --popover-foreground: 40 20% 97%;
  --border: 45 90% 55%;
  --input: 230 30% 20%;
  --ring: 270 80% 60%;
  --radius: 1rem;
}

* {
  box-sizing: border-box;
  border-color: hsl(var(--border) / 0.2);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: 'DM Sans', sans-serif;
  overflow-x: hidden;
  font-variant-numeric: tabular-nums;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Cinzel Decorative', serif;
  text-wrap: balance;
  margin: 0;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  line-height: 1.3;
}

p {
  line-height: 1.625;
  max-width: 65ch;
}

input,
select,
button,
a {
  -webkit-tap-highlight-color: transparent;
}

input::placeholder,
select,
option {
  color: hsl(var(--muted-foreground));
}

.glass-card {
  background: linear-gradient(135deg, hsl(var(--card) / 0.6), hsl(var(--card) / 0.8));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid hsl(var(--border) / 0.3);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.magical-glow {
  box-shadow: 0 0 20px hsl(var(--primary) / 0.4), 0 0 40px hsl(var(--secondary) / 0.2), 0 0 60px hsl(var(--accent) / 0.1);
  animation: glowPulse 3s ease-in-out infinite alternate;
}

.magical-glow-accent {
  box-shadow: 0 0 20px hsl(var(--accent) / 0.4), 0 0 40px hsl(var(--accent) / 0.2);
  animation: glowPulseAccent 3s ease-in-out infinite alternate;
}

.text-gradient-magical {
  background: linear-gradient(135deg, hsl(var(--accent)), hsl(var(--primary)), hsl(var(--secondary)));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 30px hsl(var(--primary) / 0.3);
}

.hero-image {
  background-image: url('https://images.unsplash.com/photo-1592892659170-737123f40557?auto=format&fit=crop&w=1600&q=80');
}

.aurora-wave {
  position: absolute;
  border-radius: 9999px;
  mix-blend-mode: screen;
}

.aurora-wave-1 {
  top: -20%;
  left: -10%;
  width: 80%;
  height: 80%;
  background: hsl(var(--primary) / 0.3);
  filter: blur(120px);
  animation: auroraOne 20s ease-in-out infinite;
}

.aurora-wave-2 {
  top: 10%;
  right: -20%;
  width: 70%;
  height: 90%;
  background: hsl(var(--secondary) / 0.2);
  filter: blur(150px);
  animation: auroraTwo 25s ease-in-out infinite 2s;
}

.aurora-wave-3 {
  bottom: -30%;
  left: 10%;
  width: 90%;
  height: 70%;
  background: hsl(var(--accent) / 0.15);
  filter: blur(130px);
  animation: auroraThree 18s ease-in-out infinite 5s;
}

.noise-overlay {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.toast-card {
  background: linear-gradient(135deg, hsl(var(--card) / 0.94), hsl(var(--card) / 0.98));
  color: hsl(var(--foreground));
  border: 1px solid hsl(var(--border) / 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.animation-delay-200 { animation-delay: 0.2s; }
.animation-delay-400 { animation-delay: 0.4s; }
.animation-delay-600 { animation-delay: 0.6s; }

@keyframes glowPulse {
  0% { box-shadow: 0 0 20px hsl(var(--primary) / 0.3), 0 0 40px hsl(var(--secondary) / 0.2); }
  100% { box-shadow: 0 0 30px hsl(var(--primary) / 0.6), 0 0 60px hsl(var(--secondary) / 0.4); }
}

@keyframes glowPulseAccent {
  0% { box-shadow: 0 0 15px hsl(var(--accent) / 0.3), 0 0 30px hsl(var(--accent) / 0.1); }
  100% { box-shadow: 0 0 25px hsl(var(--accent) / 0.6), 0 0 50px hsl(var(--accent) / 0.3); }
}

@keyframes auroraOne {
  0%, 100% { transform: translate(-10%, -10%) scale(1); }
  50% { transform: translate(10%, 5%) scale(1.2); }
}

@keyframes auroraTwo {
  0%, 100% { transform: translate(10%, 5%) scale(1); }
  50% { transform: translate(-10%, 15%) scale(1.4); }
}

@keyframes auroraThree {
  0%, 100% { transform: translate(0%, 10%) scale(1); }
  50% { transform: translate(20%, -10%) scale(1.3); }
}


.header-scrolled {
  background: hsl(var(--background) / 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid hsl(var(--border) / 0.3);
  box-shadow: 0 4px 30px hsl(var(--primary) / 0.1);
  padding-top: 0.75rem !important;
  padding-bottom: 0.75rem !important;
}

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