/* ==========================================================================
   Base Styles — Typography, body, global elements
   ========================================================================== */

body {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: var(--text-base);
  color: var(--text-primary);
  background-color: var(--bg-deep);
  overflow-x: hidden;
}

/* ── Headings ── */
h1 {
  font-size: var(--text-5xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

h2 {
  font-size: var(--text-4xl);
  font-weight: 700;
  letter-spacing: -0.025em;
}

h3 {
  font-size: var(--text-2xl);
  font-weight: 600;
  letter-spacing: -0.015em;
}

h4 {
  font-size: var(--text-xl);
  font-weight: 600;
}

/* ── Body text ── */
p {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── Links ── */
a {
  transition: color var(--duration-fast) var(--ease-out);
}

a:focus-visible {
  outline: 2px solid var(--blue-500);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}

/* ── Code ── */
code {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

/* ── Sections ── */
section {
  position: relative;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-5xl) var(--space-xl);
}

.section-label {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-400);
  margin-bottom: var(--space-md);
}

.section-title {
  margin-bottom: var(--space-lg);
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto var(--space-3xl);
}

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

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.75rem 1.75rem;
  font-weight: 600;
  font-size: var(--text-base);
  border-radius: var(--radius-full);
  transition: all var(--duration-base) var(--ease-out);
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 2px solid var(--blue-400);
  outline-offset: 4px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue-500), var(--blue-600));
  color: white;
  box-shadow: var(--glow-md), 0 2px 8px rgba(0,0,0,0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--blue-400), var(--blue-500));
  box-shadow: var(--glow-lg), 0 4px 16px rgba(0,0,0,0.3);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(12px);
}

.btn-secondary:hover {
  border-color: var(--border-glow);
  box-shadow: var(--glow-sm);
  transform: translateY(-2px);
}

/* ── Selection ── */
::selection {
  background: rgba(46, 104, 233, 0.3);
  color: var(--text-primary);
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--blue-900);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--blue-800);
}

/* ── Gradient text utility ── */
.gradient-text {
  background: linear-gradient(135deg, var(--blue-300), var(--blue-500), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── Section dividers ── */
.section-divider {
  height: 200px;
  width: 100%;
  position: relative;
  pointer-events: none;
}
