/* Base Reset & Variables */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #0a0a0f;
  --terminal-bg: #141419;
  --text: #e2e2e2;
  --green: #00ff7f;
  --green-glow: rgba(0, 255, 127, 0.15);
  --green-dark: #00cc66;
  --font-mono: 'VT323', monospace;
}

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

/* Background Elements */
.bg-wrapper {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: radial-gradient(circle at 50% 50%, 
    rgba(0,255,127,0.03) 0%,
    rgba(0,255,127,0.02) 20%,
    rgba(0,0,0,0) 70%
  );
}

/* Animated Background Candles */
.floating-candles {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.floating-candle {
  position: absolute;
  width: 3px;
  height: 40px;
  background: linear-gradient(to top, var(--green) 0%, transparent 100%);
  filter: blur(1px);
  opacity: 0;
  animation: candleFloat var(--duration, 8s) ease-out forwards;
}

.candle-glow {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, var(--green-glow) 0%, transparent 70%);
  filter: blur(3px);
  opacity: 0.5;
  animation: glowPulse var(--duration, 8s) ease-in-out infinite;
}

@keyframes candleFloat {
  0% {
    transform: translateY(100vh) scale(1);
    opacity: 0;
  }
  10% {
    opacity: 0.3;
  }
  90% {
    opacity: 0.3;
  }
  100% {
    transform: translateY(-100px) scale(0.5);
    opacity: 0;
  }
}

.grid-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image: 
    linear-gradient(rgba(0,255,127,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,255,127,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  transform: perspective(500px) rotateX(60deg);
  transform-origin: top;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  from { transform: perspective(500px) rotateX(60deg) translateY(0); }
  to { transform: perspective(500px) rotateX(60deg) translateY(40px); }
}

.noise {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.15;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  background-size: 150px;
}

.vignette {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background: radial-gradient(circle at center, transparent 30%, rgba(0,0,0,0.4));
}

main {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Hero Section */
.hero {
  flex: 1;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
  animation: fadeIn 1s ease-out;
}

.hero-text {
  text-align: center;
  margin-top: clamp(2rem, 10vh, 4rem);
}

.hero-text h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 1;
  letter-spacing: 2px;
}

.title-line {
  color: var(--text);
  text-shadow: 0 0 10px rgba(255,255,255,0.3);
  animation: slideDown 0.5s ease-out;
}

.title-accent {
  color: var(--green);
  text-shadow: 0 0 20px var(--green-glow);
  animation: slideUp 0.5s ease-out, glowPulse 3s ease-in-out infinite;
}

.hero-subtitle {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  margin-top: 1rem;
  color: var(--green-dark);
  opacity: 0.8;
  animation: fadeIn 0.5s ease-out 0.3s both;
}

.hero-content {
  display: flex;
  gap: clamp(2rem, 5vw, 4rem);
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  padding: 0 1rem;
}

.content-left, .content-right {
  flex: 1;
  min-width: min(100%, 500px);
  max-width: 600px;
  animation: fadeIn 0.5s ease-out 0.5s both;
}

/* Terminal Window */
.terminal {
  background: var(--terminal-bg);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  margin-bottom: 2rem;
}

.terminal-header {
  background: #2a2a2a;
  padding: 8px;
  display: flex;
  gap: 6px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff5f56;
}

.dot:nth-child(2) { background: #ffbd2e; }
.dot:nth-child(3) { background: #27c93f; }

.terminal-body {
  padding: 1.5rem;
  font-size: 1.2rem;
}

.typing {
  color: var(--text);
  border-right: 0.15em solid var(--text);
  white-space: nowrap;
  animation: typing 3s steps(30, end), blink-caret .75s step-end infinite;
}

.response {
  margin-top: 1rem;
  opacity: 0;
  animation: fadeIn 0.5s 3s forwards;
}

.green {
  color: var(--green);
}

/* Contract Box */
.contract-box {
  background: var(--terminal-bg);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 2rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.contract-label {
  color: var(--green);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.contract-display {
  display: flex;
  gap: 1rem;
  align-items: center;
  background: rgba(0,0,0,0.3);
  padding: 0.75rem;
  border-radius: 4px;
}

#contract-address {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 1.1rem;
}

.copy-btn {
  background: var(--green);
  color: var(--bg);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-family: var(--font-mono);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, filter 0.2s;
}

.copy-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.copy-btn .success {
  display: none;
}

.copy-btn.copied .default {
  display: none;
}

.copy-btn.copied .success {
  display: inline;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.primary-btn, .secondary-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 1.5rem;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s;
}

.primary-btn {
  background: var(--green);
  color: var(--bg);
}

.primary-btn.glow {
  box-shadow: 0 0 20px var(--green-glow);
}

.btn-shine {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 0%,
    rgba(255,255,255,0.1) 50%,
    transparent 100%
  );
  transform: rotate(45deg);
  animation: shine 3s ease-in-out infinite;
}

.secondary-btn {
  background: rgba(29, 161, 242, 0.2);
  color: #1DA1F2;
  border: 1px solid #1DA1F2;
}

.secondary-btn svg {
  width: 1.5rem;
  height: 1.5rem;
}

.primary-btn:hover, .secondary-btn:hover {
  transform: translateY(-2px);
}

/* Images */
.main-image-container {
  position: relative;
  width: 100%;
  padding-top: 2rem;
}

.image-wrap {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  transform: perspective(1000px) rotateY(-5deg);
  transition: transform 0.3s ease;
}

.image-wrap:hover {
  transform: perspective(1000px) rotateY(0deg);
}

.image-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

.chart-overlay {
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 50%;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  transform: perspective(1000px) rotateY(5deg);
  transition: transform 0.3s ease;
}

.chart-overlay:hover {
  transform: perspective(1000px) rotateY(0deg);
}

.chart-preview {
  width: 100%;
  height: auto;
  display: block;
}

.image-glow, .chart-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.image-glow {
  background: radial-gradient(circle at 50% 50%, 
    var(--green-glow) 0%,
    transparent 70%
  );
  mix-blend-mode: screen;
  opacity: 0.5;
  animation: imagePulse 4s ease-in-out infinite;
}

.chart-glow {
  background: linear-gradient(180deg,
    transparent 0%,
    var(--green-glow) 50%,
    transparent 100%
  );
  mix-blend-mode: screen;
  opacity: 0.3;
  animation: chartFlow 3s ease-in-out infinite;
}

/* Stats Section */
.stats {
  display: flex;
  justify-content: center;
  gap: 4rem;
  padding: 4rem 2rem;
  background: linear-gradient(to bottom,
    transparent,
    rgba(0,0,0,0.3)
  );
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
  min-width: 200px;
}

.stat-value {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: bold;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 20px var(--green-glow);
}

.stat-label {
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  color: var(--text);
  opacity: 0.9;
}

/* Vibes Section */
.vibes {
  padding: 4rem 2rem;
  text-align: center;
  background: linear-gradient(to bottom,
    transparent,
    rgba(0,0,0,0.3)
  );
}

.vibes-content {
  max-width: 800px;
  margin: 0 auto;
}

.vibes h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--green);
  margin-bottom: 1.5rem;
  text-shadow: 0 0 10px var(--green-glow);
}

.vibes p {
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  line-height: 1.6;
  color: var(--text);
  opacity: 0.9;
}

/* Animations */
@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

@keyframes blink-caret {
  from, to { border-color: transparent }
  50% { border-color: var(--text) }
}

@keyframes fadeIn {
  to { opacity: 1 }
}

@keyframes glowPulse {
  0% { text-shadow: 0 0 20px var(--green-glow); }
  50% { text-shadow: 0 0 40px var(--green-glow); }
  100% { text-shadow: 0 0 20px var(--green-glow); }
}

@keyframes shine {
  0% { transform: rotate(45deg) translateY(-100%); }
  100% { transform: rotate(45deg) translateY(100%); }
}

@keyframes imagePulse {
  0% { opacity: 0.3; }
  50% { opacity: 0.6; }
  100% { opacity: 0.3; }
}

@keyframes chartFlow {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

@keyframes slideDown {
  from { 
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideUp {
  from { 
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    padding: 1rem;
    gap: 2rem;
  }

  .hero-text {
    margin-top: 2rem;
  }

  .hero-content {
    gap: 2rem;
  }

  .content-left, .content-right {
    padding: 0 0.5rem;
  }

  .terminal-body {
    font-size: 1rem;
    padding: 1rem;
  }

  .primary-btn, .secondary-btn {
    font-size: 1.2rem;
    padding: 0.8rem 1.5rem;
    width: 100%;
    justify-content: center;
  }

  .contract-display {
    flex-direction: column;
    gap: 0.5rem;
  }

  .copy-btn {
    width: 100%;
  }

  .main-image-container {
    padding-top: 1rem;
    padding-bottom: 3rem;
  }

  .chart-overlay {
    bottom: -20px;
    right: -10px;
    width: 45%;
  }

  .stats {
    padding: 2rem 1rem;
    gap: 2rem;
  }

  .stat-item {
    min-width: 140px;
    padding: 1rem;
  }

  .stat-value {
    font-size: 2.5rem;
  }

  .stat-label {
    font-size: 1.1rem;
  }

  .vibes {
    padding: 3rem 1rem;
  }
} 

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

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .chart-overlay {
    width: 50%;
    right: 0;
  }

  .action-buttons {
    flex-direction: column;
    gap: 1rem;
  }

  .stats {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .stat-item {
    width: 100%;
    max-width: 200px;
  }
} 