/* ================================================
   CANCEL $HALFTIME - Meme Coin Website Styles
   ================================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Orbitron:wght@700;800;900&display=swap');

/* CSS Variables */
:root {
  --primary: #ff3131;
  --primary-dark: #cc0000;
  --secondary: #ffd700;
  --accent: #00ff88;
  --bg-dark: #0a0a0f;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.08);
  --text-main: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.6);
  --glow-red: 0 0 40px rgba(255, 49, 49, 0.4);
  --glow-gold: 0 0 40px rgba(255, 215, 0, 0.4);
  --glow-green: 0 0 40px rgba(0, 255, 136, 0.4);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --font-main: 'Space Grotesk', sans-serif;
  --font-display: 'Orbitron', sans-serif;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background: var(--bg-dark);
  color: var(--text-main);
  overflow-x: hidden;
  line-height: 1.6;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ================================================
   Floating Emojis Background
   ================================================ */
.floating-emojis {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.float-emoji {
  position: absolute;
  top: -60px;
  font-size: 2rem;
  opacity: 0.12;
  animation: floatDown 12s linear infinite;
}

@keyframes floatDown {
  0% {
    transform: translateY(-60px) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.12;
  }
  90% {
    opacity: 0.12;
  }
  100% {
    transform: translateY(105vh) rotate(360deg);
    opacity: 0;
  }
}

/* ================================================
   Hero Section
   ================================================ */
.hero {
  position: relative;
  z-index: 1;
  padding: 80px 0 60px;
  text-align: center;
  background: radial-gradient(ellipse at top center, rgba(255, 49, 49, 0.15) 0%, transparent 60%);
}

.badge {
  display: inline-block;
  background: var(--primary);
  color: white;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 8px 24px;
  border-radius: 50px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.badge.pulse {
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 49, 49, 0.6); }
  50% { box-shadow: 0 0 0 12px rgba(255, 49, 49, 0); }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #ff3131, #ffd700, #ff3131);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Glitch Effect */
.glitch {
  position: relative;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-dark);
  -webkit-background-clip: text;
  background-clip: text;
  overflow: hidden;
}

.glitch::before {
  left: 2px;
  text-shadow: -2px 0 var(--primary);
  animation: glitch1 3s infinite linear alternate-reverse;
  -webkit-text-fill-color: transparent;
}

.glitch::after {
  left: -2px;
  text-shadow: 2px 0 var(--secondary);
  animation: glitch2 2s infinite linear alternate-reverse;
  -webkit-text-fill-color: transparent;
}

@keyframes glitch1 {
  0%, 95% { clip-path: inset(0 0 0 0); }
  96% { clip-path: inset(20% 0 60% 0); }
  97% { clip-path: inset(60% 0 10% 0); }
  98% { clip-path: inset(40% 0 30% 0); }
  99% { clip-path: inset(80% 0 5% 0); }
  100% { clip-path: inset(10% 0 70% 0); }
}

@keyframes glitch2 {
  0%, 95% { clip-path: inset(0 0 0 0); }
  96% { clip-path: inset(70% 0 5% 0); }
  97% { clip-path: inset(10% 0 60% 0); }
  98% { clip-path: inset(50% 0 20% 0); }
  99% { clip-path: inset(30% 0 40% 0); }
  100% { clip-path: inset(5% 0 80% 0); }
}

.tagline {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 12px;
  opacity: 0.95;
}

.sub-tagline {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.highlight {
  color: var(--secondary);
  font-weight: 700;
}

/* Hero Image */
.hero-image {
  margin: 0 auto 40px;
  max-width: 400px;
}

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  border: 3px solid rgba(255, 49, 49, 0.4);
  box-shadow: 0 0 40px rgba(255, 49, 49, 0.3), 0 0 80px rgba(255, 49, 49, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-image img:hover {
  transform: scale(1.03);
  box-shadow: 0 0 60px rgba(255, 49, 49, 0.4), 0 0 120px rgba(255, 49, 49, 0.15);
}

/* Hero Stats */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.stat-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 24px 32px;
  min-width: 180px;
  backdrop-filter: blur(10px);
}

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 4px;
}

.stat-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Buttons */
.hero-buttons, .cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 16px 36px;
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border-color: var(--primary);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-red);
}

.btn-glow {
  animation: btnGlow 2s ease-in-out infinite;
}

@keyframes btnGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(255, 49, 49, 0.3); }
  50% { box-shadow: 0 0 40px rgba(255, 49, 49, 0.6), 0 0 80px rgba(255, 49, 49, 0.2); }
}

.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
  border-color: white;
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

.btn-large {
  padding: 18px 44px;
  font-size: 1.1rem;
}

/* ================================================
   Scrolling Ticker
   ================================================ */
.ticker-bar {
  background: var(--primary);
  padding: 12px 0;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  z-index: 1;
}

.ticker-content {
  display: inline-block;
  animation: ticker 30s linear infinite;
}

.ticker-content span {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: white;
  padding: 0 40px;
}

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ================================================
   Sections (shared)
   ================================================ */
.section {
  position: relative;
  z-index: 1;
  padding: 80px 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 12px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 50px;
}

/* ================================================
   Controversy Section
   ================================================ */
.section-controversy {
  background: linear-gradient(180deg, transparent 0%, rgba(255, 49, 49, 0.05) 50%, transparent 100%);
}

.controversy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 32px;
  transition: all 0.4s ease;
  opacity: 0;
  transform: translateY(30px);
}

.card.visible {
  opacity: 1;
  transform: translateY(0);
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 49, 49, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.card-fire {
  position: relative;
  overflow: hidden;
}

.card-fire::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--primary));
  background-size: 200% 100%;
  animation: gradientShift 3s ease infinite;
}

.card-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: var(--secondary);
}

.card p {
  color: var(--text-muted);
  line-height: 1.7;
}

/* ================================================
   Legacy Section
   ================================================ */
.section-legacy {
  background: linear-gradient(180deg, transparent 0%, rgba(255, 215, 0, 0.04) 50%, transparent 100%);
}

.legacy-comparison {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.legacy-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 36px;
  flex: 1;
  min-width: 280px;
  max-width: 420px;
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.4s ease;
}

.legacy-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.legacy-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 50px;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.badge-new {
  background: var(--primary);
  color: white;
}

.legacy-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.legacy-stat {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: var(--secondary);
  margin-bottom: 4px;
}

.legacy-stat-label {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.legacy-card ul {
  list-style: none;
  padding: 0;
  text-align: left;
}

.legacy-card li {
  padding: 8px 0;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.95rem;
}

.legacy-card li:last-child {
  border-bottom: none;
}

.legacy-card li::before {
  content: '✓ ';
  color: var(--accent);
  font-weight: 700;
}

.glow-border {
  border-color: rgba(255, 49, 49, 0.3);
  box-shadow: 0 0 30px rgba(255, 49, 49, 0.1);
}

.legacy-arrow {
  font-size: 3rem;
  color: var(--secondary);
  animation: arrowPulse 1.5s ease-in-out infinite;
}

@keyframes arrowPulse {
  0%, 100% { transform: translateX(0); opacity: 0.5; }
  50% { transform: translateX(10px); opacity: 1; }
}

/* ================================================
   Tokenomics Section
   ================================================ */
.tokenomics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
}

.token-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 28px 20px;
  text-align: center;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
}

.token-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.token-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  border-color: rgba(255, 215, 0, 0.3);
}

.token-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.token-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.token-value {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--secondary);
}

/* ================================================
   How to Buy Section
   ================================================ */
.section-buy {
  background: linear-gradient(180deg, transparent 0%, rgba(0, 255, 136, 0.04) 50%, transparent 100%);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
}

.step-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.step-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-4px);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 900;
  border-radius: 50%;
  margin-bottom: 16px;
}

.step-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--secondary);
}

.step-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ================================================
   Community Section
   ================================================ */
.section-community {
  text-align: center;
}

.community-text {
  max-width: 750px;
  margin: 0 auto 40px;
}

.community-text p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.community-text strong {
  color: var(--text-main);
}

/* ================================================
   FAQ Section
   ================================================ */
.section-faq {
  background: linear-gradient(180deg, transparent 0%, rgba(255, 49, 49, 0.03) 50%, transparent 100%);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 16px;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
}

.faq-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.faq-item:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.15);
}

.faq-item h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  margin-bottom: 12px;
  color: var(--secondary);
}

.faq-item p {
  color: var(--text-muted);
  line-height: 1.7;
}

/* ================================================
   Footer
   ================================================ */
.site-footer {
  position: relative;
  z-index: 1;
  padding: 60px 0 40px;
  text-align: center;
  border-top: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.3);
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 16px;
}

.footer-disclaimer {
  max-width: 600px;
  margin: 0 auto 24px;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
  opacity: 0.7;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 20px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--secondary);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
  opacity: 0.5;
}

/* ================================================
   Responsive
   ================================================ */
@media (max-width: 768px) {
  .hero {
    padding: 60px 0 40px;
  }

  .hero-image {
    max-width: 300px;
  }

  .hero-stats {
    gap: 16px;
  }

  .stat-box {
    min-width: 140px;
    padding: 18px 20px;
  }

  .stat-number {
    font-size: 1.2rem;
  }

  .legacy-comparison {
    flex-direction: column;
  }

  .legacy-arrow {
    transform: rotate(90deg);
  }

  @keyframes arrowPulse {
    0%, 100% { transform: rotate(90deg) translateX(0); opacity: 0.5; }
    50% { transform: rotate(90deg) translateX(10px); opacity: 1; }
  }

  .legacy-card {
    max-width: 100%;
  }

  .btn {
    padding: 14px 28px;
    font-size: 0.9rem;
  }

  .btn-large {
    padding: 16px 32px;
    font-size: 1rem;
  }

  .controversy-grid {
    grid-template-columns: 1fr;
  }

  .tokenomics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 60px 0;
  }
}

@media (max-width: 480px) {
  .hero-image {
    max-width: 240px;
  }

  .hero-stats {
    flex-direction: column;
    align-items: center;
  }

  .stat-box {
    width: 100%;
    max-width: 260px;
  }

  .tokenomics-grid {
    grid-template-columns: 1fr;
  }

  .hero-buttons, .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 300px;
    text-align: center;
  }
}

/* ================================================
   Scanline overlay for extra meme vibes
   ================================================ */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
}
