/* Sterling Peak — общие цвета, шрифты и элементы для сайта и мини-приложения.
   Стиль взят с аватарки: графитовый фон, серебро, зелёная свеча. */

:root {
  --bg: #07090e;
  --bg-2: #0b0e15;
  --surface: #10141d;
  --surface-2: #161c28;
  --surface-3: #1c2331;
  --line: rgba(174, 185, 204, 0.12);
  --line-2: rgba(174, 185, 204, 0.22);
  --text: #eef2f8;
  --muted: #a3adbf;
  --dim: #7f8a9d;
  --silver-1: #ffffff;
  --silver-2: #e3e9f2;
  --silver-3: #8f9bb0;
  --silver-4: #c9d1dd;
  --silver: linear-gradient(160deg, #ffffff 0%, #e3e9f2 30%, #8f9bb0 68%, #c9d1dd 100%);
  --green: #2be07a;
  --green-hi: #5cffa0;
  --green-deep: #0e9f55;
  --green-ink: #03140a;
  --green-glow: rgba(57, 255, 136, 0.32);
  --green-soft: rgba(43, 224, 122, 0.12);
  --red: #ff5470;
  --red-deep: #c4203f;
  --red-glow: rgba(255, 84, 112, 0.3);
  --red-soft: rgba(255, 84, 112, 0.12);
  --gold: #f5c451;
  --radius: 18px;
  --radius-sm: 12px;
  --font-display: "Unbounded", "Manrope", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

img, svg { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }

:focus-visible { outline: 2px solid var(--green-hi); outline-offset: 2px; border-radius: 8px; }

.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.silver-text {
  background: var(--silver);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  background: linear-gradient(180deg, #ffffff 10%, #c3ccd9 60%, #8f9bb0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}
.wordmark b { font-weight: 700; color: transparent; }

/* Кнопки */
.btn {
  --h: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--h);
  padding: 0 24px;
  border-radius: 16px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: transform 0.18s var(--ease), box-shadow 0.25s var(--ease), background 0.25s, border-color 0.25s, opacity 0.2s;
  user-select: none;
  -webkit-user-select: none;
}
.btn:active { transform: scale(0.97); }
.btn[disabled] { opacity: 0.5; pointer-events: none; }

.btn-primary {
  color: var(--green-ink);
  background: linear-gradient(180deg, #8dffbf 0%, #42f08e 38%, #1fc76a 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 10px 30px -8px var(--green-glow), 0 0 0 1px rgba(92, 255, 160, 0.35);
}
.btn-primary:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 14px 40px -6px rgba(57, 255, 136, 0.5), 0 0 0 1px rgba(92, 255, 160, 0.5); }

.btn-silver {
  color: #0d1118;
  background: linear-gradient(180deg, #ffffff 0%, #dfe5ee 45%, #aeb9cc 100%);
  box-shadow: inset 0 1px 0 #fff, 0 10px 26px -10px rgba(200, 210, 225, 0.45);
}

.btn-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-2);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.07); border-color: rgba(174, 185, 204, 0.35); }

/* Переключатель языка */
.seg {
  display: inline-flex;
  padding: 4px;
  gap: 2px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}
.seg button {
  min-height: 36px;
  min-width: 48px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  transition: background 0.25s var(--ease), color 0.25s;
}
.seg button[aria-pressed="true"] {
  color: #0d1118;
  background: linear-gradient(180deg, #ffffff 0%, #d9e0ea 60%, #b3bdcd 100%);
  box-shadow: 0 4px 14px -6px rgba(220, 228, 240, 0.5);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
