/* cashbot.tech — лендинг v1 */

:root {
  --bg: #0c1222;
  --bg-card: #141c2f;
  --border: #243044;
  --text: #e8edf5;
  --muted: #8b9cb3;
  --accent: #34d399;
  --accent-dim: #065f46;
  --cyan: #22d3ee;
  --radius: 14px;
  --font: "Manrope", system-ui, -apple-system, sans-serif;
  --max: 1080px;
  /* Горизонтальные поля контента: на мобильных шире, чтобы текст не прилипал к краям */
  --page-gutter: 40px;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a:hover {
  text-decoration: underline;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn:focus-visible,
.header-cta:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

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

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

@media (max-width: 768px) {
  :root {
    --page-gutter: 48px;
  }
}

@media (max-width: 480px) {
  :root {
    --page-gutter: 52px;
  }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(12, 18, 34, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  width: min(100% - var(--page-gutter), var(--max));
  margin-inline: auto;
}

@media (max-width: 480px) {
  .site-header .inner {
    padding: 12px 0;
  }

  .header-cta {
    padding: 12px 14px;
    font-size: 0.85rem;
    white-space: nowrap;
  }
}

.logo {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.logo span {
  color: var(--accent);
}

.header-cta {
  font-weight: 600;
  font-size: 0.95rem;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #059669, #34d399);
  color: #042f2e !important;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.header-cta:hover {
  filter: brightness(1.08);
}

/* Hero */
.hero {
  position: relative;
  padding: 56px 0 72px;
  overflow: hidden;
}

@media (max-width: 599px) {
  .hero {
    padding: 36px 0 48px;
  }

  .hero-tagline {
    margin-bottom: 16px;
    font-size: 1rem;
    line-height: 1.55;
  }

  .hero-lead {
    font-size: 1rem;
    max-width: none;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    min-height: 48px;
  }
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/assets/pattern-dots.svg") repeat;
  opacity: 0.4;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 40px;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr 1.05fr;
    gap: 48px;
  }
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cyan);
  margin-bottom: 12px;
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.hero-tagline {
  margin: 0 0 20px;
  padding: 0;
  padding-inline-start: 0;
  border: none;
  font-size: 1.1rem;
  font-weight: 400;
  font-style: italic;
  letter-spacing: normal;
  line-height: 1.55;
  color: var(--muted);
  max-width: 42ch;
  text-wrap: balance;
}

.hero-tagline p {
  margin: 0;
}

.hero-lead {
  margin: 0 0 28px;
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 42ch;
}

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

.cta-hint {
  margin: 12px 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.cta-hint--footer {
  margin-top: 16px;
  max-width: 36ch;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: 1rem;
  min-height: 48px;
  padding: 14px 24px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none !important;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, #059669, #34d399);
  color: #042f2e;
}

.btn-primary:hover {
  filter: brightness(1.06);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero-visual {
  border-radius: var(--radius);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

/* Sections */
section {
  padding: 64px 0;
}

@media (max-width: 599px) {
  section {
    padding: 44px 0;
  }

  .section-intro {
    margin-bottom: 28px;
  }

  .export-block {
    padding: 22px 22px;
  }

  .cta-band {
    padding: 48px clamp(22px, 6vw, 40px);
  }
}

.section-alt {
  background: rgba(20, 28, 47, 0.5);
}

.section-title {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-intro {
  margin: 0 0 40px;
  color: var(--muted);
  max-width: 56ch;
}

/* Pain / solution */
.grid-3 {
  display: grid;
  gap: 20px;
}

@media (min-width: 720px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 600;
}

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

.pain .card h3 {
  color: #fca5a5;
}

.solution .card h3 {
  color: var(--accent);
}

.inline-link {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.inline-link:hover {
  color: var(--accent);
}

/* #how: Z-паттерн (текст — картинка, чередование) */
.how-z-row {
  display: grid;
  gap: 28px;
  align-items: center;
  margin-bottom: 48px;
}

/* Иначе широкая таблица в grid ломает мобилку: min-content растягивает колонку */
.how-z-row > * {
  min-width: 0;
}

@media (min-width: 880px) {
  .how-z-row {
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
    gap: 44px;
    margin-bottom: 56px;
  }

  /* В DOM сначала картинка — шире колонка под текст справа */
  .how-z-row--flip {
    grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.05fr);
  }
}

.how-z-copy {
  min-width: 0;
}

.how-z-step-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 8px;
}

.how-z-step-meta .how-z-label,
.how-z-step-meta .badge-1c {
  margin-bottom: 0;
}

.how-z-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 8px;
}

.how-z-heading {
  margin: 0 0 12px;
  font-size: clamp(1.2rem, 2.8vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.how-z-heading--xl {
  font-size: clamp(1.35rem, 3.5vw, 1.85rem);
}

.how-z-text {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
  max-width: 48ch;
}

.how-z-text:last-of-type {
  margin-bottom: 0;
}

.how-z-text strong {
  color: var(--text);
}

.how-z-figure {
  margin: 0;
  padding: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.how-z-figure img {
  display: block;
  width: 100%;
  max-width: 400px;
  height: auto;
  margin: 0 auto;
  border-radius: 8px;
}

.how-z-caption {
  margin: 12px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
}

.badge-1c {
  display: inline-block;
  margin-bottom: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #042f2e;
  background: linear-gradient(135deg, #34d399, #6ee7b7);
  border: 1px solid rgba(52, 211, 153, 0.5);
}

.how-z-row--export {
  padding: 28px 18px 32px;
  margin-bottom: 0;
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid rgba(52, 211, 153, 0.28);
  background: linear-gradient(145deg, rgba(6, 95, 70, 0.14), rgba(15, 23, 42, 0.75));
}

@media (min-width: 880px) {
  .how-z-row--export {
    padding: 40px 36px 44px;
    grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.1fr);
    gap: 36px;
  }
}

.how-z-copy--export .how-z-text {
  max-width: 52ch;
}

.how-z-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
  align-items: center;
}

.how-z-actions .btn {
  min-height: 48px;
}

/* Превью таблицы внутри Z-ряда */
.report-preview-shell {
  margin: 28px 0 32px;
  padding: 20px 16px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.report-preview-shell--in-z {
  margin: 0;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  width: 100%;
  max-width: 100%;
}

.report-preview-kicker {
  margin: 0 0 14px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  text-align: center;
}

.report-preview-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  touch-action: pan-x pan-y;
  border-radius: 8px;
  border: 1px solid #334155;
  background: #0f172a;
}

.report-preview-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 0.78rem;
  line-height: 1.35;
}

.report-preview-table th,
.report-preview-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid #334155;
  border-right: 1px solid #1e293b;
  white-space: nowrap;
}

.report-preview-table th:last-child,
.report-preview-table td:last-child {
  border-right: none;
}

.report-preview-table th {
  background: #14532d;
  color: #ecfdf5;
  font-weight: 600;
}

.report-preview-table tbody tr:nth-child(even) {
  background: rgba(30, 41, 59, 0.5);
}

.report-preview-table tbody tr:hover {
  background: rgba(52, 211, 153, 0.06);
}

.report-preview-table td {
  color: var(--text);
}

.report-preview-table .cell-link {
  color: var(--accent);
  font-weight: 500;
}

.report-preview-note {
  margin: 14px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.45;
}

/* Сферы применения (use cases) */
.use-cases-grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 768px) {
  .use-cases-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

.use-case-card {
  padding: 26px 22px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, #141c2f 0%, #0f172a 100%);
  border: 1px solid var(--border);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.use-case-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  border-color: #334155;
}

@media (prefers-reduced-motion: reduce) {
  .use-case-card {
    transition: none;
  }

  .use-case-card:hover {
    transform: none;
  }
}

.use-case-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
  border-radius: 12px;
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.22);
}

.use-case-icon svg {
  flex-shrink: 0;
}

.use-case-title {
  margin: 0 0 14px;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.use-case-block {
  margin: 0 0 12px;
  font-size: 0.94rem;
  line-height: 1.5;
  color: var(--muted);
}

.use-case-block:last-child {
  margin-bottom: 0;
}

.use-case-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.use-case-label--problem {
  color: #fca5a5;
}

.use-case-label--solution {
  color: var(--accent);
}

/* Export block */
.export-block {
  display: grid;
  gap: 24px;
  align-items: start;
  padding: 36px;
  border-radius: calc(var(--radius) + 4px);
  background: linear-gradient(135deg, rgba(6, 95, 70, 0.25), rgba(15, 23, 42, 0.9));
  border: 1px solid rgba(52, 211, 153, 0.25);
}

@media (min-width: 800px) {
  .export-block {
    grid-template-columns: 1.2fr 1fr;
  }
}

.export-block h2 {
  margin: 0 0 12px;
  font-size: 1.45rem;
}

.export-block .lead {
  margin: 0 0 20px;
  color: var(--muted);
}

.export-list {
  margin: 0;
  padding-left: 1.2em;
  color: var(--text);
}

.export-list li {
  margin-bottom: 8px;
}

.export-aside {
  padding: 20px;
  background: rgba(15, 23, 42, 0.8);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.export-aside strong {
  color: var(--accent);
}

/* CTA band */
.cta-band {
  text-align: center;
  padding: 72px clamp(24px, 5vw, 48px);
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(52, 211, 153, 0.15), transparent),
    var(--bg);
  border-top: 1px solid var(--border);
}

.cta-band h2 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.cta-band p {
  margin: 0 auto 24px;
  color: var(--muted);
  max-width: 42ch;
}

/* Demo / video placeholder */
.video-shell {
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.6);
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.video-placeholder {
  margin: 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 40ch;
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Footer */
.site-footer {
  padding: 32px 0 max(40px, env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--muted);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
}
