/*
  EruditePay — Main Stylesheet
  Erudite Intelligence LLC | April 2026
  Changelog:
    2026-04-05: Complete rebuild. 12 anti-AI rules enforced.
                Solid colors only, no pills, no centered hero, clean borders.
                Max border-radius: 6px. Left-aligned throughout.
*/

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: #0a0e17;
  color: #e5e7eb;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: #2563eb; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* ── Fonts ── */
h1, h2, h3, .nav-logo, .footer-logo, .step-num {
  font-family: 'DM Serif Display', serif;
}

/* ── Container ── */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Nav ── */
#nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #0a0e17;
  border-bottom: 1px solid #1f2937;
}
.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo {
  font-size: 1.35rem;
  color: #e5e7eb;
  letter-spacing: -0.02em;
}
.nav-logo:hover { text-decoration: none; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  color: #9ca3af;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s;
}
.nav-links a:hover { color: #e5e7eb; text-decoration: none; }
.nav-cta {
  background: #2563eb;
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 6px;
  font-weight: 600;
}
.nav-cta:hover { background: #1d4ed8; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #e5e7eb;
  border-radius: 1px;
}

/* ── Hero ── */
.hero {
  padding: 96px 0 64px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-text { text-align: left; }
.hero-text h1 {
  font-size: 3.2rem;
  color: #e5e7eb;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.hero-sub {
  font-size: 1.1rem;
  color: #9ca3af;
  max-width: 520px;
  margin-bottom: 32px;
  line-height: 1.7;
}
.hero-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: 'Plus Jakarta Sans', sans-serif;
  border-radius: 6px;
  cursor: pointer;
  border: none;
  transition: background 0.15s, border-color 0.15s;
  text-align: center;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: #2563eb;
  color: #fff;
}
.btn-primary:hover { background: #1d4ed8; }
.btn-outline {
  background: transparent;
  color: #2563eb;
  border: 1px solid #2563eb;
}
.btn-outline:hover { background: rgba(37, 99, 235, 0.08); }
.btn-full { width: 100%; }

/* ── Code Block (Hero) ── */
.hero-code { text-align: left; }
.code-block {
  background: #111827;
  border: 1px solid #1f2937;
  border-radius: 6px;
  padding: 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  line-height: 1.8;
  overflow-x: auto;
}
.code-line { white-space: pre; }
.code-comment { color: #6b7280; }
.code-tag { color: #e5e7eb; }
.code-attr { color: #9ca3af; }
.code-str { color: #10b981; }
.code-accent { color: #2563eb; }

/* ── Stats Row ── */
.stats-row {
  padding: 32px 0;
  border-top: 1px solid #1f2937;
  border-bottom: 1px solid #1f2937;
}
.stats-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  text-align: left;
}
.stat {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  color: #9ca3af;
}
.stat-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.1rem;
  color: #e5e7eb;
  font-weight: 500;
}
.stat-dot {
  color: #374151;
  font-size: 1.2rem;
}

/* ── Product Sections ── */
.product-section {
  padding: 80px 0;
  border-bottom: 1px solid #1f2937;
}
.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.product-grid-reverse { direction: rtl; }
.product-grid-reverse > * { direction: ltr; }
.product-text { text-align: left; }
.product-text h2 {
  font-size: 2rem;
  color: #e5e7eb;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.product-text p {
  color: #9ca3af;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

/* Category List */
.category-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.category-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #1f2937;
  font-size: 0.95rem;
}
.category-item:first-child { border-top: 1px solid #1f2937; }
.cat-name { color: #e5e7eb; }
.cat-count {
  font-family: 'JetBrains Mono', monospace;
  color: #6b7280;
  font-size: 0.85rem;
}

/* QR Demo */
.qr-container {
  text-align: left;
}
#qr-canvas {
  background: #fff;
  border-radius: 6px;
  display: block;
}
.qr-label {
  color: #6b7280;
  font-size: 0.85rem;
  margin-top: 12px;
}

/* Data Ticker */
.data-ticker {
  background: #111827;
  border: 1px solid #1f2937;
  border-radius: 6px;
  overflow: hidden;
}
.ticker-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid #1f2937;
  font-size: 0.9rem;
}
.ticker-row:last-child { border-bottom: none; }
.ticker-name { color: #e5e7eb; }
.ticker-price {
  font-family: 'JetBrains Mono', monospace;
  color: #10b981;
}
.ticker-sales {
  color: #6b7280;
  font-size: 0.8rem;
}

/* ── How It Works ── */
.how-it-works {
  padding: 80px 0;
  border-bottom: 1px solid #1f2937;
}
.how-it-works h2 {
  font-size: 2rem;
  color: #e5e7eb;
  margin-bottom: 48px;
  text-align: left;
}
.steps-row {
  display: flex;
  align-items: flex-start;
  gap: 0;
}
.step {
  flex: 1;
  text-align: left;
}
.step-num {
  font-size: 2rem;
  color: #2563eb;
  margin-bottom: 8px;
}
.step-title {
  font-size: 1rem;
  font-weight: 600;
  color: #e5e7eb;
  margin-bottom: 4px;
}
.step-desc {
  font-size: 0.85rem;
  color: #6b7280;
  line-height: 1.5;
}
.step-connector {
  width: 48px;
  min-width: 48px;
  height: 1px;
  background: #1f2937;
  margin-top: 20px;
}

/* ── Chains ── */
.chains-section {
  padding: 40px 0;
  border-bottom: 1px solid #1f2937;
}
.chains-scroll {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  text-align: left;
}
.chain {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: #6b7280;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.chain-dot {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  display: inline-block;
  flex-shrink: 0;
}

/* ── Pricing ── */
.pricing-section {
  padding: 80px 0;
  border-bottom: 1px solid #1f2937;
}
.pricing-section h2 {
  font-size: 2rem;
  color: #e5e7eb;
  margin-bottom: 40px;
  text-align: left;
}
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.pricing-col h3 {
  font-size: 1.1rem;
  color: #e5e7eb;
  margin-bottom: 8px;
}
.pricing-col p {
  color: #9ca3af;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ── Merchant Registration ── */
.merchant-section {
  padding: 80px 0;
  border-bottom: 1px solid #1f2937;
}
.merchant-section h2 {
  font-size: 2rem;
  color: #e5e7eb;
  margin-bottom: 8px;
  text-align: left;
}
.merchant-sub {
  color: #9ca3af;
  margin-bottom: 32px;
  font-size: 1rem;
}
#merchant-form {
  max-width: 480px;
  text-align: left;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #9ca3af;
  margin-bottom: 6px;
}
.form-group input {
  width: 100%;
  padding: 12px 14px;
  background: #111827;
  border: 1px solid #1f2937;
  border-radius: 6px;
  color: #e5e7eb;
  font-size: 0.95rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  outline: none;
  transition: border-color 0.15s;
}
.form-group input:focus { border-color: #2563eb; }
.form-group input::placeholder { color: #4b5563; }
.form-error {
  color: #ef4444;
  font-size: 0.85rem;
  margin-bottom: 12px;
  min-height: 20px;
}
.form-terms {
  color: #6b7280;
  font-size: 0.8rem;
  margin-top: 16px;
}

/* Merchant Result */
.merchant-result {
  max-width: 600px;
}
.result-warn {
  background: #1c1917;
  border: 1px solid #92400e;
  border-radius: 6px;
  padding: 12px 16px;
  color: #fbbf24;
  font-size: 0.9rem;
  margin-bottom: 24px;
}
.result-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.result-label {
  font-size: 0.85rem;
  color: #6b7280;
  min-width: 120px;
  font-weight: 600;
}
.result-value {
  background: #111827;
  border: 1px solid #1f2937;
  border-radius: 4px;
  padding: 8px 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: #e5e7eb;
  word-break: break-all;
  flex: 1;
  min-width: 0;
}
.btn-copy {
  background: #1f2937;
  border: 1px solid #374151;
  border-radius: 4px;
  color: #9ca3af;
  padding: 6px 12px;
  font-size: 0.8rem;
  cursor: pointer;
  white-space: nowrap;
}
.btn-copy:hover { color: #e5e7eb; }
.merchant-result h3 {
  font-size: 1.1rem;
  color: #e5e7eb;
  margin: 32px 0 16px;
}

/* Tabs */
.integration-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 0;
}
.tab {
  padding: 10px 20px;
  background: #111827;
  border: 1px solid #1f2937;
  border-bottom: none;
  color: #6b7280;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: 'Plus Jakarta Sans', sans-serif;
  cursor: pointer;
  border-radius: 6px 6px 0 0;
}
.tab.active {
  color: #e5e7eb;
  background: #1a1f2e;
  border-color: #2563eb;
  border-bottom: none;
}
.tab-content {
  display: none;
  background: #1a1f2e;
  border: 1px solid #1f2937;
  border-radius: 0 6px 6px 6px;
  padding: 20px;
}
.tab-content.active { display: block; }
.tab-content p { color: #9ca3af; font-size: 0.9rem; margin-bottom: 12px; }
.code-block-sm {
  background: #111827;
  border: 1px solid #1f2937;
  border-radius: 4px;
  padding: 16px;
  overflow-x: auto;
}
.code-block-sm code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: #e5e7eb;
  white-space: pre;
}

/* ── Trust ── */
.trust-section {
  padding: 48px 0;
  border-bottom: 1px solid #1f2937;
}
.trust-line {
  font-size: 0.95rem;
  color: #9ca3af;
  line-height: 2;
  text-align: left;
}

/* ── Footer ── */
footer {
  padding: 64px 0 48px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
}
.footer-logo {
  font-size: 1.2rem;
  color: #e5e7eb;
  margin-bottom: 12px;
}
.footer-col p {
  color: #6b7280;
  font-size: 0.9rem;
  line-height: 1.6;
}
.footer-legal {
  font-size: 0.8rem;
  color: #4b5563;
  margin-top: 4px;
}
.footer-col h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  color: #6b7280;
  font-size: 0.9rem;
  line-height: 2;
}
.footer-col a:hover { color: #e5e7eb; text-decoration: none; }

/* ── Mobile ── */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #0a0e17;
    border-bottom: 1px solid #1f2937;
    flex-direction: column;
    padding: 16px 24px;
    gap: 16px;
  }
  .nav-links.open { display: flex; }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-text h1 { font-size: 2.2rem; }
  .hero-buttons { flex-direction: column; align-items: flex-start; }
  .product-grid,
  .product-grid-reverse {
    grid-template-columns: 1fr;
    gap: 40px;
    direction: ltr;
  }
  .steps-row {
    flex-direction: column;
    gap: 24px;
  }
  .step-connector {
    width: 1px;
    height: 24px;
    min-width: 1px;
    margin-top: 0;
    margin-left: 14px;
  }
  .pricing-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .stats-line { gap: 6px; }
}

@media (max-width: 480px) {
  .hero-text h1 { font-size: 1.8rem; }
  .hero-sub { font-size: 1rem; }
  .product-text h2 { font-size: 1.6rem; }
}
