/* === RESET & BASE === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}
body {
  font-family: 'Space Mono', monospace;
  background: #0a0a0a;
  color: #fff;
  overflow-x: hidden;
  cursor: none;
  width: 100%;
  max-width: 100vw;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* === CUSTOM CURSOR === */
.custom-cursor {
  position: fixed;
  top: 0; left: 0;
  width: 60px; height: 60px;
  background: #ff3333;
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
  color: #fff;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.15s ease, background 0.2s;
  mix-blend-mode: difference;
}
.custom-cursor.active { transform: translate(-50%, -50%) scale(1); }
.custom-cursor.hover {
  transform: translate(-50%, -50%) scale(1.8);
  background: #ff0;
  color: #000;
}

/* === FAH ENTRY OVERLAY === */
.fah-entry {
  position: fixed; inset: 0;
  background: #000;
  z-index: 100000;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.fah-entry-inner { text-align: center; }
.fah-entry-text {
  font-family: 'Inter', sans-serif;
  font-size: clamp(80px, 20vw, 300px);
  font-weight: 900;
  letter-spacing: -0.05em;
  color: #ff3333;
  text-shadow: 0 0 60px rgba(255, 51, 51, 0.5), 0 0 120px rgba(255, 51, 51, 0.3);
  animation: fahPulse 0.8s ease-in-out infinite alternate;
}
.fah-entry-sub {
  font-size: 14px;
  color: #555;
  margin-top: 20px;
  text-transform: uppercase;
  letter-spacing: 4px;
  animation: blink 1.5s ease-in-out infinite;
}
/* Entry hide handled by GSAP */

@keyframes fahPulse {
  from { transform: scale(1); }
  to { transform: scale(1.05); text-shadow: 0 0 80px rgba(255, 51, 51, 0.8), 0 0 160px rgba(255, 51, 51, 0.4); }
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* === NAVBAR === */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 9999;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 40px;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transform: translateY(-100%);
  transition: transform 0.5s ease;
}
.navbar.visible { transform: translateY(0); }
.nav-logo {
  font-family: 'Inter', sans-serif;
  font-size: 24px; font-weight: 900;
  color: #ff3333;
}
.nav-links { display: flex; gap: 30px; }
.nav-links a {
  font-size: 12px; letter-spacing: 2px;
  text-transform: uppercase;
  color: #888;
  transition: color 0.3s;
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute;
  bottom: -4px; left: 0; width: 0; height: 1px;
  background: #ff3333;
  transition: width 0.3s;
}
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { width: 100%; }
.nav-sound {
  background: none; border: 1px solid #333;
  color: #888; font-family: 'Space Mono', monospace;
  font-size: 10px; padding: 8px 16px;
  letter-spacing: 2px; cursor: pointer;
  transition: all 0.3s;
}
.nav-sound:hover { border-color: #ff3333; color: #ff3333; }

/* === HERO === */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
  max-width: 100vw;
}
.hero-bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridMove 20s linear infinite;
}
@keyframes gridMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(60px, 60px); }
}
.hero-content {
  position: relative; z-index: 2;
  text-align: center;
  width: 100%;
}
.hero-fah-container { position: relative; display: inline-block; }
.hero-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(100px, 18vw, 350px);
  font-weight: 900;
  letter-spacing: -0.05em;
  color: #fff;
  position: relative;
  line-height: 0.9;
}
.hero-title::before {
  content: attr(data-text);
  position: absolute; inset: 0;
  color: #ff3333;
  clip-path: inset(0 0 50% 0);
  animation: glitchTop 3s ease-in-out infinite;
}
.hero-title::after {
  content: attr(data-text);
  position: absolute; inset: 0;
  color: #00ff88;
  clip-path: inset(50% 0 0 0);
  animation: glitchBottom 3s ease-in-out infinite;
}
@keyframes glitchTop {
  0%, 90%, 100% { transform: translate(0); }
  92% { transform: translate(-8px, -2px); }
  94% { transform: translate(8px, 2px); }
  96% { transform: translate(-4px, 1px); }
}
@keyframes glitchBottom {
  0%, 90%, 100% { transform: translate(0); }
  91% { transform: translate(6px, 1px); }
  93% { transform: translate(-6px, -1px); }
  95% { transform: translate(3px, 2px); }
}
.hero-subtitle {
  font-size: clamp(12px, 2vw, 18px);
  letter-spacing: 8px;
  color: #ff3333;
  margin-top: 20px;
  text-transform: uppercase;
}
.hero-wojaks {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: -1;
}
.hero-wojak {
  position: absolute;
  opacity: 0.15;
  filter: grayscale(1) contrast(1.5);
  border-radius: 50%;
  object-fit: cover;
}
.hw-1 { width: 120px; height: 120px; top: 10%; left: 5%; animation: float1 6s ease-in-out infinite; }
.hw-2 { width: 80px; height: 80px; top: 20%; right: 10%; animation: float2 5s ease-in-out infinite; }
.hw-3 { width: 100px; height: 100px; bottom: 20%; left: 15%; animation: float3 7s ease-in-out infinite; }
.hw-4 { width: 90px; height: 90px; bottom: 15%; right: 8%; animation: float1 8s ease-in-out infinite reverse; }
@keyframes float1 { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-20px) rotate(5deg); } }
@keyframes float2 { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-30px) rotate(-8deg); } }
@keyframes float3 { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-15px) rotate(3deg); } }

/* Hero Buttons */
.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
}
.hero-btn {
  padding: 14px 28px;
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: 8px;
  transition: all 0.3s;
  text-decoration: none;
  cursor: pointer;
}
.btn-x {
  background: #fff;
  color: #000;
  border: 2px solid #fff;
}
.btn-x:hover {
  background: transparent;
  color: #fff;
}
.btn-tg {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}
.btn-tg:hover {
  background: #fff;
  color: #000;
}
.btn-buy {
  background: #ff3333;
  color: #fff;
  border: 2px solid #ff3333;
}
.btn-buy:hover {
  background: #ff5555;
  border-color: #ff5555;
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(255, 51, 51, 0.4);
}

/* Hero Ticker */
.hero-ticker {
  width: 100%;
  max-width: 100vw;
  overflow: hidden;
  margin-top: 60px;
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: 12px 0;
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: tickerScroll 20s linear infinite;
}
.ticker-track span {
  font-size: 14px;
  letter-spacing: 3px;
  color: #ff3333;
  white-space: nowrap;
  text-transform: uppercase;
}
@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  text-align: center;
  font-size: 10px;
  letter-spacing: 3px;
  color: #555;
  animation: blink 2s ease-in-out infinite;
}
.scroll-arrow { font-size: 20px; margin-top: 8px; }

/* === SECTIONS === */
.section {
  padding: 120px 40px;
  position: relative;
}
.section-dark { background: #0d0d0d; }
.section-scenarios { background: #0a0a0a; }
.section-tokenomics {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a0a0a 100%);
}
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.section-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(40px, 8vw, 100px);
  font-weight: 900;
  text-align: center;
  margin-bottom: 80px;
  letter-spacing: -0.03em;
}

/* === ABOUT CARDS === */
.about-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}
.about-card {
  background: #111;
  border: 1px solid #1a1a1a;
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}
.about-card:hover {
  border-color: #ff3333;
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(255, 51, 51, 0.15);
}
.about-card:hover .about-fah {
  opacity: 1;
  transform: scale(1);
}
.about-img {
  width: 100px; height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
  filter: grayscale(1);
  transition: filter 0.3s;
}
.about-card:hover .about-img { filter: grayscale(0); }
.about-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: #ff3333;
}
.about-card p {
  font-size: 14px;
  color: #666;
}
.about-fah {
  position: absolute;
  inset: 0;
  background: rgba(255, 51, 51, 0.9);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Inter', sans-serif;
  font-size: 60px; font-weight: 900;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s;
  cursor: pointer;
}

/* About quote */
.about-quote {
  text-align: center;
  padding: 40px;
  border: 1px solid #1a1a1a;
  border-radius: 16px;
  background: #111;
}
.about-quote p {
  font-size: 20px;
  line-height: 1.6;
  color: #ccc;
}
.about-quote span {
  display: block;
  margin-top: 16px;
  color: #555;
  font-size: 12px;
}

/* === SCENARIOS === */
.scenarios-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.scenario {
  display: flex;
  align-items: center;
  padding: 24px 32px;
  background: #111;
  border: 1px solid #1a1a1a;
  border-radius: 12px;
  transition: all 0.3s;
  cursor: pointer;
}
.scenario:hover {
  border-color: #ff3333;
  background: #1a0a0a;
  transform: translateX(8px);
}
.scenario:hover .scenario-fah {
  opacity: 1;
  color: #ff3333;
}
.scenario-emoji {
  font-size: 36px;
  margin-right: 24px;
  min-width: 50px;
}
.scenario-text {
  flex: 1;
  font-size: 18px;
  color: #ccc;
}
.scenario-fah {
  font-family: 'Inter', sans-serif;
  font-size: 36px;
  font-weight: 900;
  color: #333;
  opacity: 0.3;
  transition: all 0.3s;
}

/* === GALLERY === */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.gallery-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #1a1a1a;
  cursor: pointer;
  transition: all 0.4s;
}
.gallery-item:hover {
  transform: scale(1.03);
  border-color: #ff3333;
  box-shadow: 0 10px 40px rgba(255, 51, 51, 0.2);
}
.gallery-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  filter: grayscale(0.5);
  transition: filter 0.3s;
}
.gallery-item:hover img { filter: grayscale(0); }
.gallery-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 20px 16px;
  background: linear-gradient(transparent 0%, rgba(0,0,0,0.7) 30%, rgba(0,0,0,0.95) 100%);
  font-size: 13px;
  color: #fff;
  line-height: 1.5;
  text-shadow: 0 1px 4px rgba(0,0,0,1), 0 0 10px rgba(0,0,0,0.8);
}
.gallery-caption strong { color: #ff3333; font-size: 18px; text-shadow: 0 0 8px rgba(255,51,51,0.6); }

/* === TOKENOMICS === */
.tokenomics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}
.token-stat {
  text-align: center;
  padding: 40px 20px;
  background: rgba(255, 51, 51, 0.05);
  border: 1px solid rgba(255, 51, 51, 0.15);
  border-radius: 16px;
  transition: all 0.3s;
}
.token-stat:hover {
  background: rgba(255, 51, 51, 0.1);
  border-color: #ff3333;
  transform: translateY(-4px);
}
.token-number {
  font-family: 'Inter', sans-serif;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 900;
  color: #ff3333;
  margin-bottom: 8px;
}
.token-label {
  font-size: 12px;
  letter-spacing: 3px;
  color: #888;
  margin-bottom: 4px;
}
.token-sub {
  font-size: 11px;
  color: #444;
  font-style: italic;
}

/* Contract Address */
.token-ca {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 20px;
  background: #111;
  border: 1px solid #1a1a1a;
  border-radius: 12px;
  flex-wrap: wrap;
}
.ca-label {
  font-size: 10px;
  letter-spacing: 3px;
  color: #555;
}
.ca-address {
  font-size: 14px;
  color: #ff3333;
  background: #1a1a1a;
  padding: 8px 16px;
  border-radius: 6px;
}
.ca-copy {
  background: #ff3333;
  color: #fff;
  border: none;
  padding: 8px 20px;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s;
}
.ca-copy:hover { background: #ff5555; transform: scale(1.05); }

/* === STEPS === */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.step {
  padding: 40px 24px;
  background: #111;
  border: 1px solid #1a1a1a;
  border-radius: 16px;
  transition: all 0.3s;
}
.step:hover {
  border-color: #ff3333;
  transform: translateY(-4px);
}
.step-number {
  font-family: 'Inter', sans-serif;
  font-size: 48px;
  font-weight: 900;
  color: #ff3333;
  opacity: 0.3;
  margin-bottom: 16px;
}
.step h3 {
  font-size: 16px;
  margin-bottom: 12px;
  color: #fff;
}
.step p {
  font-size: 13px;
  color: #888;
  line-height: 1.6;
}
.step strong { color: #ff3333; }

/* === FOOTER === */
.footer {
  padding: 60px 40px 0;
  border-top: 1px solid #1a1a1a;
  overflow: hidden;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 40px;
}
.footer-logo {
  font-family: 'Inter', sans-serif;
  font-size: 32px;
  font-weight: 900;
  color: #ff3333;
}
.footer-links { display: flex; gap: 24px; }
.footer-links a {
  font-size: 11px;
  letter-spacing: 2px;
  color: #555;
  transition: color 0.3s;
}
.footer-links a:hover { color: #ff3333; }
.footer-copy {
  font-size: 11px;
  color: #333;
}
.footer-fah {
  padding: 20px 0;
  white-space: nowrap;
  overflow: hidden;
  max-width: 100vw;
  font-family: 'Inter', sans-serif;
  font-size: clamp(60px, 10vw, 120px);
  font-weight: 900;
  color: #111;
  animation: tickerScroll 15s linear infinite;
  display: flex;
  width: max-content;
}
.footer-fah span { margin-right: 20px; }

/* === FAH CANVAS === */
#fahCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.8;
}

/* === REVEAL ANIMATIONS === */
.reveal-text {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1s cubic-bezier(0.77, 0, 0.175, 1);
}
.reveal-text.revealed { clip-path: inset(0 0% 0 0); }

.reveal-up {
  opacity: 0;
  transform: translateY(60px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transition-delay: var(--delay, 0s);
}
.reveal-up.revealed { opacity: 1; transform: translateY(0); }

.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal-left.revealed { opacity: 1; transform: translateX(0); }

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal-right.revealed { opacity: 1; transform: translateX(0); }

/* === NOISE OVERLAY === */
body::after {
  content: '';
  position: fixed; inset: 0;
  background: 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)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 99998;
  opacity: 0.5;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .about-grid, .tokenomics-grid, .steps-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .navbar { padding: 16px 20px; }
  .nav-links { display: none; }
  .section { padding: 80px 20px; }
  .footer-inner { flex-direction: column; gap: 20px; text-align: center; }
}
@media (max-width: 480px) {
  .about-grid, .tokenomics-grid, .steps-grid { grid-template-columns: 1fr; }
  .hero-wojak { display: none; }
}

/* Hide custom cursor on touch devices */
@media (hover: none), (pointer: coarse) {
  .custom-cursor { display: none !important; }
  body { cursor: auto; }
  * { cursor: auto !important; }
}
