/* ===== RedFcker landing — стиль аппа (тёмная огненная тема) ===== */
:root {
	--bg: #0b0708;
	--surface: #1c1917;
	--surface-2: #292524;
	--border: #3f3a37;
	--border-soft: #292524;
	--text: #f5f5f4;
	--muted: #a8a29e;
	--faint: #78716c;
	--rose: #e11d48;
	--rose-2: #f43f5e;
	--rose-3: #fb7185;
	--amber: #f59e0b;
	--amber-2: #fbbf24;
	--emerald: #34d399;
	--maxw: 1120px;
	--radius: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color: var(--text);
	background-color: var(--bg);
	background-image:
		radial-gradient(1100px 600px at 12% -10%, rgba(190, 18, 60, 0.20), transparent 60%),
		radial-gradient(900px 520px at 105% 0%, rgba(140, 18, 30, 0.14), transparent 55%);
	background-repeat: no-repeat;
	background-attachment: fixed;
	min-height: 100vh;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }

/* ===== фоновый огненный штрих (только декор, приглушён) ===== */
.bg-fire { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; opacity: 0.2; }
.bg-fire svg { width: 100%; height: 100%; }
.fire-glow { animation: ember-glow 8s ease-in-out infinite; }
@keyframes ember-glow { 0%,100% { opacity: 0.4; } 50% { opacity: 0.75; } }

/* ===== header ===== */
.site-header { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(10px); background: rgba(11,7,8,0.55); border-bottom: 1px solid rgba(255,255,255,0.05); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; letter-spacing: -0.02em; }
.brand-mark { filter: drop-shadow(0 0 8px rgba(225,29,72,0.45)); }
.brand-name { font-size: 19px; }
.nav { display: flex; align-items: center; gap: 22px; font-size: 15px; color: var(--muted); }
.nav a { transition: color .15s; }
.nav a:hover { color: var(--text); }
.nav-login { color: var(--text); border: 1px solid var(--border); padding: 7px 14px; border-radius: 999px; font-weight: 600; }
.nav-login:hover { border-color: var(--rose); box-shadow: 0 0 0 1px rgba(244,63,94,.3); }

/* ===== buttons ===== */
.btn { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 16px; border-radius: 999px; padding: 13px 24px; cursor: pointer; border: 1px solid transparent; transition: transform .12s ease, box-shadow .2s ease, background .2s; }
.btn svg { flex: none; }
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--rose) 0%, #b3123b 60%, #9f1239 100%); box-shadow: 0 0 0 1px rgba(251,113,133,.35), 0 8px 30px -8px rgba(225,29,72,.7); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(251,113,133,.6), 0 14px 40px -8px rgba(225,29,72,.85); }
.btn-ghost { color: var(--text); border-color: var(--border); background: rgba(255,255,255,.02); }
.btn-ghost:hover { border-color: var(--rose-3); color: #fff; }
.btn-lg { font-size: 18px; padding: 16px 30px; }
.flame-text { background: linear-gradient(100deg, #fb7185 0%, #f43f5e 35%, #f59e0b 75%, #fbbf24 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ===== hero ===== */
.hero { padding: 64px 0 40px; }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--rose-3); border: 1px solid rgba(244,63,94,.3); border-radius: 999px; padding: 5px 12px; background: rgba(244,63,94,.07); }
.hero-title { font-size: clamp(36px, 6vw, 60px); font-weight: 850; line-height: 1.04; letter-spacing: -0.025em; margin: 18px 0 0; }
.hero-sub { margin-top: 20px; font-size: clamp(16px, 2.2vw, 19px); color: var(--muted); max-width: 36ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-note { margin-top: 16px; font-size: 14px; color: var(--faint); }

/* ===== мокап браузера + доска (hero) ===== */
.hero-mock { perspective: 1400px; }
.browser { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: #14100f; box-shadow: 0 30px 80px -30px rgba(0,0,0,.85), 0 0 0 1px rgba(244,63,94,.06); transform: rotateY(-7deg) rotateX(3deg); transition: transform .4s ease; }
.hero-mock:hover .browser { transform: rotateY(0) rotateX(0); }
.browser-bar { display: flex; align-items: center; gap: 7px; padding: 10px 13px; background: var(--surface); border-bottom: 1px solid var(--border-soft); }
.browser-bar .dot { width: 11px; height: 11px; border-radius: 50%; background: #44403c; }
.browser-bar .dot:nth-child(1) { background: #6b3034; }
.browser-url { margin-left: 10px; font-size: 12px; color: var(--faint); background: #0f0c0b; padding: 4px 12px; border-radius: 999px; }
.board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 14px; }
.mini-board { grid-template-columns: repeat(2, 1fr); }
.col-head { font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 9px; display: flex; justify-content: space-between; }
.col-head span { color: var(--faint); }
.col-dim { opacity: .72; }
.card { background: var(--surface); border: 1px solid var(--border-soft); border-radius: 11px; padding: 10px; margin-bottom: 9px; }
.card-hot { box-shadow: 0 0 0 1px rgba(244,63,94,.4), 0 0 18px -2px rgba(244,63,94,.4); animation: sw-glow 2.6s ease-in-out infinite; }
@keyframes sw-glow { 0%,100% { box-shadow: 0 0 0 1px rgba(244,63,94,.22), 0 0 6px 0 rgba(244,63,94,.12); } 50% { box-shadow: 0 0 0 1px rgba(251,113,133,.5), 0 0 16px 1px rgba(244,63,94,.3); } }
.card-top { display: flex; align-items: center; gap: 7px; margin-bottom: 7px; }
.prio { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.prio-rose { background: var(--rose-2); box-shadow: 0 0 7px rgba(244,63,94,.8); }
.prio-amber { background: var(--amber); box-shadow: 0 0 7px rgba(245,158,11,.8); }
.prio-stone { background: #57534e; }
.tag { font-size: 11px; color: var(--faint); font-variant-numeric: tabular-nums; }
.card-title { font-size: 13px; font-weight: 600; color: #e7e5e4; }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 9px; }
.ava { width: 22px; height: 22px; border-radius: 50%; font-size: 10px; font-weight: 700; display: inline-grid; place-items: center; background: #3f2a2e; color: #fda4af; vertical-align: middle; }
.ava-2 { background: #2e2a3f; color: #c4b5fd; }
.ava-3 { background: #3f3a2a; color: var(--amber-2); }
.ava-4 { background: #2a3f37; color: #6ee7b7; }
.due { font-size: 11px; color: var(--amber-2); }
.done { font-size: 11px; color: var(--emerald); }
.ring { transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: #3f3a37; stroke-width: 3; }
.ring-fg { fill: none; stroke: var(--rose-2); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 97.4; stroke-dashoffset: 29.2; filter: drop-shadow(0 0 3px rgba(244,63,94,.7)); }
.ring text { transform: rotate(90deg); transform-origin: 18px 18px; fill: #e7e5e4; font-size: 11px; font-weight: 700; }

/* ===== полоса ===== */
.strip { border-top: 1px solid rgba(255,255,255,.05); border-bottom: 1px solid rgba(255,255,255,.05); background: rgba(28,25,23,.4); padding: 22px 0; margin-top: 30px; }
.strip p { text-align: center; color: var(--muted); font-size: clamp(15px, 2.2vw, 18px); max-width: 820px; margin: 0 auto; }
.strip b { color: var(--text); }

/* ===== section heads ===== */
section { padding: 72px 0; }
.section-head { max-width: 660px; margin: 0 auto 44px; text-align: center; }
.section-head h2 { font-size: clamp(26px, 4.4vw, 40px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.12; }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 17px; }

/* ===== showcase ===== */
.show { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 50px; align-items: center; padding: 38px 0; }
.show + .show { border-top: 1px solid rgba(255,255,255,.05); }
.show.flip .show-copy { order: 2; }
.show.flip .show-media { order: 1; }
.label { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--rose-3); background: rgba(244,63,94,.08); border: 1px solid rgba(244,63,94,.25); border-radius: 999px; padding: 4px 11px; }
.show-copy h3 { font-size: clamp(22px, 3.2vw, 30px); font-weight: 800; letter-spacing: -0.02em; margin: 14px 0 12px; line-height: 1.15; }
.show-copy p { color: var(--muted); font-size: 16px; }
.ticks { list-style: none; margin-top: 18px; display: flex; flex-direction: column; gap: 9px; }
.ticks li { position: relative; padding-left: 26px; font-size: 15px; color: #d6d3d1; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: -1px; color: var(--rose-2); font-weight: 800; text-shadow: 0 0 8px rgba(244,63,94,.6); }

/* ===== общий мокап-фрейм ===== */
.mock { background: #14100f; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; box-shadow: 0 28px 70px -34px rgba(0,0,0,.85), 0 0 0 1px rgba(244,63,94,.05); }
.mock-head { display: flex; align-items: center; gap: 7px; padding: 10px 13px; background: var(--surface); border-bottom: 1px solid var(--border-soft); }
.mock-dot { width: 10px; height: 10px; border-radius: 50%; background: #44403c; }
.mock-dot:first-child { background: #6b3034; }
.mock-title { margin-left: 8px; font-size: 12px; color: var(--faint); }
.mock-body { padding: 16px; }

/* ===== AI мокап ===== */
.ai-body { display: flex; flex-direction: column; gap: 10px; }
.ai-task { background: rgba(41,37,36,.5); border: 1px solid var(--border-soft); border-radius: 11px; padding: 12px 13px; }
.ai-task-title { font-size: 13.5px; font-weight: 600; color: #e7e5e4; display: flex; align-items: center; gap: 8px; }
.ai-runs { display: flex; flex-direction: column; gap: 7px; margin-top: 11px; }
.ai-run { display: flex; align-items: center; justify-content: space-between; }
.ai-role { font-size: 12.5px; color: var(--muted); }
.pill { font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; border: 1px solid transparent; }
.pill-done { color: var(--emerald); background: rgba(52,211,153,.13); border-color: rgba(52,211,153,.3); }
.pill-run { color: var(--rose-3); background: rgba(244,63,94,.14); border-color: rgba(244,63,94,.4); animation: ember-glow 1.8s ease-in-out infinite; }
.pill-queue { color: var(--amber-2); background: rgba(245,158,11,.13); border-color: rgba(245,158,11,.3); }
.pill-idle { color: var(--faint); background: rgba(120,113,108,.12); border-color: rgba(120,113,108,.25); }

/* ===== Гантт мокап ===== */
.gantt-cols { display: grid; grid-template-columns: repeat(3, 1fr); margin-left: 86px; padding-bottom: 8px; border-bottom: 1px solid var(--border-soft); font-size: 11px; color: var(--faint); }
.gantt-cols span { border-left: 1px solid var(--border-soft); padding-left: 8px; }
.gantt-rows { position: relative; padding-top: 6px; }
.gantt-row { display: grid; grid-template-columns: 86px 1fr; align-items: center; height: 36px; }
.gname { font-size: 12.5px; color: var(--muted); }
.gtrack { position: relative; height: 16px; }
.gbar { position: absolute; top: 0; left: var(--l); width: var(--w); height: 16px; border-radius: 999px; box-shadow: 0 0 10px -2px rgba(0,0,0,.5); }
.gb-rose { background: linear-gradient(90deg, #9f1239, #f43f5e); box-shadow: 0 0 12px -2px rgba(244,63,94,.6); }
.gb-amber { background: linear-gradient(90deg, #b45309, #f59e0b); box-shadow: 0 0 12px -2px rgba(245,158,11,.5); }
.gb-emerald { background: linear-gradient(90deg, #047857, #34d399); box-shadow: 0 0 12px -2px rgba(52,211,153,.5); }
.gantt-now { position: absolute; top: 0; bottom: 4px; left: calc(86px + (100% - 86px) * 0.5); width: 0; border-left: 2px dashed rgba(251,113,133,.65); }
.gnow-label { position: absolute; top: -4px; left: 5px; font-size: 10px; color: var(--rose-3); white-space: nowrap; }

/* ===== Секундомер (виджет) ===== */
.sw-wrap { display: flex; justify-content: center; }
.mock-widget.sw { width: 300px; background: var(--surface); border: 1px solid var(--border-soft); border-radius: 16px; padding: 18px; box-shadow: 0 24px 60px -28px rgba(0,0,0,.8); animation: sw-glow 2.6s ease-in-out infinite; }
.sw-row { display: flex; align-items: baseline; justify-content: space-between; }
.sw-time { font-size: 32px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text); letter-spacing: -0.01em; }
.sw-status { font-size: 12px; color: var(--rose-3); font-weight: 600; }
.sw-task { margin-top: 8px; font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 7px; }
.sw-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.sw-btn { text-align: center; font-size: 13px; color: var(--muted); background: var(--surface-2); border: 1px solid var(--border-soft); border-radius: 9px; padding: 8px 0; }
.sw-stop { margin-top: 8px; text-align: center; font-size: 14px; font-weight: 600; color: #fff; background: linear-gradient(135deg, var(--rose), #b3123b); border-radius: 10px; padding: 10px 0; box-shadow: 0 6px 22px -8px rgba(225,29,72,.8); }

/* ===== Лидерборд (таблица) ===== */
.lb-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.lb-table th { text-align: right; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--faint); padding: 0 6px 10px; }
.lb-table th:nth-child(1) { text-align: center; }
.lb-table th:nth-child(2) { text-align: left; }
.lb-table td { padding: 9px 6px; border-top: 1px solid rgba(255,255,255,.05); text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }
.lb-table td:nth-child(1) { text-align: center; color: var(--faint); }
.lb-table td:nth-child(2) { text-align: left; color: #e7e5e4; white-space: nowrap; }
.lb-table td .ava { margin-right: 8px; }
.lb-rk { font-size: 15px; }
.lb-table .sc { color: var(--rose-2); font-weight: 800; text-shadow: 0 0 8px rgba(244,63,94,.4); }

/* ===== матрица сравнения ===== */
.cmp { max-width: 780px; margin: 0 auto; border: 1px solid var(--border-soft); border-radius: 18px; overflow: hidden; background: var(--surface); }
.cmp-row { display: grid; grid-template-columns: 1fr 168px 168px; align-items: center; }
.cmp-row + .cmp-row { border-top: 1px solid rgba(255,255,255,.05); }
.cmp-cap { padding: 15px 20px; font-size: 15px; color: #e7e5e4; }
.cmp-a, .cmp-b { text-align: center; padding: 15px 10px; }
.cmp-b { background: rgba(225,29,72,.06); border-left: 1px solid rgba(244,63,94,.22); display: flex; align-items: center; justify-content: center; gap: 7px; }
.cmp-head { background: #211c1a; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.cmp-head .cmp-a, .cmp-head .cmp-b { font-weight: 700; color: var(--text); }
.cmp-head .cmp-a { color: var(--faint); }
.no { color: #6b3034; font-size: 17px; font-weight: 800; }
.yes { color: var(--rose-2); font-size: 17px; font-weight: 800; text-shadow: 0 0 9px rgba(244,63,94,.55); }
.meh { color: var(--faint); font-size: 12.5px; }
.yes-dim { color: var(--muted); font-size: 13px; }
.cmp-b .yes-dim, .cmp-last .cmp-b .yes { font-size: 13px; }
.cmp-last { background: rgba(255,255,255,.015); }

/* ===== финальный CTA ===== */
.cta-final { text-align: center; }
.cta-inner { max-width: 760px; padding: 56px 28px; border-radius: 28px; background: radial-gradient(120% 140% at 50% -20%, rgba(225,29,72,.22), transparent 60%), var(--surface); border: 1px solid rgba(244,63,94,.25); box-shadow: 0 0 60px -20px rgba(225,29,72,.5); }
.cta-inner h2 { font-size: clamp(26px, 4.6vw, 42px); font-weight: 850; letter-spacing: -0.02em; line-height: 1.1; }
.cta-inner p { color: var(--muted); margin: 16px 0 28px; font-size: 17px; }
.cta-note { margin-top: 20px; font-size: 14px; color: var(--faint); }

/* ===== footer ===== */
.site-footer { border-top: 1px solid rgba(255,255,255,.06); padding: 34px 0; margin-top: 20px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 16px 26px; align-items: center; justify-content: space-between; }
.footer-links { display: flex; gap: 22px; font-size: 14px; color: var(--muted); }
.footer-links a:hover { color: var(--text); }
.footer-tiny { font-size: 13px; color: var(--faint); width: 100%; }

/* ===== reveal ===== */
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
html.js .reveal.in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	html.js .reveal { opacity: 1; transform: none; transition: none; }
	.fire-glow, .card-hot, .pill-run, .mock-widget.sw { animation: none; }
}

/* ===== адаптив ===== */
@media (max-width: 880px) {
	.hero-inner { grid-template-columns: 1fr; gap: 36px; }
	.hero-sub { max-width: none; }
	.browser { transform: none; }
	.show { grid-template-columns: 1fr; gap: 28px; padding: 30px 0; }
	.show.flip .show-copy { order: 0; }
	.show.flip .show-media { order: 0; }
	.cmp-row { grid-template-columns: 1fr 92px 92px; }
}
@media (max-width: 560px) {
	.nav a:not(.nav-login) { display: none; }
	.hero { padding: 40px 0 20px; }
	section { padding: 54px 0; }
	.cmp-cap { padding: 13px 14px; font-size: 14px; }
	.cmp-row { grid-template-columns: 1fr 74px 74px; }
}
