/* ============================================
   ChainIntel AI - Maximum FOMO Landing Page
   Dark Mode + Animated Multi-Color Gradients
   ============================================ */

:root {
  --bg-black: #0a0a0f;
  --bg-navy: #0d1117;
  --text-white: #ffffff;
  --text-gray: #a0a0b0;
  --cyan: #00d9ff;
  --purple: #b366ff;
  --pink: #ff00ff;
  --magenta: #ff006e;
  --lime: #39ff14;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-black);
  color: var(--text-white);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ============================================
   NAVBAR
   ============================================ */

nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 5%;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 217, 255, 0.2);
  z-index: 1000;
  transition: all 0.3s ease;
}

nav.scrolled {
  padding: 1rem 5%;
  background: rgba(10, 10, 15, 0.95);
  box-shadow: 0 4px 30px rgba(0, 217, 255, 0.15);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--cyan), var(--purple), var(--pink));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-shift 3s ease infinite;
  background-size: 200% 200%;
}

.logo img {
  width: 40px;
  height: 40px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-gray);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.nav-links a:hover {
  color: var(--cyan);
  text-shadow: 0 0 10px var(--cyan);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* ============================================
   HERO SECTION
   ============================================ */

#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 5% 4rem;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at 50% 50%, rgba(0, 217, 255, 0.15), transparent 70%),
              radial-gradient(ellipse at 80% 20%, rgba(179, 102, 255, 0.15), transparent 60%),
              radial-gradient(ellipse at 20% 80%, rgba(255, 0, 255, 0.15), transparent 60%);
  animation: pulse 8s ease-in-out infinite;
  z-index: 0;
}

#network-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--cyan), var(--purple), var(--pink), var(--magenta));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-shift 4s ease infinite;
  background-size: 300% 300%;
  text-shadow: 0 0 80px rgba(0, 217, 255, 0.5);
}

.hero-subtitle {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  color: var(--text-gray);
  margin-bottom: 3rem;
  font-weight: 300;
  letter-spacing: 0.5px;
}

.hero-subtitle .highlight {
  color: var(--cyan);
  font-weight: 600;
  text-shadow: 0 0 20px var(--cyan);
}

.cta-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  color: white;
  box-shadow: 0 4px 30px rgba(0, 217, 255, 0.4);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 40px rgba(0, 217, 255, 0.6);
}

.btn-secondary {
  background: transparent;
  color: var(--cyan);
  border: 2px solid var(--cyan);
  box-shadow: 0 0 20px rgba(0, 217, 255, 0.3);
}

.btn-secondary:hover {
  background: var(--cyan);
  color: var(--bg-black);
  transform: translateY(-3px);
  box-shadow: 0 6px 40px rgba(0, 217, 255, 0.5);
}

/* ============================================
   SECTIONS
   ============================================ */

section {
  padding: 5rem 5%;
  position: relative;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  text-align: center;
  margin-bottom: 3rem;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

.section-subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: var(--text-gray);
  margin-bottom: 4rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   PROBLEM → SOLUTION
   ============================================ */

#problem-solution {
  background: rgba(13, 17, 23, 0.5);
  backdrop-filter: blur(20px);
  position: relative;
  z-index: 10;
}

#problem-solution::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at 30% 50%, rgba(255, 0, 110, 0.08), transparent 60%),
              radial-gradient(ellipse at 70% 50%, rgba(0, 217, 255, 0.08), transparent 60%);
  z-index: -1;
}

.problem-solution {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.card {
  background: rgba(13, 17, 23, 0.6);
  border: 1px solid rgba(0, 217, 255, 0.2);
  border-radius: 20px;
  padding: 2.5rem;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 217, 255, 0.1), rgba(179, 102, 255, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover::before {
  opacity: 1;
}

.card:hover {
  transform: translateY(-10px);
  border-color: var(--cyan);
  box-shadow: 0 10px 50px rgba(0, 217, 255, 0.3);
}

.card h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--cyan);
}

.card p {
  color: var(--text-gray);
  line-height: 1.8;
}

.problem-card {
  border-color: rgba(255, 0, 110, 0.3);
}

.problem-card h3 {
  color: var(--magenta);
}

.problem-card:hover {
  border-color: var(--magenta);
  box-shadow: 0 10px 50px rgba(255, 0, 110, 0.3);
}

/* ============================================
   HOW IT WORKS
   ============================================ */

.steps-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  box-shadow: 0 4px 30px rgba(0, 217, 255, 0.5);
  position: relative;
}

.step-number::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid var(--cyan);
  animation: pulse-ring 2s ease-out infinite;
}

.step h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-white);
}

.step p {
  color: var(--text-gray);
}

/* ============================================
   ENDPOINTS SHOWCASE
   ============================================ */

.endpoints-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

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

.endpoint-card {
  background: rgba(13, 17, 23, 0.8);
  border: 1px solid rgba(179, 102, 255, 0.3);
  border-radius: 15px;
  padding: 2rem;
  transition: all 0.3s ease;
}

.endpoint-card:hover {
  transform: scale(1.05);
  border-color: var(--purple);
  box-shadow: 0 10px 50px rgba(179, 102, 255, 0.4);
}

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

.endpoint-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.endpoint-card h3 {
  font-size: 1.5rem;
  color: var(--purple);
}

.endpoint-card .endpoint-path {
  font-family: 'Courier New', monospace;
  background: rgba(0, 0, 0, 0.5);
  padding: 0.75rem;
  border-radius: 8px;
  color: var(--cyan);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(0, 217, 255, 0.2);
}

.endpoint-card .price {
  display: inline-block;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 700;
  margin-bottom: 1rem;
  box-shadow: 0 4px 20px rgba(0, 217, 255, 0.3);
}

.endpoint-card pre {
  background: rgba(0, 0, 0, 0.7);
  padding: 1rem;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 0.85rem;
  border: 1px solid rgba(57, 255, 20, 0.2);
  color: var(--lime);
}

.badge {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background: rgba(0, 217, 255, 0.2);
  border: 1px solid var(--cyan);
  border-radius: 15px;
  font-size: 0.8rem;
  color: var(--cyan);
  margin-top: 1rem;
}

/* ============================================
   TOKEN UTILITY
   ============================================ */

.token-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.token-card {
  background: rgba(13, 17, 23, 0.8);
  border: 2px solid rgba(255, 0, 255, 0.3);
  border-radius: 20px;
  padding: 2.5rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.token-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 0, 255, 0.1), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.token-card:hover::after {
  opacity: 1;
}

.token-card:hover {
  transform: translateY(-10px) scale(1.05);
  border-color: var(--pink);
  box-shadow: 0 15px 60px rgba(255, 0, 255, 0.5);
}

.token-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.token-card h3 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.token-card ul {
  list-style: none;
  text-align: left;
  margin-top: 1rem;
}

.token-card li {
  color: var(--text-gray);
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
}

.token-card li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--cyan);
}

/* ============================================
   TRACTION / METRICS
   ============================================ */

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.metric-card {
  text-align: center;
  padding: 2rem;
  background: rgba(13, 17, 23, 0.6);
  border: 2px solid rgba(0, 217, 255, 0.3);
  border-radius: 15px;
  transition: all 0.3s ease;
}

.metric-card:hover {
  transform: scale(1.1);
  border-color: var(--cyan);
  box-shadow: 0 10px 50px rgba(0, 217, 255, 0.5);
}

.metric-number {
  font-size: 3rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--cyan), var(--purple), var(--pink));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 30px rgba(0, 217, 255, 0.8);
  margin-bottom: 0.5rem;
}

.metric-label {
  color: var(--text-gray);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ============================================
   ROADMAP
   ============================================ */

.roadmap-timeline {
  position: relative;
  padding: 2rem 0;
  margin-top: 3rem;
}

.roadmap-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--cyan), var(--purple), var(--pink));
  transform: translateX(-50%);
}

.milestone {
  position: relative;
  margin-bottom: 3rem;
  padding: 0 2rem;
}

.milestone:nth-child(odd) {
  text-align: right;
  padding-right: 52%;
}

.milestone:nth-child(even) {
  text-align: left;
  padding-left: 52%;
}

.milestone-dot {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  border-radius: 50%;
  border: 3px solid var(--bg-black);
  box-shadow: 0 0 20px var(--cyan);
  z-index: 1;
}

.milestone h3 {
  font-size: 1.5rem;
  color: var(--cyan);
  margin-bottom: 0.5rem;
}

.milestone p {
  color: var(--text-gray);
}

.milestone-status {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  margin-top: 0.5rem;
  font-weight: 600;
}

.status-live {
  background: rgba(57, 255, 20, 0.2);
  border: 1px solid var(--lime);
  color: var(--lime);
}

.status-progress {
  background: rgba(0, 217, 255, 0.2);
  border: 1px solid var(--cyan);
  color: var(--cyan);
}

.status-planned {
  background: rgba(179, 102, 255, 0.2);
  border: 1px solid var(--purple);
  color: var(--purple);
}

/* ============================================
   COMMUNITY
   ============================================ */

.social-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.social-link {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(13, 17, 23, 0.8);
  border: 2px solid rgba(0, 217, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--cyan);
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  transform: translateY(-5px) scale(1.1);
  border-color: var(--cyan);
  box-shadow: 0 10px 40px rgba(0, 217, 255, 0.5);
  background: var(--cyan);
  color: var(--bg-black);
}

/* ============================================
   FOOTER
   ============================================ */

footer {
  padding: 3rem 5%;
  background: rgba(13, 17, 23, 0.95);
  border-top: 1px solid rgba(0, 217, 255, 0.2);
  text-align: center;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(0, 217, 255, 0.1);
  border: 1px solid var(--cyan);
  border-radius: 20px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

footer p {
  color: var(--text-gray);
  margin-top: 1rem;
}

footer a {
  color: var(--cyan);
  text-decoration: none;
  transition: all 0.3s ease;
}

footer a:hover {
  text-shadow: 0 0 10px var(--cyan);
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.05); }
}

@keyframes pulse-ring {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  nav {
    padding: 1rem 5%;
  }

  .nav-links {
    display: none;
  }

  #hero {
    padding: 6rem 5% 3rem;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  section {
    padding: 3rem 5%;
  }

  .problem-solution,
  .steps-container,
  .endpoints-grid,
  .token-grid,
  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .roadmap-timeline::before {
    left: 20px;
  }

  .milestone {
    padding-left: 60px !important;
    text-align: left !important;
  }

  .milestone:nth-child(odd) {
    padding-right: 0 !important;
  }

  .milestone-dot {
    left: 20px;
    transform: none;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .card {
    padding: 1.5rem;
  }
}
