/* Protect images */
img {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -webkit-touch-callout: none;
  pointer-events: auto; /* Ensure pointer events still work for interactions if needed, but select is disabled */
}

/* Base theme: Solana dark with brand gradients */
:root {
  --solana-green: #00FFA3;
  --solana-purple: #DC1FFF;
  --solana-cyan: #08E5FF;
  --bg: #0B0B0D;
  --surface: #121217;
  --surface-2: #161622;
  --text: #EBECF1;
  --muted: #9AA0B2;
  --border: #242637;
  --white: #ffffff;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

/* Background effects */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.bg-gradient { position: absolute; filter: blur(60px); opacity: 0.25; }
.bg-gradient.g1 {
  top: -10%; left: -10%; width: 50vw; height: 50vh;
  background: radial-gradient(ellipse at center, var(--solana-green), transparent 60%);
}
.bg-gradient.g2 {
  bottom: -10%; right: -10%; width: 50vw; height: 50vh;
  background: radial-gradient(ellipse at center, var(--solana-purple), transparent 60%);
}
.grid-overlay {
  position: absolute; inset: 0; opacity: 0.08;
  background-image: linear-gradient(to right, rgba(255,255,255,0.08) 1px, transparent 1px),
                    linear-gradient(to bottom, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 40px 40px;
}

#rain-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.raindrop {
  position: absolute;
  top: -50px;
  animation: fall linear forwards;
  will-change: transform, opacity;
}

@keyframes fall {
  0% {
    transform: translateY(-10vh);
    opacity: 0.5;
  }
  100% {
    transform: translateY(110vh);
    opacity: 0;
  }
}

/* Containers */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header { position: sticky; top: 0; backdrop-filter: saturate(120%) blur(4px); z-index: 20; }
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(12, 12, 16, 0.72);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; flex-direction: column; text-decoration: none; }
.logo { font-weight: 800; letter-spacing: 0.5px; font-size: 20px; background: linear-gradient(135deg, var(--solana-green), var(--solana-purple)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.subtitle { font-size: 12px; color: var(--muted); }

.nav { position: relative; }
.menu-toggle { display: none; background: transparent; border: 1px solid var(--border); color: var(--text); padding: 8px 10px; border-radius: 8px; }
.nav-list { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }
.nav-list a { color: var(--text); text-decoration: none; font-weight: 500; }
.nav-list a:hover { color: var(--white); }

.header-cta .btn { margin-left: 8px; }

/* Hero */
.hero { padding: 80px 0 40px; }
.hero-title { font-size: clamp(52px, 8vw, 96px); font-weight: 800; line-height: 1; }
.hero-subtitle { margin-top: 8px; font-size: clamp(18px, 3vw, 28px); color: var(--muted); }
.hero-description { margin-top: 16px; font-size: 16px; max-width: 720px; color: #B7BCC9; }
.hero-actions { display: flex; gap: 12px; margin-top: 24px; }
.hero-badges { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 36px; }
.badge { display: flex; flex-direction: column; align-items: center; padding: 16px; background: rgba(22, 22, 34, 0.7); border: 1px solid var(--border); border-radius: 14px; }
.badge-number { font-weight: 700; font-size: 22px; background: linear-gradient(90deg, var(--solana-green), var(--solana-purple)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.badge-label { font-size: 12px; color: var(--muted); }

/* Sections */
.section { padding: 60px 0; }
.section-title { font-size: 24px; font-weight: 700; }
.section-title.center { text-align: center; }
.section-subtitle { color: var(--muted); margin-top: 6px; }
.two-col { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: start; }
.two-col.reverse { grid-template-columns: 1fr 1.2fr; }

.card {
  background: linear-gradient(180deg, rgba(18,18,23,0.85), rgba(14,14,18,0.85));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.list { margin: 0; padding-left: 18px; }
.list li { margin: 8px 0; }

/* Stats */
.marquee-container {
  width: 100%;
  overflow: hidden;
  margin-bottom: 40px;
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-content {
  display: flex;
  gap: 60px;
  width: max-content;
  animation: scroll 30s linear infinite;
}

.marquee-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
}

.marquee-img:hover {
  transform: scale(1.1);
  border-color: var(--solana-green);
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.stats-grid { margin-top: 24px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stat { text-align: center; padding: 16px; }
.stat-number { font-size: 22px; font-weight: 700; }
.stat-label { color: var(--muted); margin-top: 6px; }

/* CTA banner */
.cta-banner { padding: 64px 0; position: relative; }
.cta-inner { text-align: center; }
.cta-title { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; }
.cta-subtitle { color: var(--muted); margin-top: 8px; }
.cta-actions { display: flex; justify-content: center; gap: 12px; margin-top: 20px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 28px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand.small .logo { font-size: 16px; }
.footer-copy { color: var(--muted); margin-top: 6px; }
.footer-nav a { color: var(--muted); text-decoration: none; margin-left: 16px; }
.footer-nav a:hover { color: var(--white); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; padding: 6px 12px; border-radius: 8px; font-weight: 600; font-size: 13px; border: 1px solid transparent; transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease; position: relative; overflow: hidden; }
.btn:active { transform: scale(0.98); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(8, 229, 255, 0.35); }
.btn-primary {
  color: #0C0C12;
  background: linear-gradient(90deg, var(--solana-green), var(--solana-purple));
  background-size: 200% 200%;
  box-shadow: 0 10px 24px rgba(0, 255, 163, 0.18), 0 6px 18px rgba(220, 31, 255, 0.12);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 16px 32px rgba(0, 255, 163, 0.22), 0 10px 24px rgba(220, 31, 255, 0.16); animation: gradientShift 5s ease infinite; }

.btn-outline {
  color: var(--text);
  background: linear-gradient(var(--surface), var(--surface)) padding-box,
              linear-gradient(90deg, var(--solana-green), var(--solana-purple)) border-box;
  background-size: 100% 100%, 200% 200%;
  border: 1px solid transparent;
}
.btn-outline:hover { border-color: transparent; filter: brightness(1.06); transform: translateY(-1px); animation: gradientShift 8s ease infinite; }

/* Shimmer sheen sweep on hover */
.btn::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: -150%; right: -150%;
  background: linear-gradient(120deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.04) 35%, rgba(255,255,255,0.12) 70%);
  transform: translateX(-60%);
  pointer-events: none;
}
.btn:hover::before { animation: sheen 0.9s ease forwards; }

/* Soft glow halo for primary on hover */
.btn-primary::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--solana-green), var(--solana-purple));
  filter: blur(14px);
  opacity: 0;
  transition: opacity 200ms ease;
  pointer-events: none;
}
.btn-primary:hover::after { opacity: 0.55; }

/* Utility */
.gradient-text {
  background: linear-gradient(120deg, var(--solana-green), var(--solana-purple));
  background-size: 200% 200%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  /* Avoid continuous animation for performance; enable on hover if desired */
}

/* Optional shimmer on hover for small elements */
.gradient-text:hover {
  animation: shimmer 14s ease infinite;
}

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

/* Animated gradient loop for buttons */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Sheen sweep */
@keyframes sheen {
  0% { transform: translateX(-60%); opacity: 0; }
  10% { opacity: 0.4; }
  50% { opacity: 0.25; }
  100% { transform: translateX(60%); opacity: 0; }
}

/* Responsive */
@media (max-width: 980px) {
  .two-col, .two-col.reverse { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .hero { padding-top: 60px; }
  .hero-badges { grid-template-columns: 1fr; }
  .menu-toggle { display: inline-block; }
  .nav-list { position: absolute; right: 0; top: 120%; display: none; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 10px; }
  .nav-list.open { display: flex; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .btn, .btn-primary, .btn-outline, .gradient-text { animation: none !important; }
  .btn:hover::before { animation: none !important; }
  .btn, .btn-primary, .btn-outline { transition: none; }
}

/* Accessibility: Skip link */
.skip-link {
  position: absolute; left: -999px; top: -999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 6px 10px; border-radius: 8px;
}
.skip-link:focus { left: 12px; top: 12px; z-index: 100; }