/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --background: #0B1220;
  --primary: #B3E23F;
  --secondary: #E6A6B0;
  --text: #EAF2F1;
  --text-muted: #B8C5C3;
  --card-bg: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.1);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  --glow: 0 0 20px rgba(179, 226, 63, 0.3);
}

html {
  scroll-behavior: smooth;
}

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

/* Utility Classes */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--primary);
}

/* Animated Background */
.glub-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* Motion Toggle */
.motion-toggle {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1000;
  background: var(--card-bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.75rem;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.motion-toggle:hover {
  background: var(--primary);
  color: var(--background);
  transform: scale(1.1);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1rem;
  position: relative;
}

.hero-content {
  max-width: 800px;
}

.hero-image-container {
  position: relative;
  margin-bottom: 2rem;
}

.hero-image {
  width: clamp(200px, 40vw, 300px);
  height: clamp(200px, 40vw, 300px);
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--primary);
  box-shadow: var(--glow);
  transition: transform 0.3s ease;
}

.hero-image:hover {
  transform: scale(1.05);
}

.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
  opacity: 0.2;
  border-radius: 50%;
  z-index: -1;
  animation: pulse 2s ease-in-out infinite alternate;
}

@keyframes pulse {
  0% { opacity: 0.1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1.1); }
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
  text-shadow: 0 0 20px rgba(179, 226, 63, 0.5);
}

.hero-subtitle {
  font-size: clamp(1.2rem, 4vw, 1.5rem);
  color: var(--text-muted);
  margin-bottom: 3rem;
}

/* Hero CTAs */
.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 3rem;
  align-items: center;
}

.cta-button {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  min-width: 250px;
  justify-content: center;
}

.cta-primary {
  background: var(--primary);
  color: var(--background);
}

.cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(179, 226, 63, 0.4);
}

.cta-secondary {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--primary);
}

.cta-secondary:hover {
  background: var(--primary);
  color: var(--background);
  transform: translateY(-2px);
}

.cta-icon {
  width: 24px;
  height: 24px;
}

/* Icon Row */
.icon-row {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 2rem;
}

.icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.icon-link:hover {
  transform: scale(1.1);
  background: var(--primary);
  color: var(--background);
  border-color: var(--primary);
}

/* About Section */
.about {
  padding: 5rem 1rem;
  background: linear-gradient(180deg, transparent 0%, rgba(179, 226, 63, 0.05) 100%);
}

.about-text {
  font-size: clamp(1.1rem, 3vw, 1.3rem);
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  color: var(--text-muted);
  line-height: 1.8;
}

/* Banner Section */
.banner-section {
  padding: 3rem 1rem;
  text-align: center;
  background: linear-gradient(180deg, rgba(179, 226, 63, 0.05) 0%, transparent 100%);
}

.banner-image {
  max-width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.banner-image:hover {
  transform: scale(1.02);
}

/* How to Buy Section */
.how-to-buy {
  padding: 5rem 1rem;
}

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

.step-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.step-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.step-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.step-number {
  width: 60px;
  height: 60px;
  background: var(--primary);
  color: var(--background);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 1.5rem;
}

.step-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

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

/* Contract Section */
.contract-section {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.contract-section h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.contract-display {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 1rem 1.5rem;
  backdrop-filter: blur(10px);
}

.contract-code {
  font-family: 'Monaco', 'Menlo', monospace;
  font-size: 0.9rem;
  color: var(--text);
  word-break: break-all;
  flex: 1;
}

.copy-button {
  background: var(--primary);
  color: var(--background);
  border: none;
  padding: 0.5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.copy-button:hover {
  transform: scale(1.1);
  box-shadow: 0 5px 15px rgba(179, 226, 63, 0.3);
}

/* Community CTA */
.community-cta {
  padding: 5rem 1rem;
  background: linear-gradient(180deg, rgba(179, 226, 63, 0.05) 0%, transparent 100%);
}

.community-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 400px;
  margin: 0 auto;
}

.community-button {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 2rem;
  border-radius: 15px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  justify-content: center;
}

.x-button {
  background: #000;
  color: white;
}

.x-button:hover {
  background: #333;
  transform: translateY(-2px);
}



.dex-button {
  background: var(--primary);
  color: var(--background);
}

.dex-button:hover {
  background: #9bcc2e;
  transform: translateY(-2px);
}

/* Footer */
.footer {
  background: var(--card-bg);
  border-top: 1px solid var(--border);
  padding: 3rem 1rem;
  margin-top: 4rem;
}

.footer-content {
  text-align: center;
}

.footer-logo-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-bottom: 1.5rem;
  border: 2px solid var(--primary);
}

.footer-tagline {
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 2rem;
  font-weight: 600;
}

.footer-links {
  display: flex;
  gap: 2rem;
  justify-content: center;
}

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--primary);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--background);
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.toast.show {
  opacity: 1;
  visibility: visible;
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.modal.show {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 20px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 2rem 1rem;
  border-bottom: 1px solid var(--border);
}

.modal-header h3 {
  color: var(--primary);
  font-size: 1.5rem;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: var(--card-bg);
  color: var(--text);
}

.modal-body {
  padding: 2rem;
  text-align: center;
}

.modal-body p {
  margin-bottom: 2rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.modal-cta {
  display: inline-block;
  background: var(--primary);
  color: var(--background);
  padding: 1rem 2rem;
  border-radius: 15px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.modal-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(179, 226, 63, 0.3);
}

/* Responsive Design */
@media (min-width: 768px) {
  .hero-ctas {
    flex-direction: row;
    justify-content: center;
  }
  
  .icon-row {
    gap: 2rem;
  }
  
  .icon-link {
    width: 70px;
    height: 70px;
  }
  
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .community-buttons {
    flex-direction: row;
    max-width: none;
    justify-content: center;
  }
  
  .community-button {
    min-width: 180px;
  }
}

@media (min-width: 1024px) {
  .steps-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .hero-content {
    max-width: 1000px;
  }
  
  .hero-title {
    font-size: 5rem;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .hero-glow {
    animation: none;
  }
}

/* Focus Styles */
button:focus,
a:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Loading States */
.loading {
  opacity: 0.7;
  pointer-events: none;
}

/* Smooth Scrolling for Safari */
@supports (-webkit-overflow-scrolling: touch) {
  html {
    scroll-behavior: auto;
  }
}

.circular-text-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 420px;
  height: 420px;
  z-index: 1;
  pointer-events: none;
}

.circular-text {
  width: 100%;
  height: 100%;
  animation: rotateText 20s linear infinite;
}

.circular-text text {
  font-size: 18px;
  font-weight: 600;
  fill: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  filter: drop-shadow(0 0 8px rgba(179, 226, 63, 0.6));
}

@keyframes rotateText {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
