/* ============================================
   ZECSCRIPTIONS · xAI-inspired aesthetic
   Pure black canvas, sharp typography, technical
   ============================================ */

:root {
  --bg: #000000;
  --bg-elev: #0a0a0a;
  --bg-card: #0d0d0d;
  --line: #1a1a1a;
  --line-2: #262626;
  --text: #f5f5f5;
  --text-dim: #888888;
  --text-muted: #555555;
  --accent: #f4b728;        /* zcash gold */
  --accent-dim: #b8881e;
  --green: #4ade80;
  --red: #f87171;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Consolas, monospace;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 18px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-weight: 600;
  letter-spacing: 0.05em;
  font-size: 13px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--accent);
  color: #000;
  font-weight: 700;
  font-size: 16px;
  border-radius: 2px;
}

.nav-links {
  display: flex;
  gap: 36px;
}

.nav-links a {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 400;
  color: var(--text-dim);
  letter-spacing: 0.02em;
  transition: color 0.15s ease;
}

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

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 2px;
  transition: all 0.15s ease;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #000;
}
.btn-primary:hover {
  background: #fff;
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--line-2);
}
.btn-secondary:hover {
  border-color: var(--text);
  background: var(--bg-elev);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-2);
  padding: 9px 16px;
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-block { width: 100%; }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 40px 80px;
  overflow: hidden;
}

.grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  opacity: 0.6;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  background: rgba(244, 183, 40, 0.08);
  border: 1px solid rgba(244, 183, 40, 0.25);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 36px;
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(244, 183, 40, 0.7); }
  50% { opacity: 0.6; box-shadow: 0 0 0 8px rgba(244, 183, 40, 0); }
}

.display {
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin-bottom: 32px;
  font-family: var(--sans);
}

.display .accent {
  color: var(--accent);
  font-style: italic;
  font-weight: 400;
}

.lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--text-dim);
  max-width: 620px;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-bottom: 80px;
  flex-wrap: wrap;
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  max-width: 1100px;
}

.stat {
  padding: 28px 24px 28px 0;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: none; }
.stat:not(:first-child) { padding-left: 24px; }

.stat-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.stat-value {
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.02em;
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 120px 40px;
}

.section-alt {
  background: var(--bg-elev);
  max-width: none;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-alt > * {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.section-head {
  margin-bottom: 64px;
  max-width: 800px;
}

.section-num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.section-sub {
  font-size: 18px;
  color: var(--text-dim);
  line-height: 1.5;
}

/* ============================================
   ABOUT · TWO COL
   ============================================ */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}

.col-text p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-dim);
  margin-bottom: 20px;
}

.col-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.card {
  background: var(--bg);
  padding: 32px 28px;
  transition: background 0.2s ease;
}

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

.card-icon {
  font-size: 24px;
  color: var(--accent);
  margin-bottom: 18px;
  font-family: var(--mono);
}

.card h3 {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.card p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.55;
}

/* ============================================
   DEPLOY
   ============================================ */
.deploy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.deploy-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-row label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.form-row input,
.form-row select {
  background: var(--bg);
  border: 1px solid var(--line-2);
  padding: 14px 16px;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--text);
  border-radius: 2px;
  transition: border-color 0.15s ease;
}

.form-row input:focus,
.form-row select:focus {
  outline: none;
  border-color: var(--accent);
}

.form-row input::placeholder { color: var(--text-muted); }

.deploy-preview {
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: 2px;
  overflow: hidden;
}

.preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-2);
  background: var(--bg-elev);
}

.preview-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}

.preview-status {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.code {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
  color: var(--text);
  padding: 24px;
  background: transparent;
  white-space: pre-wrap;
  word-break: break-word;
}

.preview-meta {
  border-top: 1px solid var(--line-2);
  padding: 18px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.preview-meta div {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 12px;
}

.preview-meta span { color: var(--text-muted); }
.preview-meta strong { color: var(--text); font-weight: 500; }

/* ============================================
   MINT
   ============================================ */
.filter-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.chip {
  padding: 8px 16px;
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  transition: all 0.15s ease;
}

.chip:hover { color: var(--text); border-color: var(--text-dim); }

.chip-active {
  background: var(--text);
  color: #000;
  border-color: var(--text);
}

.mint-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.mint-card {
  background: var(--bg);
  padding: 24px;
  cursor: pointer;
  transition: background 0.15s ease;
  position: relative;
}

.mint-card:hover { background: var(--bg-card); }

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

.mint-ticker {
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.mint-tag {
  font-family: var(--mono);
  font-size: 10px;
  padding: 3px 8px;
  border: 1px solid var(--line-2);
  border-radius: 2px;
  color: var(--text-dim);
  letter-spacing: 0.08em;
}

.mint-progress-wrap {
  margin-bottom: 14px;
}

.mint-progress-track {
  height: 4px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 8px;
}

.mint-progress-bar {
  height: 100%;
  background: var(--accent);
  transition: width 0.4s ease;
}

.mint-progress-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
}

.mint-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
}

.mint-meta-item span { color: var(--text-muted); display: block; margin-bottom: 4px; letter-spacing: 0.06em; }
.mint-meta-item strong { color: var(--text); font-weight: 500; font-size: 13px; }

.mint-action {
  display: block;
  margin-top: 18px;
  width: 100%;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--line-2);
  color: var(--text);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  border-radius: 2px;
  transition: all 0.15s ease;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
}

.mint-action:hover { background: var(--accent); color: #000; border-color: var(--accent); }

/* ============================================
   TRADE / MARKET TABLE
   ============================================ */
.market-table {
  border: 1px solid var(--line);
  background: var(--bg);
}

.market-head,
.market-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 0.8fr 1fr 1fr 0.8fr;
  gap: 16px;
  padding: 16px 24px;
  align-items: center;
  font-family: var(--mono);
  font-size: 13px;
}

.market-head {
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.market-row {
  border-bottom: 1px solid var(--line);
  transition: background 0.15s ease;
}

.market-row:last-child { border-bottom: none; }
.market-row:hover { background: var(--bg-elev); }

.market-ticker {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}

.market-ticker .icon {
  width: 28px;
  height: 28px;
  background: var(--bg-elev);
  border: 1px solid var(--line-2);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--accent);
}

.change-pos { color: var(--green); }
.change-neg { color: var(--red); }

.trade-btn {
  display: inline-block;
  padding: 6px 14px;
  background: transparent;
  border: 1px solid var(--line-2);
  color: var(--text);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  border-radius: 2px;
  transition: all 0.15s ease;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}

.trade-btn:hover { background: var(--accent); color: #000; border-color: var(--accent); }

.inline-link {
  color: var(--accent);
  border-bottom: 1px solid rgba(244, 183, 40, 0.3);
  transition: border-color 0.15s ease;
  white-space: nowrap;
}
.inline-link:hover { border-color: var(--accent); }

.section-cta {
  margin-top: 32px;
  text-align: center;
}

/* ============================================
   DOCS
   ============================================ */
.docs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.doc-card {
  background: var(--bg);
  padding: 36px 32px;
}

.doc-card h3 {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 12px;
}

.doc-card p {
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 20px;
  line-height: 1.55;
}

.doc-card .code {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  padding: 16px;
  font-size: 12px;
  color: var(--accent);
  border-radius: 2px;
}

/* ============================================
   FAQ
   ============================================ */
.faq-list {
  max-width: 900px;
  border-top: 1px solid var(--line-2);
}

.faq-list details {
  border-bottom: 1px solid var(--line-2);
  padding: 24px 0;
  cursor: pointer;
}

.faq-list summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  position: relative;
  padding-right: 32px;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: '+';
  position: absolute;
  right: 0;
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 300;
  color: var(--accent);
  transition: transform 0.2s ease;
}

.faq-list details[open] summary::after {
  content: '−';
}

.faq-list p {
  margin-top: 14px;
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.6;
  max-width: 720px;
}

/* ============================================
   CTA
   ============================================ */
.cta {
  padding: 160px 40px;
  text-align: center;
  border-top: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(244, 183, 40, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.cta-inner {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.cta .display { margin-bottom: 20px; }
.cta .lede { margin-left: auto; margin-right: auto; margin-bottom: 36px; }
.cta .hero-actions { justify-content: center; margin-bottom: 0; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 64px 40px 40px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-weight: 600;
  letter-spacing: 0.05em;
  font-size: 13px;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 480px;
}

.footer-cols h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 16px;
  font-weight: 500;
}

.footer-cols a {
  display: block;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-dim);
  padding: 4px 0;
  transition: color 0.15s ease;
}

.footer-cols a:hover { color: var(--text); }

.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 40px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-inner { padding: 16px 24px; }
  .hero { padding: 120px 24px 60px; }
  .section { padding: 80px 24px; }
  .section-alt { padding-left: 24px; padding-right: 24px; }
  .stats-strip { grid-template-columns: 1fr 1fr; }
  .stat { border-right: none; border-bottom: 1px solid var(--line); }
  .stat:nth-child(odd) { border-right: 1px solid var(--line); }
  .stat:nth-last-child(-n+2) { border-bottom: none; }
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .col-cards { grid-template-columns: 1fr 1fr; }
  .deploy-grid { grid-template-columns: 1fr; gap: 32px; }
  .docs-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .market-head, .market-row {
    grid-template-columns: 1fr 0.8fr 0.6fr 0.8fr;
    font-size: 11px;
  }
  .market-head > div:nth-child(5),
  .market-head > div:nth-child(6),
  .market-row > div:nth-child(5),
  .market-row > div:nth-child(6) {
    display: none;
  }
}

@media (max-width: 600px) {
  .display { font-size: 44px; }
  .section-title { font-size: 32px; }
  .col-cards { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 0; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ============================================
   SELECTION
   ============================================ */
::selection { background: var(--accent); color: #000; }
