/* ===== VARIABLES ===== */
:root {
  --bg: #0a0a0a;
  --bg-alt: #0f0f0f;
  --panel: rgba(255,255,255,0.04);
  --border: rgba(255,255,255,0.08);
  --text: #f0f0f0;
  --muted: rgba(255,255,255,0.55);
  --accent: #00ff88;
  --accent2: #00e676;
  --accent-dim: rgba(0,255,136,0.15);
  --radius: 16px;
  --radius-sm: 12px;
  --radius-lg: 24px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: rgba(0,255,136,0.4) rgba(255,255,255,0.04); }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
img { max-width: 100%; display: block; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: rgba(255,255,255,0.02); }
::-webkit-scrollbar-thumb { background: rgba(0,255,136,0.3); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,255,136,0.5); }

/* ===== UTILITIES ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent), var(--accent2), #80ffb4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass-card {
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.glass-card:hover {
  border-color: rgba(0,255,136,0.2);
  box-shadow: 0 8px 40px rgba(0,255,136,0.06);
  transform: translateY(-2px);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #0a0a0a;
  border-color: transparent;
  font-weight: 700;
}
.btn--primary:hover {
  box-shadow: 0 0 30px rgba(0,255,136,0.3);
  transform: translateY(-1px);
}
.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn--ghost:hover {
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.04);
}
.btn--lg { padding: 16px 32px; font-size: 16px; border-radius: var(--radius); }
.btn--sm { padding: 8px 16px; font-size: 13px; }
.btn-arrow { font-size: 18px; transition: transform 0.2s ease; }
.btn--primary:hover .btn-arrow { transform: translateX(3px); }

/* ===== PILL ===== */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 99px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}
.pill--center { margin: 0 auto; }
.pill-dot {
  width: 8px; height: 8px;
  border-radius: 99px;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ===== BACKGROUND ===== */
.bg-effects {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.starfield {
  position: absolute;
  inset: 0;
  opacity: 0.4;
}
.glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 999px;
  filter: blur(120px);
  opacity: 0.3;
}
.g1 {
  left: -200px; top: -200px;
  background: radial-gradient(circle, var(--accent), transparent 70%);
}
.g2 {
  right: -200px; top: 30%;
  background: radial-gradient(circle, rgba(0,230,118,0.4), transparent 70%);
  opacity: 0.2;
}
.g3 {
  left: 30%; bottom: -300px;
  background: radial-gradient(circle, var(--accent), transparent 70%);
  opacity: 0.15;
}

/* ===== FLOATING PARTICLES ===== */
.particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  animation: particleFloat linear infinite;
}
.particle:nth-child(1) { left: 10%; animation-duration: 18s; animation-delay: 0s; }
.particle:nth-child(2) { left: 25%; animation-duration: 22s; animation-delay: 2s; }
.particle:nth-child(3) { left: 40%; animation-duration: 16s; animation-delay: 4s; }
.particle:nth-child(4) { left: 55%; animation-duration: 20s; animation-delay: 1s; }
.particle:nth-child(5) { left: 70%; animation-duration: 24s; animation-delay: 3s; }
.particle:nth-child(6) { left: 85%; animation-duration: 17s; animation-delay: 5s; }
.particle:nth-child(7) { left: 15%; animation-duration: 21s; animation-delay: 6s; }
.particle:nth-child(8) { left: 60%; animation-duration: 19s; animation-delay: 7s; }

@keyframes particleFloat {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 0.4;
  }
  50% {
    opacity: 0.15;
    transform: translateY(50vh) scale(1);
  }
  90% {
    opacity: 0.3;
  }
  100% {
    transform: translateY(-10vh) scale(0.5);
    opacity: 0;
  }
}

/* ===== HERO GRID OVERLAY ===== */
.hero-grid-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, rgba(0,0,0,0.5) 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, rgba(0,0,0,0.5) 0%, transparent 100%);
}

/* ===== SECTION DIVIDER ===== */
.section-divider {
  position: relative;
  z-index: 1;
  height: 2px;
  margin: 0 auto;
  max-width: 800px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.3;
  box-shadow: 0 0 12px rgba(0,255,136,0.3), 0 0 4px rgba(0,255,136,0.2);
}

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  background: rgba(10,10,10,0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo {
  width: 36px; height: 36px;
  border-radius: 10px;
}
.nav-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #00ff88 0%, #00e676 50%, #fff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-link {
  padding: 8px 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: color 0.2s ease, background 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-link:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.2s ease;
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  z-index: 99;
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(20px);
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  flex-direction: column;
  gap: 4px;
}
.mobile-menu.open { display: flex; }
.mobile-menu-link {
  padding: 12px 16px;
  color: var(--muted);
  font-size: 15px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}
.mobile-menu-link:hover { color: var(--text); background: rgba(255,255,255,0.04); }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
}

/* ===== HERO ===== */
.hero {
  position: relative;
  z-index: 1;
  padding: 140px 0 80px;
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.hero > .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-title {
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -2px;
  margin: 20px 0 24px;
}
.hero-sub {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 32px;
}
.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-visual {
  display: flex;
  justify-content: flex-end;
}

/* Mock Card */
.mock-card {
  width: 100%;
  max-width: 520px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(20px);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.mock-card--hero {
  box-shadow: 0 20px 80px rgba(0,0,0,0.5), 0 0 40px rgba(0,255,136,0.08);
  border-color: rgba(0,255,136,0.12);
}
.mock-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.mock-dots { display: flex; gap: 6px; }
.dot {
  width: 10px; height: 10px;
  border-radius: 99px;
}
.dot--red { background: #ef4444; }
.dot--yellow { background: #f59e0b; }
.dot--green { background: #22c55e; }
.mock-title {
  flex: 1;
  color: var(--muted);
  font-size: 12px;
  margin-left: 4px;
}
.mock-pulse {
  width: 10px; height: 10px;
  border-radius: 99px;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(0,255,136,0.4);
  animation: pulse 1.5s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0,255,136,0.4); }
  100% { box-shadow: 0 0 0 20px rgba(0,255,136,0); }
}
.mock-body {
  position: relative;
  height: 320px;
  padding: 14px;
}
.preview-canvas {
  position: absolute;
  inset: 14px;
  width: calc(100% - 28px);
  height: calc(100% - 28px);
  display: block;
  border-radius: var(--radius);
  background: rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.06);
}
.mock-footer {
  padding: 12px 18px;
  border-top: 1px solid rgba(255,255,255,0.05);
  font-size: 12px;
  color: var(--muted);
}

@media (max-width: 960px) {
  .hero > .container { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { justify-content: center; }
  .hero { min-height: auto; padding: 120px 0 60px; }
}

/* ===== SECTIONS ===== */
.section {
  position: relative;
  z-index: 1;
  padding: 100px 0;
}
.section--alt { background: var(--bg-alt); }
.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 900;
  letter-spacing: -1px;
  margin: 16px 0 12px;
}
.section-sub {
  color: var(--muted);
  font-size: 16px;
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ===== HOW IT WORKS ===== */
.steps {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 20px;
}
.step-card {
  flex: 1;
  max-width: 260px;
  padding: 36px 24px;
  text-align: center;
  position: relative;
}
.step-num {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 28px;
  border-radius: 99px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #0a0a0a;
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  height: 48px;
}
.step-icon svg {
  filter: drop-shadow(0 0 6px rgba(0,255,136,0.3));
}
.step-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}
.step-text {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.step-arrow {
  display: flex;
  align-items: center;
  font-size: 24px;
  color: var(--accent);
  opacity: 0.5;
}

@media (max-width: 960px) {
  .steps { flex-wrap: wrap; }
  .step-card { max-width: 45%; }
  .step-arrow { display: none; }
}
@media (max-width: 640px) {
  .steps { flex-direction: column; align-items: center; }
  .step-card { max-width: 100%; }
}

/* ===== FEATURES ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.feature-card {
  padding: 36px 28px;
}
.feature-icon {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
  height: 36px;
}
.feature-icon svg {
  filter: drop-shadow(0 0 4px rgba(0,255,136,0.25));
}
.feature-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}
.feature-text {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

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

/* ===== ASSETS ===== */
.assets-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.asset-card {
  padding: 36px 24px;
  text-align: center;
  cursor: default;
}
.asset-card:hover {
  box-shadow: 0 0 30px rgba(0,255,136,0.1), 0 8px 40px rgba(0,255,136,0.06);
  border-color: rgba(0,255,136,0.25);
}
.asset-logo {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
}
.asset-name {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}
.asset-ticker {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

@media (max-width: 640px) {
  .assets-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== POWERED BY SOLANA ===== */
.powered-by-solana {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 99px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

/* ===== FOOTER ===== */
.footer {
  position: relative;
  z-index: 1;
  padding: 40px 0;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-logo {
  width: 28px; height: 28px;
  border-radius: 8px;
}
.footer-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.02em;
}
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-link {
  color: var(--muted);
  font-size: 14px;
  transition: color 0.2s ease;
}
.footer-link:hover { color: var(--text); }
.footer-copy {
  color: rgba(255,255,255,0.3);
  font-size: 13px;
}

@media (max-width: 640px) {
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
}

/* ===== FADE OVERLAY ===== */
.fade-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: radial-gradient(circle at 30% 30%, rgba(0,255,136,0.15), rgba(0,0,0,0.97));
  opacity: 0;
  pointer-events: none;
  transition: opacity 500ms ease;
}
.fade-overlay.on {
  opacity: 1;
  pointer-events: all;
}

/* ===== REVEAL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal--delay-1 { transition-delay: 0.15s; }
.reveal--delay-2 { transition-delay: 0.3s; }
.reveal--delay-3 { transition-delay: 0.45s; }
