/* ============================================================
   XENTOSOFT — Main Stylesheet
   ============================================================
   This is the primary CSS file loaded on every page.
   It imports all partials and defines base/reset styles.
   
   Table of Contents:
   1.  Variables → variables.css
   2.  Utilities → utilities.css
   3.  Components → components.css
   4.  Animations → animations.css
   5.  Responsive → responsive.css
   6.  Reset & Base
   7.  Typography
   ============================================================ */

/* ─── IMPORTANT: @import must come before ALL other CSS rules ── */
@import url('variables.css');
@import url('utilities.css');
@import url('components.css');
@import url('animations.css');
@import url('responsive.css');

/* ─── 6. Reset & Base ───────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

* {
  border-color: var(--border);
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01", "ss03";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-image:
    radial-gradient(1200px 600px at 50% -200px, color-mix(in oklab, #6D4C9E 22%, transparent), transparent 60%),
    radial-gradient(800px 400px at 100% 10%, color-mix(in oklab, #A77BD6 10%, transparent), transparent 70%);
  background-attachment: fixed;
  /* ─── Sticky Footer ──────────────────────────────────────── */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

input, textarea, select {
  font: inherit;
  color: inherit;
}

/* ─── Main Content Area (pushes footer down) ──────────────── */
main#main-content {
  flex: 1;
  width: 100%;
}

/* ─── 7. Typography ─────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

::selection {
  background: color-mix(in oklab, #A77BD6 40%, transparent);
  color: white;
}