@import url('wallet.css');
/* ============================================
   ZECSCRIPTIONS · xAI-inspired aesthetic
   Pure black canvas, sharp typography, technical
   ============================================ */

:root {
  /* Surfaces. Warm near-black rather than pure #000: at this scale a true
     black flattens everything on it, because every card and border has to
     carry contrast on its own. A warm base lets surfaces stack. */
  --bg: #0a0908;
  --bg-elev: #121110;
  --bg-card: #171512;
  --bg-raised: #1f1c18;
  --bg-sunken: #050404;

  --line: #2b2621;
  --line-2: #453e36;
  --line-accent: rgba(244, 183, 40, 0.28);

  --text: #faf7f2;
  --text-dim: #c9c1b4;
  --text-muted: #8d8477;

  /* Zcash gold stays the identity colour, widened into a usable ramp. */
  --accent: #f4b728;
  --accent-bright: #ffcf5c;
  --accent-deep: #d99a12;
  --accent-dim: #b8881e;
  --accent-soft: rgba(244, 183, 40, 0.12);
  --accent-glow: rgba(244, 183, 40, 0.42);

  /* One cool secondary, used sparingly. Gold on warm dark is harmonious to
     the point of monotony; a single opposing hue is what gives the palette
     somewhere to go. */
  --cool: #4cc9f0;
  --cool-soft: rgba(76, 201, 240, 0.12);

  --green: #4ade80;
  --green-soft: rgba(74, 222, 128, 0.12);
  --red: #f87171;
  --red-soft: rgba(248, 113, 113, 0.12);
  --violet: #a78bfa;

  /* Gradients and glow, so depth is a token rather than ad-hoc per component. */
  --grad-gold: linear-gradient(135deg, #ffcf5c 0%, #f4b728 45%, #d99a12 100%);
  --grad-surface: linear-gradient(180deg, rgba(255,255,255,0.045) 0%, rgba(255,255,255,0) 100%);
  --grad-hero: radial-gradient(ellipse 80% 55% at 50% 0%, rgba(244,183,40,0.16) 0%, transparent 70%);

  --glow-gold: 0 0 40px rgba(244, 183, 40, 0.22);
  --shadow-card: 0 1px 2px rgba(0,0,0,0.5), 0 8px 24px -8px rgba(0,0,0,0.7);
  --shadow-raised: 0 2px 4px rgba(0,0,0,0.5), 0 16px 48px -12px rgba(0,0,0,0.8);

  --radius: 12px;
  --radius-lg: 18px;

  --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;
  scroll-padding-top: 80px;
}

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 {
  /* No max-width: we want the brand flush to the far left and the
     Holdings + wallet cluster flush to the far right on any screen
     size, with just edge padding for breathing room. Page content
     elsewhere still respects the 1400px container; only the nav bar
     itself spans the full viewport. */
  width: 100%;
  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 is the small Z logo that sits next to the wordmark in
   the nav and footer. As of the logo refresh it's an SVG file rather
   than a styled letter, so the old background/color/font rules are
   no-ops. Sizing + radius stay so the image scales cleanly. */
.brand-mark {
  display: inline-block;
  width: 28px;
  height: 28px;
  border-radius: 2px;
  object-fit: contain;
  flex-shrink: 0;
}

.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); }

/* Active-page highlight (the link matching the current page glows
   in accent gold). Lives here in the global stylesheet so every
   page — including Deploy, which doesn't pull trade.css — picks it
   up. */
.nav-links a.active { color: var(--accent); }

/* Right side of the nav: groups Holdings + Connect Wallet + hamburger.
   Was an unstyled flex child of .nav-inner; now an explicit flex row so
   the new Holdings link sits cleanly next to the wallet button. */
.nav-cta {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* The "Holdings" link sitting next to the wallet pill. Styled like a
   nav-links anchor but lives in the right-hand cluster so it shows next
   to the connect button on both desktop and mobile. */
.nav-cta-link {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 400;
  color: var(--text-dim);
  letter-spacing: 0.02em;
  transition: color 0.15s ease;
  white-space: nowrap;
}
.nav-cta-link:hover { color: var(--text); }
.nav-cta-link.active { color: var(--accent); }

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 4px;
  margin-left: 12px;
}
.nav-burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-dim);
  transition: all 0.2s ease;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 9px;
  transition: transform 0.15s ease, box-shadow 0.15s ease,
              background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad-gold);
  color: #1a1200;
  box-shadow: 0 1px 2px rgba(0,0,0,0.4), 0 4px 16px -4px var(--accent-glow);
}
.btn-primary:hover:not(:disabled) {
  /* Previously this flipped to solid white on hover, which read as a
     different button rather than the same one lit up. Brighten within the
     gold ramp instead and let the glow carry the state change. */
  background: linear-gradient(135deg, #ffdd85 0%, #ffc94d 45%, #f4b728 100%);
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.4), 0 10px 30px -6px var(--accent-glow);
}
.btn-primary:active:not(:disabled) { transform: translateY(0); }
.btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text);
  border-color: var(--line-2);
}
.btn-secondary:hover {
  border-color: var(--accent);
  background: var(--bg-raised);
  color: var(--accent-bright);
  transform: translateY(-2px);
}

.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;
}

/* Warm light spilling from the top of the page. Without this the hero is a
   flat plane and every element on it has to generate its own interest. */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-hero);
  pointer-events: none;
  z-index: 0;
}

.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(52px, 9vw, 118px);
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: -0.05em;
  margin-bottom: 32px;
  font-family: var(--sans);
  /* Optical correction: at 800 weight and this size the glyphs read heavier
     than the metric suggests, so pull the tracking tighter than the token. */
  text-wrap: balance;
}

.display .accent {
  /* Gradient fill rather than flat gold. The headline is the one place worth
     spending a background-clip on, and it is what stops the page reading as
     one colour on black. */
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--accent);
  font-style: italic;
  font-weight: 700;
}

.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: 1px;
  max-width: 1100px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.stat {
  padding: 26px 24px;
  background: var(--bg-card);
  background-image: var(--grad-surface);
  position: relative;
  transition: background-color 0.2s ease;
}
.stat:hover { background-color: var(--bg-raised); }

/* Gold hairline on top of each cell, brightening on hover. Gives the strip a
   read as instrument panel rather than four bare numbers. */
.stat::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad-gold);
  opacity: 0.35;
  transition: opacity 0.2s ease;
}
.stat:hover::before { opacity: 1; }

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

.stat-value {
  font-family: var(--mono);
  font-size: 32px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

/* ============================================
   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-card);
  background-image: var(--grad-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: background-color 0.2s ease, border-color 0.2s ease,
              transform 0.2s ease, box-shadow 0.2s ease;
}

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

.card-icon {
  font-size: 26px;
  margin-bottom: 18px;
  font-family: var(--mono);
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--accent);
}

.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: 16px;
}
.mint-grid-page {
  grid-template-columns: repeat(5, 1fr);
}
@media (max-width: 1200px) { .mint-grid-page { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 960px)  { .mint-grid-page { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px)  { .mint-grid-page { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .mint-grid-page { grid-template-columns: 1fr; } }

.mint-page-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0 8px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}
.mint-page-footer .zp-pager { padding: 0; }
.mint-page-footer .zp-meta { display: none; }

/* ============================================================
   Shared pagination footer (pagination.js).
   Renders arrows + numeric buttons + an "X items · page Y/Z"
   meta tag on the right. Used on /mint, /trade, and /buy/:tick.
   ============================================================ */
.zp-pager {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  padding: 28px 0 8px;
  font-family: var(--mono);
}
.zp-arrow, .zp-num {
  background: transparent;
  border: 1px solid var(--line-2);
  color: var(--text-dim);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  min-width: 32px;
  height: 32px;
  padding: 0 10px;
  border-radius: 2px;
  cursor: pointer;
  transition: color 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}
.zp-arrow:hover:not([disabled]),
.zp-num:hover { color: var(--accent); border-color: var(--accent); }
.zp-arrow[disabled] { opacity: 0.4; cursor: not-allowed; }
.zp-num-active {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}
.zp-num-active:hover { color: var(--bg); }
.zp-gap {
  color: var(--text-muted);
  font-size: 12px;
  padding: 0 4px;
  letter-spacing: 0.06em;
}
.zp-meta {
  margin-left: auto;
  color: var(--text-dim);
  font-size: 11px;
  letter-spacing: 0.04em;
}
@media (max-width: 720px) {
  .zp-meta { margin-left: 0; flex-basis: 100%; padding-top: 6px; }
}

.mint-card {
  background: var(--bg-card);
  background-image: var(--grad-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease,
              transform 0.18s ease, box-shadow 0.18s ease;
  position: relative;
  overflow: hidden;
}

/* Gold wash that fades in on hover. A border-colour change alone is too
   quiet to register as "this whole tile is the click target". */
.mint-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, var(--accent-soft) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.18s ease;
  pointer-events: none;
}

.mint-card:hover {
  background-color: var(--bg-raised);
  border-color: var(--line-accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-raised);
}
.mint-card:hover::after { opacity: 1; }

/* When .mint-card is rendered as an <a> (the whole card is clickable),
   strip default link styling and inherit text colors so child elements
   look identical to the old <div> version. */
a.mint-card,
.mint-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
a.mint-card:hover,
.mint-card-link:hover {
  text-decoration: none;
  color: inherit;
}

.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;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Launchpad rank badge — #1 next to ticker. v2 native deploys get
   1, 2, 3… in order; legacy v1 (ZERO) is rank #0 (only visible on
   trade page; mint page filters TRADING_LOCKED tickers out). */
.mint-rank {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: rgba(244, 183, 40, 0.08);
  border: 1px solid rgba(244, 183, 40, 0.25);
  padding: 3px 7px;
  border-radius: 2px;
}

.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-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.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-color 0.15s ease, box-shadow 0.15s ease;
  position: relative;
  font-variant-numeric: tabular-nums;
}

.market-row:last-child { border-bottom: none; }
.market-row:hover {
  background-color: var(--bg-raised);
  /* Gold rail on the hovered row. In a dense table a background shift alone
     is easy to lose; the rail marks which row the cursor is actually on. */
  box-shadow: inset 3px 0 0 var(--accent);
}

.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: 40px 40px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

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

.footer-nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

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

.footer-nav 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
   ============================================ */
/* Below 820px: hide inline nav links, show the burger. The old 640px
   threshold left a dead zone (641-720px) where the brand + Deploy +
   Mint + Trade + FAQ + Wallet + Connect Wallet pill all tried to fit
   on one row and either wrapped ugly or overflowed off-screen on
   tablets. 820px is comfortably above the iPad portrait width (768px),
   so tablets get the burger UI too. */
@media (max-width: 820px) {
  .nav-burger { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    padding: 8px 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 14px 24px;
    font-size: 14px;
    border-bottom: 1px solid var(--line);
  }
  .nav-links a:last-child { border-bottom: none; }
  .nav-inner { padding: 16px 24px; position: relative; }
}

/* Below 480px: the Wallet "Holdings" pill duplicates the burger menu's
   Wallet link AND eats horizontal real estate from the brand. Drop it;
   users still hit the wallet via the burger and the Connect Wallet
   button stays visible. Also tighten side padding so a 360px phone
   isn't fighting the brand + burger + connect button for space. */
@media (max-width: 480px) {
  .nav-cta-link { display: none; }
  .nav-inner { padding: 14px 16px; }
  .nav-cta { gap: 10px; }
}

@media (max-width: 980px) {
  .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 is display:flex; flex-direction:column kicks in at 600px
     in another media block. grid-template-columns on a flex container is a
     no-op, so this used to be a dead rule. Keep just the gap. */
  .footer-inner { 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-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer-nav { gap: 20px; }
  .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; }

/* ============================================
   BULK MINT progress modal (N parallel mints)
   ============================================ */
.iw-bulk-overall {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text);
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  letter-spacing: 0.04em;
}
.iw-bulk-overall.iw-bulk-ok      { color: var(--green); }
.iw-bulk-overall.iw-bulk-partial { color: var(--accent); }
.iw-bulk-overall.iw-bulk-allfail { color: var(--red); }
.iw-bulk-list {
  padding: 8px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 50vh;
  overflow-y: auto;
}
.iw-bulk-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 12px;
  padding: 8px 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 2px;
}
.iw-bulk-num {
  color: var(--text-dim);
  letter-spacing: 0.04em;
  min-width: 40px;
}
.iw-bulk-status {
  color: var(--text-muted);
  font-size: 11.5px;
}
.iw-bulk-row.iw-bulk-done {
  border-left: 3px solid var(--green);
}
.iw-bulk-row.iw-bulk-done .iw-bulk-status {
  color: var(--green);
}
.iw-bulk-row.iw-bulk-fail {
  border-left: 3px solid var(--red);
}
.iw-bulk-row.iw-bulk-fail .iw-bulk-status {
  color: var(--red);
}
.iw-modal-body > #bulkClose {
  margin: 18px;
  width: calc(100% - 36px);
}

/* ============================================
   PHONE OPTIMIZATIONS (<=480px)
   Targeted overrides for the smallest screens. Bigger breakpoints
   (640, 720, 820, 980) handle tablets above; this block tightens the
   things that still cramp on a 360-420px phone.
   ============================================ */
@media (max-width: 480px) {
  /* Hero spacing: less wasted vertical above the fold. */
  .hero { padding: 96px 20px 56px; }
  .section { padding: 56px 20px; }

  /* Gas selector: 2x2 instead of 1x4. With 4 columns and ~310px of
     modal-body width, button labels like "Custom"/"Medium" truncate
     or wrap. 2x2 gives every button ~140px and lets labels stay
     full-size + readable. */
  .iw-gas-row { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .iw-gas-btn { font-size: 12px; padding: 10px 6px; }

  /* Inscribe modal: drop backdrop padding from 24px → 12px so the
     modal itself has more room on narrow phones. */
  .iw-modal-backdrop { padding: 12px; }
  .iw-modal-head { padding: 14px 16px; }

  /* Wallet modal head: tighten gap so the close button doesn't crowd
     the title on narrow screens. */
  .wallet-modal-head { padding: 14px 16px; }

  /* Font-size floor: anything below 12px is hard to read on a phone.
     The 10/11px labels on data-dense rows get bumped up. */
  .iw-gas-sub,
  .iw-success-kv span,
  .iw-success-kv code,
  .footer-bottom span,
  .legend,
  .table-footer { font-size: 12px; }
}

/* ============================================
   DEPLOY · curve launch fields
   ============================================ */
.form-row-split { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row-split > div { display: flex; flex-direction: column; }

.dp-toggle {
  display: flex; align-items: center; gap: 10px;
  cursor: pointer; font-weight: 600; color: var(--text);
}
.dp-toggle input { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }

.dp-hint {
  font-size: 12px; line-height: 1.5; color: var(--text-muted);
  margin: 6px 0 0;
}

/* Projection of what a full curve raises. Shown live because the numbers
   are the whole decision — a creator picking p0/p1 blind has no idea what
   they are choosing. */
.dp-projection {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 16px;
}
.dp-projection > div {
  background: var(--bg-card);
  padding: 12px 14px;
  display: flex; flex-direction: column; gap: 4px;
}
.dp-projection span {
  font-family: var(--mono); font-size: 10px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--text-muted);
}
.dp-projection strong {
  font-family: var(--mono); font-size: 15px; font-weight: 600;
  color: var(--text); font-variant-numeric: tabular-nums;
}
#projCreator { color: var(--green); }
