/* ===== HOOD4663 — Robinhood-style community site ===== */
:root {
  --rh-green: #00c805;
  --rh-green-bright: #ccff00;
  --rh-lime: #b8e600;
  --rh-lime-deep: #8bc400;
  --bg: #0a0f0a;
  --bg-elevated: #0f1610;
  --surface: rgba(18, 28, 18, 0.72);
  --surface-border: rgba(204, 255, 0, 0.12);
  --text: #f0f7f0;
  --text-muted: #8a9a8a;
  --text-dim: #5a6a5a;
  --white: #ffffff;
  --black: #000000;
  --radius: 20px;
  --radius-sm: 12px;
  --nav-h: 72px;
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --shadow-green: 0 0 40px rgba(0, 200, 5, 0.25);
  --glow: 0 0 60px rgba(204, 255, 0, 0.15);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

.accent {
  color: var(--rh-green-bright);
  text-shadow: 0 0 40px rgba(204, 255, 0, 0.35);
}

/* ===== Animated background ===== */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

#bg-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.bg-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0, 200, 5, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(184, 230, 0, 0.08), transparent 50%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(0, 200, 5, 0.06), transparent 45%),
    linear-gradient(180deg, #070b07 0%, #0a0f0a 40%, #0c120c 100%);
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(204, 255, 0, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(204, 255, 0, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 75%);
  animation: grid-drift 40s linear infinite;
}

@keyframes grid-drift {
  0% { transform: translateY(0); }
  100% { transform: translateY(64px); }
}

.bg-orbs {
  position: absolute;
  inset: 0;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  animation: orb-float 18s ease-in-out infinite;
}

.orb-1 {
  width: 420px;
  height: 420px;
  background: var(--rh-green);
  top: -10%;
  left: -5%;
  animation-delay: 0s;
}

.orb-2 {
  width: 360px;
  height: 360px;
  background: var(--rh-lime);
  bottom: 10%;
  right: -8%;
  animation-delay: -6s;
  opacity: 0.3;
}

.orb-3 {
  width: 280px;
  height: 280px;
  background: var(--rh-green-bright);
  top: 45%;
  left: 40%;
  animation-delay: -12s;
  opacity: 0.18;
}

@keyframes orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.08); }
  66% { transform: translate(-30px, 20px) scale(0.95); }
}

/* Content above bg */
.nav,
main,
.footer {
  position: relative;
  z-index: 1;
}

/* ===== Glass ===== */
.glass {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
}

.btn-sm {
  padding: 0.55rem 1.1rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 0.95rem 1.75rem;
  font-size: 1.05rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--rh-green) 0%, var(--rh-lime) 100%);
  color: #041004;
  box-shadow: 0 4px 24px rgba(0, 200, 5, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 6px 32px rgba(204, 255, 0, 0.45);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid rgba(204, 255, 0, 0.35);
}

.btn-outline:hover {
  border-color: var(--rh-green-bright);
  background: rgba(204, 255, 0, 0.08);
  color: var(--rh-green-bright);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-ghost:hover {
  background: rgba(204, 255, 0, 0.1);
  border-color: rgba(204, 255, 0, 0.25);
  color: var(--rh-green-bright);
}

/* ===== Nav ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(10, 15, 10, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(204, 255, 0, 0.08);
}

.nav-inner {
  width: min(1120px, 92vw);
  margin-inline: auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.nav-logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px rgba(204, 255, 0, 0.4), var(--shadow-green);
}

.nav-name .accent {
  text-shadow: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--rh-green-bright);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.25s;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 4vw 1.25rem;
  background: rgba(10, 15, 10, 0.95);
  border-bottom: 1px solid rgba(204, 255, 0, 0.1);
}

.nav-mobile a {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  color: var(--text-muted);
}

.nav-mobile a:hover {
  background: rgba(204, 255, 0, 0.08);
  color: var(--rh-green-bright);
}

.nav-mobile.open {
  display: flex;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding-bottom: 4rem;
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  flex-direction: column;
}

.hero-banner-wrap {
  position: relative;
  width: 100%;
  max-height: 320px;
  overflow: hidden;
}

.hero-banner {
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: center;
}

.hero-banner-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    transparent 40%,
    rgba(10, 15, 10, 0.5) 70%,
    var(--bg) 100%
  );
  pointer-events: none;
}

.hero-content {
  text-align: center;
  margin-top: -80px;
  padding-bottom: 2rem;
  position: relative;
}

.hero-logo-wrap {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto 1.5rem;
}

.hero-logo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  position: relative;
  z-index: 2;
  box-shadow:
    0 0 0 4px rgba(10, 15, 10, 0.9),
    0 0 0 6px rgba(204, 255, 0, 0.5),
    0 12px 48px rgba(0, 0, 0, 0.5),
    var(--shadow-green);
  animation: logo-float 5s ease-in-out infinite;
}

.hero-logo-ring {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 2px solid transparent;
  background:
    linear-gradient(var(--bg), var(--bg)) padding-box,
    linear-gradient(135deg, var(--rh-green-bright), transparent 50%, var(--rh-green)) border-box;
  animation: ring-spin 8s linear infinite;
  z-index: 1;
  opacity: 0.7;
}

@keyframes logo-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes ring-spin {
  to { transform: rotate(360deg); }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: rgba(0, 200, 5, 0.12);
  border: 1px solid rgba(0, 200, 5, 0.3);
  color: var(--rh-green);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rh-green);
  box-shadow: 0 0 0 0 rgba(0, 200, 5, 0.5);
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 200, 5, 0.5); }
  70% { box-shadow: 0 0 0 10px rgba(0, 200, 5, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 200, 5, 0); }
}

.hero-title {
  font-size: clamp(2.75rem, 8vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 0.5rem;
}

.title-line {
  display: inline-block;
}

.hero-ticker {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--rh-lime);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.hero-sub {
  max-width: 560px;
  margin: 0 auto 2rem;
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem 2rem;
  padding: 1.5rem 2rem;
  background: rgba(18, 28, 18, 0.5);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  max-width: 640px;
  margin-inline: auto;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  min-width: 100px;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--rh-green-bright);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(204, 255, 0, 0.15);
}

/* ===== Sections ===== */
.section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rh-green);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.section-desc {
  color: var(--text-muted);
  max-width: 480px;
  margin-inline: auto;
  font-size: 1.05rem;
}

/* About */
.about-card {
  padding: 2.5rem;
  max-width: 800px;
  margin-inline: auto;
}

.about-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 3px rgba(204, 255, 0, 0.35), var(--shadow-green);
}

.about-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-text {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.25rem;
  text-align: center;
}

.about-text:last-child {
  margin-bottom: 0;
}

.about-text strong {
  color: var(--text);
  font-weight: 700;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.feature-card {
  padding: 1.75rem 1.5rem;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(204, 255, 0, 0.3);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), var(--glow);
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(0, 200, 5, 0.12);
  color: var(--rh-green-bright);
  margin-bottom: 1.15rem;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.feature-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Token */
.token-card {
  max-width: 720px;
  margin-inline: auto;
  padding: 2rem 2.25rem;
}

.token-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.token-logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px rgba(204, 255, 0, 0.4);
}

.token-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

.token-chain {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-top: 0.15rem;
}

.ca-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.15rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(204, 255, 0, 0.15);
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.ca-box code {
  flex: 1;
  min-width: 0;
  font-family: ui-monospace, "SF Mono", "Cascadia Code", monospace;
  font-size: clamp(0.7rem, 2.2vw, 0.9rem);
  color: var(--rh-lime);
  word-break: break-all;
  letter-spacing: 0.02em;
}

.btn-copy {
  flex-shrink: 0;
  padding: 0.6rem 1.15rem;
  font-size: 0.875rem;
}

.btn-copy .icon-check {
  display: none;
}

.btn-copy.copied .icon-copy {
  display: none;
}

.btn-copy.copied .icon-check {
  display: block;
}

.btn-copy.copied {
  background: linear-gradient(135deg, #00a804, #7ab800);
}

.token-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.meta-item {
  text-align: center;
  padding: 1rem;
  background: rgba(0, 200, 5, 0.06);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(204, 255, 0, 0.08);
}

.meta-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.meta-value {
  font-weight: 700;
  font-size: 1rem;
  color: var(--rh-green-bright);
}

/* Join */
.join {
  padding-bottom: 6rem;
}

.join-card {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 3.5rem 2rem;
  max-width: 720px;
  margin-inline: auto;
}

.join-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  background: var(--rh-green);
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.2;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.join-logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  position: relative;
  box-shadow: 0 0 0 3px rgba(204, 255, 0, 0.4), var(--shadow-green);
}

.join-card h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
  position: relative;
}

.join-card p {
  color: var(--text-muted);
  max-width: 440px;
  margin: 0 auto 1.75rem;
  position: relative;
  line-height: 1.7;
}

.join-card .btn {
  position: relative;
}

/* Footer */
.footer {
  border-top: 1px solid rgba(204, 255, 0, 0.08);
  padding: 1.75rem 0;
  background: rgba(0, 0, 0, 0.35);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.95rem;
}

.footer-brand img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-align: center;
}

.footer-x {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  transition: 0.2s;
}

.footer-x:hover {
  background: rgba(204, 255, 0, 0.15);
  color: var(--rh-green-bright);
}

/* ===== Reveal animations ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links,
  .nav-actions {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-banner {
    height: 180px;
  }

  .hero-content {
    margin-top: -50px;
  }

  .hero-logo-wrap,
  .hero-logo {
    width: 110px;
    height: 110px;
  }

  .hero-logo-ring {
    inset: -10px;
  }

  .stat-divider {
    display: none;
  }

  .hero-stats {
    gap: 1.25rem;
  }

  .token-meta {
    grid-template-columns: 1fr;
  }

  .ca-box {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-copy {
    width: 100%;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

  .about-card,
  .token-card {
    padding: 1.5rem;
  }

  .section {
    padding: 3.5rem 0;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .bg-grid,
  .orb,
  .hero-logo,
  .hero-logo-ring,
  .pulse-dot {
    animation: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
