/* === x402tools.xyz — Dark + Fluorescent Theme === */

:root {
  --bg: #0a0a0a;
  --surface: #111111;
  --surface-2: #1a1a1a;
  --border: #2a2a2a;
  --border-light: #333333;
  --accent: #00ff88;
  --accent-dim: #00cc6a;
  --cyan: #00e5ff;
  --magenta: #ff00ff;
  --text: #ffffff;
  --text-muted: #888888;
  --text-dim: #555555;
  --radius: 12px;
  --radius-sm: 8px;
  --glow: 0 0 20px rgba(0, 255, 136, 0.15);
  --glow-cyan: 0 0 20px rgba(0, 229, 255, 0.15);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
  opacity: 0.8;
}

code, pre {
  font-family: 'JetBrains Mono', monospace;
}

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

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
}

.logo-icon {
  font-size: 1.4rem;
}

.logo-text {
  font-weight: 800;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.nav-links a:hover {
  color: var(--text);
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.8rem;
  border-radius: 6px;
}

.btn-primary {
  background: var(--accent);
  color: #000;
  box-shadow: var(--glow);
}

.btn-primary:hover {
  background: #33ff99;
  box-shadow: 0 0 30px rgba(0, 255, 136, 0.3);
  color: #000;
  opacity: 1;
}

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

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  opacity: 1;
}

/* === HERO === */
.hero {
  padding: 160px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(0, 255, 136, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
}

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

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 550px;
  margin: 0 auto 36px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 48px;
  justify-content: center;
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* === SECTIONS === */
.section {
  padding: 100px 0;
}

.section-dark {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 12px;
}

.section-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 48px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* === SERVICES GRID === */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

.card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all 0.3s;
  position: relative;
}

.card:hover {
  border-color: var(--accent);
  box-shadow: var(--glow);
  transform: translateY(-2px);
}

.card-soon {
  opacity: 0.6;
}

.card-soon:hover {
  border-color: var(--border-light);
  box-shadow: none;
  transform: none;
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.card-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.5;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.card-price {
  background: rgba(0, 255, 136, 0.1);
  color: var(--accent);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
}

.card-method {
  background: rgba(0, 229, 255, 0.1);
  color: var(--cyan);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
}

.card-endpoint {
  display: block;
  font-size: 0.78rem;
  color: var(--text-dim);
  background: var(--bg);
  padding: 8px 12px;
  border-radius: 6px;
  margin-bottom: 12px;
  overflow-x: auto;
}

.card-status {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-status.live {
  color: var(--accent);
}

.card-status.soon {
  color: var(--text-dim);
}

.coming-soon-title {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  font-weight: 600;
}

.coming-soon {
  margin-bottom: 0;
}

/* === STEPS === */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.step {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.step-num {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 255, 136, 0.1);
  color: var(--accent);
  border-radius: 50%;
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 16px;
}

.step h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.step p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.step pre {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  overflow-x: auto;
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.protocol-note {
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.protocol-note strong {
  color: var(--text);
}

/* === EXAMPLES === */
.examples {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.example {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.example h4 {
  font-size: 0.95rem;
  margin-bottom: 14px;
  color: var(--cyan);
}

.example pre {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  overflow-x: auto;
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* === DOCS GRID === */
.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 48px;
}

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

.doc-card:hover {
  border-color: var(--cyan);
  box-shadow: var(--glow-cyan);
  opacity: 1;
}

.doc-icon {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.doc-card h4 {
  font-size: 1rem;
  margin-bottom: 6px;
  font-family: 'JetBrains Mono', monospace;
}

.doc-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.agent-example {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.agent-example h4 {
  font-size: 0.95rem;
  margin-bottom: 16px;
  color: var(--cyan);
}

.agent-example pre {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  overflow-x: auto;
  font-size: 0.8rem;
  line-height: 1.7;
  color: var(--text-muted);
}

/* === MARKETPLACES === */
.marketplaces {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.marketplace-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 40px;
  text-align: center;
  color: var(--text);
  transition: all 0.3s;
  min-width: 200px;
}

.marketplace-card:hover {
  border-color: var(--accent);
  box-shadow: var(--glow);
  opacity: 1;
}

.marketplace-logo {
  font-size: 2.5rem;
  margin-bottom: 12px;
  color: var(--accent);
}

.marketplace-card h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.marketplace-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

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

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.footer-left {
  max-width: 300px;
}

.footer-left .logo-text {
  font-size: 1.3rem;
  display: block;
  margin-bottom: 8px;
}

.footer-left p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

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

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col h5 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.footer-col a {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  text-align: center;
}

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

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hero-stats {
    gap: 24px;
  }

  .hero-title {
    font-size: 2.2rem;
  }

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

  .footer-inner {
    flex-direction: column;
  }

  .footer-links {
    gap: 32px;
  }

  .marketplaces {
    flex-direction: column;
    align-items: center;
  }
}
