/* Главная маркетинговая страница — тёмная тема, без зависимости от Mini App style.css */
:root {
  --bg0: #020617;
  --bg1: #0b1220;
  --fg: #f8fafc;
  --muted: rgba(248, 250, 252, 0.62);
  --line: rgba(148, 163, 184, 0.18);
  --accent: #38bdf8;
  --accent2: #a78bfa;
  --glow: rgba(56, 189, 248, 0.35);
}

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

html {
  scroll-behavior: smooth;
  min-height: 100%;
  min-height: var(--app-height, 100dvh);
  overscroll-behavior-y: auto;
  overscroll-behavior-x: none;
  -webkit-overflow-scrolling: touch;
}

body.landing-page {
  margin: 0;
  min-height: 100vh;
  min-height: var(--app-height, 100dvh);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: auto;
  overscroll-behavior-x: none;
  -webkit-overflow-scrolling: touch;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--fg);
  background: radial-gradient(1200px 800px at 80% -10%, rgba(56, 189, 248, 0.12), transparent 55%),
    radial-gradient(900px 600px at -5% 30%, rgba(167, 139, 250, 0.14), transparent 50%),
    linear-gradient(165deg, var(--bg0) 0%, var(--bg1) 45%, #020617 100%);
  -webkit-font-smoothing: antialiased;
}

.landing-bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 20%, black 20%, transparent 75%);
  opacity: 0.45;
  z-index: 0;
}

.landing-wrap {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 22px 72px;
}

.landing-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 36px;
}

.landing-nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.landing-nav__brand img {
  height: 76px;
  width: auto;
  display: block;
}

.landing-nav__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.landing-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.landing-btn:hover {
  transform: translateY(-1px);
}

.landing-btn--ghost {
  color: var(--fg);
  background: rgba(15, 23, 42, 0.55);
  border-color: var(--line);
}

.landing-btn--ghost:hover {
  border-color: rgba(148, 163, 184, 0.35);
  box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.12);
}

.landing-btn--primary {
  color: #020617;
  background: linear-gradient(135deg, var(--accent), #22d3ee);
  box-shadow: 0 8px 32px var(--glow);
}

.landing-btn--primary:hover {
  box-shadow: 0 10px 40px rgba(56, 189, 248, 0.45);
}

.landing-hero {
  padding: 12px 0 48px;
}

.landing-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}

.landing-hero__eyebrow span {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 0 14px var(--glow);
}

.landing-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2.1rem, 5vw, 3.35rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.landing-hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, #e0f2fe, var(--accent), var(--accent2), #e9d5ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.landing-hero__lead {
  margin: 0 0 28px;
  max-width: 52ch;
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--muted);
}

.landing-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 0;
}

.landing-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 8px;
}

@media (max-width: 960px) {
  .landing-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .landing-cards {
    grid-template-columns: 1fr;
  }
  .landing-nav {
    flex-direction: column;
    align-items: flex-start;
  }
  .landing-nav__actions {
    width: 100%;
    justify-content: flex-start;
  }
}

.landing-card {
  padding: 20px 18px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.landing-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  font-size: 1.25rem;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.22);
}

.landing-card:nth-child(2) .landing-card__icon {
  background: rgba(167, 139, 250, 0.12);
  border-color: rgba(167, 139, 250, 0.25);
}

.landing-card:nth-child(3) .landing-card__icon {
  background: rgba(52, 211, 153, 0.1);
  border-color: rgba(52, 211, 153, 0.22);
}

.landing-card:nth-child(4) .landing-card__icon {
  background: rgba(251, 191, 36, 0.1);
  border-color: rgba(251, 191, 36, 0.22);
}

.landing-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.landing-card p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--muted);
}

.landing-band {
  margin-top: 48px;
  padding: 28px 22px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.45));
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  align-items: center;
}

@media (max-width: 820px) {
  .landing-band {
    grid-template-columns: 1fr;
  }
}

.landing-band h2 {
  margin: 0 0 10px;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.landing-band p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

.landing-band__list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.landing-band__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: rgba(226, 232, 240, 0.92);
}

.landing-band__list li::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
}

.landing-footer {
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: rgba(148, 163, 184, 0.75);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  justify-content: space-between;
  align-items: center;
}

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

.landing-footer a:hover {
  text-decoration: underline;
}

/* --- Анимации и «живой» фон --- */
@keyframes landingFadeUp {
  from {
    opacity: 0;
    transform: translate3d(0, 26px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes landingDrift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(12px, -18px, 0) scale(1.04);
  }
}

@keyframes landingTicker {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.landing-anim {
  opacity: 0;
  animation: landingFadeUp 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--d, 0s);
}

@media (prefers-reduced-motion: reduce) {
  .landing-anim {
    opacity: 1;
    animation: none;
  }
  .landing-ticker__track {
    animation: none !important;
  }
  .landing-orb {
    animation: none !important;
  }
}

.landing-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.landing-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
  animation: landingDrift 14s ease-in-out infinite;
}

.landing-orb--a {
  width: 320px;
  height: 320px;
  left: -8%;
  top: 12%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.55), transparent 70%);
}

.landing-orb--b {
  width: 280px;
  height: 280px;
  right: -6%;
  top: 38%;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.5), transparent 70%);
  animation-duration: 18s;
  animation-delay: -4s;
}

.landing-orb--c {
  width: 220px;
  height: 220px;
  left: 40%;
  bottom: -5%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.35), transparent 70%);
  animation-duration: 20s;
  animation-delay: -7s;
}

.landing-ticker {
  margin: 8px 0 28px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}

.landing-ticker__track {
  display: flex;
  width: max-content;
  gap: 48px;
  white-space: nowrap;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.85);
  animation: landingTicker 32s linear infinite;
}

.landing-spot {
  margin: 28px 0 8px;
}

.landing-spot__inner {
  padding: 22px 20px;
  border-radius: 18px;
  border: 1px solid rgba(56, 189, 248, 0.25);
  background: linear-gradient(125deg, rgba(56, 189, 248, 0.1), rgba(15, 23, 42, 0.65));
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
}

.landing-spot__title {
  margin: 0 0 10px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7dd3fc;
}

.landing-spot__text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(226, 232, 240, 0.9);
}
