/* Titan landing v2 — scroll story, comparison, marquee */
:root {
  --bg: #07080c;
  --bg-2: #0e1118;
  --surface: #141820;
  --surface-2: #1a2030;
  --line: rgba(226, 193, 80, 0.16);
  --text: #f4f1e8;
  --muted: #949aaa;
  --gold: #e2c150;
  --gold-2: #f3d878;
  --gold-dim: rgba(226, 193, 80, 0.12);
  --ink: #16130a;
  --green: #5ecf8a;
  --red: #ef6b7a;
  --radius: 20px;
  --radius-sm: 12px;
  --font: "Manrope", "Segoe UI", sans-serif;
  --display: "Syne", "Manrope", sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  font-family: var(--font);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* --- фон --- */
.bg-glow {
  pointer-events: none;
  position: fixed;
  inset: -20% -10% auto auto;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(226, 193, 80, 0.1), transparent 62%);
  filter: blur(40px);
  z-index: 0;
  animation: drift 18s ease-in-out infinite alternate;
}
.bg-grid {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, black 0%, transparent 80%);
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-5%, 4%, 0); }
}

/* --- reveal --- */
.reveal, .reveal-stagger > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.reveal.is-visible, .reveal-stagger > *.is-visible {
  opacity: 1;
  transform: none;
}
.reveal-stagger > *:nth-child(2) { --d: 0.08s; }
.reveal-stagger > *:nth-child(3) { --d: 0.16s; }
.reveal-stagger > *:nth-child(4) { --d: 0.24s; }

/* --- header --- */
.top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 1180px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}
.top--solid {
  background: rgba(7, 8, 12, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.1rem;
}
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  object-position: center 62%;
}
.top-nav {
  display: none;
  margin-left: auto;
  gap: 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
}
.top-nav a:hover { color: var(--gold-2); }
.top .btn-ghost { margin-left: auto; }
.top-nav + .btn-ghost { margin-left: 0; }

/* --- buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.72rem 1.2rem;
  font-weight: 700;
  font-size: 0.9rem;
  border: 1px solid transparent;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  color: var(--ink);
  box-shadow: 0 8px 28px rgba(226, 193, 80, 0.25);
}
.btn-primary:hover { box-shadow: 0 12px 36px rgba(226, 193, 80, 0.35); }
.btn-line {
  border-color: var(--line);
  background: rgba(255,255,255,0.03);
  color: var(--text);
}
.btn-line:hover { border-color: var(--gold); }
.btn-ghost {
  border-color: var(--line);
  background: transparent;
  color: var(--text);
}
.btn-sm { padding: 0.55rem 0.95rem; font-size: 0.85rem; }
.btn-lg { padding: 0.95rem 1.6rem; font-size: 1rem; }

main { position: relative; z-index: 1; padding-top: var(--header-h); }

/* --- hero --- */
.hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem 2.5rem;
  display: grid;
  gap: 2rem;
  align-items: start;
}
@media (min-width: 960px) {
  .hero {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2.5rem;
    padding-top: 1.75rem;
    align-items: center;
  }
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(94, 207, 138, 0.5);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(94, 207, 138, 0.5); }
  70% { box-shadow: 0 0 0 10px rgba(94, 207, 138, 0); }
  100% { box-shadow: 0 0 0 0 rgba(94, 207, 138, 0); }
}
.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.2rem, 6vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.hero-accent {
  background: linear-gradient(135deg, var(--gold-2), var(--gold) 50%, #fff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede {
  margin: 1.25rem 0 0;
  max-width: 32rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin: 2.5rem 0 0;
  padding: 0;
}
.hero-stats dt {
  margin: 0;
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--gold-2);
}
.hero-stats dd {
  margin: 0.2rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

/* hero browser mockup — без 3D и апскейла, чтобы скрин оставался чётким */
.hero-visual {
  width: 100%;
  max-width: 620px;
  margin-inline: auto;
}
@media (min-width: 960px) {
  .hero-visual { margin-inline: 0; margin-left: auto; }
}
.hero-browser {
  display: block;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #0a0c10;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 28px 70px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.hero-browser:hover {
  transform: translateY(-4px);
  box-shadow:
    0 0 0 1px rgba(226, 193, 80, 0.2),
    0 32px 80px rgba(0, 0, 0, 0.6);
}
.hero-browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.45);
}
.hero-browser-bar em {
  margin-left: 0.5rem;
  font-style: normal;
  font-size: 0.72rem;
  color: var(--muted);
}
.hero-browser-bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #3a4150;
  flex-shrink: 0;
}
.hero-browser-bar span:nth-child(1) { background: #ef6b7a; }
.hero-browser-bar span:nth-child(2) { background: #e0a93a; }
.hero-browser-bar span:nth-child(3) { background: var(--green); }
.hero-browser-shot {
  display: block;
  margin: 0;
  line-height: 0;
  background: #f3f4f6;
  aspect-ratio: 1024 / 884;
}
.hero-browser-shot img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: top;
}
.hero-browser-cta {
  display: block;
  padding: 0.85rem 1rem;
  text-align: center;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--gold-2);
  background: rgba(0, 0, 0, 0.35);
  border-top: 1px solid rgba(226, 193, 80, 0.15);
  transition: background 0.2s, color 0.2s;
}
.hero-browser:hover .hero-browser-cta {
  background: rgba(226, 193, 80, 0.1);
  color: var(--text);
}

/* --- marquee — full-bleed, плотная лента --- */
.marquee-section {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 1.25rem 0 3rem;
  overflow: hidden;
  min-height: 260px;
  mask-image: linear-gradient(90deg, transparent, black 4%, black 96%, transparent);
}
.marquee {
  overflow: hidden;
  margin: 0.5rem 0;
  width: 100%;
}
.marquee-track {
  display: flex;
  width: max-content;
  will-change: transform;
  /* старт после clone + загрузки картинок — см. landing.js */
  animation: none;
}
.marquee-track.is-ready {
  animation: marquee-left 55s linear infinite;
}
.marquee--right .marquee-track.is-ready {
  animation-name: marquee-right;
  animation-duration: 60s;
  transform: translate3d(-50%, 0, 0);
}
.marquee-set {
  display: flex;
  gap: var(--marquee-gap, 1rem);
  flex-shrink: 0;
}
@media (min-width: 768px) {
  .marquee-set { --marquee-gap: 1.15rem; }
}
.marquee-set img {
  width: 112px;
  height: 112px;
  flex-shrink: 0;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  background: #1a2030;
}
@media (min-width: 768px) {
  .marquee-set img {
    width: 140px;
    height: 140px;
  }
}
@media (min-width: 1200px) {
  .marquee-set img {
    width: 156px;
    height: 156px;
  }
}
@keyframes marquee-left {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}
@keyframes marquee-right {
  from { transform: translate3d(-50%, 0, 0); }
  to { transform: translate3d(0, 0, 0); }
}

/* --- sections --- */
.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
}
.section--narrow { padding-top: 2rem; }
.section-head { max-width: 640px; margin-bottom: 2.5rem; }
.section-tag {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}
.section-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.section-lead {
  margin: 1rem 0 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 1.02rem;
}

/* pain cards */
.pain-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 768px) { .pain-grid { grid-template-columns: repeat(3, 1fr); } }
.pain-card {
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.07);
  background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent);
  transition: border-color 0.25s, transform 0.25s;
}
.pain-card:hover {
  border-color: rgba(239, 107, 122, 0.35);
  transform: translateY(-3px);
}
.pain-icon { font-size: 1.5rem; }
.pain-card h3 {
  margin: 0.75rem 0 0.5rem;
  font-family: var(--display);
  font-size: 1.1rem;
}
.pain-card p { margin: 0; color: var(--muted); font-size: 0.92rem; line-height: 1.5; }

/* --- compare table --- */
.compare-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}
.compare-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.compare-table thead th {
  padding: 1.1rem 1.25rem;
  text-align: left;
  font-family: var(--display);
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.25);
}
.col-muted { color: var(--muted); width: 28%; }
.col-titan {
  color: var(--gold-2);
  background: var(--gold-dim);
  width: 32%;
}
.compare-table tbody th {
  padding: 1rem 1.25rem;
  text-align: left;
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.compare-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  vertical-align: middle;
}
.compare-table td:last-child { background: rgba(226, 193, 80, 0.04); }
.compare-row.is-hovered td:last-child { background: rgba(226, 193, 80, 0.1); }
.compare-row:hover { background: rgba(255,255,255,0.02); }

.badge {
  display: inline-block;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}
.badge--yes { background: rgba(94, 207, 138, 0.15); color: var(--green); }
.badge--no { background: rgba(239, 107, 122, 0.12); color: var(--red); }
.badge--part { background: rgba(255,255,255,0.06); color: var(--muted); }

/* --- story stack (sticky scroll) --- */
.story-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.story-card {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
  display: grid;
  gap: 2rem;
  padding: 2rem;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--line);
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(226, 193, 80, 0.08), transparent 55%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: 0 24px 60px rgba(0,0,0,0.4);
}
.story-card:nth-child(1) { z-index: 1; }
.story-card:nth-child(2) { z-index: 2; }
.story-card:nth-child(3) { z-index: 3; }
.story-card:nth-child(4) { z-index: 4; }
@media (min-width: 900px) {
  .story-card { grid-template-columns: 1fr 1fr; align-items: center; padding: 2.5rem; }
}
.story-num {
  display: block;
  font-family: var(--display);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  color: rgba(226, 193, 80, 0.2);
  margin-bottom: 0.5rem;
}
.story-copy h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.65rem;
  letter-spacing: -0.02em;
}
.story-copy p {
  margin: 0.85rem 0 0;
  color: var(--muted);
  line-height: 1.55;
  max-width: 28rem;
}
.story-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}
.story-tags li {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid var(--line);
  color: var(--gold-2);
}
.story-copy .btn { margin-top: 1.5rem; }

/* story visuals */
.story-visual {
  min-height: 200px;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  border-radius: var(--radius-sm);
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.05);
}
.sync-ui { width: 100%; max-width: 280px; display: flex; flex-direction: column; gap: 0.5rem; }
.sync-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 0.9rem;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  font-size: 0.85rem;
  color: var(--muted);
}
.sync-line--done { color: var(--text); }
.sync-line--done em { color: var(--green); font-style: normal; }
.sync-line--active {
  border: 1px solid rgba(226, 193, 80, 0.35);
  color: var(--gold-2);
  background: var(--gold-dim);
}
.spin { display: inline-block; animation: spin 1.2s linear infinite; font-style: normal; }
@keyframes spin { to { transform: rotate(360deg); } }

.price-demo { width: 100%; max-width: 260px; }
.price-row {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 0.9rem;
  color: var(--muted);
}
.price-row strong { color: var(--text); }
.price-row--result {
  border-bottom: none;
  margin-top: 0.5rem;
  padding: 1rem;
  border-radius: 12px;
  background: var(--gold-dim);
  border: 1px solid rgba(226, 193, 80, 0.3);
}
.price-row--result strong { color: var(--gold-2); font-size: 1.25rem; }

.mini-cards {
  display: flex;
  gap: 0.75rem;
  transform: perspective(400px) rotateY(-8deg);
}
.mini-card {
  width: 88px;
  height: 88px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--c1), var(--c2));
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 12px 28px rgba(0,0,0,0.35);
  display: grid;
  place-items: end start;
  padding: 0.4rem;
}
.mini-card span {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  background: rgba(0,0,0,0.55);
}
.mini-card:nth-child(2) { transform: translateY(-12px); }
.mini-card:nth-child(3) { transform: translateY(8px); }

.steps-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  width: 100%;
  max-width: 220px;
}
.steps-list li {
  counter-increment: step;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-weight: 600;
  font-size: 0.95rem;
}
.steps-list li::before {
  content: counter(step) ".";
  color: var(--gold);
  margin-right: 0.5rem;
}

/* --- pricing --- */
.plans {
  display: grid;
  gap: 1rem;
}
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.08);
  background: var(--surface);
  transition: transform 0.25s, border-color 0.25s;
}
.plan:hover { transform: translateY(-4px); border-color: rgba(226, 193, 80, 0.3); }
.plan-hot {
  border-color: rgba(226, 193, 80, 0.45);
  background: linear-gradient(180deg, rgba(226, 193, 80, 0.1), var(--surface));
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}
@media (min-width: 900px) { .plan-hot { transform: scale(1.03); } }
.plan-tag {
  position: absolute;
  top: 1rem; right: 1rem;
  margin: 0;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
}
.plan h3 { margin: 0; font-family: var(--display); font-size: 1.35rem; }
.price { margin: 0.4rem 0 0; display: flex; align-items: baseline; gap: 0.3rem; }
.price b { font-family: var(--display); font-size: 2rem; }
.price span { color: var(--muted); }
.plan ul {
  flex: 1;
  margin: 1.25rem 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.plan li { padding-left: 1.1rem; position: relative; }
.plan li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold);
}
.plan-cta { width: 100%; margin-top: auto; }

/* --- final cta --- */
.final-cta { padding-bottom: 6rem; }
.final-cta-inner {
  text-align: center;
  padding: 3.5rem 2rem;
  border-radius: calc(var(--radius) + 8px);
  border: 1px solid var(--line);
  background:
    radial-gradient(800px 400px at 50% 0%, rgba(226, 193, 80, 0.12), transparent 60%),
    var(--surface);
}
.final-cta-inner h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.final-cta-inner p {
  margin: 1rem auto 0;
  max-width: 28rem;
  color: var(--muted);
}
.final-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

/* --- footer --- */
.foot {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px solid rgba(255,255,255,0.06);
}
.foot-links { display: flex; gap: 1.25rem; }
.foot-links a:hover { color: var(--gold-2); }

@media (min-width: 720px) {
  .top-nav { display: flex; }
  .top .btn-ghost { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; }
}
