/* ============================================================
   MASTERX — Design System Layer
   Minimal dark aesthetic: neutral black/gray base (no blue cast),
   electric-blue accent (#2563eb / sky-400 highlights), glass
   surfaces. Squared, tracked CTAs.
   Pairs with Tailwind CDN utilities across all pages.
   ============================================================ */

:root {
  --mx-accent: #3b82f6;         /* blue-500 */
  --mx-accent-deep: #2563eb;    /* blue-600 — primary CTA */
  --mx-accent-hi: #60a5fa;      /* blue-400 highlight */
  --mx-accent-soft: rgba(59, 130, 246, 0.14);
  --mx-ink: #0a0a0a;            /* neutral-950 — pure black-gray, no blue cast */
  --mx-glass: rgba(255, 255, 255, 0.04);
  --mx-glass-border: rgba(255, 255, 255, 0.08);
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background-color: var(--mx-ink);
  color: #d4d4d4; /* neutral-300 */
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* iOS Safari ignores overflow-x on html/body for touch panning;
   clip at the content level so wide decorative glows can't create
   horizontal scroll on mobile. */
main {
  overflow-x: clip;
}

::selection {
  background: var(--mx-accent);
  color: #f8fafc;
}

/* Slim, on-brand scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--mx-ink); }
::-webkit-scrollbar-thumb { background: #262626; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #404040; }

/* ---------- Radial spotlights ---------- */

.spotlight {
  position: absolute;
  pointer-events: none;
  border-radius: 9999px;
  filter: blur(90px);
  z-index: 0;
}

.spotlight-blue {
  background: radial-gradient(circle, rgba(59, 130, 246, 0.16) 0%, transparent 70%);
}

.spotlight-cyan {
  background: radial-gradient(circle, rgba(34, 211, 238, 0.10) 0%, transparent 70%);
}

/* Faint dot-grid texture behind hero sections */
.hero-grid {
  background-image: radial-gradient(rgba(163, 163, 163, 0.10) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
}

/* ---------- Glassmorphism ---------- */

.glass-card {
  background: var(--mx-glass);
  border: 1px solid var(--mx-glass-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 0.9rem;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card-hover:hover {
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px -20px rgba(59, 130, 246, 0.18);
}

/* ---------- Typography helpers ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mx-accent-hi);
}

.eyebrow::before {
  content: "";
  width: 1.5rem;
  height: 1px;
  background: var(--mx-accent-hi);
  opacity: 0.6;
}

.text-gradient {
  background: linear-gradient(120deg, #f8fafc 25%, #93c5fd 65%, #3b82f6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons (squared, tracked — minimal tech) ---------- */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: var(--mx-accent-deep);
  color: #f8fafc;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.9rem 1.9rem;
  border-radius: 3px;
  box-shadow: 0 8px 30px -8px rgba(37, 99, 235, 0.5);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary:hover {
  background: var(--mx-accent);
  transform: translateY(-2px);
  box-shadow: 0 14px 40px -10px rgba(59, 130, 246, 0.55);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e5e5e5;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.9rem 1.9rem;
  border-radius: 3px;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-ghost:hover {
  border-color: rgba(96, 165, 250, 0.6);
  background: rgba(59, 130, 246, 0.08);
  color: #f8fafc;
}

/* ---------- Navigation ---------- */

.nav-link {
  position: relative;
  transition: color 0.2s ease;
}

.nav-link:hover { color: #f8fafc; }

.nav-link[aria-current="page"] { color: #f8fafc; }

.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  border-radius: 2px;
  background: var(--mx-accent);
}

/* Mobile menu: mark the active page with blue text, no underline */
#mobile-menu .nav-link[aria-current="page"] {
  color: var(--mx-accent-hi);
}

#mobile-menu .nav-link[aria-current="page"]::after {
  display: none;
}

/* ---------- Form fields ---------- */

.field {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  padding: 0.85rem 1.1rem;
  color: #f8fafc;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field::placeholder { color: #737373; }

.field:focus {
  outline: none;
  border-color: var(--mx-accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Misc ---------- */

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(96, 165, 250, 0.3);
  background: var(--mx-accent-soft);
  color: #93c5fd;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 9999px;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 9999px;
  background: var(--mx-accent-hi);
  animation: mx-pulse 2s ease-in-out infinite;
}

@keyframes mx-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(96, 165, 250, 0.5); }
  50% { opacity: 0.6; box-shadow: 0 0 0 6px rgba(96, 165, 250, 0); }
}

/* Assessment progress bar */
.progress-track {
  height: 6px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 9999px;
  background: linear-gradient(90deg, #2563eb, #60a5fa);
  transition: width 0.4s ease;
}

/* Assessment option buttons */
.option-btn {
  width: 100%;
  text-align: left;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 0.95rem 1.2rem;
  color: #e5e5e5;
  font-size: 0.95rem;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
  cursor: pointer;
}

.option-btn:hover {
  border-color: rgba(96, 165, 250, 0.55);
  background: rgba(59, 130, 246, 0.08);
  transform: translateX(4px);
}

/* ---------- Registered-trademark roundel (header wordmark) ---------- */

.reg-mark {
  display: inline-grid;
  place-items: center;
  width: 11px;
  height: 11px;
  margin-left: 3px;
  margin-top: 2px;
  border-radius: 9999px;
  background: var(--mx-ink);
  border: 1px solid #ffffff;
  color: #ffffff;
  font-family: Inter, sans-serif;
  font-size: 6.5px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
}

/* Trademark superscript (hero tagline) */
.tm-mark {
  font-family: Inter, sans-serif;
  font-size: 0.18em;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #ffffff;
  vertical-align: super;
  margin-left: 0.3em;
  position: relative;
  top: -1.6em;
}

/* ---------- Hero CTA (sample-style: tracked label + square arrow) ---------- */

.hero-cta {
  display: inline-flex;
  align-items: stretch;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.78rem;
  font-weight: 700;
  color: #f8fafc;
}

.hero-cta .hero-cta-label {
  display: inline-flex;
  align-items: center;
  padding: 0 1.4rem 0 0;
}

.hero-cta .hero-cta-arrow {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  background: var(--mx-accent-deep);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-cta:hover .hero-cta-arrow {
  background: var(--mx-accent);
  transform: translateX(4px);
}
