/* ==========================================================================
   BASE.CSS — Reset & Base Styles
   AutoDM
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-base);
  font-size: var(--text-body-md-size);
  line-height: var(--text-body-md-height);
  font-weight: var(--text-body-md-weight);
  background-color: var(--color-background);
  color: var(--color-on-surface);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Material Symbols ──────────────────────────────── */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  user-select: none;
}

/* ── Links ─────────────────────────────────────────── */
a {
  color: inherit;
  text-decoration: none;
}

/* ── Images ────────────────────────────────────────── */
img,
svg,
video {
  display: block;
  max-width: 100%;
}

/* ── Lists ─────────────────────────────────────────── */
ul,
ol {
  list-style: none;
}

/* ── Inputs ────────────────────────────────────────── */
button,
input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

input,
textarea,
select {
  cursor: text;
}

/* ── Typography Scale ──────────────────────────────── */
.text-display-lg {
  font-size: var(--text-display-lg-size);
  line-height: var(--text-display-lg-height);
  font-weight: var(--text-display-lg-weight);
  letter-spacing: var(--text-display-lg-spacing);
}

.text-headline-lg {
  font-size: var(--text-headline-lg-size);
  line-height: var(--text-headline-lg-height);
  font-weight: var(--text-headline-lg-weight);
  letter-spacing: var(--text-headline-lg-spacing);
}

.text-headline-mobile {
  font-size: var(--text-headline-mobile-size);
  line-height: var(--text-headline-mobile-height);
  font-weight: var(--text-headline-mobile-weight);
}

.text-title-md {
  font-size: var(--text-title-md-size);
  line-height: var(--text-title-md-height);
  font-weight: var(--text-title-md-weight);
}

.text-body-lg {
  font-size: var(--text-body-lg-size);
  line-height: var(--text-body-lg-height);
  font-weight: var(--text-body-lg-weight);
}

.text-body-md {
  font-size: var(--text-body-md-size);
  line-height: var(--text-body-md-height);
  font-weight: var(--text-body-md-weight);
}

.text-label-sm {
  font-size: var(--text-label-sm-size);
  line-height: var(--text-label-sm-height);
  font-weight: var(--text-label-sm-weight);
}

/* ── Text Gradient ─────────────────────────────────── */
.text-gradient {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.aurora-text-gradient {
  background: var(--aurora-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__headline .text-gradient {
  padding-right: 5px !important;
}

/* ── Selection ─────────────────────────────────────── */
::selection {
  background-color: var(--color-primary-fixed);
  color: var(--color-primary);
}

/* ── Custom Scrollbar ──────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--color-surface-container-low);
}

::-webkit-scrollbar-thumb {
  background: var(--color-outline-variant);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-outline);
}



/* ── Container ─────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-margin-desktop);
}

@media (max-width: 768px) {
  .container {
    padding-inline: var(--space-margin-mobile);
  }

  .text-display-lg {
    font-size: 40px;
    line-height: 48px;
  }

  .text-headline-lg {
    font-size: var(--text-headline-mobile-size);
    line-height: var(--text-headline-mobile-height);
  }
}