*, *::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);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  color: var(--clr-text);
  background-color: var(--clr-bg);
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--dur-base) var(--ease-out);
}

a:focus-visible {
  outline: 2px solid var(--clr-primary);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

button:focus-visible {
  outline: 2px solid var(--clr-primary);
  outline-offset: 3px;
}

ul[role="list"] { list-style: none; }

h1, h2, h3 { font-family: var(--font-mono); line-height: var(--lh-tight); }
h4, h5, h6 { line-height: var(--lh-snug); }

/* Gradient text helper */
.grad-text {
  background: var(--grad-main);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--clr-bg); }
::-webkit-scrollbar-thumb {
  background: var(--clr-surface-2);
  border-radius: var(--r-full);
}
::-webkit-scrollbar-thumb:hover { background: var(--clr-primary); }

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--sp-6);
}

/* Section */
.section { padding-block: var(--section-py); }

/* Section label */
.section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semi);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-secondary);
  margin-bottom: var(--sp-3);
}

/* Section title */
.section-title {
  font-size: clamp(var(--fs-3xl), 4vw, var(--fs-4xl));
  font-weight: var(--fw-bold);
  color: var(--clr-text);
  margin-bottom: var(--sp-5);
}

/* Section intro */
.section-intro {
  font-size: var(--fs-lg);
  color: var(--clr-text-muted);
  max-width: 600px;
  margin-inline: auto;
  line-height: var(--lh-relaxed);
}

/* Body text */
.body-text {
  font-size: var(--fs-base);
  color: var(--clr-text-muted);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--sp-4);
}

/* Badge */
.badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semi);
  letter-spacing: 0.1em;
  padding: var(--sp-1) var(--sp-4);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-full);
  color: var(--clr-secondary);
  background: rgba(0, 212, 255, 0.06);
  margin-bottom: var(--sp-5);
}

/* Selection */
::selection {
  background: rgba(123, 47, 255, 0.35);
  color: var(--clr-text);
}
