*, *::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(--clr-bg);
  color: var(--clr-text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; transition: color var(--ease-fast); }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
address { font-style: normal; }

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

::selection {
  background: rgba(124, 58, 237, 0.4);
  color: var(--clr-text);
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--clr-bg); }
::-webkit-scrollbar-thumb {
  background: var(--grad-brand);
  border-radius: 3px;
}

/* Headings */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

h3 { font-size: var(--sz-xl); font-weight: 600; }
h4 { font-size: var(--sz-lg); font-weight: 600; }
p  { line-height: 1.75; }

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

.section {
  padding-block: var(--section-py);
  position: relative;
  overflow: hidden;
}

.section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-section);
  pointer-events: none;
}

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

/* Section header */
.section-header {
  text-align: center;
  margin-bottom: var(--sp-12);
}

.section-title {
  font-size: var(--sz-sec);
  color: var(--clr-text);
  margin-bottom: var(--sp-4);
  line-height: 1.15;
}

.section-sub {
  font-size: var(--sz-lg);
  color: var(--clr-text-muted);
  max-width: 620px;
  margin-inline: auto;
  line-height: 1.7;
}

/* ASCII label above section titles */
.ascii-label {
  font-family: var(--font-mono);
  font-size: var(--sz-xs);
  color: var(--clr-cyan);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: var(--sp-3);
  opacity: 0.85;
}

/* Fade-in base state */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays */
.fade-in:nth-child(2) { transition-delay: 0.1s; }
.fade-in:nth-child(3) { transition-delay: 0.2s; }
.fade-in:nth-child(4) { transition-delay: 0.1s; }
.fade-in:nth-child(5) { transition-delay: 0.2s; }
.fade-in:nth-child(6) { transition-delay: 0.3s; }
