/* ========== RESET ========== */

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

html {
  scroll-behavior: smooth;
}

/* ========== BODY ========== */

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  transition: var(--transition-theme);
}

/* ========== LAYOUT ========== */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== TYPOGRAPHY ========== */

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

h1, h2, h3, h4, h5 {
  line-height: 1.15;
}

img {
  max-width: 100%;
  display: block;
}

/* ========== SCROLLBAR ========== */

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-tertiary); }

::selection {
  background: var(--accent-dim);
  color: var(--text);
}

/* ========== THEME TRANSITIONS ========== */

/* Smooth theme switch for common elements */
.nav, .footer, .feature-card, .cve-card, .price-card, .env-terminal,
.terminal-mockup, .manager-card, .layer, .deep-feature, .stat, .problem {
  transition: var(--transition-theme);
}
