/* Дизайн-токены blabbo (зеркало app/src/theme/tokens.ts, тема одна — тёмная). */
:root {
  --ink: #131318; /* фон */
  --graphite: #1d1d26; /* поверхности */
  --violet: #7b2ff7; /* primary */
  --lime: #c6ff3e; /* cta */
  --white: #ffffff;
  --fog: #9a9aab; /* вторичный текст */
  --coral: #ff5470; /* ошибки */

  --radius-card: 20px;
  --radius-button: 14px;
  --radius-chip: 999px;

  --font-system: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
    sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-system);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 16px 40px;
  /* Мягкое фиолетовое свечение сверху — фирменный градиент. */
  background-image: radial-gradient(
      ellipse 80% 50% at 50% -10%,
      rgba(123, 47, 247, 0.35),
      transparent 70%
    ),
    radial-gradient(ellipse 60% 40% at 90% 110%, rgba(198, 255, 62, 0.07), transparent 70%);
  background-attachment: fixed;
}

.page {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

/* Wordmark: «blabbo» строчными, жирный системный. */
.wordmark {
  font-weight: 800;
  font-size: 28px;
  letter-spacing: -0.02em;
  color: var(--lime);
  text-decoration: none;
  text-transform: lowercase;
}
.wordmark:hover {
  opacity: 0.85;
}

.tagline {
  color: var(--fog);
  font-size: 15px;
  text-align: center;
}

h1 {
  font-weight: 800;
  font-size: 26px;
  line-height: 1.25;
  text-align: center;
  letter-spacing: -0.01em;
}

.card {
  width: 100%;
  background: var(--graphite);
  border: 1px solid rgba(154, 154, 171, 0.18);
  border-radius: var(--radius-card);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* Видео */
.video-wrap {
  width: 100%;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--ink);
}
.video-wrap video {
  display: block;
  width: 100%;
  max-height: 62vh;
  object-fit: contain;
  background: var(--ink);
}

/* Состояния */
.state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  padding: 28px 8px;
}
.state .emoji {
  font-size: 44px;
  line-height: 1;
}
.state .title {
  font-weight: 800;
  font-size: 19px;
}
.state .sub {
  color: var(--fog);
  font-size: 14px;
  max-width: 320px;
}

.spinner {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid rgba(198, 255, 62, 0.2);
  border-top-color: var(--lime);
  animation: spin 0.9s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Кнопки */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 15px 20px;
  border: none;
  border-radius: var(--radius-button);
  font-family: var(--font-system);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.08s ease, opacity 0.15s ease;
}
.btn:active {
  transform: scale(0.98);
}

.btn-cta {
  background: var(--lime);
  color: var(--ink); /* лайм требует тёмного текста */
}
.btn-cta:hover {
  opacity: 0.9;
}

.btn-store {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(154, 154, 171, 0.25);
  color: var(--white);
  font-size: 15px;
}
.btn-store:hover {
  border-color: var(--violet);
}
.btn-store svg {
  flex: none;
}

.btn-ghost {
  background: transparent;
  border: 1px solid rgba(154, 154, 171, 0.35);
  color: var(--white);
  width: auto;
  padding: 10px 22px;
  font-size: 14px;
}

.stores {
  display: flex;
  gap: 10px;
  width: 100%;
}
.stores .btn {
  flex: 1;
}
@media (max-width: 360px) {
  .stores {
    flex-direction: column;
  }
}

.actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hint {
  color: var(--fog);
  font-size: 12.5px;
  text-align: center;
}

footer {
  margin-top: 8px;
  color: var(--fog);
  font-size: 13px;
  text-align: center;
}
footer a {
  color: var(--lime);
  text-decoration: none;
  font-weight: 700;
}

.hidden {
  display: none !important;
}

/* Герой корневой страницы */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
  padding-top: 6vh;
}
.hero .mascot {
  width: 128px;
  height: 128px;
}
.hero h1 {
  font-size: 40px;
}
.hero h1 .brand {
  color: var(--lime);
}
.hero .sub {
  color: var(--fog);
  font-size: 17px;
  max-width: 340px;
}
