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

:root {
  --bg: #06060b;
  --bg-card: #0c0c14;
  --bg-card-hover: #10101c;
  --border: #151525;
  --border-light: #1a1a30;
  --text: #d0d0e0;
  --text-dim: #6a6a80;
  --text-muted: #44445a;
  --white: #f0f0ff;
  --green: #10b981;
  --green-dim: rgba(16, 185, 129, 0.15);
  --green-border: rgba(16, 185, 129, 0.25);
  --purple: #8b5cf6;
  --purple-dim: rgba(139, 92, 246, 0.12);
  --amber: #f59e0b;
  --amber-dim: rgba(245, 158, 11, 0.12);
  --red: #ef4444;
  --red-dim: rgba(239, 68, 68, 0.12);
  --blue: #3b82f6;
  --blue-dim: rgba(59, 130, 246, 0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

html { scroll-behavior: smooth; }

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

/* ============ BACKGROUND FX ============ */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(16, 185, 129, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 185, 129, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}

.bg-glow-1 {
  width: 600px;
  height: 600px;
  top: -200px;
  left: -100px;
  background: rgba(16, 185, 129, 0.06);
}

.bg-glow-2 {
  width: 500px;
  height: 500px;
  bottom: 20%;
  right: -150px;
  background: rgba(139, 92, 246, 0.04);
}

/* ============ CONTAINER ============ */
.container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============ NAV ============ */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
}

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

.nav-tag {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-left: 10px;
  vertical-align: middle;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-link {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-link:hover { color: var(--green); }

.status-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-badge.running {
  background: var(--green-dim);
  color: var(--green);
  border: 1px solid var(--green-border);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  50% { opacity: 0.5; box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
}

/* ============ HERO ============ */
.hero {
  padding: 80px 0 60px;
  max-width: 800px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--green);
  margin-bottom: 20px;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s ease-in-out infinite;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.text-gradient {
  background: linear-gradient(135deg, var(--green), #34d399, var(--amber));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-green { color: var(--green); font-weight: 600; }

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-dim);
  line-height: 1.7;
  max-width: 640px;
}

.hero-sub a {
  color: var(--green);
  text-decoration: none;
  border-bottom: 1px solid var(--green-border);
  transition: border-color 0.2s;
}

.hero-sub a:hover { border-color: var(--green); }

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
}

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

.btn-primary:hover {
  background: #0fa874;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

.btn-ghost {
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--border-light);
}

.btn-ghost:hover {
  color: var(--white);
  border-color: var(--text-dim);
}

/* ============ STORY ============ */
.story-section {
  padding: 40px 0 60px;
}

.story-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 16px;
}

.story-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.3s;
}

.story-card:hover { border-color: var(--border-light); }

.story-main {
  border-color: var(--green-border);
}

.story-main:hover { border-color: var(--green); }

.story-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.story-stat {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 12px;
}

.story-stat-sm {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.story-card p {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ============ PIPELINE ============ */
.pipeline-section {
  padding: 60px 0;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.section-sub {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 40px;
}

.pipeline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 40px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow-x: auto;
}

.pipe-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 130px;
}

.pipe-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  background: var(--purple-dim);
  color: var(--purple);
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.pipe-icon svg { width: 22px; height: 22px; }

.pipe-icon.sol {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(16, 185, 129, 0.15));
  color: var(--green);
  border-color: var(--green-border);
}

.pipe-icon.bridge {
  background: var(--amber-dim);
  color: var(--amber);
  border-color: rgba(245, 158, 11, 0.2);
}

.pipe-icon.eth {
  background: var(--blue-dim);
  color: var(--blue);
  border-color: rgba(59, 130, 246, 0.2);
}

.pipe-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
}

.pipe-detail {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.pipe-arrow {
  font-size: 1.5rem;
  color: var(--text-muted);
  padding: 0 20px;
  position: relative;
  top: -12px;
}

/* ============ LIVE STATS ============ */
.info-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.info-label {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
}

.info-value {
  font-size: 0.78rem;
  color: var(--text-dim);
  word-break: break-all;
}

.mono { font-family: var(--font-mono); }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 48px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all 0.3s;
}

.card:hover {
  border-color: var(--border-light);
  background: var(--bg-card-hover);
}

.card-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.card-value {
  font-family: var(--font-mono);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--white);
}

.card-unit {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-left: 6px;
  font-weight: 500;
}

.card-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ============ TABLES ============ */
.tables-section {
  padding-bottom: 40px;
}

.table-block {
  margin-bottom: 32px;
}

.table-block h3 {
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.table-tag {
  font-size: 0.65rem;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--amber-dim);
  color: var(--amber);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.table-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}

th {
  text-align: left;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.65rem;
  border-bottom: 1px solid var(--border);
}

td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-dim);
}

tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255, 255, 255, 0.015); }

.empty {
  text-align: center;
  padding: 48px 16px;
  color: var(--text-muted);
  font-style: italic;
}

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Badges */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.badge.success, .badge.fulfilled { background: var(--green-dim); color: var(--green); }
.badge.failed { background: var(--red-dim); color: var(--red); }
.badge.skipped { background: var(--amber-dim); color: var(--amber); }
.badge.partial { background: var(--purple-dim); color: var(--purple); }
.badge.pending { background: rgba(107, 114, 128, 0.15); color: #6b7280; }

.truncate {
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
  vertical-align: bottom;
}

/* ============ PAGINATION ============ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.01);
}

.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: transparent;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.page-btn:hover:not(.disabled):not(.active) {
  border-color: var(--green-border);
  color: var(--green);
  background: var(--green-dim);
}

.page-btn.active {
  background: var(--green);
  color: #000;
  border-color: var(--green);
  font-weight: 700;
}

.page-btn.disabled {
  opacity: 0.3;
  cursor: default;
}

.page-ellipsis {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0 4px;
}

.page-info {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-left: 8px;
}

/* ============ QUOTES ============ */
.quotes-section {
  padding: 40px 0 60px;
}

.quotes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.quote-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  border-left: 3px solid var(--green);
  transition: border-color 0.3s;
}

.quote-card:hover { border-left-color: var(--amber); }

.quote-card p {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 12px;
  font-style: italic;
}

.quote-card cite {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: normal;
  font-family: var(--font-mono);
}

/* ============ VISION ============ */
.vision-section {
  padding: 60px 0;
  border-top: 1px solid var(--border);
}

.vision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.vision-text h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
}

.vision-text p {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 12px;
}

.vision-text strong { color: var(--white); }

.vision-features {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.vision-feat {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.feat-icon {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--green);
  background: var(--green-dim);
  border: 1px solid var(--green-border);
  border-radius: 6px;
  padding: 4px 8px;
  min-width: 32px;
  text-align: center;
}

.vision-feat strong {
  display: block;
  font-size: 0.85rem;
  color: var(--white);
  margin-bottom: 2px;
}

.vision-feat span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Terminal */
.vision-terminal {
  background: #0a0a12;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border);
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.terminal-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-light);
}

.terminal-dots span:first-child { background: #ef4444; }
.terminal-dots span:nth-child(2) { background: #f59e0b; }
.terminal-dots span:last-child { background: #10b981; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

.terminal-body {
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.8;
  min-height: 240px;
}

.term-line {
  color: var(--text-dim);
}

.term-time { color: var(--text-muted); }
.term-info { color: var(--purple); }
.term-ok { color: var(--green); }
.term-warn { color: var(--amber); }
.term-err { color: var(--red); }

.term-cursor::after {
  content: '';
  display: inline-block;
  width: 7px;
  height: 14px;
  background: var(--green);
  margin-left: 2px;
  animation: blink 1s step-end infinite;
  vertical-align: text-bottom;
}

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

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

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

.footer-brand {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
}

.footer-tag {
  font-size: 0.6rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-left: 8px;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  font-size: 0.78rem;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--green); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.footer-built a {
  color: var(--green);
  text-decoration: none;
  border-bottom: 1px dashed var(--green-border);
}

.footer-built a:hover { border-bottom-style: solid; }

/* ============ NAV SOCIAL ============ */
.nav-social {
  display: flex;
  align-items: center;
  padding: 6px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}

.nav-social:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  text-decoration: none;
}

/* ============ CONTRACT ADDRESS ============ */
.contract-section {
  padding: 0 0 40px;
}

.contract-card {
  background: var(--bg-card);
  border: 1px solid var(--green-border);
  border-radius: var(--radius);
  padding: 28px 32px;
  text-align: center;
}

.contract-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.contract-address-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.contract-address {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--green);
  word-break: break-all;
  letter-spacing: 0.5px;
}

.contract-address.awaiting {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.copy-btn {
  background: var(--green-dim);
  border: 1px solid var(--green-border);
  border-radius: 6px;
  padding: 8px;
  color: var(--green);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
}

.copy-btn:hover {
  background: var(--green);
  color: #000;
}

.copy-btn.copied {
  background: var(--green);
  color: #000;
}

.contract-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 8px;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .story-grid { grid-template-columns: 1fr; }
  .vision-grid { grid-template-columns: 1fr; }
  .pipeline { flex-direction: column; gap: 8px; padding: 30px 20px; }
  .pipe-arrow { transform: rotate(90deg); padding: 8px 0; top: 0; }
  .footer-top, .footer-bottom { flex-direction: column; gap: 12px; }
}

@media (max-width: 600px) {
  .hero { padding: 50px 0 40px; }
  .hero h1 { font-size: 1.8rem; }
  .nav-link { display: none; }
  .quotes-grid { grid-template-columns: 1fr; }
}
