/* ===== CSS Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--color-primary);
  background-color: var(--color-white);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

ul, ol {
  list-style: none;
}

button, input, textarea, select {
  font: inherit;
  color: inherit;
  border: none;
  outline: none;
  background: none;
}

button {
  cursor: pointer;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: var(--fs-5xl); }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }

p { margin-bottom: var(--space-md); }
p:last-child { margin-bottom: 0; }

/* ===== Utility Classes ===== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.section {
  padding: var(--space-4xl) 0;
}

.section--dark {
  background:
    linear-gradient(125deg, #0d0d0d 0%, #141422 50%, #0d0d0d 100%);
  color: var(--color-white);
  position: relative;
}

.section--dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.02) 0 1px, transparent 1px 80px),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.02) 0 1px, transparent 1px 80px);
  pointer-events: none;
}

.section--light {
  background-color: var(--color-neutral-light);
}

.text-center { text-align: center; }
.text-accent { color: var(--color-accent-on-light); }
.text-secondary { color: var(--color-secondary); }
.text-muted { color: var(--color-neutral-mid); }
.text-accent { color: var(--color-accent); }
.font-semibold { font-weight: 600; }
.mt-2xl { margin-top: var(--space-2xl); }

.section__subtitle {
  font-size: var(--fs-md);
  color: var(--color-neutral-mid);
  max-width: 640px;
  margin: var(--space-md) auto 0;
}

.section__header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section__label {
  display: inline-block;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--color-accent-on-light);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: var(--space-sm);
  font-family: var(--font-heading);
}

.section--dark .text-accent,
.section--dark .section__label {
  color: var(--color-accent);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.85rem 2rem;
  font-family: var(--font-heading);
  font-size: var(--fs-base);
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn--primary {
  background-color: var(--color-accent);
  color: var(--color-primary);
}

.btn--primary:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 229, 160, 0.3);
}

.btn--ghost {
  border: 2px solid var(--color-white);
  color: var(--color-white);
  background: transparent;
}

.btn--ghost:hover {
  background-color: var(--color-white);
  color: var(--color-primary);
}

.btn--ghost-dark {
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  background: transparent;
}

.btn--ghost-dark:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.btn--secondary {
  background-color: var(--color-secondary);
  color: var(--color-white);
}

.btn--secondary:hover {
  background-color: var(--color-secondary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(123, 97, 255, 0.3);
}

.btn--sm {
  padding: 0.6rem 1.4rem;
  font-size: var(--fs-sm);
}

.btn--lg {
  padding: 1rem 2.5rem;
  font-size: var(--fs-md);
}

/* ===== Grid ===== */
.grid {
  display: grid;
  gap: var(--space-xl);
  align-items: stretch;
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ===== Cards ===== */
.card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.card--dark {
  background: var(--color-card-dark);
  border-color: var(--color-border-dark);
  color: var(--color-white);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  h1 { font-size: var(--fs-4xl); }
  h2 { font-size: var(--fs-2xl); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  h1 { font-size: var(--fs-2xl); }
  h2 { font-size: var(--fs-xl); }
  h3 { font-size: var(--fs-lg); }
  .grid--2,
  .grid--3,
  .grid--4 { grid-template-columns: 1fr; }
  .section { padding: var(--space-3xl) 0; }
  .container { padding: 0 var(--space-md); }
  .btn--lg { padding: 0.85rem 2rem; font-size: var(--fs-base); }
}
