@import url('https://api.fontshare.com/v2/css?f[]=satoshi@400,500,700,900&f[]=clash-display@600&display=swap');

:root {
  --gl-black: #000000;
  --gl-surface: #0A0A0B;
  --gl-gold: #C9A24B;
  --gl-gold-light: #EBD08A;
  --gl-silver: #C7CCD1;
}

html {
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  margin: 0;
  background-color: #000000;
  color: #ffffff;
  font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100%;
}

::selection {
  background: #ffffff;
  color: #000000;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #000000; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.18); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.32); }

.App { min-height: 100vh; width: 100%; background-color: #000000; }

.font-satoshi { font-family: 'Satoshi', sans-serif; }
.text-gradient-silver {
  background: linear-gradient(180deg, #ffffff 0%, #9a9a9f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.text-gradient-gold {
  background: linear-gradient(180deg, #EBD08A 0%, #C9A24B 60%, #8A6B2E 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.glass-dark {
  background: rgba(10, 10, 11, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.brackets::before,
.brackets::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: rgba(255,255,255,0.35);
  border-style: solid;
  border-width: 0;
}
.brackets::before { top: 8px; left: 8px; border-top-width: 1.5px; border-left-width: 1.5px; }
.brackets::after { bottom: 8px; right: 8px; border-bottom-width: 1.5px; border-right-width: 1.5px; }

.grain-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@keyframes gl-float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-14px); }
}
.animate-gl-float { animation: gl-float 7s ease-in-out infinite; }

@keyframes gl-comet {
  0%   { transform: translate3d(0, 0, 0); opacity: 0; }
  10%  { opacity: 1; }
  85%  { opacity: 0.9; }
  100% { transform: translate3d(62vw, -108vh, 0); opacity: 0; }
}
.gl-comet {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 9999px;
  background: radial-gradient(circle, #ffffff 0%, rgba(255,255,255,0.7) 45%, rgba(255,255,255,0) 72%);
  box-shadow: 0 0 20px 6px rgba(255, 255, 255, 0.5);
  will-change: transform, opacity;
}
.gl-comet::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2px;
  height: 220px;
  transform: translate(-50%, 0) rotate(-42deg);
  transform-origin: top center;
  background: linear-gradient(to bottom, rgba(255,255,255,0.75), rgba(255,255,255,0.08) 55%, rgba(255,255,255,0));
  filter: blur(0.8px);
  border-radius: 9999px;
}
.gl-comet-1 { left: 6%;  bottom: 4%;  animation: gl-comet 7s linear infinite; animation-delay: 0.4s; }
.gl-comet-2 { left: -4%; bottom: 36%; width: 3.5px; height: 3.5px; opacity: 0.8; animation: gl-comet 10s linear infinite; animation-delay: 4s; }
.gl-comet-3 { left: 18%; bottom: -6%; width: 3px; height: 3px; opacity: 0.6; animation: gl-comet 13s linear infinite; animation-delay: 8s; }
.gl-comet-2::before { height: 180px; opacity: 0.75; }
.gl-comet-3::before { height: 150px; opacity: 0.55; }

@keyframes gl-ripple {
  0%   { transform: translate(-50%, -50%) scale(0.25); opacity: 0; }
  8%   { opacity: 0.6; }
  60%  { opacity: 0.22; }
  100% { transform: translate(-50%, -50%) scale(1.9); opacity: 0; }
}
.gl-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(200px, 40vw, 520px);
  height: clamp(200px, 40vw, 520px);
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.08);
  transform: translate(-50%, -50%) scale(0.25);
  opacity: 0;
  will-change: transform, opacity;
}
.gl-ring-1 { animation: gl-ripple 4.2s ease-out infinite; }
.gl-ring-2 { animation: gl-ripple 4.2s ease-out infinite; animation-delay: 1.4s; }
.gl-ring-3 { animation: gl-ripple 4.2s ease-out infinite; animation-delay: 2.8s; }

@keyframes gl-marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.gl-marquee-track {
  display: flex;
  width: max-content;
  animation: gl-marquee 45s linear infinite;
  will-change: transform;
}
.gl-marquee-track:hover { animation-play-state: paused; }
.gl-marquee-mask {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
.hide-scrollbar::-webkit-scrollbar { display: none; }

/* Signup / login form controls */
.gl-input {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
  padding: 0.875rem 1rem;
  font-size: 15px;
  color: #fff;
  outline: none;
  transition: border-color 0.2s;
}
.gl-input::placeholder { color: rgba(255,255,255,0.35); }
.gl-input:focus { border-color: rgba(201,162,75,0.6); }
.gl-err { margin-top: 0.25rem; font-size: 12px; font-weight: 500; color: #e0777f; }
.gl-gold-btn { background-image: linear-gradient(135deg,#FBEFC6 0%,#E7CB84 20%,#C9A24B 50%,#9C7328 62%,#EAD196 85%,#CBA455 100%); }
#signup-tab-create.active, #signup-tab-signin.active { color: #fff; }
#signup-tab-create:not(.active), #signup-tab-signin:not(.active) { color: rgba(255,255,255,0.45); }
#signup-tab-create:not(.active):hover, #signup-tab-signin:not(.active):hover { color: rgba(255,255,255,0.7); }
#signup-tab-create.active::after, #signup-tab-signin.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  border-radius: 999px;
  background-image: linear-gradient(135deg,#FBEFC6 0%,#E7CB84 20%,#C9A24B 50%,#9C7328 62%,#EAD196 85%,#CBA455 100%);
}
.gl-turnstile iframe { max-width: 100%; }

/* Scroll-reveal (vanilla JS replacement for framer-motion's Reveal wrapper) */
[data-reveal] {
  opacity: 0;
  transform: translateY(var(--reveal-y, 40px));
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0s);
}
[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}
