/* ============================================
   SYNAPSE CIRCUITS - Base Styles
   ============================================ */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  line-height: var(--lh-normal);
  color: var(--theme-text);
  background-color: var(--theme-bg);
  overflow-x: hidden;
  transition: background-color var(--transition-slow), color var(--transition-slow);
}

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

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

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
}

ul, ol {
  list-style: none;
}

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

::selection {
  background: rgba(40, 212, 232, 0.3);
  color: var(--theme-text);
}

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  color: var(--theme-text);
  transition: color var(--transition-slow);
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }

p {
  line-height: var(--lh-normal);
  color: var(--theme-text-muted);
  transition: color var(--transition-slow);
}

p + p {
  margin-top: var(--space-md);
}

strong {
  font-weight: var(--fw-semibold);
  color: var(--theme-text);
}



/* ── Utility classes ── */
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-cyan {
  color: var(--color-accent-cyan);
}

.text-teal {
  color: var(--theme-dot-color);
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

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

.section-label::before {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--color-accent-cyan);
  border-radius: 1px;
}

.dark-section .section-label {
  color: var(--color-accent-cyan);
}

/* ── Section heading + description ── */
.section-header {
  max-width: 700px;
  margin-bottom: var(--space-3xl);
}

.section-header.centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-header h2 {
  margin-bottom: var(--space-md);
}

.section-header p {
  font-size: var(--fs-body-lg);
  line-height: var(--lh-relaxed);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent-cyan);
}
