@import url("https://fonts.googleapis.com/css2?family=Figtree:wght@400;500;600;700&family=Sora:wght@500;600;700&display=swap");

:root {
  --font-display: "Sora", "Figtree", sans-serif;
  --font: "Figtree", "Sora", sans-serif;
  --bg: #eef2f6;
  --ink: #121820;
  --muted: #5c6978;
  --line: rgba(18, 24, 32, 0.1);
  --accent: #0e7c8a;
  --accent-soft: rgba(14, 124, 138, 0.1);
  --surface: rgba(255, 255, 255, 0.55);
  --radius: 16px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

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

body.landing {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

.landing-atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(1100px 560px at 8% -12%, rgba(14, 124, 138, 0.16), transparent 58%),
    radial-gradient(900px 480px at 92% 6%, rgba(15, 159, 110, 0.1), transparent 52%),
    radial-gradient(700px 420px at 50% 100%, rgba(14, 124, 138, 0.08), transparent 55%),
    linear-gradient(180deg, #e4ebf2 0%, var(--bg) 32%);
}

.landing-atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.45'/%3E%3C/svg%3E");
}

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

.landing-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(68rem, calc(100% - 3rem));
  margin: 0 auto;
  padding: 1.35rem 0 0;
  animation: fade-up 0.55s var(--ease) both;
}

.landing-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: inherit;
  text-decoration: none;
}

.landing-brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.landing-brand span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.04em;
}

.landing-nav-link {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.landing-nav-link:hover {
  color: var(--ink);
  border-color: var(--line);
}

.landing-hero {
  width: min(44rem, calc(100% - 3rem));
  margin: 0 auto;
  min-height: calc(100vh - 5.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3.5rem 0 4.5rem;
  animation: fade-up 0.7s var(--ease) 0.05s both;
}

.landing-brand-hero {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 4.6rem);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 0.95;
  color: var(--ink);
}

.landing-headline {
  margin: 0 0 1.15rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.2;
  color: color-mix(in srgb, var(--ink) 82%, var(--muted));
  max-width: 18ch;
}

.landing-lede {
  margin: 0 0 2rem;
  max-width: 36rem;
  font-size: 1.08rem;
  line-height: 1.55;
  color: var(--muted);
}

.landing-lede a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
}

.landing-lede a:hover {
  border-bottom-color: var(--accent);
}

.landing-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.landing-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.25rem;
  border-radius: 14px;
  font: inherit;
  font-weight: 700;
  letter-spacing: -0.015em;
  text-decoration: none;
  transition: transform 0.15s var(--ease), background 0.2s ease, border-color 0.2s ease;
}

.landing-btn:active { transform: scale(0.98); }

.landing-btn.primary {
  background: var(--accent);
  color: #fff;
}

.landing-btn.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.landing-btn.ghost:hover {
  background: var(--surface);
}

.landing-section {
  width: min(44rem, calc(100% - 3rem));
  margin: 0 auto;
  padding: 0 0 4.5rem;
  animation: fade-up 0.65s var(--ease) both;
}

.landing-section h2 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.landing-section-lede {
  margin: 0 0 1.5rem;
  color: var(--muted);
  line-height: 1.55;
  max-width: 38rem;
}

.landing-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.landing-list li {
  display: grid;
  gap: 0.3rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}

.landing-list strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: -0.025em;
}

.landing-list span {
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.95rem;
}

.landing-steps {
  margin: 0;
  padding: 0 0 0 1.2rem;
  color: var(--ink);
  line-height: 1.65;
}

.landing-steps li {
  margin-bottom: 0.55rem;
  padding-left: 0.25rem;
}

.landing-footer {
  width: min(44rem, calc(100% - 3rem));
  margin: 0 auto;
  padding: 0 0 2.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.88rem;
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
}

.landing-footer a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}

.landing-footer a:hover { color: var(--ink); }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 640px) {
  .landing-nav,
  .landing-hero,
  .landing-section,
  .landing-footer {
    width: calc(100% - 2rem);
  }
  .landing-hero {
    min-height: auto;
    padding: 2.5rem 0 3.25rem;
  }
  .landing-cta { width: 100%; }
  .landing-btn { flex: 1 1 auto; }
}


.landing-auth {
  margin-top: 0.35rem;
  padding: 1.1rem 1.15rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  max-width: 26rem;
}

.landing-auth-label {
  margin: 0 0 0.85rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
}

#vk-auth-error.status {
  margin-top: 0.85rem;
  color: #e0483c;
  font-size: 0.9rem;
  font-weight: 600;
}

#vk-auth-error[hidden] { display: none; }

/* VK widget container breathing room */
.landing-auth iframe,
.landing-auth [class*="vkid"] {
  max-width: 100%;
}
