:root {
  --bg: #0a0518;
  --bg2: #14092e;
  --accent: #c8a8ff;
  --glow1: rgba(140, 80, 200, 0.45);
  --glow2: rgba(60, 30, 110, 0.55);
  --text: #efe8ff;
  --text-muted: rgba(239, 232, 255, 0.6);
  --line: rgba(239, 232, 255, 0.12);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Manrope', system-ui, sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

.cosmos {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 60% at 18% 22%, var(--glow2), transparent 65%),
    radial-gradient(ellipse 70% 50% at 82% 78%, var(--glow1), transparent 60%),
    radial-gradient(ellipse 60% 40% at 50% 110%, var(--glow1), transparent 60%),
    var(--bg);
  transition: background 0.8s ease;
}
.grain {
  position: fixed;
  inset: -1px;
  z-index: -1;
  pointer-events: none;
  opacity: 0.06;
  mix-blend-mode: overlay;
  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.92' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

.stars { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.star {
  position: absolute;
  border-radius: 50%;
  background: var(--accent);
  animation: twinkle var(--dur, 4s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}
@keyframes twinkle {
  0%, 100% { opacity: var(--min, 0.2); transform: scale(1); }
  50% { opacity: var(--max, 0.9); transform: scale(1.25); }
}

.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 56px;
}
@media (max-width: 768px) { .wrap { padding: 0 24px; } }

.eyebrow {
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before, .eyebrow::after {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--accent);
  opacity: 0.6;
}

.display {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.02;
}
.display em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

nav.top {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 56px;
}
@media (max-width: 768px) { nav.top { padding: 20px 24px; } }

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  letter-spacing: 0.32em;
  color: var(--text);
  text-transform: uppercase;
}
.brand-mark {
  width: 28px; height: 28px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  position: relative;
  overflow: hidden;
}
.brand-mark::after {
  content: '';
  position: absolute;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--bg);
  top: 1px; right: -3px;
}

nav .right {
  display: flex; align-items: center; gap: 20px;
  font-size: 13px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--text-muted);
}
nav .right a:hover { color: var(--accent); }
@media (max-width: 768px) { nav .right .nav-links { display: none; } }

nav .nav-links {
  display: flex; align-items: center; gap: 20px;
}
nav .nav-links a {
  font-size: 12px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--text-muted);
  transition: color 0.25s;
}
nav .nav-links a:hover { color: var(--accent); }

.nav-user {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text);
  transition: opacity 0.25s;
}
.nav-user:hover { opacity: 0.85; }
.nav-avatar {
  width: 34px; height: 34px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: rgba(200, 168, 255, 0.12);
  flex-shrink: 0;
}
.nav-avatar img {
  width: 100%; height: 100%; object-fit: cover;
}
.nav-avatar span {
  font-family: 'Manrope', sans-serif;
  font-size: 14px; font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
}
.nav-username {
  font-size: 13px; letter-spacing: 0.12em;
  color: var(--text);
}


section.hero {
  position: relative;
  min-height: calc(100vh - 80px);
  padding: 80px 0 100px;
  display: flex;
  align-items: center;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 60px; }
}

.hero h1 {
  margin: 24px 0 0;
  font-size: clamp(56px, 9vw, 124px);
}
.hero h1 .line { display: block; }

.hero-sub {
  margin-top: 32px;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(18px, 1.5vw, 22px);
  color: var(--text-muted);
  max-width: 460px;
  line-height: 1.5;
}

.hero-ctas {
  margin-top: 44px;
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 30px;
  border-radius: 999px;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s;
  border: 1px solid var(--accent);
}
.btn-primary {
  background: var(--accent);
  color: var(--bg);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px var(--glow1);
}
.btn-ghost {
  background: transparent;
  color: var(--accent);
  border-color: rgba(200, 168, 255, 0.35);
}
.btn-ghost:hover {
  border-color: var(--accent);
  background: rgba(200, 168, 255, 0.06);
}
.btn .arrow { transition: transform 0.25s; }
.btn:hover .arrow { transform: translateX(4px); }

.proof {
  margin-top: 48px;
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 13px;
}
.proof span { display: inline-flex; align-items: center; gap: 8px; }
.proof .dot { color: var(--accent); }

.moon-stage {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 520px;
  justify-self: center;
  width: 100%;
}
@media (max-width: 1024px) {
  .moon-stage { max-width: 360px; }
}

.moon-glow {
  position: absolute;
  inset: -10%;
  background: radial-gradient(circle, var(--glow1) 0%, transparent 60%);
  filter: blur(20px);
  animation: pulse 8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

.moon-svg {
  position: relative;
  width: 100%;
  height: 100%;
  color: var(--accent);
  overflow: visible;
}

.moon-svg .ring {
  fill: none;
  stroke: currentColor;
  opacity: 0.12;
  stroke-width: 0.5;
}
.moon-svg .ring-outer {
  stroke-dasharray: 4 8;
  animation: spin 90s linear infinite;
}
.moon-svg .ring-inner {
  stroke-dasharray: 2 12;
  animation: spin 60s linear infinite reverse;
}
@keyframes spin { to { transform: rotate(360deg); } }

.crescent-group {
  animation: float 12s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(1deg); }
}

.moon-star {
  fill: currentColor;
  animation: twinkle 3s ease-in-out infinite;
}

.moon-svg .label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 11px;
  letter-spacing: 0.3em;
  fill: currentColor;
  opacity: 0.35;
}

.inside {
  padding: 120px 0;
  position: relative;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 80px;
}
.section-head h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 400;
  line-height: 1.15;
  margin: 20px 0 0;
}
.section-head h2 em {
  font-style: italic;
  color: var(--accent);
}
.section-head .meta {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}
@media (max-width: 768px) {
  .section-head { flex-direction: column; }
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
@media (max-width: 768px) {
  .features { grid-template-columns: 1fr; }
}
.feature {
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: 20px;
  transition: border-color 0.3s;
}
.feature:hover {
  border-color: rgba(200, 168, 255, 0.3);
}
.feature .num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  color: var(--accent);
  margin-bottom: 20px;
  text-align: center;
}
.feature h3 {
  font-family: 'Manrope', sans-serif;
  font-size: 18px;
  font-weight: 500;
  margin: 0 0 12px;
  text-align: justify;
}
.feature p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
  text-align: justify;
}

.quote {
  padding: 120px 0;
  text-align: center;
}
.quote blockquote {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 3.5vw, 48px);
  font-style: italic;
  line-height: 1.3;
  max-width: 800px;
  margin: 0 auto;
}
.quote blockquote em {
  font-style: italic;
  color: var(--accent);
}
.quote .attribution {
  margin-top: 24px;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.final {
  padding: 0 0 120px;
}
.final-card {
  text-align: center;
  padding: 80px 40px;
  border: 1px solid var(--line);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
}
.final-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 40% at 50% 0%, var(--glow1), transparent 60%);
  opacity: 0.3;
}
.final-card .eyebrow { position: relative; }
.final-card h2 {
  position: relative;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 400;
  margin: 20px 0 0;
}
.final-card h2 em { font-style: italic; color: var(--accent); }
.final-card p {
  position: relative;
  max-width: 480px;
  margin: 0 auto 36px;
  color: var(--text-muted);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 19px;
}
.final-card .btn { position: relative; }

footer {
  padding: 40px 0 60px;
  border-top: 1px solid var(--line);
}
.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.foot a:hover { color: var(--accent); }

.sticky-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  padding: 14px 28px;
  background: rgba(10, 5, 24, 0.86);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  z-index: 50;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}
.sticky-bar.show { transform: translateY(0); }
.sticky-bar .copy {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 16px;
  color: var(--text);
}
@media (max-width: 600px) {
  .sticky-bar .copy { display: none; }
  .sticky-bar { justify-content: center; }
}
body.has-sticky { padding-bottom: 70px; }

.reveal { opacity: 0; transform: translateY(30px); transition: all 1s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: translateY(0); }

.top-left {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
}
.top-left .brand { order: 2; }            /* название правее бейджа */
.top-left .online-pill {
  order: 1;                                /* онлайн — крайний слева */
  margin-top: 0;
  padding: 7px 15px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  gap: 9px;
  background: linear-gradient(135deg, rgba(200, 168, 255, 0.10), rgba(60, 30, 110, 0.10));
  border: 1px solid rgba(200, 168, 255, 0.22);
  box-shadow: 0 0 0 1px rgba(200, 168, 255, 0.04) inset, 0 6px 18px rgba(0,0,0,0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
}
.top-left .online-pill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 120% at 0% 0%, rgba(200,168,255,0.16), transparent 55%);
  pointer-events: none;
}
.top-left .online-pill .online-dot { width: 8px; height: 8px; }
.top-left .online-pill .online-num { font-size: 17px; letter-spacing: 0; }
.top-left .online-pill .online-text { font-weight: 500; }
@media (max-width: 640px) {
  .top-left .online-pill .online-text { display: none; }
}
@media (max-width: 520px) {
  .top-left .online-pill { display: none; }
}

.online-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding: 9px 16px;
  border: 1px solid rgba(200, 168, 255, 0.18);
  border-radius: 999px;
  background: rgba(20, 9, 46, 0.4);
  font-size: 13px;
  color: var(--text-muted);
}
.online-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #4ade80;
  animation: onlinePulse 1.8s ease-in-out infinite;
}
.online-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  line-height: 1;
}
@keyframes onlinePulse {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}
