/* Головна learnaieasy.net: один екран, фон у палітрі сайту. Стилі сторінки новин лишаються в style.css. */
:root {
  --l-bg: #070d26;
  --l-panel: #0e1838;
  --l-fg: #efe2c2;
  --l-muted: #a9b3d6;
  --l-line: #27366a;
  --l-accent: #e0b04a;
  --l-accent-ink: #1a1203;
  --l-nav-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  --l-font-sans: "Inter", "Segoe UI", system-ui, sans-serif;
  --l-font-display: "BubbledotICG-FinePos", "Geist Pixel Circle", monospace;
  --l-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

body.landing-page {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  padding: 0;
  background: var(--l-bg);
  color: var(--l-fg);
  font-family: var(--l-font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.landing-page .l-page {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 16px 0;
  overflow: hidden;
}

/* Фон: повільний рух кольорових плям і сітка крапок. Відео-шар не використовуємо (див. PR). */
.landing-page .l-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--l-bg);
  pointer-events: none;
  z-index: 0;
}

.landing-page .l-bg::before,
.landing-page .l-bg::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  animation: l-drift 18s ease-in-out infinite alternate;
}

.landing-page .l-bg::before {
  width: 60vmax;
  height: 60vmax;
  left: -10vmax;
  top: -18vmax;
  background: radial-gradient(circle, rgba(224, 176, 74, 0.35), transparent 65%);
}

.landing-page .l-bg::after {
  width: 70vmax;
  height: 70vmax;
  right: -20vmax;
  bottom: -28vmax;
  background: radial-gradient(circle, rgba(70, 110, 220, 0.4), transparent 65%);
  animation-duration: 24s;
}

.landing-page .l-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(239, 226, 194, 0.09) 1px, transparent 1.2px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}

@keyframes l-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(4vmax, 3vmax, 0) scale(1.08); }
}

.landing-page .l-page > * {
  position: relative;
  z-index: 1;
}


/* Центр: трохи довіри, заголовок, опис, кнопка */
.landing-page .l-hero {
  flex: 1 1 auto;
  width: 100%;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.landing-page .l-trust {
  --trust-size: clamp(36px, 4.5vw, 42px);
  display: inline-flex;
  align-items: center;
  margin-bottom: clamp(16px, 2.5vh, 26px);
}

.landing-page .l-avatars {
  display: inline-flex;
  align-items: center;
}

.landing-page .l-av {
  position: relative;
  display: grid;
  place-items: center;
  width: var(--trust-size);
  height: var(--trust-size);
  padding: 5px;
  border-radius: 50%;
  background: var(--l-panel);
  border: 1px solid rgba(239, 226, 194, 0.4);
  transition: transform 0.35s var(--l-ease);
}

.landing-page .l-av + .l-av { margin-left: calc(var(--trust-size) * -0.42); }
.landing-page .l-av:nth-child(1) { z-index: 1; }
.landing-page .l-av:nth-child(2) { z-index: 2; }
.landing-page .l-av:nth-child(3) { z-index: 4; }
.landing-page .l-av:nth-child(1):hover { transform: translateY(-2px); }
.landing-page .l-av:nth-child(2):hover { transform: translateY(-4px); }
.landing-page .l-av:nth-child(3):hover { transform: translateY(-2px); }

.landing-page .l-av i {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--l-fg);
  font-style: normal;
  font-size: calc(var(--trust-size) * 0.34);
  line-height: 1;
}

.landing-page .l-trust-pill {
  display: inline-flex;
  align-items: center;
  height: var(--trust-size);
  margin-left: calc(var(--trust-size) * -0.42);
  padding: 0 clamp(14px, 1.6vw, 18px) 0 calc(var(--trust-size) * 0.58);
  border-radius: 999px;
  background: var(--l-panel);
  border: 1px solid rgba(239, 226, 194, 0.4);
  color: var(--l-muted);
  font-size: clamp(12px, 1.4vw, 13.5px);
  font-weight: 500;
  white-space: nowrap;
}

.landing-page .l-headline {
  margin: 0;
  font-family: var(--l-font-display);
  font-weight: 400;
  font-size: clamp(24px, 3.8vw, 52px);
  letter-spacing: -0.04em;
  line-height: 1.12;
  color: var(--l-fg);
}

.landing-page .l-headline span { display: block; }

.landing-page .l-sub {
  max-width: min(500px, 92%);
  margin: clamp(14px, 2.2vh, 22px) auto 0;
  font-size: clamp(calc(13.5px + 2pt), calc(1.55vw + 2pt), calc(16.5px + 2pt));
  line-height: 1.55;
  font-weight: 400;
  color: #d0d0d0;
  color: color-mix(in srgb, var(--l-fg) 80%, transparent);
}

.landing-page .l-cta {
  margin-top: clamp(20px, 3.4vh, 34px);
  display: inline-block;
  padding: clamp(11px, 1.6vh, 13px) clamp(22px, 3vw, 28px);
  border-radius: 999px;
  background: var(--l-accent);
  color: var(--l-accent-ink);
  font-size: clamp(13.5px, 1.5vw, 14.5px);
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 0 0 1px rgba(224, 176, 74, 0.3), 0 0 22px rgba(224, 176, 74, 0.32), 0 0 44px rgba(224, 176, 74, 0.12);
  transition: transform 0.3s var(--l-ease), box-shadow 0.3s ease;
}

.landing-page .l-cta:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 0 1px rgba(224, 176, 74, 0.45), 0 0 28px rgba(224, 176, 74, 0.45), 0 0 56px rgba(224, 176, 74, 0.2);
}

/* Підвал: цифри сайту з реальних даних */
.landing-page .l-stats {
  flex: 0 0 auto;
  width: 100%;
  max-width: 720px;
  margin: clamp(40px, 7vh, 72px) auto clamp(40px, 6vh, 64px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  text-align: center;
}

.landing-page .l-stat i {
  display: block;
  font-style: normal;
  font-family: var(--l-font-display);
  font-size: clamp(22px, 3vw, 33px);
  line-height: 1;
  color: var(--l-fg);
}

.landing-page .l-stat b {
  display: block;
  margin-top: 6px;
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 600;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
  color: var(--l-fg);
}

.landing-page .l-stat span {
  display: block;
  margin-top: 2px;
  font-size: clamp(11px, 1.2vw, 12.5px);
  color: var(--l-muted);
}

/* Вхід анімацій: пояснення в landing.js, без JS усе видно одразу */
.landing-page .anim {
  opacity: 0;
  transform: translateY(22px) scale(0.98);
  filter: blur(6px);
  animation: l-reveal 0.85s var(--l-ease) forwards;
  animation-delay: var(--d, 0s);
}

.landing-page .l-headline span { opacity: 0; transform: translateY(14px); animation: l-headline-fade 0.85s var(--l-ease) forwards; }
.landing-page .l-headline span:nth-child(1) { animation-delay: 0.12s; }
.landing-page .l-headline span:nth-child(2) { animation-delay: 0.3s; }

.landing-page .site-header { flex: 0 0 auto; }

.landing-page .l-stat { opacity: 0; animation: l-reveal 0.85s var(--l-ease) forwards; }
.landing-page .l-stat:nth-child(1) { animation-delay: 0.5s; }
.landing-page .l-stat:nth-child(2) { animation-delay: 0.58s; }
.landing-page .l-stat:nth-child(3) { animation-delay: 0.66s; }

@keyframes l-reveal {
  to { opacity: 1; transform: none; filter: none; }
}

@keyframes l-headline-fade {
  to { opacity: 1; transform: none; }
}

@keyframes l-slide-down {
  from { opacity: 0; transform: translateY(-18px); }
  to { opacity: 1; transform: none; }
}

/* Cookie-банер: лишається над сторінкою */
.landing-page .cookie-banner { z-index: 5; }

/* Адаптив: до 720px меню в бургері, цифри в два ряди */
@media (max-width: 720px) {
  .landing-page .l-trust { --trust-size: 36px; }
  .landing-page .l-trust-pill { font-size: 12px; }
  .landing-page .l-headline { letter-spacing: -0.08em; line-height: 1.05; }
  .landing-page .l-stats { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 420px) {
  .landing-page .l-trust { --trust-size: 34px; }
  .landing-page .l-headline { letter-spacing: -0.09em; line-height: 1.04; }
}

@media (max-height: 700px) {
  .landing-page .l-trust { margin-bottom: 12px; }
  .landing-page .l-cta { margin-top: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .landing-page *,
  .landing-page *::before,
  .landing-page *::after {
    animation: none !important;
    transition: none !important;
  }
  .landing-page .anim,
  .landing-page .l-stat,
  .landing-page .l-headline span {
    opacity: 1;
    transform: none;
    filter: none;
  }
  .landing-page .l-headline span { color: var(--l-fg); }
}


/* Фоновий шар лишається на весь екран: правило `.l-page > *` інакше робить його відносним і стискає до нуля. */
.landing-page .l-page > .l-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Поле нулів і одиниць: SVG-текст, який мерехтить хвилею. Плавність дає transition на opacity. */
.landing-page .l-matrix {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  fill: var(--l-fg);
  opacity: 0.55;
  pointer-events: none;
}

.landing-page .l-matrix text {
  transition: opacity 0.9s ease;
}

/* Цитата в пілюлі: без курсиву, автор трохи приглушений */
.landing-page .l-trust-pill q { quotes: none; }
.landing-page .l-trust-pill cite { font-style: normal; opacity: 0.7; margin-left: 6px; }

/* Логотип не розтягується: на телефоні він завжди маленький кружечок, навіть якщо шапка ще не прийшла з кешу. */
.landing-page .l-logo,
.landing-page .site-header .l-logo {
  flex: 0 0 auto;
  max-width: 52px;
  max-height: 52px;
}
