/* ============================================================
   Lumé — design system / tokens
   Палитра: near-black + white + мятный акцент
   Используется лендингом, анкетой и админкой
   ============================================================ */

:root {
  /* base surfaces */
  --bg: #0b0c0f;
  --bg-2: #101218;
  --bg-3: #151823;
  --surface: #14161e;
  --surface-2: #191c26;
  --elev: #1d212c;

  /* lines & text */
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f4f6f8;
  --text-2: #b8bfca;
  --text-3: #7b8492;
  --text-dim: #555d6b;

  /* mint accent */
  --mint: #34e3a8;
  --mint-2: #25c995;
  --mint-soft: rgba(52, 227, 168, 0.14);
  --mint-glow: rgba(52, 227, 168, 0.35);
  --mint-ink: #04140d;
  --mint-pill-bg: linear-gradient(135deg, #34e3a8 0%, #28d49a 55%, #22c993 100%);
  --mint-pill-ring: rgba(255, 255, 255, 0.22);
  --mint-pill-glow: 0 10px 32px rgba(52, 227, 168, 0.38);
  --mint-pill-glow-hover: 0 16px 44px rgba(52, 227, 168, 0.48);

  /* feedback */
  --danger: #ff5f6d;
  --warn: #ffcf5c;
  --gold: #ffd479;

  /* radii */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-pill: 999px;

  /* shadow */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 18px 50px -18px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 18px 60px -22px var(--mint-glow);

  /* typography */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Clash Display", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  /* layout */
  --maxw: 1180px;
  --gutter: clamp(18px, 5vw, 56px);
  --ease: cubic-bezier(0.4, 0.01, 0.16, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  letter-spacing: -0.01em;
  overflow-x: hidden;
}

/* ambient background: layered radial glows + faint grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60% 50% at 12% -5%, rgba(52, 227, 168, 0.10), transparent 60%),
    radial-gradient(50% 45% at 100% 0%, rgba(99, 102, 241, 0.08), transparent 55%),
    radial-gradient(60% 60% at 50% 120%, rgba(52, 227, 168, 0.06), transparent 60%);
  pointer-events: none;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.035;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }
button { font-family: inherit; }
input, textarea, select { font-family: inherit; }

::selection { background: var(--mint); color: var(--mint-ink); }

/* scrollbars */
* { scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 999px; border: 2px solid transparent; background-clip: padding-box; }
*::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }

/* ---------- brand ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.brand__name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.brand__mark {
  display: block;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  line-height: 0;
}
.brand__mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.brand__mark--sm { width: 24px; height: 24px; }
.brand__mark--xs { width: 22px; height: 22px; }

/* ---------- layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.stack { display: flex; flex-direction: column; }

/* ---------- shared atoms ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mint);
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--mint);
  opacity: 0.7;
}

.btn {
  --bg-btn: var(--surface-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 48px;
  padding: 0 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--bg-btn);
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.25s var(--ease-out), background 0.2s, border-color 0.2s, box-shadow 0.3s;
}
.btn:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.btn:active { transform: translateY(0); }

.btn--mint {
  --bg-btn: var(--mint);
  color: var(--mint-ink);
  border-color: transparent;
  box-shadow: var(--shadow-glow);
}
.btn--mint:hover { background: var(--mint-2); box-shadow: 0 22px 70px -20px var(--mint-glow); }

.btn--ghost { background: transparent; }
.btn--block { width: 100%; }
.btn--sm { height: 38px; padding: 0 16px; font-size: 13px; }

.mint-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-pill);
  background: var(--mint-pill-bg);
  color: var(--mint-ink);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
  box-shadow: var(--mint-pill-glow), 0 0 0 1px var(--mint-pill-ring) inset;
}
.mint-pill--sm {
  height: 28px;
  padding: 0 11px;
  font-size: 11px;
}
.mint-pill--cta {
  height: 40px;
  padding: 0 18px 0 20px;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), filter 0.25s;
}
.mint-pill--cta:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
  box-shadow: var(--mint-pill-glow-hover), 0 0 0 1px rgba(255, 255, 255, 0.28) inset;
}
.mint-pill--cta:active { transform: translateY(0); filter: none; }
.mint-pill__sep {
  padding-left: 12px;
  border-left: 1px solid rgba(4, 20, 13, 0.14);
  font-weight: 800;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 12px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
}

.verified {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: var(--mint);
  flex-shrink: 0;
}

.dot-online {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 3px rgba(52, 227, 168, 0.2);
  position: relative;
}
.dot-online::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid var(--mint);
  animation: pulse 2s var(--ease) infinite;
}
@keyframes pulse {
  0% { transform: scale(0.8); opacity: 0.8; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* reveal on scroll */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
[data-reveal].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

.hidden { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* toast */
.toast-host {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: var(--r-pill);
  background: rgba(20, 22, 30, 0.92);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  animation: toastIn 0.4s var(--ease-out);
}
.toast.out { animation: toastOut 0.3s var(--ease) forwards; }
.toast .ic { color: var(--mint); display: flex; }
.toast--err .ic { color: var(--danger); }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(8px); } }
