@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

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

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

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: var(--leading-base);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── Typography Base ─── */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text);
}

p { line-height: var(--leading-base); }

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-fast), opacity var(--transition-fast);
}
a:hover { color: var(--color-white); }
a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

ul, ol { list-style: none; }

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  line-height: inherit;
}
button:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* ─── Layout Utilities ─── */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-lg);
}

.section {
  padding-block: var(--section-gap);
  position: relative;
}

/* ─── Text Utilities ─── */
.text-accent    { color: var(--color-accent); }
.text-muted     { color: var(--color-text-muted); }
.text-dim       { color: var(--color-text-dim); }
.text-center    { text-align: center; }
.text-upper     { text-transform: uppercase; letter-spacing: var(--tracking-wider); font-size: var(--text-xs); font-weight: var(--weight-semibold); }

/* ─── Section Label ─── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--color-accent);
  padding: var(--space-2xs) var(--space-sm);
  background: var(--color-accent-glow);
  border: 1px solid var(--color-border-mid);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-lg);
}
.section-label::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ─── Section Heading ─── */
.section-heading {
  font-size: var(--text-4xl);
  font-weight: var(--weight-extrabold);
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-md);
  line-height: var(--leading-tight);
}

.section-sub {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 640px;
  line-height: var(--leading-loose);
}

/* ─── Divider ─── */
.section-divider {
  width: 100%;
  height: 1px;
  background: var(--color-border);
  margin-block: var(--space-xl);
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--color-bg); }
::-webkit-scrollbar-thumb { background: var(--color-bg-elevated); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: var(--color-accent-dim); }

/* ─── Selection ─── */
::selection {
  background: rgba(0, 180, 255, 0.3);
  color: var(--color-white);
}
