/* ═══════════════════════════════════════════
   HUNTERS — Digital Coffee Trading Platform
   Brand: deep black · emerald · lime · gold · amber · orange
   ═══════════════════════════════════════════ */
:root {
  --m-bg: #050505;
  --m-bg2: #0a0c0a;
  --m-card: rgba(255,255,255,0.04);
  --m-card-solid: #0f1410;
  --m-line: rgba(52, 211, 153, 0.14);
  --m-line-gold: rgba(251, 191, 36, 0.22);
  --m-text: #f8faf8;
  --m-muted: #9ca8a0;
  --m-green: #22c55e;
  --m-lime: #84cc16;
  --m-emerald: #10b981;
  --m-gold: #fbbf24;
  --m-amber: #f59e0b;
  --m-orange: #f97316;
  --m-red: #ef4444;
  --m-grad-primary: linear-gradient(135deg, #16a34a 0%, #84cc16 55%, #fbbf24 100%);
  --m-grad-cta: linear-gradient(135deg, #15803d, #22c55e);
  --m-grad-gold: linear-gradient(135deg, #f59e0b, #f97316);
  --m-glow-green: 0 0 40px rgba(34, 197, 94, 0.25);
  --m-glow-gold: 0 0 32px rgba(251, 191, 36, 0.2);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 18px;
  --radius-sm: 12px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.mkt-body {
  margin: 0; min-height: 100dvh;
  font-family: var(--font);
  background:
    radial-gradient(900px 500px at 15% -5%, rgba(34, 197, 94, 0.18), transparent 55%),
    radial-gradient(800px 480px at 95% 5%, rgba(249, 115, 22, 0.12), transparent 50%),
    radial-gradient(600px 400px at 50% 100%, rgba(251, 191, 36, 0.06), transparent 45%),
    var(--m-bg);
  color: var(--m-text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--m-lime); text-decoration: none; }
a:hover { color: var(--m-gold); text-decoration: none; }

/* ── Nav (mobile-first) ── */
.mkt-nav {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: .65rem;
  padding: 0.65rem 1rem;
  padding-left: max(1rem, env(safe-area-inset-left));
  padding-right: max(1rem, env(safe-area-inset-right));
  background: rgba(5, 5, 5, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--m-line);
  min-height: 56px;
  box-sizing: border-box;
  width: 100%;
  max-width: 100vw;
  overflow: hidden; /* never spill nav onto hero */
}
.mkt-brand {
  display: flex; align-items: center; gap: .5rem;
  font-weight: 800; letter-spacing: 0.03em; color: #fff; text-decoration: none;
  flex: 0 1 auto; min-width: 0; max-width: calc(100% - 56px);
}
.mkt-brand img {
  width: 32px; height: 32px; flex-shrink: 0;
  background: transparent; box-shadow: none; object-fit: contain;
}
.mkt-brand span {
  font-size: .92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Desktop-only link row + CTAs — hidden on phones */
.mkt-links {
  display: none !important;
  align-items: center;
  gap: 1rem;
  margin-left: .75rem;
  flex: 1 1 auto;
  flex-wrap: nowrap;
}
.mkt-links a {
  color: var(--m-muted); font-weight: 500; font-size: .86rem;
  text-decoration: none; transition: color .2s;
  white-space: nowrap;
}
.mkt-links a.active, .mkt-links a:hover { color: #fff; }
.mkt-actions {
  display: none !important;
  margin-left: auto;
  align-items: center;
  gap: .45rem;
  flex-shrink: 0;
}
.mkt-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .55rem 1rem; border-radius: 12px; font-weight: 650; font-size: .88rem;
  text-decoration: none !important; border: none; cursor: pointer;
  transition: transform .15s, box-shadow .2s, filter .2s;
  white-space: nowrap;
}
.mkt-btn:active { transform: scale(0.98); }
.mkt-btn.primary {
  background: var(--m-grad-cta);
  color: #fff;
  box-shadow: 0 8px 28px rgba(34, 197, 94, 0.35);
}
.mkt-btn.primary:hover { filter: brightness(1.08); box-shadow: 0 10px 32px rgba(34, 197, 94, 0.45); }
.mkt-btn.ghost {
  color: var(--m-text); border: 1px solid var(--m-line);
  background: rgba(255,255,255,0.03);
}
.mkt-btn.ghost:hover { border-color: rgba(34, 197, 94, 0.45); color: #fff; }
.mkt-btn.gold {
  background: var(--m-grad-gold);
  color: #1a0a00;
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.3);
}
.mkt-burger {
  margin-left: auto;
  flex-shrink: 0;
  background: transparent; border: 1px solid var(--m-line);
  color: #fff; width: 42px; height: 42px; border-radius: 12px; font-size: 1.15rem;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.mkt-drawer {
  position: fixed; left: 0; right: 0; top: 56px; z-index: 39;
  background: rgba(5,5,5,0.98);
  border-bottom: 1px solid var(--m-line);
  padding: 1rem 1.15rem calc(1.25rem + env(safe-area-inset-bottom));
  max-height: min(70vh, calc(100vh - 56px));
  overflow-y: auto;
  box-sizing: border-box;
}
.mkt-drawer nav { display: flex; flex-direction: column; gap: .15rem; }
.mkt-drawer a {
  color: var(--m-muted); font-weight: 600; font-size: 1rem;
  padding: .7rem .35rem; text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.mkt-drawer a.active { color: #fff; }
.mkt-drawer a.primary {
  display: flex; justify-content: center; margin-top: .85rem;
  background: var(--m-grad-cta); color: #fff; border-radius: 12px; padding: .85rem;
  border-bottom: none; font-weight: 700;
}

@media (min-width: 900px) {
  .mkt-nav { padding: 0.7rem 1.35rem; gap: 1rem; overflow: visible; }
  .mkt-links { display: flex !important; }
  .mkt-actions { display: flex !important; }
  .mkt-burger { display: none !important; }
  .mkt-drawer { display: none !important; }
  .mkt-brand span { font-size: 1rem; }
  .mkt-brand img { width: 36px; height: 36px; }
}

/* Page gutters — stop horizontal overflow */
.mkt-body {
  overflow-x: hidden;
}
.mkt-hero,
.mkt-section,
.mkt-banner {
  padding-left: max(1rem, env(safe-area-inset-left));
  padding-right: max(1rem, env(safe-area-inset-right));
  box-sizing: border-box;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}
.mkt-hero { padding-top: 1.75rem; padding-bottom: 2.5rem; }
.mkt-hero-logo { width: min(280px, 72vw); margin-bottom: 1rem; }
.mkt-cta { gap: .55rem; }
.mkt-cta .mkt-btn { flex: 0 1 auto; }


/* ── Hero ── */
.mkt-hero {
  display: grid; gap: 2rem; padding: 2.5rem 1.25rem 3rem;
  max-width: 1100px; margin: 0 auto; align-items: center;
}
.mkt-hero-logo {
  display: block; width: min(320px, 78vw); height: auto; margin: 0 auto 1.25rem;
  background: transparent !important;
  border: none; border-radius: 0;
  box-shadow: none;
  filter: drop-shadow(0 0 24px rgba(34, 197, 94, 0.22));
  object-fit: contain;
}
.mkt-kicker {
  display: inline-block;
  font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--m-lime); margin-bottom: .65rem;
}
.mkt-hero h1 {
  font-size: clamp(1.75rem, 5vw, 2.75rem); font-weight: 800; line-height: 1.15;
  margin: 0 0 .85rem; letter-spacing: -0.02em;
}
.mkt-hero .lead {
  color: var(--m-muted); font-size: 1.05rem; margin: 0 0 1.5rem; max-width: 36rem;
}
.mkt-cta { display: flex; flex-wrap: wrap; gap: .65rem; }

.mkt-card {
  background: var(--m-card);
  border: 1px solid var(--m-line);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
}
.mkt-card h3 { margin: 0 0 .5rem; font-size: 1.05rem; font-weight: 700; }
.mkt-card p { margin: 0; color: var(--m-muted); font-size: .92rem; }
.mkt-price {
  font-size: 1.75rem; font-weight: 800; letter-spacing: -0.02em;
  background: var(--m-grad-primary);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.mkt-vol-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: .55rem;
}
.mkt-vol-card {
  background: rgba(0,0,0,0.25); border-radius: 12px; padding: .65rem .75rem;
  border: 1px solid rgba(255,255,255,0.04);
}
.mkt-vol-label { display: block; font-size: .68rem; color: var(--m-muted); text-transform: uppercase; letter-spacing: .06em; }
.mkt-vol-val { font-size: .95rem; font-weight: 700; }
.mkt-vol-cur, .mkt-vol-tok { display: block; font-size: .72rem; color: var(--m-muted); }

@media (min-width: 860px) {
  .mkt-hero {
    grid-template-columns: 1.1fr 0.9fr;
    padding: 3.5rem 1.5rem 4rem;
  }
  .mkt-hero-logo { margin: 0 0 1.5rem; width: min(360px, 100%); }
}

/* ── Sections ── */
.mkt-section {
  max-width: 1100px; margin: 0 auto; padding: 2.5rem 1.25rem;
}
.mkt-section h2 {
  font-size: clamp(1.35rem, 3vw, 1.85rem); font-weight: 800; margin: 0 0 .5rem;
}
.mkt-section .sub { color: var(--m-muted); margin: 0 0 1.5rem; max-width: 40rem; }
.mkt-grid2 {
  display: grid; gap: 1rem;
  grid-template-columns: 1fr;
}
.mkt-grid3 {
  display: grid; gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .mkt-grid2 { grid-template-columns: 1fr 1fr; }
  .mkt-grid3 { grid-template-columns: 1fr 1fr 1fr; }
}

/* Steps */
.mkt-steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: .85rem;
  counter-reset: step;
}
.mkt-steps li {
  counter-increment: step;
  position: relative;
  padding: 1rem 1rem 1rem 4rem;
  background: var(--m-card);
  border: 1px solid var(--m-line);
  border-radius: var(--radius-sm);
}
.mkt-steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 1rem; top: 50%; transform: translateY(-50%);
  font-weight: 800; font-size: .95rem;
  background: var(--m-grad-primary);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
@media (min-width: 720px) {
  .mkt-steps {
    grid-template-columns: repeat(5, 1fr);
  }
  .mkt-steps li {
    padding: 1.15rem .85rem;
    text-align: center;
  }
  .mkt-steps li::before {
    position: static; display: block; transform: none;
    margin-bottom: .45rem; font-size: 1.15rem;
  }
}

/* Market card highlight */
.mkt-market-card {
  background:
    linear-gradient(145deg, rgba(34, 197, 94, 0.08), rgba(249, 115, 22, 0.06)),
    var(--m-card);
  border: 1px solid rgba(34, 197, 94, 0.22);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.mkt-market-actions { display: flex; gap: .55rem; margin-top: 1.1rem; flex-wrap: wrap; }

/* Feature cards */
.mkt-feat {
  display: flex; flex-direction: column; gap: .35rem;
  min-height: 120px;
}
.mkt-feat-ico {
  width: 40px; height: 40px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(34, 197, 94, 0.12); color: var(--m-lime);
  font-size: 1.15rem; margin-bottom: .25rem;
}

/* Banner CTA */
.mkt-banner {
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-radius: var(--radius);
  background:
    radial-gradient(600px 200px at 50% 0%, rgba(34, 197, 94, 0.2), transparent 70%),
    rgba(255,255,255,0.03);
  border: 1px solid var(--m-line);
}
.mkt-banner h2 { margin: 0 0 .5rem; }
.mkt-banner p { color: var(--m-muted); margin: 0 0 1.25rem; }
.mkt-banner .mkt-cta { justify-content: center; }

/* Footer */
.mkt-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--m-line);
  padding: 2rem 1.25rem 2.5rem;
  background: rgba(0,0,0,0.35);
}
.mkt-footer-grid {
  max-width: 1100px; margin: 0 auto 1.5rem;
  display: grid; gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .mkt-footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
.mkt-footer strong { display: block; margin-bottom: .35rem; }
.mkt-footer p { color: var(--m-muted); font-size: .88rem; margin: 0; }
.mkt-footer span {
  display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--m-muted); margin-bottom: .5rem; font-weight: 600;
}
.mkt-footer a {
  display: block; color: var(--m-muted); font-size: .9rem; margin: .25rem 0;
  text-decoration: none;
}
.mkt-footer a:hover { color: var(--m-lime); }
.mkt-copy {
  max-width: 1100px; margin: 0 auto; text-align: center;
  color: var(--m-muted); font-size: .78rem;
}

/* Table */
.mkt-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.mkt-table th, .mkt-table td {
  text-align: left; padding: .55rem .4rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mkt-table th { color: var(--m-muted); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }

/* Subtle animation */
@keyframes mkt-glow {
  0%, 100% { filter: drop-shadow(0 0 20px rgba(34, 197, 94, 0.2)); }
  50% { filter: drop-shadow(0 0 32px rgba(34, 197, 94, 0.35)); }
}
.mkt-hero-logo { animation: mkt-glow 4s ease-in-out infinite; }

/* ── Photo story ── */
.mkt-story {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
}
.mkt-story-grid {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 720px) {
  .mkt-story-grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: stretch;
  }
  .mkt-story-grid.rev { direction: rtl; }
  .mkt-story-grid.rev > * { direction: ltr; }
}
.mkt-photo {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--m-line);
  box-shadow: 0 20px 50px rgba(0,0,0,0.45);
  min-height: 220px;
  background: #0a0a0a;
}
.mkt-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 220px;
  max-height: 360px;
}
@media (min-width: 720px) {
  .mkt-photo img { max-height: 420px; min-height: 280px; }
}
.mkt-photo-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.1rem 1.15rem 1rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.82));
  font-size: .82rem;
  color: rgba(255,255,255,0.9);
  font-weight: 500;
}
.mkt-story-copy h3 {
  margin: 0 0 .55rem;
  font-size: 1.25rem;
  font-weight: 800;
}
.mkt-story-copy p {
  margin: 0 0 .85rem;
  color: var(--m-muted);
  font-size: .95rem;
  line-height: 1.6;
}
.mkt-story-copy .mkt-kicker { margin-bottom: .4rem; }

/* Photo mosaic for /coffee page */
.mkt-mosaic {
  display: grid;
  gap: .85rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .mkt-mosaic {
    grid-template-columns: 1fr 1fr;
  }
  .mkt-mosaic .span2 { grid-column: span 2; }
}
.mkt-mosaic .mkt-photo img {
  max-height: 280px;
}
.mkt-chip-row {
  display: flex; flex-wrap: wrap; gap: .45rem; margin: 1rem 0 0;
}
.mkt-chip {
  display: inline-flex;
  padding: .35rem .7rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
  color: var(--m-lime);
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.22);
}
.mkt-chip.gold {
  color: var(--m-gold);
  background: rgba(251, 191, 36, 0.1);
  border-color: rgba(251, 191, 36, 0.25);
}
.hunters-splash {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(800px 400px at 50% 30%, rgba(34,197,94,.18), transparent 55%), #050505;
}
.hunters-splash img {
  width: min(180px, 46vw); height: auto;
  filter: drop-shadow(0 0 28px rgba(34,197,94,.3));
  animation: splash-pulse 1.4s ease-in-out infinite;
}
.hunters-splash p {
  margin: 1rem 0 0; color: #9ca8a0; font-size: .85rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
}
@keyframes splash-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}


/* Social icons row (footer / contact) */
.mkt-socials {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: .85rem;
}
.mkt-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: var(--m-lime, #a3e635);
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.mkt-social:hover {
  background: rgba(163, 230, 53, .12);
  border-color: rgba(163, 230, 53, .45);
  color: #fff;
  transform: translateY(-1px);
}
.mkt-social svg { display: block; }

/* —— Photo story blocks —— */
.mkt-photo-hero {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  min-height: 220px;
  margin: 1.25rem 0 1.75rem;
  background: #0a1f12;
}
.mkt-photo-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 220px;
  max-height: 360px;
}
.mkt-photo-hero .mkt-photo-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.25rem 1.35rem;
  background: linear-gradient(transparent, rgba(5,12,8,.92));
  color: #e8f5e9;
}
.mkt-photo-hero .mkt-photo-caption strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: .25rem;
}
.mkt-photo-hero .mkt-photo-caption span {
  font-size: .88rem;
  opacity: .88;
  line-height: 1.45;
}

.mkt-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: center;
  margin: 1.5rem 0;
}
@media (max-width: 720px) {
  .mkt-split { grid-template-columns: 1fr; }
}
.mkt-split img {
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
  max-height: 280px;
  display: block;
}
.mkt-split .mkt-split-copy h3 {
  margin: 0 0 .5rem;
  font-size: 1.15rem;
}
.mkt-split .mkt-split-copy p {
  margin: 0;
  color: var(--m-muted);
  font-size: .92rem;
  line-height: 1.55;
}

.mkt-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
  margin: 1.25rem 0;
}
@media (max-width: 720px) {
  .mkt-gallery { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) {
  .mkt-gallery { grid-template-columns: 1fr; }
}
.mkt-gallery figure {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #0a1f12;
  position: relative;
}
.mkt-gallery img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}
.mkt-gallery figcaption {
  padding: .55rem .7rem .7rem;
  font-size: .78rem;
  color: var(--m-muted);
  line-height: 1.35;
}

.mkt-steps {
  display: grid;
  gap: .85rem;
  margin: 1.25rem 0;
}
.mkt-step {
  display: flex;
  gap: .9rem;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
}
.mkt-step-num {
  flex: 0 0 2rem;
  height: 2rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #16a34a, #6d28d9);
  color: #fff;
  font-weight: 700;
  font-size: .9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mkt-step h3 { margin: 0 0 .25rem; font-size: 1rem; }
.mkt-step p { margin: 0; color: var(--m-muted); font-size: .88rem; line-height: 1.45; }

.mkt-value-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .85rem;
  margin: 1.25rem 0;
}
@media (max-width: 720px) {
  .mkt-value-row { grid-template-columns: 1fr; }
}
.mkt-value {
  padding: 1.1rem 1.15rem;
  border-radius: 16px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.09);
}
.mkt-value h3 { margin: 0 0 .35rem; font-size: .95rem; }
.mkt-value p { margin: 0; color: var(--m-muted); font-size: .85rem; line-height: 1.45; }
