/* ========== RESET & BASE ========== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --gold: #F5B942;
  --dark-gold: #C88A1A;
  --black: #0D0D0D;
  --cream: #FFF8EC;
  --white: #FFFFFF;
  --glass: rgba(255, 248, 236, 0.06);
  --glass-border: rgba(245, 185, 66, 0.18);
  --text: #FFF8EC;
  --text-muted: rgba(255, 248, 236, 0.65);
  --radius: 16px;
  --radius-sm: 10px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

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

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== PARTICLES CANVAS ========== */
#particles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
}

/* ========== NAV ========== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: background 0.3s, backdrop-filter 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(13, 13, 13, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--glass-border);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.nav-logo img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 20px rgba(245, 185, 66, 0.35);
}

.nav-links {
  display: flex;
  gap: 28px;
}

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

.nav-links a:hover {
  color: var(--gold);
}

.nav-cta {
  padding: 8px 18px;
  background: linear-gradient(135deg, var(--gold), var(--dark-gold));
  color: var(--black);
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 999px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(245, 185, 66, 0.4);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

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

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(13, 13, 13, 0.97);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu a {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-muted);
}

.mobile-menu a:hover {
  color: var(--gold);
}

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-banner {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.35) saturate(1.1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(245, 185, 66, 0.12) 0%, transparent 60%),
    linear-gradient(to bottom, rgba(13,13,13,0.4) 0%, rgba(13,13,13,0.85) 70%, var(--black) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 720px;
}

.hero-logo-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 28px;
}

.hero-logo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  position: relative;
  z-index: 1;
  border: 2px solid rgba(245, 185, 66, 0.4);
  box-shadow: 0 0 40px rgba(245, 185, 66, 0.35);
  animation: float 6s ease-in-out infinite;
}

.logo-glow {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 185, 66, 0.35) 0%, transparent 70%);
  animation: pulse-glow 3s ease-in-out infinite;
  z-index: 0;
}

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

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

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 18px;
  background: linear-gradient(135deg, var(--cream) 0%, var(--gold) 50%, var(--cream) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 8s linear infinite;
}

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

.hero-sub {
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.7;
  font-weight: 400;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-bottom: 28px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 999px;
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--dark-gold) 100%);
  color: var(--black);
  box-shadow: 0 4px 24px rgba(245, 185, 66, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(245, 185, 66, 0.5);
}

.btn-secondary {
  background: transparent;
  color: var(--cream);
  border: 1.5px solid rgba(245, 185, 66, 0.45);
}

.btn-secondary:hover {
  background: rgba(245, 185, 66, 0.1);
  border-color: var(--gold);
  transform: translateY(-2px);
}

/* CA Box */
.ca-box {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 10px 14px 10px 16px;
  border-radius: 12px;
  font-size: 0.8rem;
  max-width: 100%;
}

.ca-label {
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.ca-address {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 220px;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  background: rgba(245, 185, 66, 0.15);
  border: 1px solid rgba(245, 185, 66, 0.3);
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold);
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
}

.copy-btn:hover {
  background: rgba(245, 185, 66, 0.25);
}

.copy-btn.copied {
  background: rgba(80, 200, 120, 0.2);
  border-color: rgba(80, 200, 120, 0.4);
  color: #50c878;
}

/* Stats Bar */
.stats-bar {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 48px;
  max-width: 720px;
}

.stat-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 14px 22px;
  border-radius: var(--radius-sm);
  text-align: center;
  min-width: 120px;
  transition: border-color 0.3s, transform 0.3s;
}

.stat-card:hover {
  border-color: rgba(245, 185, 66, 0.4);
  transform: translateY(-2px);
}

.stat-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.stat-value {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--cream);
}

.stat-value.live {
  color: #50c878;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #50c878;
  box-shadow: 0 0 8px #50c878;
  animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ========== SECTIONS ========== */
.section {
  position: relative;
  z-index: 1;
  padding: 100px 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 40px;
  color: var(--cream);
}

.section-title.center {
  text-align: center;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-img-wrap {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
}

.about-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 24px;
  transition: transform 0.6s ease;
}

.about-img-wrap:hover .about-img {
  transform: scale(1.04);
}

.about-img-glow {
  position: absolute;
  inset: -2px;
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(245, 185, 66, 0.3), transparent 50%, rgba(245, 185, 66, 0.15));
  z-index: -1;
  opacity: 0.7;
}

.about-body p {
  margin-bottom: 14px;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.about-body .highlight-line {
  color: var(--gold);
  font-weight: 600;
  font-size: 1.15rem;
}

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

.feature-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 32px 24px;
  border-radius: var(--radius);
  text-align: center;
  transition: transform 0.35s, border-color 0.35s, box-shadow 0.35s;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 185, 66, 0.4);
  box-shadow: 0 16px 40px rgba(245, 185, 66, 0.1);
}

.feature-icon {
  font-size: 1.6rem;
  color: var(--gold);
  margin-bottom: 16px;
  opacity: 0.9;
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--cream);
}

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

/* Timeline */
.timeline {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
  padding: 20px 0;
}

.timeline-line {
  position: absolute;
  left: 11px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold), var(--dark-gold), transparent);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  padding-left: 48px;
  padding-bottom: 40px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: 4px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 16px rgba(245, 185, 66, 0.6);
  border: 3px solid var(--black);
}

.timeline-year {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.timeline-content h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--cream);
}

/* Gallery */
.gallery-masonry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery-item {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 1;
  background: var(--glass);
  border: 1px solid var(--glass-border);
}

.gallery-item:nth-child(1) {
  grid-row: span 2;
  aspect-ratio: auto;
}

.gallery-item:nth-child(4) {
  grid-column: span 2;
  aspect-ratio: 2 / 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

/* Token */
.token-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 720px;
  margin: 0 auto;
}

.token-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 24px 28px;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.3s, transform 0.3s;
}

.token-card:hover {
  border-color: rgba(245, 185, 66, 0.35);
  transform: translateY(-2px);
}

.token-card.full {
  grid-column: 1 / -1;
}

.token-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.token-value {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--cream);
}

.token-value.mono {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 0.85rem;
  word-break: break-all;
  color: var(--gold);
}

/* Community */
.community-card {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  background: linear-gradient(145deg, rgba(245, 185, 66, 0.1), rgba(13, 13, 13, 0.6));
  border: 1px solid rgba(245, 185, 66, 0.25);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 56px 40px;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.community-card h2 {
  font-family: var(--font-display);
  font-size: 1.9rem;
  margin-bottom: 12px;
}

.community-card p {
  color: var(--text-muted);
  margin-bottom: 28px;
}

/* FAQ */
.faq-list {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.3s;
}

.faq-item:hover,
.faq-item.open {
  border-color: rgba(245, 185, 66, 0.3);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  font-size: 1rem;
  font-weight: 500;
  text-align: left;
  color: var(--cream);
}

.faq-icon {
  flex-shrink: 0;
  transition: transform 0.3s;
  color: var(--gold);
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.open .faq-a {
  max-height: 120px;
  padding: 0 22px 18px;
}

.faq-a p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.faq-a a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Footer */
.footer {
  position: relative;
  z-index: 1;
  padding: 60px 0 40px;
  border-top: 1px solid var(--glass-border);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
}

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

.footer-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
}

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

.footer-links a:hover {
  color: var(--gold);
}

.footer-ca {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 0.75rem;
  color: rgba(255, 248, 236, 0.4);
  word-break: break-all;
}

.footer-copy {
  font-size: 0.8rem;
  color: rgba(255, 248, 236, 0.35);
}

/* ========== REVEAL ANIMATIONS ========== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* Stagger delays via JS classes */
.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }
.reveal.delay-4 { transition-delay: 0.4s; }

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .mobile-menu {
    display: flex;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-img-wrap {
    max-width: 400px;
    margin: 0 auto;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-masonry {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-item:nth-child(1) {
    grid-row: span 1;
  }

  .gallery-item:nth-child(4) {
    grid-column: span 1;
    aspect-ratio: 1;
  }
}

@media (max-width: 560px) {
  .hero {
    padding: 100px 16px 60px;
  }

  .hero-logo {
    width: 96px;
    height: 96px;
  }

  .ca-address {
    max-width: 140px;
  }

  .stats-bar {
    gap: 10px;
  }

  .stat-card {
    min-width: calc(50% - 6px);
    padding: 12px 14px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

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

  .token-card.full {
    grid-column: 1;
  }

  .gallery-masonry {
    grid-template-columns: 1fr;
  }

  .community-card {
    padding: 40px 24px;
  }

  .section {
    padding: 70px 0;
  }
}
