/* @/apps/landing/styles.css */
/* Оформление заглушки murion.ru: тёмная панель в духе игрового интерфейса. */

:root {
  --ink: #08080d;
  --ink-raised: #12121a;
  --panel: #14141b;
  --edge: #2e2e3c;
  --edge-bright: #4a4a5a;

  --gold: #ffd66a;
  --gold-soft: #ffe08a;
  --gold-pale: #fff0bc;
  --jade: #8ff0a0;

  --text: #e6e6f0;
  --muted: #8a8a9a;
  --faint: #7a7a8a;

  /* Шрифт совпадает с игровым интерфейсом: там тоже моноширинный. */
  --mono: ui-monospace, 'SF Mono', 'JetBrains Mono', 'Cascadia Mono', Menlo, Consolas,
    'Liberation Mono', monospace;

  --panel-width: 42rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  min-height: 100dvh;
  padding: 2rem 1.25rem 1.5rem;

  background: var(--ink);
  color: var(--text);
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* ── Атмосфера ──────────────────────────────────────────────────────────── */

/* Свет факела сверху и холодный отсвет снизу: плоская заливка выглядит мёртво. */
.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(60rem 34rem at 50% -8%, rgba(255, 214, 106, 0.13), transparent 62%),
    radial-gradient(44rem 30rem at 50% 112%, rgba(90, 110, 190, 0.1), transparent 60%),
    radial-gradient(28rem 20rem at 12% 78%, rgba(255, 176, 96, 0.05), transparent 70%);
  animation: torch 7s ease-in-out infinite;
}

/* Зерно поверх градиентов: без него плавные переходы полосят на тёмном фоне. */
.atmosphere::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Развёртка старого монитора — еле заметная, только чтобы дать фактуру. */
.atmosphere::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.4;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.016) 0 1px,
    transparent 1px 3px
  );
}

/* ── Панель ─────────────────────────────────────────────────────────────── */

.panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--panel-width);
  padding: clamp(2rem, 6vw, 3.25rem) clamp(1.5rem, 5vw, 3.25rem) clamp(1.75rem, 5vw, 2.5rem);

  background:
    linear-gradient(180deg, rgba(255, 214, 106, 0.035), transparent 40%),
    linear-gradient(180deg, var(--panel), var(--ink-raised));
  border: 1px solid var(--edge);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.02),
    inset 0 1px 0 rgba(255, 224, 138, 0.08),
    0 2rem 5rem rgba(0, 0, 0, 0.7);

  text-align: center;
  animation: rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Уголки-засечки: рамка окна в игре собрана так же. */
.panel__corner {
  position: absolute;
  width: 10px;
  height: 10px;
  border: 1px solid var(--gold);
  opacity: 0.5;
}

.panel__corner--tl {
  top: -1px;
  left: -1px;
  border-width: 1px 0 0 1px;
}
.panel__corner--tr {
  top: -1px;
  right: -1px;
  border-width: 1px 1px 0 0;
}
.panel__corner--bl {
  bottom: -1px;
  left: -1px;
  border-width: 0 0 1px 1px;
}
.panel__corner--br {
  bottom: -1px;
  right: -1px;
  border-width: 0 1px 1px 0;
}

/* ── Заголовок ──────────────────────────────────────────────────────────── */

.sigil {
  color: var(--gold);
  opacity: 0.85;
  filter: drop-shadow(0 0 12px rgba(255, 214, 106, 0.35));
  animation: rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.05s both;
}

.title {
  margin: 0.75rem 0 0;
  font-size: clamp(2.75rem, 11vw, 4.5rem);
  font-weight: 400;
  letter-spacing: 0.22em;
  /* Компенсируем разрядку: иначе слово визуально уезжает вправо. */
  text-indent: 0.22em;
  text-transform: uppercase;

  background: linear-gradient(180deg, var(--gold-pale), var(--gold) 55%, #b98f3e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;

  animation: rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.tagline {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.8125rem;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  text-transform: uppercase;
  animation: rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.16s both;
}

.tagline span {
  color: var(--text);
}

.rule {
  width: 100%;
  height: 1px;
  margin: 1.75rem 0;
  background: linear-gradient(90deg, transparent, var(--edge-bright) 20%, var(--edge-bright) 80%, transparent);
  animation: rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.22s both;
}

.lead {
  margin: 0 auto;
  max-width: 34rem;
  color: var(--muted);
  font-size: 0.9375rem;
  animation: rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.28s both;
}

/* ── Характеристики ─────────────────────────────────────────────────────── */

.specs {
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
  text-align: left;
  font-size: 0.8125rem;
  animation: rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.34s both;
}

.specs__row {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

/* Точечный поводок между названием и значением — как в панели персонажа. */
.specs__row::after {
  content: '';
  order: 1;
  flex: 1;
  height: 0;
  border-bottom: 1px dotted var(--edge-bright);
  opacity: 0.7;
}

.specs dt {
  order: 0;
  color: var(--faint);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.specs dd {
  order: 2;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
}

.pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--jade);
  box-shadow: 0 0 8px var(--jade);
  animation: pulse 2.4s ease-in-out infinite;
}

/* ── Полоса разработки ──────────────────────────────────────────────────── */

/* Намеренно без процентов: доля готовности — выдумка, а бегущий блик честно
   показывает, что работа идёт. */
.progress {
  position: relative;
  height: 6px;
  margin: 1.75rem 0 2rem;
  overflow: hidden;
  background: #0b0b12;
  border: 1px solid var(--edge);
  animation: rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

.progress__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 38%;
  background: linear-gradient(90deg, transparent, var(--gold) 45%, var(--gold-soft) 55%, transparent);
  opacity: 0.85;
  animation: sweep 3.4s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

/* ── Кнопка входа ───────────────────────────────────────────────────────── */

.enter {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 2rem;
  overflow: hidden;

  color: var(--gold);
  font: inherit;
  font-size: 0.875rem;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;

  background: linear-gradient(180deg, rgba(255, 214, 106, 0.09), rgba(255, 214, 106, 0.03));
  border: 1px solid rgba(255, 214, 106, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 240, 188, 0.14);
  transition:
    color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.15s ease;
  animation: rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.46s both;
}

/* Заливка выезжает слева направо — обычная смена фона выглядит дёшево. */
.enter::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.enter__label,
.enter__arrow {
  position: relative;
  z-index: 1;
  transition: transform 0.25s ease;
}

.enter:hover,
.enter:focus-visible {
  color: var(--ink);
  border-color: var(--gold-soft);
  box-shadow: 0 0 2rem rgba(255, 214, 106, 0.28);
}

.enter:hover::before,
.enter:focus-visible::before {
  transform: scaleX(1);
}

.enter:hover .enter__arrow,
.enter:focus-visible .enter__arrow {
  transform: translateX(4px);
}

.enter:active {
  transform: translateY(1px);
}

.enter:focus-visible {
  outline: 2px solid var(--gold-pale);
  outline-offset: 3px;
}

.note {
  margin: 1.5rem 0 0;
  color: var(--faint);
  font-size: 0.75rem;
  animation: rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.52s both;
}

/* ── Подвал ─────────────────────────────────────────────────────────────── */

.footer {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 0.6rem;
  color: var(--faint);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  animation: rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.6s both;
}

.footer__dot {
  opacity: 0.5;
}

/* ── Движение ───────────────────────────────────────────────────────────── */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes torch {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.86;
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.45;
    transform: scale(0.85);
  }
}

@keyframes sweep {
  0% {
    transform: translateX(-110%);
  }
  100% {
    transform: translateX(320%);
  }
}

/* Анимации выключаются, если система просит покоя. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 30rem) {
  .specs {
    font-size: 0.75rem;
  }

  .enter {
    width: 100%;
    justify-content: center;
  }
}
