:root {
  --bg: #05080e;
  --card: rgba(15, 26, 46, 0.82);
  --border: rgba(157, 200, 245, 0.15);
  --text: #e8eef7;
  --muted: #8ba4c4;
  --accent: #5ddea8;
  --accent2: #9dc8f5;
  --danger: #e07070;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: Inter, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Переливающийся фон: зелёный, чёрный, лёгкий красный */
.landing-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(ellipse 120% 80% at 50% -30%, rgba(93, 222, 168, 0.14), transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 20%, rgba(224, 112, 112, 0.08), transparent 50%),
    radial-gradient(ellipse 60% 45% at 0% 80%, rgba(93, 222, 168, 0.06), transparent 55%),
    linear-gradient(180deg, #060a10 0%, #05080e 45%, #030508 100%);
}

.landing-bg::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: conic-gradient(
    from 200deg at 50% 50%,
    rgba(93, 222, 168, 0.12),
    rgba(5, 8, 14, 0.2),
    rgba(224, 112, 112, 0.08),
    rgba(5, 8, 14, 0.25),
    rgba(93, 222, 168, 0.1)
  );
  animation: landing-gradient-spin 14s linear infinite;
  filter: blur(60px);
  opacity: 0.85;
}

.landing-bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  animation: landing-orb-float 14s ease-in-out infinite;
}

.landing-bg-orb--green {
  width: 420px;
  height: 420px;
  top: -8%;
  left: 18%;
  background: rgba(93, 222, 168, 0.22);
}

.landing-bg-orb--red {
  width: 320px;
  height: 320px;
  top: 42%;
  right: -6%;
  background: rgba(224, 112, 112, 0.14);
  animation-delay: -5s;
}

.landing-bg-orb--blue {
  width: 280px;
  height: 280px;
  bottom: 8%;
  left: -4%;
  background: rgba(157, 200, 245, 0.1);
  animation-delay: -9s;
}

.landing-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(157, 200, 245, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(157, 200, 245, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black, transparent);
}

@keyframes landing-gradient-spin {
  to { transform: rotate(360deg); }
}

@keyframes landing-orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(24px, -18px) scale(1.05); }
  66% { transform: translate(-16px, 12px) scale(0.96); }
}

.landing-header,
.landing-main,
.landing-footer {
  position: relative;
  z-index: 1;
}

.landing-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
  background: rgba(5, 8, 14, 0.55);
  position: sticky;
  top: 0;
  z-index: 10;
}

.landing-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
}

.landing-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(93, 222, 168, 0.55);
  animation: landing-pulse 2.4s ease-in-out infinite;
}

@keyframes landing-pulse {
  0%, 100% { box-shadow: 0 0 10px rgba(93, 222, 168, 0.45); }
  50% { box-shadow: 0 0 18px rgba(93, 222, 168, 0.75); }
}

.landing-cta-header {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(93, 222, 168, 0.12);
  border: 1px solid rgba(93, 222, 168, 0.35);
  color: var(--accent);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.2s, transform 0.15s;
}

.landing-cta-header:hover {
  background: rgba(93, 222, 168, 0.22);
  transform: translateY(-1px);
}

.landing-main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 48px 20px 60px;
  display: grid;
  grid-template-columns: 1.15fr 360px;
  gap: 48px;
  align-items: start;
}

@media (max-width: 900px) {
  .landing-main { grid-template-columns: 1fr; }
  .landing-stats { grid-template-columns: 1fr; }
  .landing-feature-grid { grid-template-columns: 1fr; }
  .landing-auth-card { margin-top: 8px; }
}

@media (max-width: 480px) {
  .landing-hero h1 { font-size: 28px; }
  .landing-yandex-btn,
  .landing-cta-btn,
  .landing-form input {
    min-height: 44px;
    font-size: 15px;
  }
}

.landing-kicker {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin: 0 0 10px;
  font-weight: 600;
}

.landing-hero h1 {
  font-size: clamp(32px, 4.8vw, 46px);
  line-height: 1.1;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.landing-accent {
  color: var(--accent2);
  background: linear-gradient(120deg, #9dc8f5, #5ddea8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.landing-lead {
  color: var(--muted);
  line-height: 1.65;
  font-size: 16px;
  margin: 0 0 22px;
  max-width: 54ch;
}

.landing-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 22px;
}

.landing-stat {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(8, 14, 24, 0.55);
  backdrop-filter: blur(6px);
}

.landing-stat strong {
  display: block;
  font-size: 18px;
  color: var(--accent);
  margin-bottom: 2px;
}

.landing-stat span {
  font-size: 11px;
  color: var(--muted);
}

.landing-cta-primary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  padding: 18px 22px;
  margin-bottom: 20px;
  border-radius: 14px;
  text-decoration: none;
  color: #081018;
  background: linear-gradient(135deg, #4ecf96, #5ddea8 45%, #9dc8f5);
  box-shadow: 0 8px 32px rgba(93, 222, 168, 0.28);
  transition: transform 0.18s, box-shadow 0.18s;
  border: none;
  width: 100%;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.landing-cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 44px rgba(93, 222, 168, 0.38);
}

.landing-cta-primary:active {
  transform: translateY(0);
}

.landing-cta-btn {
  margin-top: 4px;
  margin-bottom: 0;
  padding: 11px 14px;
  justify-content: center;
  box-shadow: 0 6px 22px rgba(93, 222, 168, 0.22);
}

.landing-cta-btn .landing-cta-title {
  font-size: 14px;
  font-weight: 600;
  width: auto;
  text-align: center;
}

.landing-cta-btn .landing-cta-sub,
.landing-cta-btn .landing-cta-icon {
  display: none;
}

.landing-cta-title {
  font-size: 17px;
  font-weight: 700;
  width: 100%;
}

.landing-cta-sub {
  font-size: 13px;
  opacity: 0.88;
  flex: 1;
}

.landing-cta-icon {
  font-size: 22px;
  margin-left: auto;
}

.landing-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.landing-pills span {
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(8, 14, 24, 0.45);
  animation: landing-pill-float 6s ease-in-out infinite;
}

.landing-pills span:nth-child(2) { animation-delay: -2s; }
.landing-pills span:nth-child(3) { animation-delay: -4s; }

@keyframes landing-pill-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.landing-pills i { color: var(--accent); font-size: 14px; }

.landing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: grid;
  gap: 12px;
}

.landing-features li {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(15, 26, 46, 0.45);
  backdrop-filter: blur(8px);
  transition: border-color 0.2s, transform 0.2s;
}

.landing-features li:hover {
  border-color: rgba(93, 222, 168, 0.28);
  transform: translateX(4px);
}

.landing-features strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}

.landing-features span {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.landing-tg {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  margin-bottom: 16px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  border: 1px solid rgba(41, 168, 222, 0.35);
  background: linear-gradient(135deg, rgba(41, 168, 222, 0.12), rgba(15, 26, 46, 0.65));
  transition: border-color 0.15s, transform 0.15s;
}

.landing-tg:hover {
  border-color: rgba(41, 168, 222, 0.6);
  transform: translateY(-1px);
}

.landing-tg-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(41, 168, 222, 0.2);
  color: #5bc0f0;
  font-size: 22px;
}

.landing-tg-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.landing-tg-text strong { font-size: 14px; }
.landing-tg-text span { font-size: 12px; color: var(--muted); }
.landing-tg-go { color: var(--muted); font-size: 16px; }

.landing-note { font-size: 11px; color: var(--muted); opacity: 0.9; }

.landing-auth-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  position: sticky;
  top: 20px;
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.landing-auth-card h2 { margin: 0 0 6px; font-size: 20px; }
.landing-auth-hint { font-size: 12px; color: var(--muted); margin: 0 0 14px; }

.landing-yandex-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  margin-bottom: 12px;
  border-radius: 12px;
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  background: linear-gradient(135deg, #fc3f1d, #ff6a3d);
  border: 1px solid rgba(255, 120, 80, 0.45);
  box-shadow: 0 8px 24px rgba(252, 63, 29, 0.22);
  transition: transform 0.15s, box-shadow 0.15s;
  cursor: pointer;
  font-family: inherit;
}

.landing-yandex-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(252, 63, 29, 0.32);
}

.landing-yandex-icon {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  color: #fc3f1d;
  font-weight: 800;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.landing-oauth-divider {
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hidden { display: none !important; }

.landing-form { display: flex; flex-direction: column; gap: 10px; }

.landing-form input {
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 12px;
  color: var(--text);
  font: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.landing-form input:focus {
  outline: none;
  border-color: rgba(93, 222, 168, 0.45);
  box-shadow: 0 0 0 3px rgba(93, 222, 168, 0.12);
}

.landing-terms {
  display: flex;
  gap: 8px;
  font-size: 11px;
  line-height: 1.4;
  color: var(--muted);
  align-items: flex-start;
  margin-bottom: 10px;
}

.landing-terms a { color: var(--accent2); }

.landing-error {
  color: #f0a0a8;
  font-size: 12px;
  min-height: 16px;
  margin: 0;
}

.landing-switch {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  margin: 12px 0 0;
}

.link-btn {
  background: none;
  border: none;
  color: var(--accent2);
  cursor: pointer;
  text-decoration: underline;
  font: inherit;
  padding: 0;
}

.landing-footer {
  text-align: center;
  padding: 20px;
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(8px);
  background: rgba(5, 8, 14, 0.5);
}

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

/* Появление блоков */
.landing-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

body.landing-ready .landing-reveal {
  opacity: 1;
  transform: translateY(0);
}

.landing-reveal--1 { transition-delay: 0.05s; }
.landing-reveal--2 { transition-delay: 0.12s; }
.landing-reveal--3 { transition-delay: 0.18s; }
.landing-reveal--4 { transition-delay: 0.24s; }
.landing-reveal--5 { transition-delay: 0.3s; }
.landing-reveal--6 { transition-delay: 0.36s; }
.landing-reveal--7 { transition-delay: 0.42s; }
.landing-reveal--8 { transition-delay: 0.48s; }
.landing-reveal--9 { transition-delay: 0.54s; }

.legal-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 20px 60px;
  line-height: 1.6;
  font-size: 14px;
  color: var(--text);
}

.legal-page h1 { font-size: 24px; margin-bottom: 8px; }
.legal-page h2 { font-size: 16px; margin-top: 24px; }
.legal-page p, .legal-page li { color: var(--muted); }
.legal-back { display: inline-block; margin-bottom: 20px; color: var(--accent2); }

@media (prefers-reduced-motion: reduce) {
  .landing-bg::before,
  .landing-bg-orb,
  .landing-dot,
  .landing-pills span,
  .landing-reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
