/* author: https://github.com/nhermab
   rewrite by: https://github.com/broodje565 */

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

:root {
  --color-primary: #6366f1;
  --color-primary-hover: #4f46e5;
  --color-secondary: #22c55e;

  --color-bg-dark: #0f172a;
  --color-bg-darker: #020617;
  --color-bg-card: #111827;
  --color-bg-card-soft: #1e293b;

  --color-text: #f8fafc;
  --color-text-muted: #94a3b8;
  --color-text-soft: #c7d2fe;

  --border-color: rgba(148,163,184,0.15);
  --shadow-elevated: 0 10px 30px rgba(2,6,23,0.6);

  --border-radius-sm: 6px;
  --border-radius: 10px;
  --border-radius-lg: 14px;

  --transition-fast: 120ms ease;
  --transition-base: 200ms ease;

  --font-family-main: 'Space Grotesk', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-family-mono: 'JetBrains Mono', monospace;
}
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes slide-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

* {
  scrollbar-width: thin;
  scrollbar-color: #334155 #020617;
}

*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

*::-webkit-scrollbar-track {
  background: #020617;
}

*::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 8px;
}

*::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  font-family: var(--font-family-main);
  line-height: 1.55;
  color: var(--color-text);
  background: linear-gradient(
    180deg,
    #020617 0%,
    #0f172a 100%
  );
  overflow-x: hidden;
}

header {
  flex-shrink: 0;
  padding: 0.75rem 1.25rem;
  background: rgba(15,23,42,0.85);
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(6px);
}

header h1 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  animation: fade-in 0.4s ease;
}

.logo-bracket {
  color: var(--color-primary);
}

.logo-text {
  color: var(--color-text);
}

.logo-subtitle {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

button,
input,
textarea,
select {
  font-family: inherit;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}
