/* ZatBack publisher site — white background, logo blue, Zcash gold */

:root {
  --white: #ffffff;
  --bg: #ffffff;
  --bg-soft: #f6f8fc;
  --bg-muted: #eef2f8;
  --text: #111827;
  --text-muted: #4b5563;
  --text-dim: #6b7280;
  --border: #e5e7eb;
  --blue: #3b82f6;
  --blue-dark: #2563eb;
  --blue-light: #60a5fa;
  --gold: #f4b728;
  --gold-dark: #c9941a;
  --gold-soft: #fff8e6;
  --radius: 12px;
  --radius-lg: 16px;
  --font: "DM Sans", system-ui, -apple-system, sans-serif;
  --font-display: "Outfit", var(--font);
  --max: 1100px;
  --header-h: 64px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html {
  color-scheme: light only;
  background: #ffffff !important;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: #ffffff !important;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--blue-dark);
  text-decoration: none;
}

a:hover {
  color: var(--blue);
}

code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.88em;
  padding: 0.15em 0.45em;
  border-radius: 4px;
  background: var(--gold-soft);
  color: var(--gold-dark);
}

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* ─── Simple site header ─── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.logo img {
  height: 32px;
  width: auto;
}

.jtr-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-dim);
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  white-space: nowrap;
}

.jtr-back:hover {
  color: var(--text);
  border-color: #cbd5e1;
  background: var(--bg-soft);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
}

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

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  background: var(--gold);
  border-radius: 8px;
  white-space: nowrap;
}

.nav-cta:hover {
  color: var(--text);
  background: #e5a820;
}

.menu-toggle {
  display: none;
  padding: 0.4rem 0.65rem;
  font-size: 1.25rem;
  line-height: 1;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  color: var(--text);
  cursor: pointer;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.25rem;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.btn-primary {
  color: var(--text);
  background: var(--gold);
}

.btn-primary:hover {
  color: var(--text);
  background: #e5a820;
}

.btn-ghost {
  color: var(--blue-dark);
  background: var(--white);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--blue-light);
  background: var(--bg-soft);
}

/* ─── Hero ─── */
.hero {
  padding: 3rem 0 4rem;
  background: var(--white);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-dark);
  margin-bottom: 1rem;
  padding: 0.3rem 0.75rem;
  background: #eff6ff;
  border-radius: 999px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  color: var(--text);
}

.hero h1 span {
  color: var(--blue-dark);
}

.hero-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 36rem;
  margin: 0 0 1.5rem;
}

.hero-lead strong {
  color: var(--text);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-card {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
  border: 1px solid var(--border);
}

.hero-card h3 {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-dark);
  margin: 0 0 1rem;
}

.stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.stat {
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--border);
}

.stat-value {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.15rem;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* ─── Sections ─── */
section {
  padding: 3.5rem 0;
}

.section-alt {
  background: var(--bg-soft);
}

.section-head {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 2.5rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 700;
  margin: 0 0 0.65rem;
  color: var(--text);
}

.section-head p {
  color: var(--text-muted);
  margin: 0;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.card {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--border);
}

.section-alt .card {
  background: var(--white);
}

.card-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 1.2rem;
  margin-bottom: 0.85rem;
  background: #eff6ff;
}

.card:nth-child(2) .card-icon {
  background: var(--gold-soft);
}

.card:nth-child(3) .card-icon {
  background: var(--bg-muted);
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.4rem;
}

.card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0;
}

.flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.flow-step {
  text-align: center;
  padding: 0 0.5rem;
}

.flow-num {
  width: 2.5rem;
  height: 2.5rem;
  margin: 0 auto 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--white);
  background: var(--blue);
  border-radius: 50%;
}

.flow-step h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
}

.flow-step p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.panel {
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--border);
}

.section-alt .panel {
  background: var(--white);
}

.panel h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 1rem;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.check-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.7rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--gold-dark);
  font-weight: 700;
}

.check-list strong {
  color: var(--text);
}

.cta {
  padding: 3.5rem 0 4rem;
  background: var(--white);
}

.cta-box {
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
  border: 1px solid var(--border);
}

.cta-box h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  margin: 0 0 0.6rem;
}

.cta-box p {
  color: var(--text-muted);
  max-width: 32rem;
  margin: 0 auto 1.25rem;
}

.cta-contacts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2rem;
  margin-top: 1.25rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.cta-contacts a {
  color: var(--blue-dark);
  font-weight: 500;
}

.site-footer {
  padding: 1.5rem 0 2rem;
  border-top: 1px solid var(--border);
  background: var(--white);
  font-size: 0.875rem;
  color: var(--text-dim);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
}

.footer-links a {
  color: var(--text-muted);
}

/* ─── Mobile ─── */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 11rem;
    padding: 1rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  }

  .header-right {
    position: relative;
  }

  .menu-toggle {
    display: block;
  }

  .nav-cta {
    display: none;
  }

  .hero-grid,
  .split,
  .card-grid {
    grid-template-columns: 1fr;
  }

  .flow {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .jtr-back span.label {
    display: none;
  }

  .flow {
    grid-template-columns: 1fr;
  }

  .stat-row {
    grid-template-columns: 1fr;
  }
}
