* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  background: #050505;
  color: #e5e5e5;
  overflow-x: hidden;
}

.font-serif {
  font-family: "Playfair Display", serif;
}

:root {
  --accent: #d4883a;
  --accent-light: #e09a4e;
  --accent-dark: #b8742e;
}

.noise::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.03;
  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)'/%3E%3C/svg%3E");
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #050505;
}

::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 3px;
}

@keyframes pulse-glow {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.55;
    transform: scale(1.08);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

@keyframes idle-sway {
  0%,
  100% {
    transform: rotate(0);
  }
  25% {
    transform: rotate(0.8deg);
  }
  75% {
    transform: rotate(-0.8deg);
  }
}

@keyframes orbit-slow {
  0% {
    transform: rotate(0);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes hint-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(3px);
  }
}

.animate-pulse-glow {
  animation: pulse-glow 5s ease-in-out infinite;
}

.shimmer-text {
  background: linear-gradient(
    90deg,
    #e5e5e5 0%,
    var(--accent) 25%,
    #e5e5e5 50%,
    var(--accent) 75%,
    #e5e5e5 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 4s linear infinite;
}

.gradient-border {
  position: relative;
  background: rgba(23, 23, 23, 0.6);
  border-radius: 16px;
}

.gradient-border::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 17px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(212, 136, 58, 0.3), transparent 50%, rgba(212, 136, 58, 0.1));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.glass {
  background: rgba(23, 23, 23, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.wheel-idle {
  animation: idle-sway 4s ease-in-out infinite;
}

#raysCanvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.wheel-pointer {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 15;
  filter: drop-shadow(0 4px 16px rgba(212, 136, 58, 0.5));
}

.cta-overlay {
  background: linear-gradient(135deg, rgba(212, 136, 58, 0.12), rgba(212, 136, 58, 0.06));
  border: 1px solid rgba(212, 136, 58, 0.35);
  color: var(--accent-light);
  padding: 11px 28px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.35s ease;
  box-shadow: 0 0 0 rgba(212, 136, 58, 0);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.cta-overlay:hover {
  background: linear-gradient(135deg, rgba(212, 136, 58, 0.22), rgba(212, 136, 58, 0.12));
  border-color: rgba(212, 136, 58, 0.6);
  box-shadow: 0 0 30px rgba(212, 136, 58, 0.15);
}

.step-connector {
  position: absolute;
  top: 50%;
  right: -32px;
  width: 32px;
  height: 2px;
  background: linear-gradient(to right, rgba(212, 136, 58, 0.4), transparent);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.input-field {
  background: rgba(23, 23, 23, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 18px;
  color: #e5e5e5;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  transition: all 0.3s ease;
  width: 100%;
  outline: none;
}

.input-field:focus {
  border-color: rgba(212, 136, 58, 0.4);
  box-shadow: 0 0 0 3px rgba(212, 136, 58, 0.08);
}

.input-field::placeholder {
  color: #525252;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #050505;
  font-weight: 600;
  padding: 14px 36px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(212, 136, 58, 0.3);
}

.btn-primary:hover::after {
  opacity: 1;
}

.toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 1001;
  transform: translateY(120%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.show {
  transform: translateY(0);
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.scroll-hint {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  font-size: 14px;
  color: #8a8a8a;
  text-decoration: none;
}

.scroll-hint:hover {
  color: var(--accent-light);
}

.scroll-hint-icon {
  animation: hint-bob 2.2s ease-in-out infinite;
}

@media (max-width: 1023px) {
  .step-connector {
    display: none;
  }
}

@media (max-width: 640px) {
  .cta-overlay {
    padding: 9px 20px;
    font-size: 11px;
  }
}
