/* Base */
body {
  font-family: var(--font);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.7;
  background-color: var(--bg-primary);
  color: var(--text-secondary);
}

/* Headings */
h1,h2,h3,h4,h5,h6 {
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.2;
}
h1 { font-size: clamp(36px, 5vw, var(--text-5xl)); font-weight: 800; }
h2 { font-size: clamp(28px, 4vw, var(--text-4xl)); font-weight: 800; }
h3 { font-size: clamp(20px, 2.5vw, var(--text-2xl)); font-weight: 700; }
h4 { font-size: var(--text-xl); font-weight: 700; }
h5 { font-size: var(--text-lg); font-weight: 600; }
h6 { font-size: var(--text-base); font-weight: 600; }

p { margin-bottom: 1.4em; color: var(--text-secondary); }
p:last-child { margin-bottom: 0; }

a { color: var(--text-link); transition: color var(--t-fast); }
a:hover { color: var(--indigo-light); }

strong { color: var(--text-primary); font-weight: 700; }

/* Label / eyebrow text */
.label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--indigo);
  margin-bottom: 12px;
}
.label-cyan   { color: var(--cyan); }
.label-purple { color: var(--purple); }
.label-emerald{ color: var(--emerald); }

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: 1;
  transition: all var(--t-base);
  white-space: nowrap;
}
.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 4px 16px rgba(99,102,241,0.35);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(99,102,241,0.5);
  color: #fff;
}
.btn-secondary {
  background: rgba(255,255,255,0.04);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.07);
  border-color: var(--border-hover);
  color: var(--text-primary);
}
.btn-outline {
  background: transparent;
  color: var(--indigo);
  border: 1px solid var(--indigo);
}
.btn-outline:hover {
  background: rgba(99,102,241,0.1);
  color: var(--indigo-light);
}
.btn-lg { padding: 16px 32px; font-size: var(--text-base); }
.btn-sm { padding: 8px 16px; font-size: var(--text-xs); }

/* Divider */
hr { border: none; border-top: 1px solid var(--border); margin: 32px 0; }

/* Preloader */
.preloader {
  position: fixed; inset: 0;
  background: var(--bg-primary);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.preloader.hidden { opacity: 0; visibility: hidden; }
.preloader-inner { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.preloader-logo { width: 120px; opacity: 0.8; }
.preloader-bar {
  width: 120px; height: 2px;
  background: var(--bg-tertiary);
  border-radius: 2px;
  overflow: hidden;
}
.preloader-bar::after {
  content: '';
  display: block;
  height: 100%;
  width: 40%;
  background: var(--gradient-primary);
  border-radius: 2px;
  animation: preload-slide 1s ease infinite;
}
@keyframes preload-slide {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}
