/* ==========================================================================
   Base Styles — Typography, Body, Foundational Elements
   "Midnight Aurora" Design System
   ========================================================================== */

/* Google Fonts — Distinctive pairing */
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,500;12..96,600;12..96,700;12..96,800&family=Outfit:wght@300;400;500;600;700&display=swap');

/* Body
   ========================================================================== */

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: var(--lh-relaxed);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  font-optical-sizing: auto;
}

/* Headings — Bricolage Grotesque with ink traps
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  line-height: var(--lh-snug);
  color: var(--text-primary);
  letter-spacing: var(--ls-tight);
  font-optical-sizing: auto;
}

h1 {
  font-size: clamp(2.25rem, 5vw + 0.75rem, var(--text-5xl));
  font-weight: var(--fw-extrabold);
  line-height: var(--lh-tight);
  letter-spacing: -0.035em;
  margin-bottom: var(--space-md);
}

h2 {
  font-size: clamp(1.75rem, 3.5vw + 0.5rem, var(--text-4xl));
  letter-spacing: -0.025em;
  margin-bottom: var(--space-sm);
}

h3 {
  font-size: clamp(1.25rem, 2vw + 0.25rem, var(--text-2xl));
  margin-bottom: var(--space-sm);
}

h4 {
  font-size: clamp(1.125rem, 1.5vw + 0.25rem, var(--text-xl));
  margin-bottom: var(--space-xs);
}

h5 {
  font-size: clamp(1rem, 1vw + 0.25rem, var(--text-lg));
  margin-bottom: var(--space-xs);
}

h6 {
  font-size: var(--text-base);
  font-weight: var(--fw-semibold);
  margin-bottom: var(--space-xs);
  letter-spacing: var(--ls-snug);
}

/* Paragraphs
   ========================================================================== */

p {
  font-size: var(--text-base);
  line-height: var(--lh-relaxed);
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

p:last-child {
  margin-bottom: 0;
}

.lead {
  font-size: var(--text-lg);
  line-height: var(--lh-loose);
  color: var(--text-secondary);
  font-weight: var(--fw-regular);
}

.text-large {
  font-size: var(--text-xl);
  line-height: 1.6;
}

.text-small {
  font-size: var(--text-sm);
}

.text-xs {
  font-size: var(--text-xs);
}

/* Links
   ========================================================================== */

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-accent-hover);
}

.link {
  color: var(--color-accent);
  font-weight: var(--fw-medium);
  text-decoration: none;
  transition: color var(--transition-fast);
  position: relative;
}

.link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-accent);
  transition: width var(--transition-base);
}

.link:hover::after {
  width: 100%;
}

.link--arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.link--arrow::after {
  content: '\2192';
  position: static;
  width: auto;
  height: auto;
  background: none;
  transition: transform var(--transition-fast);
}

.link--arrow:hover::after {
  transform: translateX(4px);
  width: auto;
}

/* Lists
   ========================================================================== */

.list {
  padding-left: var(--space-md);
  margin-bottom: var(--space-sm);
}

.list li {
  position: relative;
  padding-left: var(--space-xs);
  margin-bottom: var(--space-xs);
  color: var(--text-secondary);
  line-height: var(--lh-relaxed);
}

.list--bullet li::before {
  content: '';
  position: absolute;
  left: -1rem;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gradient-accent);
}

.list--check li::before {
  content: '\2713';
  position: absolute;
  left: -1.5rem;
  top: 0;
  color: var(--color-secondary);
  font-weight: 700;
}

.list--numbered {
  counter-reset: list-counter;
}

.list--numbered li {
  counter-increment: list-counter;
}

.list--numbered li::before {
  content: counter(list-counter) '.';
  position: absolute;
  left: -1.5rem;
  top: 0;
  color: var(--color-accent);
  font-weight: var(--fw-bold);
  font-size: var(--text-sm);
}

/* Gradient Text Utility
   ========================================================================== */

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

/* Section Label / Eyebrow
   ========================================================================== */

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gradient-accent);
  border-radius: 1px;
}

/* Text Utilities
   ========================================================================== */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary-color { color: var(--text-primary); }
.text-secondary-color { color: var(--text-secondary); }
.text-light-color { color: var(--text-tertiary); }
.text-accent { color: var(--color-accent); }
.text-teal { color: var(--color-secondary); }
.text-white { color: var(--text-on-dark); }

.font-display { font-family: var(--font-display); }
.font-body { font-family: var(--font-body); }

.font-weight-400 { font-weight: 400; }
.font-weight-500 { font-weight: 500; }
.font-weight-600 { font-weight: 600; }
.font-weight-700 { font-weight: 700; }
.font-weight-800 { font-weight: 800; }

.uppercase {
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Horizontal Rule
   ========================================================================== */

hr {
  border: none;
  height: 1px;
  background: var(--border);
  margin: var(--space-lg) 0;
}

/* Selection
   ========================================================================== */

::selection {
  background-color: rgba(59, 130, 246, 0.15);
  color: var(--text-primary);
}

/* Scrollbar (WebKit)
   ========================================================================== */

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--border-hover);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-tertiary);
}

/* Section Headers
   ========================================================================== */

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-2xl);
}

.section-header--left {
  text-align: left;
  margin-left: 0;
}

.section-header__label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  color: var(--color-accent);
  margin-bottom: var(--space-xs);
}

.section-header__label::before {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--gradient-accent);
}

.section-header__title {
  font-size: clamp(1.75rem, 3.5vw + 0.5rem, var(--text-4xl));
  margin-bottom: var(--space-sm);
}

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

/* Section Title / Subtitle (used in HTML) */
.section__title {
  font-size: clamp(1.75rem, 3.5vw + 0.5rem, var(--text-4xl));
  margin-bottom: var(--space-3);
  text-align: center;
}

.section__subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-2xl);
  line-height: var(--lh-relaxed);
}

.section__header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}
