/* ============================================================
   ORBIX LABS — Base Styles
   Global typography, body, and layout primitives.
   ============================================================ */

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--fw-regular);
  line-height: var(--lh-relaxed);
  color: var(--color-text-body);
  background-color: var(--color-bg-primary);
  min-height: 100vh;
}

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

/* ── Section ── */
.section {
  padding: var(--space-section) 0;
}

/* ── Typography ── */
.heading-display {
  font-size: var(--text-hero);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  color: var(--color-text-primary);
  letter-spacing: -0.02em;
}

.heading-xl {
  font-size: var(--text-4xl);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  color: var(--color-text-primary);
  letter-spacing: -0.02em;
}

.heading-lg {
  font-size: var(--text-3xl);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-snug);
  color: var(--color-text-primary);
  letter-spacing: -0.01em;
}

.heading-md {
  font-size: var(--text-2xl);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-snug);
  color: var(--color-text-primary);
}

.heading-sm {
  font-size: var(--text-xl);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-snug);
  color: var(--color-text-primary);
}

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

.body-base {
  font-size: var(--text-base);
  line-height: var(--lh-relaxed);
  color: var(--color-text-body);
}

.body-sm {
  font-size: var(--text-sm);
  line-height: var(--lh-relaxed);
  color: var(--color-text-body);
}

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

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

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

/* ── Section Labels ── */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--fw-regular);
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-4);
}

.section-eyebrow::before {
  content: '//';
  opacity: 0.6;
}

/* ── Section Header ── */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-16);
}

.section-header .section-eyebrow {
  justify-content: center;
}

/* ── Divider ── */
.divider {
  height: 1px;
  background: var(--color-border);
  border: none;
  margin: 0;
}

/* ── Visually Hidden (Accessibility) ── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ── Selection ── */
::selection {
  background: rgba(79, 142, 247, 0.25);
  color: var(--color-text-primary);
}

/* ── Scrollbar (WebKit) ── */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-muted);
}

/* ── Focus Ring ── */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}
