/* css/main.css — HQFam global design tokens and base styles */
:root {
  --hq-bg:         #070714;
  --hq-card:       #1a1a2e;
  --hq-card2:      #0f0f23;
  --hq-gold:       #ffd700;
  --hq-gold-dim:   #c9a800;
  --hq-gold-10:    rgba(255, 215, 0, 0.10);
  --hq-gold-20:    rgba(255, 215, 0, 0.20);
  --hq-purple:     #7b2fff;
  --hq-purple-dim: #5a1fd1;
  --hq-purple-10:  rgba(123, 47, 255, 0.10);
  --hq-text:       #ffffff;
  --hq-muted:      rgba(255, 255, 255, 0.55);
  --hq-dim:        rgba(255, 255, 255, 0.35);
  --hq-border:     rgba(255, 255, 255, 0.08);
  --hq-border2:    rgba(255, 255, 255, 0.14);
  --hq-green:      #44dd44;
  --hq-red:        #ff4444;
  --hq-blue:       #4488ff;
  --hq-font:       'Barlow Condensed', 'Arial Black', Arial, sans-serif;
  --hq-body-font:  'Inter', system-ui, sans-serif;
  --hq-radius:     16px;
  --hq-radius-sm:  10px;
  --hq-transition: 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: var(--hq-body-font);
  background: var(--hq-bg);
  color: var(--hq-text);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--hq-font);
  font-weight: 900;
  line-height: 1.05;
  text-transform: uppercase;
}

a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; }
img { max-width: 100%; }

input, textarea, select {
  font-family: var(--hq-body-font);
  font-size: 1rem;
}

/* ── Focus ring ── */
:focus-visible {
  outline: 2px solid var(--hq-gold);
  outline-offset: 2px;
}

/* ── Shared form input style ── */
.hq-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid var(--hq-border2);
  border-radius: var(--hq-radius-sm);
  color: var(--hq-text);
  font-size: 1rem;
  font-family: var(--hq-body-font);
  padding: 0 16px;
  height: 52px;
  transition: border-color var(--hq-transition), background var(--hq-transition);
  caret-color: var(--hq-gold);
}
.hq-input::placeholder { color: var(--hq-dim); }
.hq-input:focus {
  outline: none;
  border-color: var(--hq-gold);
  background: rgba(255, 215, 0, 0.04);
}
.hq-input.error { border-color: var(--hq-red); }
.hq-input.success { border-color: var(--hq-green); }

/* ── Shared label ── */
.hq-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--hq-muted);
  margin-bottom: 6px;
  font-family: var(--hq-body-font);
}

/* ── Shared button: gold gradient ── */
.hq-btn-gold {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 52px;
  background: linear-gradient(135deg, #ffd700, #f0a500);
  color: #0a0800;
  font-family: var(--hq-font);
  font-weight: 700;
  font-size: 1.125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: none;
  border-radius: var(--hq-radius-sm);
  cursor: pointer;
  transition: all var(--hq-transition);
}
.hq-btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255, 215, 0, 0.3);
}
.hq-btn-gold:active { transform: translateY(0); }
.hq-btn-gold:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ── Shared button: outlined ── */
.hq-btn-outline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 52px;
  background: transparent;
  color: var(--hq-text);
  border: 1.5px solid var(--hq-border2);
  border-radius: var(--hq-radius-sm);
  font-family: var(--hq-body-font);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--hq-transition);
}
.hq-btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.05);
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
