/* ===== CentralPay landing page =====
   Direction: pure black, minimal, restrained — Blackbox.ai-inspired.
   One thin accent color used sparingly (underlines, dots, code highlights),
   never as a background or large fill. Typography carries the weight.
*/
:root {
  --black: #000000;
  --surface: #0a0a0a;
  --surface-2: #111111;
  --border: #1a1a1a;
  --border-hover: #2a2a2a;

  --text: #fafafa;
  --text-dim: #a1a1aa;
  --text-faint: #52525b;

  --accent: #00d9ff;
  --accent-dim: rgba(0, 217, 255, 0.12);

  --font-display: 'Inter Tight', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Nav ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}
.nav-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-logo-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 14px;
  color: var(--text-dim);
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  font-size: 14px;
  font-weight: 600;
  color: var(--black);
  background: var(--text);
  padding: 9px 18px;
  border-radius: 6px;
  transition: opacity 0.15s ease;
}
.nav-cta:hover { opacity: 0.85; }

.nav-mobile-toggle { display: none; }

/* ===== Hero ===== */
.hero {
  padding: 100px 0 80px;
  position: relative;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 28px;
}
.hero-eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(38px, 6vw, 64px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 22px;
  max-width: 760px;
}
.hero h1 .accent-underline {
  position: relative;
  white-space: nowrap;
}
.hero h1 .accent-underline::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}
.hero-sub {
  font-size: 18px;
  color: var(--text-dim);
  max-width: 540px;
  line-height: 1.6;
  margin: 0 0 36px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.btn {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  padding: 13px 24px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s ease;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--text);
  color: var(--black);
}
.btn-primary:hover { opacity: 0.85; }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--border-hover); background: var(--surface); }

.hero-meta {
  margin-top: 18px;
  font-size: 13px;
  color: var(--text-faint);
}

/* ===== Signature element: live terminal ===== */
.terminal {
  margin-top: 64px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  max-width: 640px;
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.terminal-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border-hover); }
.terminal-label {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
}
.terminal-body {
  padding: 20px 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  min-height: 220px;
  white-space: pre-wrap;
  word-break: break-all;
}
.terminal-prompt { color: var(--accent); }
.terminal-key { color: #c4b5fd; }
.terminal-string { color: #86efac; }
.terminal-number { color: #fca5a5; }
.terminal-comment { color: var(--text-faint); }
.terminal-cursor {
  display: inline-block;
  width: 7px; height: 15px;
  background: var(--accent);
  margin-left: 2px;
  animation: blink 1s step-end infinite;
  vertical-align: text-bottom;
}
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .terminal-cursor { animation: none; }
}

/* ===== Section shared ===== */
.section { padding: 90px 0; border-top: 1px solid var(--border); }
.section-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 700;
  letter-spacing: -0.02em;
  max-width: 600px;
  margin: 0 0 16px;
}
.section-sub {
  color: var(--text-dim);
  font-size: 16px;
  max-width: 540px;
  line-height: 1.6;
  margin: 0 0 56px;
}

/* ===== Feature grid ===== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.feature-card {
  background: var(--black);
  padding: 32px 28px;
}
.feature-icon {
  width: 36px; height: 36px;
  margin-bottom: 20px;
  color: var(--accent);
}
.feature-icon svg { width: 100%; height: 100%; }
.feature-card h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 10px;
}
.feature-card p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
  margin: 0;
}

/* ===== How it works ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.step-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-faint);
  margin-bottom: 16px;
}
.step h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 10px;
}
.step p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
  margin: 0;
}

/* ===== API docs ===== */
.docs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.docs-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.docs-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.docs-method {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--accent-dim);
  color: var(--accent);
}
.docs-path {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text);
}
.docs-card pre {
  margin: 0;
  padding: 16px 18px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--text-dim);
  overflow-x: auto;
}
.docs-card pre .k { color: #c4b5fd; }
.docs-card pre .s { color: #86efac; }
.docs-card pre .n { color: #fca5a5; }

.docs-note {
  margin-top: 28px;
  font-size: 13px;
  color: var(--text-faint);
  font-family: var(--font-mono);
}

/* ===== CTA section ===== */
.cta-section {
  text-align: center;
  padding: 100px 0;
}
.cta-section h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}
.cta-section p {
  color: var(--text-dim);
  font-size: 16px;
  margin: 0 0 36px;
}

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-brand {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-faint);
}
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  font-size: 13px;
  color: var(--text-faint);
  transition: color 0.15s ease;
}
.footer-links a:hover { color: var(--text-dim); }

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .feature-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .docs-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .hero { padding: 70px 0 56px; }
  .section { padding: 64px 0; }
}
