/* ==========================================================================
   CRYPTID AFTERLIFE — стили лендинга
   ========================================================================== */

:root {
  --bg: #08050d;
  --bg-soft: #0f0a19;
  --card: rgba(255, 255, 255, 0.035);
  --card-hover: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.09);

  --purple-950: #1a0733;
  --purple-800: #3d1178;
  --purple-600: #6c1fd9;
  --purple-500: #9333ea;
  --purple-400: #b565f5;
  --purple-300: #d4a3ff;
  --pink-200: #f3c9ff;

  --orange-500: #e8763c;
  --orange-400: #f39a5a;

  --text: #f6f3fb;
  --text-dim: #b9aecb;
  --text-faint: #837697;

  --font-display: "Unbounded", "Inter", sans-serif;
  --font-body: "Inter", sans-serif;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 26px;

  --container: 1240px;

  --shadow-glow: 0 0 0 1px rgba(255,255,255,0.06), 0 20px 60px rgba(89, 15, 168, 0.25);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

img { max-width: 100%; display: block; }

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

ul, ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  margin: 0;
  line-height: 1.15;
  font-weight: 800;
}

p { margin: 0; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Ambient background ---------- */

.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
}

.bg-glow--one {
  width: 620px;
  height: 620px;
  top: -220px;
  left: -160px;
  background: radial-gradient(circle, var(--purple-600), transparent 70%);
}

.bg-glow--two {
  width: 720px;
  height: 720px;
  top: 20%;
  right: -280px;
  background: radial-gradient(circle, var(--purple-800), transparent 70%);
  opacity: 0.4;
}


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

/* ---------- Buttons & pills ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  border: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}

.btn--primary {
  background: linear-gradient(135deg, var(--purple-500), var(--purple-800));
  color: #fff;
  box-shadow: 0 10px 30px rgba(147, 51, 234, 0.35);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(147, 51, 234, 0.5);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}

.btn--ghost:hover {
  border-color: var(--purple-400);
  color: var(--purple-300);
}

.btn--sm { padding: 11px 20px; font-size: 0.9rem; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--border);
  font-weight: 600;
  color: var(--text-dim);
  font-size: 0.95rem;
}

.pill strong { color: var(--text); }

.pill__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #43e97b;
  box-shadow: 0 0 0 0 rgba(67, 233, 123, 0.6);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(67, 233, 123, 0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(67, 233, 123, 0); }
  100% { box-shadow: 0 0 0 0 rgba(67, 233, 123, 0); }
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple-300);
  background: rgba(147, 51, 234, 0.12);
  border: 1px solid rgba(147, 51, 234, 0.28);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(8, 5, 13, 0.65);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
}

.brand__word {
  height: 30px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-dim);
}

.nav a { transition: color 0.15s ease; }
.nav a:hover { color: var(--text); }
.nav__discord { color: var(--purple-300) !important; }

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
}

.burger span {
  height: 2px;
  width: 18px;
  margin: 0 auto;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 10px 24px 20px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.mobile-nav a {
  padding: 12px 6px;
  font-weight: 600;
  color: var(--text-dim);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.mobile-nav .btn { margin-top: 12px; text-align: center; }

.mobile-nav.is-open { display: flex; }

/* ---------- Hero ---------- */

.hero { padding: 76px 0 60px; }

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero__title {
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  letter-spacing: -0.01em;
  margin-bottom: 22px;
}

.hl {
  background: linear-gradient(120deg, var(--purple-300), var(--purple-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hl--big { font-size: 1.08em; }

.hero__desc {
  color: var(--text-dim);
  font-size: 1.08rem;
  max-width: 46ch;
  margin-bottom: 34px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.hero__panel { position: relative; }

.panel-glass {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 34px;
  background:
    radial-gradient(120% 140% at 15% 0%, rgba(180, 90, 255, 0.35), transparent 55%),
    linear-gradient(160deg, #2a0f52 0%, #1a0a33 45%, #150a24 100%);
  border: 1px solid rgba(200, 140, 255, 0.25);
  box-shadow: var(--shadow-glow);
  overflow: hidden;
}

.panel-glass::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 45% at 50% 0%, #000 20%, transparent 100%);
  pointer-events: none;
}

.panel-glass__row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.panel-glass__label {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pink-200);
  opacity: 0.85;
}

.panel-glass__badge {
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 5px 12px;
  border-radius: 999px;
  color: #fff;
}

.ip-copy {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: rgba(0,0,0,0.28);
  border: 1.5px dashed rgba(255,255,255,0.28);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.ip-copy:hover { border-color: var(--purple-300); background: rgba(0,0,0,0.4); }
.ip-copy__icon { width: 20px; height: 20px; flex-shrink: 0; color: var(--purple-300); }

.ip-copy__hint {
  position: relative;
  margin-top: 10px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  text-align: center;
}

/* ---------- Icons (SVG, replaces emoji) ---------- */

.icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Section head (shared) ---------- */

.section-head {
  max-width: 620px;
  margin: 0 auto 52px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin-bottom: 14px;
}

.section-head p { color: var(--text-dim); font-size: 1.05rem; }

section { padding: 88px 0; }

/* ---------- Features ---------- */

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  background: var(--card-hover);
  border-color: rgba(180, 90, 255, 0.35);
}

.feature-card__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(147,51,234,0.25), rgba(232,118,60,0.15));
  border: 1px solid rgba(180, 90, 255, 0.3);
  margin-bottom: 18px;
  color: var(--purple-300);
  font-size: 26px;
  line-height: 1;
}

.feature-card__icon .icon {
  width: 26px;
  height: 26px;
}

.feature-card h3 {
  font-size: 1.12rem;
  margin-bottom: 8px;
  font-weight: 700;
}

.feature-card p {
  color: var(--text-dim);
  font-size: 0.94rem;
}

/* ---------- Update showcase ---------- */

.update {
  background: linear-gradient(180deg, transparent, rgba(147, 51, 234, 0.06), transparent);
}

.update__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
}

.update__title {
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  margin: 10px 0 20px;
  color: var(--orange-400);
}

.update__title span {
  display: block;
  background: linear-gradient(120deg, var(--purple-300), var(--pink-200));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.update__text p {
  color: var(--text-dim);
  font-size: 1.02rem;
  max-width: 44ch;
  margin-bottom: 28px;
}

.update__teaser {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
  max-width: 48ch;
}

.update__teaser li {
  font-size: 0.95rem;
  color: var(--text-dim);
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 2px solid var(--orange-500);
  border-radius: 999px;
  padding: 10px 18px;
}

.update__teaser strong {
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
}

.update__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-glow);
}

.update__media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Join ---------- */

.join__card {
  background:
    radial-gradient(120% 160% at 100% 0%, rgba(147,51,234,0.18), transparent 60%),
    var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 56px;
}

.join__steps .eyebrow { margin-bottom: 14px; }

.join__steps h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 40px;
  max-width: 20ch;
}

.steps {
  display: grid;
  gap: 28px;
  margin-bottom: 40px;
}

.steps li {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.steps__num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--purple-500), var(--purple-800));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
}

.steps h3 { font-size: 1.05rem; margin-bottom: 6px; font-weight: 700; }
.steps p { color: var(--text-dim); font-size: 0.94rem; }

.join__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.ip-copy--inline {
  width: auto;
  border-style: dashed;
  border-color: var(--border);
  background: rgba(255,255,255,0.04);
  color: var(--text);
}

.ip-copy--inline .ip-copy__icon { color: var(--purple-400); }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 40px 0;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand--footer .brand__word { height: 24px; }

.footer-nav {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dim);
}

.footer-nav a:hover { color: var(--text); }

.site-footer__copy {
  color: var(--text-faint);
  font-size: 0.85rem;
  width: 100%;
  text-align: center;
  order: 3;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #fff;
  color: #16091f;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 12px 22px;
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 200;
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--delay { transition-delay: 0.12s; }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__panel { max-width: 520px; }
  .update__grid { grid-template-columns: 1fr; }
  .update__media { order: -1; }
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .join__card { padding: 36px 28px; }
}

@media (max-width: 760px) {
  .nav { display: none; }
  .burger { display: flex; }
  section { padding: 64px 0; }
  .hero { padding-top: 48px; }
  .features__grid { grid-template-columns: 1fr; }
  .brand__word { height: 24px; }
}

@media (max-width: 520px) {
  .join__actions { flex-direction: column; align-items: stretch; }
  .join__actions .btn,
  .ip-copy--inline { width: 100%; }
  .site-header__inner { padding-top: 12px; padding-bottom: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .pill__dot { animation: none; }
}
