/* ==========================================================================
   COMPUTER CITE - BASE & RESET STYLES
   ========================================================================== */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  line-height: 1.55;
  color: var(--color-text-dark);
  background-color: var(--color-dark-bg);
  overflow-x: hidden;
  position: relative;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-dark-bg);
}
::-webkit-scrollbar-thumb {
  background: #333338;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent);
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: inherit;
}

h1 { font-size: var(--text-hero); font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; }
h2 { font-size: var(--text-3xl); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
h3 { font-size: var(--text-xl); font-weight: 700; letter-spacing: -0.02em; }
h4 { font-size: var(--text-lg); font-weight: 700; }
h5 { font-size: var(--text-md); font-weight: 600; }
h6 { font-size: var(--text-sm); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }

p {
  margin-bottom: var(--space-md);
  color: inherit;
}
p:last-child {
  margin-bottom: 0;
}

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

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

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

ul, ol {
  list-style: none;
}

/* Section Containers */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(16px, 12px + 2vw, 40px);
  padding-right: clamp(16px, 12px + 2vw, 40px);
}

.container-wide {
  width: 100%;
  max-width: var(--container-wide);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(16px, 12px + 2vw, 40px);
  padding-right: clamp(16px, 12px + 2vw, 40px);
}

/* Theme Sections */
.theme-dark {
  background-color: var(--color-dark-bg);
  color: var(--color-text-white);
}

.theme-light {
  background-color: var(--color-light-bg);
  color: var(--color-text-dark);
}

.theme-pure-white {
  background-color: #ffffff;
  color: var(--color-text-dark);
}

/* Section Spacing */
.section {
  padding-top: var(--space-section);
  padding-bottom: var(--space-section);
  position: relative;
}

.section-border-top {
  border-top: 1px solid var(--color-border-dark);
}

.theme-light .section-border-top {
  border-top: 1px solid var(--color-border-light);
}

.section-border-bottom {
  border-bottom: 1px solid var(--color-border-dark);
}

.theme-light .section-border-bottom {
  border-bottom: 1px solid var(--color-border-light);
}

/* Grid System */
.grid {
  display: grid;
  gap: clamp(16px, 12px + 1.5vw, 32px);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* Flex Utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-xs { gap: var(--space-xs); }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }

/* Text Utilities */
.text-accent { color: var(--color-accent) !important; }
.text-muted { color: var(--color-text-muted-light); }
.theme-light .text-muted { color: var(--color-text-muted-dark); }
.text-center { text-align: center; }
.font-mono { font-family: var(--font-mono); }

/* Badges & Eyebrows */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

.eyebrow::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: var(--color-accent);
  border-radius: 50%;
}
