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

:root {
  --bg: #04110b;
  --card: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.08);
  --primary: #00c26e;
  --primary-dark: #01894f;
  --accent: #1ee29a;
  --text: #e9f7ef;
  --muted: #9fd0b7;
}

* {
  scroll-behavior: smooth;
}

body {
  font-family: "Manrope", system-ui, -apple-system, sans-serif;
  background: radial-gradient(circle at 20% 20%, rgba(30, 226, 154, .1), transparent 25%), radial-gradient(circle at 80% 0%, rgba(0, 194, 110, .16), transparent 30%), var(--bg);
  color: var(--text);
  opacity: 1;
  transition: opacity .45s ease, filter .45s ease;
}

/* Плавный уход/появление страниц */
body.fade-out {
  opacity: 0;
  filter: blur(6px);
}

.glass {
  background: var(--card);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  transition: transform .2s ease, box-shadow .3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 194, 110, .35);
}

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
  transition: all .2s ease;
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 10px 30px rgba(30, 226, 154, .2);
}

.tag {
  color: var(--accent);
  letter-spacing: .08em;
}

.section-title {
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.1;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(30, 226, 154, .08);
  color: var(--accent);
  border: 1px solid rgba(30, 226, 154, .25);
  font-weight: 600;
}

.neon-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.hero-blob {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 25% 30%, rgba(30, 226, 154, .18), transparent 35%), radial-gradient(circle at 80% 10%, rgba(0, 194, 110, .22), transparent 40%);
  filter: blur(30px);
  opacity: .8;
  z-index: 0;
}

.card-hover {
  transition: border-color .2s ease, transform .2s ease, box-shadow .3s ease;
}

.card-hover:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 18px 38px rgba(0, 0, 0, .28);
}

.gradient-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(30, 226, 154, .6), transparent);
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item button {
  width: 100%;
  text-align: left;
}

/* Active state for language buttons */
.lang-btn.active {
  color: #1ee29a;
  background: rgba(255, 255, 255, 0.1);
}

/* Intro overlay */
.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 20% 20%, rgba(30, 226, 154, .08), transparent 35%),
              radial-gradient(circle at 80% 10%, rgba(0, 194, 110, .12), transparent 40%),
              rgba(4, 17, 11, 0.35);
  backdrop-filter: blur(1px);
}

.intro-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

#particles {
  width: 100vw;
  height: 100vh;
}

#webgl-container {
  opacity: 0.9;
}

.intro-card {
  max-width: 520px;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  position: relative;
  z-index: 1;
}

.intro-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(30, 226, 154, .35), transparent 35%, rgba(0, 194, 110, .35));
  opacity: .35;
  filter: blur(18px);
  z-index: -1;
}

.intro-overlay.leaving {
  animation: overlayExit .8s ease forwards;
  pointer-events: none;
}

@keyframes overlayExit {
  0% { opacity: 1; transform: scale(1); }
  40% { transform: scale(1.02); }
  100% { opacity: 0; transform: scale(1.06); }
}

.site-content {
  transition: opacity .8s ease, transform .8s ease, filter .8s ease;
}

.site-hidden {
  opacity: 0;
  transform: translateY(20px);
  filter: blur(12px);
  pointer-events: none;
}

/* Footer прижат к низу экрана */
.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.page-wrapper main {
  flex: 1;
}

/* Кнопка "Вернуться назад" на info страницах */
.info-back-btn {
  margin-bottom: 24px;
  display: inline-block;
}
