/* ============================================
   GROK FONT SYSTEM (Universal Sans imitation)
   + Apple Emoji support
   ============================================ */

/* Inter variable — как fallback для Universal Sans */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;450;500;600;650;700&display=swap');

/* Основные шрифтовые переменные Grok */
:root {
  --font-universal-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont,
                         "Segoe UI", sans-serif,
                         "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji";

  --font-universal-sans-display: var(--font-universal-sans);

  --font-body-weight: 450;      /* основной вес текста в Grok */
  --font-heading-weight: 650;   /* заголовки Grok */
}

/* ============================
   BASE RESET + GLOBAL STYLES
   ============================ */

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

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

  font-family: var(--font-universal-sans);
  font-weight: var(--font-body-weight);
  letter-spacing: -0.02em;            /* Key: Grok feel */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  background: #ffffff;
  color: #111827;
}

/* ============================
   HEADINGS (Grok display)
   ============================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-universal-sans-display);
  font-weight: var(--font-heading-weight);
  letter-spacing: -0.03em;
  margin: 0;
}

/* ============================
   LINKS
   ============================ */

a {
  color: inherit;
  text-decoration: none;
}

a[data-link] {
  cursor: pointer;
}

/* ============================
   BUTTONS
   ============================ */

button {
  cursor: pointer;
}

.btn-primary {
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  border: none;
  background: #2563eb;
  color: white;
  font-weight: 500;
}

.btn-secondary {
  padding: 0.4rem 1rem;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: white;
  font-size: 0.9rem;
}

.btn-ghost {
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  border: none;
  background: transparent;
  font-size: 0.9rem;
}

.header-actions .btn-secondary {
  background: #ffffff;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
}

.header-actions .btn-ghost {
  color: #6b7280;
}

/* ============================
   UTILITIES
   ============================ */

.hidden {
  display: none !important;
}
