/* === RESET & ROOT === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #030712;
  --surface: #0a1628;
  --surface2: #0f1f3a;
  --border: #1a2d4a;
  --lime: #84F11C;
  --lime-dim: rgba(132, 241, 28, 0.15);
  --cyan: #00d4ff;
  --magenta: #ff2d78;
  --text: #c8d8e8;
  --text-dim: #6a8096;
  --white: #f0f4f8;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Space Grotesk', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--lime); border-radius: 2px; }

/* === NAVBAR === */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 32px;
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(132, 241, 28, 0.1);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.5px;
  color: var(--white);
}

.nav-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  padding: 3px 8px;
  border: 1px solid var(--lime);
  color: var(--lime);
  border-radius: 4px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* === HERO === */
.hero {
  min-height: 100vh;
  padding: 120px 32px 80px;
  position: relative;
  overflow: hidden;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(132, 241, 28, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(132, 241, 28, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 0%, transparent 100%);
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--lime-dim);
  border: 1px solid rgba(132, 241, 28, 0.3);
  border-radius: 100px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--lime);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 24px;
}

.tag-dot {
  width: 6px; height: 6px;
  background: var(--lime);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero-headline {
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -3px;
  color: var(--white);
  margin-bottom: 28px;
}

.hero-headline .lime { color: var(--lime); }

.hero-sub {
  font-size: 17px;
  color: var(--text-dim);
  line-height: 1.7;
  max-width: 440px;
  margin-bottom: 36px;
}

/* Ticker */
.ticker-row {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(10, 22, 40, 0.8);
  backdrop-filter: blur(10px);
  width: fit-content;
}

.ticker-pair {
  padding: 14px 20px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ticker-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.ticker-price {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
}

.ticker-change {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
}

.ticker-change.up { color: var(--lime); }
.ticker-change.down { color: var(--magenta); }

.ticker-sep {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* === PHONE MOCKUP === */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone {
  width: 220px;
  background: #0a1628;
  border: 1.5px solid rgba(132, 241, 28, 0.4);
  border-radius: 36px;
  padding: 3px;
  box-shadow:
    0 0 0 1px rgba(132, 241, 28, 0.1),
    0 0 60px rgba(132, 241, 28, 0.15),
    0 40px 80px rgba(0, 0, 0, 0.8),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  position: relative;
}

.phone-notch {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px; height: 8px;
  background: #0a1628;
  border-radius: 100px;
  z-index: 2;
}

.phone-screen {
  background: #030b1a;
  border-radius: 33px;
  padding: 20px 12px 16px;
  overflow: hidden;
}

.phone-status-bar {
  display: flex;
  justify-content: space-between;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.phone-app {
  background: #071122;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px;
}

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.app-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--lime);
  letter-spacing: 0.5px;
}

.app-status {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  font-weight: 700;
}

.app-status.active { color: var(--lime); }
.status-dot {
  width: 5px; height: 5px;
  background: var(--lime);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

.app-balance {
  margin-bottom: 8px;
}

.balance-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  color: var(--text-dim);
  text-transform: uppercase;
  display: block;
  margin-bottom: 2px;
}

.balance-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
}

.app-chart {
  margin-bottom: 10px;
}

.chart-svg {
  width: 100%;
  height: 40px;
}

.app-data-row {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
}

.app-data-item {
  flex: 1;
  background: rgba(10, 22, 40, 0.6);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px;
  text-align: center;
}

.data-label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 7px;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.data-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  color: var(--white);
}

.data-value.lime { color: var(--lime); }

.app-trade {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(132, 241, 28, 0.05);
  border: 1px solid rgba(132, 241, 28, 0.2);
  border-radius: 8px;
  padding: 6px 8px;
}

.trade-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 7px;
  color: var(--text-dim);
  display: block;
}

.trade-pair {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  color: var(--white);
}

.trade-chain {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  font-weight: 600;
  color: var(--lime);
  background: var(--lime-dim);
  padding: 2px 6px;
  border-radius: 4px;
}

.phone-glow {
  position: absolute;
  inset: -30px;
  background: radial-gradient(circle, rgba(132, 241, 28, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

/* === SECTION SHARED === */
.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--lime);
  margin-bottom: 20px;
}

.section-label.centered {
  justify-content: center;
}

.label-line {
  display: block;
  width: 40px;
  height: 1px;
  background: var(--lime);
  opacity: 0.5;
}

.section-headline {
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -2px;
  color: var(--white);
  margin-bottom: 20px;
}

.section-headline.centered { text-align: center; }
.section-headline .lime { color: var(--lime); }

.section-body {
  font-size: 16px;
  color: var(--text-dim);
  line-height: 1.75;
  max-width: 560px;
}

/* === ARBITRAGE === */
.arbitrage {
  padding: 100px 32px;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(10, 22, 40, 0.4) 50%, var(--bg) 100%);
}

.arbitrage-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.arb-steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  margin-top: 60px;
}

.arb-step {
  display: flex;
  gap: 24px;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: border-color 0.3s;
}

.arb-step:hover { border-color: rgba(132, 241, 28, 0.3); }

.step-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 28px;
  font-weight: 700;
  color: rgba(132, 241, 28, 0.3);
  flex-shrink: 0;
  line-height: 1;
}

.step-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.step-content p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.65;
}

/* === HOW === */
.how {
  padding: 100px 32px;
}

.how-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

/* DEX row */
.dex-row {
  margin-bottom: 24px;
}

.dex-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  position: relative;
}

.dex-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dim);
  min-width: 60px;
}

.dex-price {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  min-width: 70px;
}

.dex-price.right { text-align: right; }

.dex-arrow { flex-shrink: 0; }

.dex-gap {
  position: absolute;
  right: 24px;
  top: -12px;
  background: var(--lime);
  color: #000;
  padding: 4px 10px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.gap-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.gap-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 700;
}

.gap-chart {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 48px;
  margin-bottom: 8px;
}

.gap-bar {
  flex: 1;
  background: var(--border);
  border-radius: 3px;
  transition: all 0.3s;
}

.gap-bar.active {
  background: var(--lime);
  box-shadow: 0 0 12px rgba(132, 241, 28, 0.5);
}

.gap-axis {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Features */
.how-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 32px;
}

.how-feat {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text);
}

.feat-check {
  flex-shrink: 0;
  width: 24px; height: 24px;
  background: var(--lime-dim);
  border: 1px solid rgba(132, 241, 28, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* === STATS === */
.stats {
  padding: 80px 32px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0;
}

.stat-item {
  flex: 1;
  padding: 20px 40px;
  text-align: center;
}

.stat-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  color: var(--lime);
  display: block;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.4;
}

.stat-divider {
  width: 1px;
  height: 80px;
  background: var(--border);
  flex-shrink: 0;
}

/* === CHAINS === */
.chains {
  padding: 100px 32px;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(10, 22, 40, 0.3) 100%);
}

.chains-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.chain-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 48px;
}

.chain-card {
  padding: 28px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  text-align: center;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.chain-card:hover {
  border-color: rgba(132, 241, 28, 0.3);
  transform: translateY(-4px);
}

.chain-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(132, 241, 28, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.chain-icon {
  width: 52px; height: 52px;
  background: var(--lime-dim);
  border: 1px solid rgba(132, 241, 28, 0.2);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.chain-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.chain-note {
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.chain-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-dim);
  border: 1px solid var(--border);
  display: inline-block;
}

.chain-tag.recommend {
  background: var(--lime-dim);
  color: var(--lime);
  border-color: rgba(132, 241, 28, 0.3);
}

/* === CLOSING === */
.closing {
  padding: 120px 32px;
  position: relative;
  text-align: center;
}

.closing-inner {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}

.closing-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse, rgba(132, 241, 28, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.closing-headline {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -2px;
  color: var(--white);
  margin-bottom: 24px;
  position: relative;
}

.closing-headline .lime { color: var(--lime); }

.closing-body {
  font-size: 17px;
  color: var(--text-dim);
  line-height: 1.75;
  margin-bottom: 40px;
  position: relative;
}

.final-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: var(--lime-dim);
  border: 1px solid rgba(132, 241, 28, 0.3);
  border-radius: 100px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--lime);
}

.final-dot {
  width: 8px; height: 8px;
  background: var(--lime);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

/* === FOOTER === */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 32px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}

.footer-logo {
  display: block;
  font-size: 20px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 4px;
}

.footer-tagline {
  font-size: 13px;
  color: var(--text-dim);
}

.footer-build {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-bottom {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.6;
  border-top: 1px solid var(--border);
  padding-top: 20px;
  max-width: 600px;
}

/* === HERO CTA === */
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--lime);
  color: #000;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: all 0.2s;
  width: fit-content;
}

.hero-cta:hover {
  background: #a0ff3a;
  transform: translateY(-1px);
}

.cta-arrow { font-size: 16px; }

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-visual {
    order: -1;
  }

  .hero-sub { max-width: 100%; }

  .ticker-row {
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
  }

  .ticker-pair { padding: 10px 14px; }

  .how-inner { grid-template-columns: 1fr; }

  .arb-steps { grid-template-columns: 1fr; }

  .stats-inner { flex-direction: column; gap: 0; }

  .stat-divider { width: 80%; height: 1px; }

  .chain-grid { grid-template-columns: repeat(2, 1fr); }

  .footer-top { flex-direction: column; gap: 16px; }
}
