/* MyFacelessAI by coding180 — base stylesheet.
   Design tokens first; utility classes live in utilities.css
   (generated by tools/build-css.mjs), page styles for the public site in site.css. */

:root {
  /* brand */
  --ink: #0E0F1A;          /* page background */
  --ink-raised: #161828;   /* cards */
  --ink-high: #1F2236;     /* hover, inputs */
  --lime: #C6F432;         /* main accent */
  --violet: #7C6CF6;       /* second accent */
  --text: #EEF0F7;
  --text-dim: #A1A4BC;
  --line: #2B2E47;
  --radius: 14px;
  --font-head: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* the same colours as HSL channels, used by the utility classes: hsl(var(--x) / alpha) */
  --background: 235 30% 8%;
  --foreground: 228 33% 95%;
  --card: 234 26% 12%;
  --card-foreground: 228 33% 95%;
  --popover: 234 26% 13%;
  --popover-foreground: 228 33% 95%;
  --primary: 74 90% 58%;
  --primary-foreground: 235 30% 8%;
  --secondary: 247 88% 69%;
  --secondary-foreground: 0 0% 100%;
  --muted: 233 24% 17%;
  --muted-foreground: 231 15% 69%;
  --accent: 233 24% 19%;
  --accent-foreground: 228 33% 95%;
  --destructive: 356 85% 62%;
  --destructive-foreground: 0 0% 100%;
  --success: 152 64% 52%;
  --border: 233 24% 22%;
  --input: 233 22% 26%;
  --ring: 74 90% 58%;
  color-scheme: dark;
}

/* ---------- fonts (SIL Open Font License, files in /fonts) ---------- */
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 300 700; font-display: swap; src: url(/fonts/space-grotesk-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 300 700; font-display: swap; src: url(/fonts/space-grotesk-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/fonts/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- base ---------- */
*, ::before, ::after { box-sizing: border-box; border: 0 solid hsl(var(--border)); }
html { -webkit-text-size-adjust: 100%; tab-size: 4; font-family: var(--font-body); line-height: 1.5; }
body { margin: 0; min-height: 100vh; background: var(--ink); color: var(--text); font-family: var(--font-body); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-size: inherit; font-weight: inherit; font-family: var(--font-head); letter-spacing: -.01em; }
p, blockquote, dl, dd, figure, pre, hr { margin: 0; }
ol, ul, menu { list-style: none; margin: 0; padding: 0; }
a { color: inherit; text-decoration: inherit; }
b, strong { font-weight: 700; }
img, svg, video, canvas, audio, iframe, embed, object { display: block; vertical-align: middle; }
img, video { max-width: 100%; height: auto; }
button, input, optgroup, select, textarea { font: inherit; font-feature-settings: inherit; letter-spacing: inherit; color: inherit; margin: 0; padding: 0; background: transparent; }
button, [role="button"] { cursor: pointer; }
button:disabled { cursor: default; }
input::placeholder, textarea::placeholder { color: hsl(var(--muted-foreground)); opacity: 1; }
textarea { resize: vertical; }
summary { cursor: pointer; }
hr { border-top-width: 1px; height: 0; color: inherit; }
table { border-collapse: collapse; text-indent: 0; border-color: inherit; }
[hidden] { display: none; }
::selection { background: hsl(var(--primary) / .35); color: var(--text); }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }

/* ---------- app pieces ---------- */
.dashboard { font-weight: 500; }
.dashboard h1, .dashboard h2 { font-weight: 600; }
.lucide { flex-shrink: 0; }
.group, .peer { /* markers for group-* / peer-* variants */ }

/* thin scroll bars on scrollable lists */
.fr-scroll { scrollbar-width: thin; scrollbar-color: hsl(var(--border)) transparent; }
.fr-scroll::-webkit-scrollbar { width: 10px; height: 10px; }
.fr-scroll::-webkit-scrollbar-thumb { background: hsl(var(--border)); border-radius: 9999px; border: 2px solid transparent; background-clip: content-box; }
.fr-scroll::-webkit-scrollbar-track { background: transparent; }

/* "Invite & earn" label in the sidebar */
.refer-gradient-text { background: linear-gradient(90deg, var(--lime), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; font-weight: 600; }

/* brand mark */
.fr-logo { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; letter-spacing: -.02em; color: var(--text); white-space: nowrap; }
.fr-logo svg { width: 30px; height: 30px; }
.fr-logo small { font-family: var(--font-body); font-weight: 500; font-size: .7rem; color: var(--text-dim); letter-spacing: 0; margin-left: -.15rem; }

/* sidebar active item */
.fr-nav-active { background: hsl(var(--primary) / .12); color: var(--lime); box-shadow: inset 3px 0 0 var(--lime); }

/* ---------- animations ---------- */
@keyframes fr-spin { to { transform: rotate(360deg); } }
@keyframes fr-pulse { 50% { opacity: .5; } }
@keyframes fr-ping { 75%, 100% { transform: scale(2); opacity: 0; } }
@keyframes fr-bounce { 0%, 100% { transform: translateY(-25%); animation-timing-function: cubic-bezier(.8,0,1,1); } 50% { transform: none; animation-timing-function: cubic-bezier(0,0,.2,1); } }
@keyframes fr-enter { from { opacity: var(--e-o, 1); transform: translate3d(var(--e-x, 0), var(--e-y, 0), 0) scale3d(var(--e-s, 1), var(--e-s, 1), 1); } }
@keyframes fr-exit { to { opacity: var(--x-o, 1); transform: translate3d(var(--x-x, 0), var(--x-y, 0), 0) scale3d(var(--x-s, 1), var(--x-s, 1), 1); } }
@keyframes fr-acc-down { from { height: 0; } to { height: var(--acc-h, auto); } }
@keyframes fr-acc-up { from { height: var(--acc-h, auto); } to { height: 0; } }
@media (prefers-reduced-motion: reduce) { *, ::before, ::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
