/* ---------- Переменные ---------- */
:root {
  --bg: #050506;
  --text: #e7e9ee;
  --muted: #8d919b;
  --line: rgba(255, 255, 255, 0.13);
  --line-hover: rgba(255, 255, 255, 0.28);
  --btn-height: 76px;
}

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

html, body { height: 100%; }

body {
  margin: 0;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 32px 0;
  color: var(--text);
  font-family: "Outfit", "Urbanist", system-ui, -apple-system, "Segoe UI", sans-serif;
  background:
    radial-gradient(55% 40% at 50% 30%, rgba(255, 255, 255, 0.055), transparent 70%),
    radial-gradient(90% 60% at 50% 110%, rgba(255, 255, 255, 0.03), transparent 70%),
    var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  padding-top: max(32px, env(safe-area-inset-top));
  padding-bottom: max(32px, env(safe-area-inset-bottom));
}

/* ---------- Контейнер ---------- */
.card {
  width: min(100% - 48px, 460px);
  text-align: center;
  /* чуть выше центра, как на макете */
  transform: translateY(-4vh);
}

/* ---------- Логотип ---------- */
.logo-wrap {
  width: clamp(150px, 40vw, 200px);
  aspect-ratio: 1;
  margin: 0 auto clamp(14px, 3vh, 26px);
  display: grid;
  place-items: center;
}

.logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 28px rgba(255, 255, 255, 0.08));
}

/* ---------- Название ---------- */
.wordmark {
  margin: 0 0 clamp(36px, 7vh, 64px);
  font-weight: 400;
  font-size: clamp(2.5rem, 12vw, 4.4rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  background: linear-gradient(180deg, #ffffff 0%, #c9ccd3 55%, #8f939c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------- Кнопки ---------- */
.links {
  display: grid;
  gap: 20px;
}

.link {
  --x: 50%;
  --y: 50%;
  position: relative;
  display: flex;
  align-items: center;
  height: var(--btn-height);
  padding: 0 30px 0 32px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015)),
    rgba(12, 12, 15, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 10px 30px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  isolation: isolate;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}

/* мягкая подсветка под курсором (управляется из script.js) */
.link::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(220px circle at var(--x) var(--y), rgba(255, 255, 255, 0.10), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.link:hover,
.link:focus-visible {
  border-color: var(--line-hover);
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 16px 40px rgba(0, 0, 0, 0.55);
}

.link:hover::before,
.link:focus-visible::before { opacity: 1; }

.link:active { transform: translateY(0) scale(0.99); }

.link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.7);
  outline-offset: 3px;
}

.icon {
  flex: none;
  width: 30px;
  height: 30px;
}

.label {
  margin-left: 22px;
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.chevron {
  flex: none;
  width: 22px;
  height: 22px;
  margin-left: auto;
  color: var(--muted);
  transition: transform 0.25s ease, color 0.25s ease;
}

.link:hover .chevron,
.link:focus-visible .chevron {
  color: var(--text);
  transform: translateX(4px);
}

/* ---------- Появление при загрузке ---------- */
@media (prefers-reduced-motion: no-preference) {
  .logo-wrap, .wordmark, .link {
    opacity: 0;
    animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  }
  .wordmark        { animation-delay: 0.12s; }
  .link:nth-child(1) { animation-delay: 0.28s; }
  .link:nth-child(2) { animation-delay: 0.38s; }
}

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

/* ---------- Маленькие экраны ---------- */
@media (max-width: 380px) {
  :root { --btn-height: 68px; }
  .link { padding: 0 22px; }
  .label { font-size: 1.1rem; margin-left: 16px; }
}
