/* ── Reset & Base ──────────────────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #0a0a0a;
  --surface: #111113;
  --surface-2: #1a1a1e;
  --border: #2a2a2e;
  --text: #e4e4e7;
  --text-muted: #71717a;
  --accent: #00ff88;
  --accent-dim: #00cc6a;
  --accent-glow: rgba(0, 255, 136, 0.08);
  --code-bg: #0d0d12;
  --font-sans: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', monospace;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s;
}
a:hover { opacity: 0.8; }

code {
  font-family: var(--font-mono);
  font-size: 0.85em;
}

h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

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

.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 1rem;
}

/* ── Buttons ──────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: #0a0a0a;
}
.btn-primary:hover {
  background: var(--accent-dim);
  opacity: 1;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  opacity: 1;
}

/* ── Nav ──────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  color: var(--text);
}

.logo-mark {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
}

.logo-text {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
}
.nav-links a:hover { color: var(--text); opacity: 1; }

.nav-cta {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text) !important;
}
.nav-cta:hover {
  border-color: var(--accent) !important;
  color: var(--accent) !important;
}

/* ── Hero ─────────────────────────────────────────────── */
.hero {
  padding: 10rem 2rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(0, 255, 136, 0.25);
  border-radius: 4px;
  margin-bottom: 1.5rem;
  background: var(--accent-glow);
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  margin-bottom: 1.5rem;
  color: var(--text);
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 1rem;
}

/* ── Terminal ─────────────────────────────────────────── */
.terminal {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.terminal-dot.red { background: #ff5f57; }
.terminal-dot.yellow { background: #febc2e; }
.terminal-dot.green { background: #28c840; }

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

.terminal-body {
  padding: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.8;
  overflow-x: auto;
}

.terminal-body code {
  font-size: inherit;
}

.t-gray { color: #555; }
.t-green { color: var(--accent); }
.t-yellow { color: #febc2e; }
.t-white { color: #fff; }

/* ── Hero Stats ───────────────────────────────────────── */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-value {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── Story ────────────────────────────────────────────── */
.story {
  padding: 6rem 2rem;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.story-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.story-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.story h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: 3rem;
  max-width: 700px;
}

.story-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.story-cols p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1rem;
}

/* ── How It Works ─────────────────────────────────────── */
.how {
  padding: 6rem 2rem;
}

.how-inner {
  max-width: 800px;
  margin: 0 auto;
}

.how h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: 3.5rem;
}

.flow {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.flow-step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1.5rem;
  align-items: start;
  padding: 1.5rem 0;
}

.flow-num {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  padding-top: 0.15rem;
}

.flow-content h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.flow-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.flow-content code {
  color: var(--accent);
  background: var(--accent-glow);
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
}

.flow-connector {
  width: 2px;
  height: 24px;
  background: var(--border);
  margin-left: 38px;
}

/* ── Stack ────────────────────────────────────────────── */
.stack {
  padding: 6rem 2rem;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stack-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.stack h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: 3rem;
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.stack-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color 0.2s;
}
.stack-card:hover { border-color: #444; }

.stack-card.featured {
  border-color: rgba(0, 255, 136, 0.3);
  background: linear-gradient(135deg, var(--surface-2) 0%, rgba(0, 255, 136, 0.03) 100%);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-icon {
  font-size: 1.25rem;
  color: var(--accent);
}

.card-lang {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stack-card h3 {
  font-family: var(--font-mono);
  font-size: 1.1rem;
}

.stack-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  flex-grow: 1;
}

.card-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.card-tech span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  background: var(--bg);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.card-address {
  margin-top: 0.5rem;
}

.card-address code {
  font-size: 0.65rem;
  color: var(--text-muted);
  word-break: break-all;
}

.card-link {
  font-size: 0.85rem;
  font-weight: 500;
  margin-top: 0.5rem;
}

/* ── elizaOS ──────────────────────────────────────────── */
.eliza {
  padding: 6rem 2rem;
}

.eliza-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.eliza h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: 3rem;
}

.eliza-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.eliza-content p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.eliza-content code {
  color: var(--accent);
  background: var(--accent-glow);
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
}

.eliza-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.eliza-action {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

.eliza-action code {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-glow);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  min-width: 170px;
}

.eliza-action span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.eliza-terminal {
  position: sticky;
  top: 5rem;
}

@media (max-width: 900px) {
  .eliza-grid { grid-template-columns: 1fr; }
  .eliza-terminal { position: static; }
}

/* ── Endpoints ────────────────────────────────────────── */
.endpoints {
  padding: 6rem 2rem;
}

.endpoints-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.endpoints h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: 1rem;
}

.endpoints-sub {
  color: var(--text-muted);
  margin-bottom: 3rem;
  max-width: 600px;
}

.endpoints-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.endpoints-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.endpoints-table thead {
  background: var(--surface);
}

.endpoints-table th {
  text-align: left;
  padding: 1rem 1.5rem;
  font-weight: 500;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.endpoints-table td {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.endpoints-table tbody tr:last-child td {
  border-bottom: none;
}

.endpoints-table tbody tr:hover {
  background: var(--surface);
}

.endpoints-table code {
  color: var(--accent);
  font-size: 0.85rem;
}

.price {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text);
}

.chain-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.chain-badge.solana {
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid rgba(0, 255, 136, 0.2);
}

.endpoints-base {
  margin-top: 1.5rem;
  text-align: center;
}

.base-url {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 0.5rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
}

/* ── MCP ──────────────────────────────────────────────── */
.mcp {
  padding: 6rem 2rem;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.mcp-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.mcp h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: 3rem;
}

.mcp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.mcp-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem;
}

.mcp-card h3 {
  font-family: var(--font-mono);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.mcp-count {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.mcp-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.mcp-price {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── Reputation ───────────────────────────────────────── */
.reputation {
  padding: 6rem 2rem;
}

.reputation-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.reputation-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.reputation h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: 1.5rem;
}

.reputation-content p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.reputation-content code {
  color: var(--accent);
  background: var(--accent-glow);
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
}

.reputation-registries {
  display: flex;
  gap: 2rem;
}

.registry {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.registry-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.registry code {
  font-size: 0.8rem;
  color: var(--text);
  background: none;
}

.rep-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem;
}

.rep-header {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.rep-score {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.rep-value {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-muted);
}

.rep-max {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.rep-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.rep-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  background: var(--accent-glow);
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  border: 1px solid rgba(0, 255, 136, 0.15);
}

.rep-chain {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ── Dual Protocol ────────────────────────────────────── */
.dual {
  padding: 6rem 2rem;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.dual-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.dual h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: 3rem;
}

.dual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.dual-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem;
}

.dual-card h3 {
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.dual-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  background: var(--bg);
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  border: 1px solid var(--border);
  font-weight: 400;
}

.dual-card ul {
  list-style: none;
  margin-bottom: 1.5rem;
}

.dual-card li {
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 0.35rem 0;
  padding-left: 1.25rem;
  position: relative;
}

.dual-card li::before {
  content: '>';
  font-family: var(--font-mono);
  color: var(--accent);
  position: absolute;
  left: 0;
  font-size: 0.8rem;
}

.dual-status {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  display: inline-block;
}

.dual-status.live {
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid rgba(0, 255, 136, 0.2);
}

.dual-status.planned {
  color: var(--text-muted);
  background: rgba(113, 113, 122, 0.1);
  border: 1px solid rgba(113, 113, 122, 0.2);
}

.dual-note {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 700px;
}

/* ── On-Chain ─────────────────────────────────────────── */
.onchain {
  padding: 6rem 2rem;
}

.onchain-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.onchain h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: 3rem;
}

.onchain-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.onchain-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.onchain-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.onchain-item code {
  font-size: 0.8rem;
  color: var(--text);
  word-break: break-all;
}

/* ── Footer ───────────────────────────────────────────── */
.footer {
  padding: 4rem 2rem 2rem;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  padding-bottom: 3rem;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-col h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.footer-col a {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.footer-col a:hover { color: var(--text); opacity: 1; }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-bottom span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-grid,
  .story-cols,
  .stack-grid,
  .mcp-grid,
  .dual-grid,
  .onchain-grid,
  .reputation-grid {
    grid-template-columns: 1fr;
  }

  .hero { padding-top: 7rem; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
  .nav-links a:not(.nav-cta) { display: none; }
  .reputation-registries { flex-direction: column; gap: 1rem; }
}

@media (max-width: 500px) {
  .hero h1 { font-size: 2rem; }
  .hero-actions { flex-direction: column; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .footer-links { grid-template-columns: 1fr; }
}
