/**
 * ALPHA SALES — Base & Typography (Source of Truth)
 */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-sf-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  min-height: 100%;
}

body {
  color: var(--text-main);
  background: var(--bg-app-gradient);
  background-attachment: fixed;
  transition: background 0.3s ease, color 0.3s ease;
  font-family: var(--font-sf-text);
  font-size: var(--text-base);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
}

/* Apple Smooth Clean Scrollbars */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.12);
  border-radius: var(--radius-pill);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(15, 23, 42, 0.22);
}

/* Selection */
::selection {
  background: var(--accent-primary);
  color: var(--text-main);
}

/* Focus styles */
:focus-visible {
  outline: none;
  border-color: var(--accent-primary) !important;
  box-shadow: 0 0 0 3px var(--accent-primary-soft) !important;
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border: none;
  background: none;
}

button {
  cursor: pointer;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6, .font-display {
  font-family: var(--font-sf-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.text-hero {
  font-size: var(--text-3xl);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.text-page-title {
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.text-section-title {
  font-size: var(--text-xl);
  font-weight: 600;
  letter-spacing: -0.015em;
}

.text-card-title {
  font-size: var(--text-md);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.text-eyebrow {
  font-size: var(--text-eyebrow);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.text-sub {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

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

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

.font-mono {
  font-family: "SF Mono", Menlo, Monaco, monospace;
}
