/* ========== GLOBAL RESET ========== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ========== HTML ROOT ========== */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
}

/* ========== BODY ========== */
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image: var(--bg-gradient-1), var(--bg-gradient-2), var(--bg-gradient-3);
  transition: background-color 0.3s, color 0.3s;
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.3;
  color: var(--text-primary);
}

h1 { font-size: 2rem; font-weight: 700; }
h2 { font-size: 1.5rem; font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }
h5 { font-size: 0.875rem; font-weight: 600; }
h6 { font-size: 0.75rem; font-weight: 600; }

p {
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

p:last-child {
  margin-bottom: 0;
}

/* ========== CODE & MONOSPACE ========== */
code,
kbd,
samp {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.875em;
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: 4px;
  padding: 0.125rem 0.375rem;
  color: var(--neon-cyan);
}

pre {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.875rem;
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  overflow-x: auto;
  color: var(--text-primary);
  line-height: 1.7;
}

pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: inherit;
}

/* ========== LINKS ========== */
a {
  color: var(--neon-cyan);
  text-decoration: none;
  transition: color 0.2s, opacity 0.2s;
}

a:hover {
  color: var(--neon-cyan-mid);
  opacity: 0.85;
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--neon-cyan-mid), var(--neon-magenta));
  border-radius: 4px;
}

/* ========== FORM ELEMENTS ========== */
input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}

button {
  cursor: pointer;
  font-family: inherit;
}

/* ========== IMAGES ========== */
img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ========== LISTS ========== */
ul, ol {
  list-style: none;
}

/* ========== HR ========== */
hr {
  border: none;
  border-top: 1px solid var(--border-dim);
  margin: 1.5rem 0;
}
