/* ============================================================================
   Лендинг Transcript Reports — паттерны «Сигнал на графите»
   (архив: Пример дизайна/assets/style.css): bg-grid, glow, orbit, reveal,
   float-chip, stat-strip, терминал, cta-band + сигнатурный мокап отчёта.
   Токены — theme.css; здесь только страница «/».
   ========================================================================== */

:root { --grid: rgba(255,255,255,.035); }
html[data-theme="light"] { --grid: rgba(20,20,28,.05); }

/* main контейнера кабинета узковат для лендинга — секции сами держат ширину */
.landing-main { padding: 0 !important; max-width: none !important; }
.l-container { max-width: var(--container); margin: 0 auto; padding: 0 22px; }

@keyframes floatDrift { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes blinkDot   { 0%,100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes glowPulse  { 0%,100% { opacity: .55; } 50% { opacity: .9; } }
@keyframes spinSlow   { to { transform: rotate(360deg); } }
@keyframes waveBar    { 0%,100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }
@keyframes lineIn     { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .landing-main *, .landing-main *::before, .landing-main *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ------------------------------- hero ------------------------------------ */
.l-hero { position: relative; overflow: hidden; padding: clamp(46px, 7vw, 92px) 0 clamp(44px, 6vw, 84px); }
.l-hero .bg-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 52px 52px;
  -webkit-mask-image: radial-gradient(ellipse 74% 66% at 50% 32%, #000, transparent 78%);
  mask-image: radial-gradient(ellipse 74% 66% at 50% 32%, #000, transparent 78%);
}
.l-hero .bg-glow {
  position: absolute; pointer-events: none; filter: blur(40px); opacity: .6;
  background: radial-gradient(ellipse at center, var(--accent-glow), transparent 62%);
  animation: glowPulse 8s ease-in-out infinite;
  left: 50%; bottom: -360px; width: 1100px; height: 720px; transform: translateX(-48%);
}
.l-hero .orbit {
  position: absolute; border: 1px solid var(--hair); border-radius: 50%;
  pointer-events: none; animation: spinSlow 70s linear infinite;
}

.hero-split {
  position: relative; display: flex; gap: clamp(32px, 5vw, 56px);
  align-items: center; flex-wrap: wrap; justify-content: space-between;
}
.hero-copy { flex: 1 1 440px; max-width: 620px; min-width: 0; }
.hero-visual { flex: 0 1 470px; position: relative; margin: 0 auto; min-width: 0; }
@media (max-width: 640px) { .hero-visual { flex-basis: 100%; } }
@media (max-width: 960px) {
  .hero-visual .float-chip { position: static; width: max-content; max-width: 100%; margin: 14px 0 0; }
}

.l-badge {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px;
  border-radius: 100px; border: 1px solid var(--line); background: var(--chip);
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.l-badge .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 10px var(--accent);
  animation: blinkDot 2.4s ease-in-out infinite;
}
.h-display {
  font-family: var(--font-display);
  font-weight: 700; font-size: clamp(32px, 5vw, 60px);
  line-height: 1.07; letter-spacing: -.02em; margin: 22px 0 0;
}
.h-display .accent { color: var(--accent); }
.h-sub {
  color: var(--muted); font-size: clamp(16px, 1.5vw, 18.5px);
  line-height: 1.65; margin-top: 20px; max-width: 560px;
}
.cta-row { display: flex; gap: 13px; flex-wrap: wrap; margin-top: 30px; }
.btn-lg { padding: 15px 26px !important; font-size: 16px !important; border-radius: 14px !important; }
.trust-row {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 26px;
  font-family: var(--font-mono); font-size: 12.5px; color: var(--faint);
}
.trust-row .sep { opacity: .4; }
.trust-row .hl { color: var(--accent); font-weight: 600; }

/* ---------------------- сигнатура: мокап отчёта -------------------------- */
.report-mock {
  position: relative; width: 100%; max-width: 470px; margin: 0 auto;
  border-radius: var(--r-xl); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.rm-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 11px 16px; border-bottom: 1px solid var(--hair); background: var(--surface-2);
}
.rm-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--chip-hover); }
.rm-bar i:first-child { background: #E5484D; }
.rm-bar i:nth-child(2) { background: #E0A03A; }
.rm-bar i:nth-child(3) { background: #34C77B; }
.rm-bar span { margin-left: 8px; font-family: var(--font-mono); font-size: 11.5px; color: var(--faint); }
.rm-body { padding: 16px 18px 18px; }
.rm-title { font-family: var(--font-display); font-weight: 700; font-size: 15.5px; }
.rm-meta { font-family: var(--font-mono); font-size: 10.5px; color: var(--faint); margin-top: 4px; }

.rm-player {
  display: flex; align-items: center; gap: 11px; margin-top: 13px;
  border: 1px solid var(--hair); border-radius: 13px; padding: 10px 13px;
  background: linear-gradient(135deg, rgba(194,80,10,.25), var(--surface-2));
}
.rm-play {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent); color: var(--btn-ink);
  display: grid; place-items: center; font-size: 13px;
}
.rm-wave { display: flex; align-items: center; gap: 2.5px; height: 22px; flex: 1; overflow: hidden; }
.rm-wave i {
  flex: 1; min-width: 2px; border-radius: 2px; background: var(--accent);
  opacity: .75; height: 100%; transform-origin: center;
  animation: waveBar 1.15s ease-in-out infinite;
}
.rm-wave i:nth-child(2n) { animation-delay: .14s; height: 60%; }
.rm-wave i:nth-child(3n) { animation-delay: .28s; height: 85%; }
.rm-wave i:nth-child(5n) { animation-delay: .42s; height: 45%; }
.rm-time { font-family: var(--font-mono); font-size: 11px; color: var(--muted); min-width: 68px; text-align: right; }
.rm-time b { color: var(--accent); font-weight: 600; }

.rm-tx { margin-top: 13px; display: flex; flex-direction: column; gap: 5px; }
.rm-line {
  display: flex; gap: 9px; padding: 6px 9px; border-radius: 9px;
  font-size: 12.5px; line-height: 1.45; color: var(--muted);
  transition: background .35s ease, color .35s ease;
}
.rm-line .t { font-family: var(--font-mono); font-size: 10.5px; color: var(--faint); flex: none; padding-top: 2px; }
.rm-line.active { background: var(--accent-soft); color: var(--text); }
.rm-line.active .t { color: var(--accent); }

.rm-chips { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 14px; }
.rm-chip {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--hair); background: var(--chip); border-radius: 100px;
  padding: 5px 11px; font-size: 11.5px; font-weight: 600;
}
.rm-chip .ic { font-size: 12px; }

.float-chip {
  position: absolute; z-index: 5;
  display: flex; align-items: center; gap: 10px; padding: 12px 15px;
  border-radius: 14px; background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-soft); font-size: 13px; font-weight: 600;
  animation: floatDrift 6.5s ease-in-out infinite;
}
.float-chip .fc-ico {
  display: grid; place-items: center; width: 32px; height: 32px;
  border-radius: 10px; background: var(--accent-soft); color: var(--accent);
  flex: none; font-size: 15px;
}
.float-chip small { display: block; font-weight: 500; color: var(--faint); font-size: 11px; }

/* ------------------------------- sections -------------------------------- */
.l-section { position: relative; padding: clamp(48px, 6.5vw, 92px) 0; }
.l-section-alt { background: var(--bg-2); border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.l-kicker {
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; color: var(--accent);
}
.h-section {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.2vw, 38px); font-weight: 700; line-height: 1.16;
  letter-spacing: -.02em; margin: 14px 0 0; max-width: 720px;
}
.l-lead { color: var(--muted); font-size: 16.5px; margin-top: 14px; max-width: 660px; }

/* stat strip */
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 900px) { .stat-strip { grid-template-columns: repeat(2, 1fr); } }
.l-stat {
  border: 1px solid var(--hair); border-radius: var(--r-md);
  background: var(--surface); padding: 20px 22px;
}
.l-stat b { font-family: var(--font-display); font-size: clamp(21px, 2.3vw, 28px); font-weight: 700; color: var(--accent); }
.l-stat span { display: block; color: var(--muted); font-size: 13.5px; margin-top: 6px; line-height: 1.5; }

/* карточки возможностей/сценариев */
.l-grid { display: grid; gap: 16px; margin-top: 40px; }
.l-grid-3 { grid-template-columns: repeat(3, 1fr); }
.l-grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 980px) { .l-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .l-grid-2, .l-grid-3 { grid-template-columns: 1fr; } }
.l-card {
  position: relative; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--hair);
  padding: 25px 24px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.l-card:hover { transform: translateY(-4px); border-color: var(--line); box-shadow: var(--shadow-soft); }
.l-card-icon {
  display: grid; place-items: center; width: 46px; height: 46px;
  border-radius: 13px; background: var(--accent-soft); color: var(--accent);
  margin-bottom: 16px; font-size: 21px;
}
.l-card h3 { font-size: 16.5px; font-weight: 700; margin: 0; letter-spacing: -.01em; }
.l-card p { color: var(--muted); font-size: 14.5px; line-height: 1.6; margin: 9px 0 0; }
.l-card .mono-tag {
  font-family: var(--font-mono); font-size: 11px; color: var(--faint);
  letter-spacing: .08em; margin-top: 14px; display: block;
}
.l-card .case-pain { color: var(--faint); font-size: 13px; margin-top: 10px; }
.l-card .case-pain b { color: var(--accent); font-weight: 600; }

/* split + чеклист */
.l-split { display: flex; gap: clamp(28px, 5vw, 60px); align-items: center; flex-wrap: wrap; }
.l-split > div { flex: 1 1 420px; min-width: 0; }
.checklist { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-direction: column; gap: 15px; }
.checklist li { display: flex; gap: 13px; align-items: flex-start; font-size: 15px; }
.checklist .tick {
  flex: none; width: 24px; height: 24px; border-radius: 8px; margin-top: 1px;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-size: 12px; font-weight: 800;
}
.checklist b { display: block; font-weight: 700; }
.checklist em { display: block; font-style: normal; color: var(--muted); font-size: 13.5px; margin-top: 3px; }

/* калькулятор экономии */
.calc-card {
  border-radius: var(--r-xl); background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow);
  padding: 26px 26px 24px;
}
.calc-card label { font-weight: 700; font-size: 15px; display: block; }
.calc-value { font-family: var(--font-mono); color: var(--accent); }
.calc-card input[type="range"] {
  width: 100%; margin: 14px 0 6px; accent-color: var(--accent);
  background: transparent; border: none; padding: 6px 0; cursor: pointer;
}
.calc-out { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.calc-big {
  border: 1px solid var(--hair); border-radius: var(--r-md);
  background: var(--chip); padding: 16px 18px;
}
.calc-big b {
  font-family: var(--font-display); font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 700; color: var(--accent); display: block; line-height: 1.1;
}
.calc-big span { color: var(--muted); font-size: 12.5px; display: block; margin-top: 6px; line-height: 1.45; }
.calc-note { font-family: var(--font-mono); font-size: 11px; color: var(--faint); margin-top: 14px; line-height: 1.6; }

/* шаги */
.l-step { padding-left: 28px; }
.step-num {
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  color: var(--btn-ink); background: var(--accent);
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center; margin-bottom: 14px;
}

/* терминал стадий задачи */
.terminal {
  border-radius: var(--r-lg); overflow: hidden;
  background: #101014; border: 1px solid rgba(255,255,255,.09);
  box-shadow: var(--shadow); color: #E8E7E3;
}
html[data-theme="light"] .terminal { background: #17171C; }
.terminal-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,.07);
}
.terminal-bar i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,.14); }
.terminal-bar i:first-child { background: #E5484D; }
.terminal-bar i:nth-child(2) { background: #E0A03A; }
.terminal-bar i:nth-child(3) { background: #34C77B; }
.terminal-bar span { margin-left: 8px; font-family: var(--font-mono); font-size: 11.5px; color: #85868D; }
.terminal-body {
  padding: 18px 20px; font-family: var(--font-mono); font-size: 13px; line-height: 1.95;
  overflow-x: auto; white-space: pre;
}
.terminal-body .c { color: #6f7077; }
.terminal-body .g { color: #34C77B; }
.terminal-body .o { color: var(--accent-2); }
.term-line { opacity: 0; }
.terminal.in .term-line { animation: lineIn .4s ease both; }
.cursor {
  display: inline-block; width: 8px; height: 15px; background: var(--accent);
  vertical-align: -2px; animation: blinkDot 1.1s step-end infinite;
}

/* CTA-band */
.cta-band {
  position: relative; overflow: hidden; border-radius: var(--r-xl);
  background:
    radial-gradient(ellipse 90% 130% at 85% -20%, rgba(255,255,255,.16), transparent 55%),
    linear-gradient(135deg, var(--accent-deep), var(--accent) 65%, var(--accent-2));
  color: #FFF7F0; padding: clamp(34px, 5vw, 60px);
  box-shadow: 0 26px 70px var(--accent-glow);
}
.cta-band h2 {
  font-family: var(--font-display); font-size: clamp(23px, 3.2vw, 38px);
  line-height: 1.14; letter-spacing: -.02em; margin: 0; max-width: 640px;
}
.cta-band p { margin: 14px 0 0; font-size: 16px; opacity: .92; max-width: 560px; }
.cta-band .cta-row .btn-primary { background: #17130F; color: #FFEFE2; box-shadow: 0 14px 34px rgba(20,10,0,.35); }
.cta-band .cta-row .btn-primary:hover { background: #241D16; }
.cta-band .cta-row .btn-ghost { border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.12); color: #fff; }
.cta-band .cta-row .btn-ghost:hover { background: rgba(255,255,255,.2); }

/* форма обращения */
.l-contact { max-width: 760px; margin: 0 auto; }
.landing-footer {
  border-top: 1px solid var(--hair); background: var(--bg-2);
  margin-top: clamp(48px, 6vw, 84px); padding: 26px 22px 30px;
  text-align: center; color: var(--faint); font-size: 13px; font-family: var(--font-mono);
}

/* reveal on scroll (landing.js) */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; } .reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
