/* The header on About, Contact, Privacy, Terms, Refund policy and Careers: the home page's wordmark,
   a glass pill of links with the current page lit up, a dark Home button, and a reading-progress bar. */
.hdr { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px clamp(18px,4vw,48px); background: rgba(253,250,245,0.72); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); transition: background .3s ease, box-shadow .3s ease, padding .3s ease; font-family: 'Outfit', system-ui, sans-serif; }
.hdr::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, #3b82f6 18%, #a855f7 42%, #ec4899 66%, #f59e0b 84%, transparent); background-size: 200% 100%; opacity: 0.5; animation: hdrLine 8s linear infinite; }
@keyframes hdrLine { to { background-position: 200% 0; } }
.hdr.scrolled { background: rgba(255,255,255,0.88); box-shadow: 0 14px 34px -26px rgba(76,29,149,0.45); padding-top: 10px; padding-bottom: 10px; }
.hdr-bar { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg,#3b82f6,#a855f7,#ec4899,#f59e0b); pointer-events: none; }

.hdr-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.hdr-u { position: relative; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font: 800 16px/1 'Bricolage Grotesque', sans-serif; color: #fff; background: linear-gradient(135deg,#3b82f6,#a855f7 55%,#ec4899); box-shadow: 0 8px 18px -8px rgba(124,58,237,0.7); transition: transform .4s cubic-bezier(.22,1,.36,1); }
.hdr-u::before { content: ""; position: absolute; inset: -4px; border-radius: 13px; background: linear-gradient(135deg,#3b82f6,#a855f7,#ec4899); filter: blur(8px); opacity: 0.35; z-index: -1; animation: hdrGlow 3.6s ease-in-out infinite; }
@keyframes hdrGlow { 0%,100% { opacity: 0.25; transform: scale(0.95); } 50% { opacity: 0.55; transform: scale(1.06); } }
.hdr-brand:hover .hdr-u { transform: rotate(-8deg) scale(1.06); }

/* Wordmark, as on the home page: the gradient flows through the letters and a sheen sweeps across. */
.ucw { position: relative; display: inline-block; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 24px; letter-spacing: -0.025em; line-height: 1.05; white-space: nowrap;
  background: linear-gradient(110deg,#3b82f6 0%,#7c3aed 28%,#ec4899 52%,#f59e0b 72%,#7c3aed 88%,#3b82f6 100%); background-size: 260% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: ucwFlow 9s ease-in-out infinite; }
.ucw::after { content: attr(data-text); position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 42%, rgba(255,255,255,0.95) 50%, transparent 58%); background-size: 260% 100%; background-repeat: no-repeat;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: ucwShine 6.5s ease-in-out infinite; }
@keyframes ucwFlow { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes ucwShine { 0%, 62% { background-position: 160% 0; } 100% { background-position: -60% 0; } }

/* Links in a glass pill; the current page gets the brand gradient. */
.hdr-nav { display: flex; align-items: center; gap: 2px; padding: 4px; border-radius: 100px; background: rgba(255,255,255,0.7); border: 1px solid rgba(124,58,237,0.14); box-shadow: 0 10px 26px -20px rgba(124,58,237,0.6), inset 0 1px 0 rgba(255,255,255,0.9); }
.hdr-nav a { position: relative; padding: 8px 15px; border-radius: 100px; font-size: 14px; font-weight: 600; color: rgba(28,23,48,0.68); text-decoration: none; white-space: nowrap; transition: color .2s ease, background .2s ease; }
.hdr-nav a:hover { color: #1c1730; background: rgba(124,58,237,0.07); }
.hdr-nav a[aria-current] { color: #fff; background: linear-gradient(120deg,#3b82f6,#a855f7 55%,#ec4899); box-shadow: 0 8px 18px -8px rgba(124,58,237,0.7); }

.hdr-home { flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 100px; background: #1c1730; color: #fff; font-size: 13.5px; font-weight: 700; text-decoration: none; transition: transform .25s ease, box-shadow .25s ease; }
.hdr-home:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(28,23,48,0.6); }
.hdr-home i { font-style: normal; transition: transform .25s ease; }
.hdr-home:hover i { transform: translateX(-3px); }

/* The three-line menu button: only on tablets and phones. */
.hdr-menu { display: none; flex-shrink: 0; width: 42px; height: 42px; border-radius: 14px; border: 1px solid rgba(124,58,237,0.2); background: rgba(255,255,255,0.9); cursor: pointer; padding: 0; align-items: center; justify-content: center; flex-direction: column; gap: 5px; box-shadow: 0 10px 22px -16px rgba(124,58,237,0.7); -webkit-tap-highlight-color: transparent; }
.hdr-menu span { display: block; width: 18px; height: 2px; border-radius: 2px; background: #1c1730; transition: transform .35s cubic-bezier(.22,1,.36,1), opacity .2s ease; }
.hdr.open .hdr-menu span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hdr.open .hdr-menu span:nth-child(2) { opacity: 0; }
.hdr.open .hdr-menu span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Tablet and phone: brand on the left; main button and the menu button on the right; the links drop down. */
@media (max-width: 900px) {
  .hdr { flex-wrap: nowrap; gap: 10px; padding: 10px 16px; }
  .hdr.scrolled { padding-top: 8px; padding-bottom: 8px; }
  .hdr-brand { margin-right: auto; min-width: 0; }
  .ucw { font-size: 21px; }
  .hdr-u { width: 27px; height: 27px; font-size: 15px; }
  .hdr-home { padding: 10px 15px; font-size: 13px; }
  .hdr-menu { display: inline-flex; }
  .hdr-nav { position: absolute; top: calc(100% + 8px); left: 12px; right: 12px; flex-direction: column; align-items: stretch; gap: 2px; padding: 8px; border-radius: 22px; background: #fff; border: 1px solid rgba(124,58,237,0.14); box-shadow: 0 30px 60px -24px rgba(76,29,149,0.45); opacity: 0; visibility: hidden; transform: translateY(-8px) scale(0.98); transform-origin: top right; transition: opacity .2s ease, transform .3s cubic-bezier(.22,1,.36,1), visibility 0s linear .3s; }
  .hdr.open .hdr-nav { opacity: 1; visibility: visible; transform: none; transition: opacity .22s ease, transform .3s cubic-bezier(.22,1,.36,1), visibility 0s; }
  .hdr-nav a { display: flex; align-items: center; justify-content: space-between; padding: 14px 14px; border-radius: 14px; font-size: 16px; font-weight: 700; color: #1c1730; }
  .hdr-nav a::after { content: "→"; color: #a855f7; font-weight: 800; }
  .hdr-nav a[aria-current]::after { color: #fff; }
}
@media (max-width: 380px) {
  .hdr { gap: 8px; padding-left: 12px; padding-right: 12px; }
  .ucw { font-size: 19px; }
  .hdr-u { display: none; }
  .hdr-home { padding: 9px 12px; font-size: 12.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .hdr::after, .hdr-u::before, .ucw, .ucw::after { animation: none !important; }
}
