/* =====================================================================
   VXIT — Shared page chrome
   Used by every page: reset, body, starfield, topbar, footer rail.
   ===================================================================== */

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--vxit-black);
  color: var(--fg);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* ---------- Starfield ---------- */
.starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 78% 6%, rgba(218, 19, 141, 0.10), transparent 65%),
    radial-gradient(ellipse 60% 45% at 6% 92%, rgba(242, 99, 34, 0.08), transparent 70%),
    linear-gradient(180deg, #060608 0%, #020203 60%, #010101 100%);
}
.starfield canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.starfield::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 30vh;
  background: linear-gradient(180deg, transparent 0%, rgba(1, 2, 2, 0.6) 100%);
}

/* ---------- Page shell ---------- */
.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------- Top bar ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(16px, 4vw, 56px);
  gap: 16px;
}
.topbar__brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.topbar__brand img {
  height: clamp(32px, 6vw, 40px);
  width: auto;
  display: block;
  filter: drop-shadow(0 6px 20px rgba(218, 19, 141, 0.35));
}
.topbar__brand-text {
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  font-size: clamp(18px, 4vw, 22px);
  letter-spacing: 0.18em;
  color: var(--vxit-white);
}
.topbar__nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 12px;
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  font-weight: var(--fw-medium);
}
.topbar__nav a {
  position: relative;
  transition: color 200ms var(--ease-snap);
}
.topbar__nav a:hover,
.topbar__nav a[aria-current="page"] {
  color: var(--vxit-white);
}
.topbar__nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -8px;
  height: 2px;
  background: var(--vxit-gradient);
}
.topbar__meta {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  font-weight: var(--fw-medium);
}
.topbar__meta a:hover { color: var(--vxit-white); }

/* Remote Support quick-link icon (computer with heart) */
.topbar__support {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--vxit-pink);
  transition: border-color 200ms var(--ease-snap), background-color 200ms var(--ease-snap), transform 200ms var(--ease-snap);
}
.topbar__support:hover,
.topbar__support:focus-visible {
  border-color: rgba(218, 19, 141, 0.55);
  background-color: rgba(218, 19, 141, 0.12);
  color: var(--vxit-pink);
  transform: translateY(-1px);
  outline: none;
}
.topbar__support .heart {
  transform-origin: center;
  animation: vxBeat 2.6s var(--ease-in-out) infinite;
}
@keyframes vxBeat {
  0%, 70%, 100% { transform: scale(1); }
  80% { transform: scale(1.16); }
  90% { transform: scale(1.06); }
}
.topbar__phone {
  color: var(--vxit-white);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.topbar__phone .dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--vxit-pink);
  box-shadow: 0 0 12px var(--vxit-pink);
  animation: vxPulse 2.4s ease-in-out infinite;
}
@keyframes vxPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

@media (max-width: 900px) {
  .topbar__nav { gap: 18px; }
}
@media (max-width: 720px) {
  .topbar__nav { display: none; }
  .topbar__meta a:not(.topbar__phone) { display: none; }
  /* keep the remote-support icon visible on mobile */
  .topbar__meta a.topbar__support { display: inline-flex; }
  /* On mobile the phone IS the primary CTA — make it tappable. */
  .topbar__phone {
    font-size: 16px;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
    min-height: 44px;
  }
}

/* ---------- Bottom rail ---------- */
.rail {
  position: relative;
  z-index: 1;
  padding: 22px clamp(16px, 4vw, 56px);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: clamp(10px, 1.6vw, 12px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  gap: 16px;
  flex-wrap: wrap;
}
@media (max-width: 640px) {
  .rail { justify-content: center; text-align: center; }
  .rail__pillars { order: -1; width: 100%; justify-content: center; }
}
.rail__pillars {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.rail__pillars .pipe {
  display: inline-block;
  width: 2px;
  height: 12px;
  background: var(--vxit-pink);
}

/* ---------- HQ Footer (shared across pages) ---------- */
.hq {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding: clamp(40px, 6vh, 72px) clamp(16px, 4vw, 56px) clamp(24px, 4vh, 40px);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  z-index: 1;
}
@media (max-width: 720px) { .hq { grid-template-columns: 1fr; gap: 24px; } }
.hq__brand img { height: 48px; width: auto; display: block; margin-bottom: 14px; }
.hq__email {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: clamp(18px, 1.8vw, 22px);
  color: var(--vxit-white);
  display: inline-block;
  margin-bottom: 12px;
}
.hq__email:hover { color: var(--vxit-pink); }
.hq__address {
  font-style: normal;
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
  line-height: 1.6;
}
.hq__address strong {
  display: block;
  color: var(--vxit-white);
  font-weight: var(--fw-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
  margin-bottom: 6px;
}
.hq__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}
@media (max-width: 720px) { .hq__right { align-items: flex-start; } }
.hq__links {
  display: inline-flex;
  flex-direction: column;
  gap: 10px;
  font-size: 12px;
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  text-align: right;
}
@media (max-width: 720px) { .hq__links { text-align: left; } }
.hq__links a:hover { color: var(--vxit-white); }
.hq__copyright {
  font-size: 11px;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

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