/* ===========================================================================
   GENIEBOX — site base: tokens, chrome (header / mega-menu / footer),
   buttons, utilities, animation primitives. Pairs with home.css + site.js.
   Extends the brand tokens in ../colors_and_type.css.
   =========================================================================== */

:root {
  /* dark canvas extensions */
  --ink-900: #0C0712;
  /* near-black, page base in dark mode */
  --ink-850: #120A1E;
  --ink-800: #180C28;
  /* hero base */
  --ink-700: #22123A;
  --ink-600: #2C1A48;
  --glass: rgba(255, 255, 255, .06);
  --glass-line: rgba(255, 255, 255, .12);
  --glass-strong: rgba(255, 255, 255, .10);

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --nav-h: 78px;
  --maxw: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  font-family: var(--gb-font-body);
  color: var(--gb-fg1);
  background: var(--gb-bg);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

::selection {
  background: var(--gb-magenta);
  color: #fff;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  font-family: var(--gb-font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gb-magenta);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--gb-magenta);
}

.eyebrow--center {
  justify-content: center;
}

.eyebrow--light {
  color: var(--gb-magenta-bright);
}

.eyebrow--light::before {
  background: var(--gb-magenta-bright);
}

/* ---- Buttons -------------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--gb-font-display);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: var(--gb-r-pill);
  overflow: hidden;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), filter .2s;
  white-space: nowrap;
}

.btn svg {
  width: 18px;
  height: 18px;
  position: relative;
  z-index: 1;
  transition: transform .25s var(--ease-out);
}

.btn span {
  position: relative;
  z-index: 1;
}

.btn:active {
  transform: scale(.96);
}

.btn--primary {
  background: var(--gb-magenta);
  color: #fff;
  box-shadow: 0 10px 30px rgba(230, 21, 124, .35);
}

.btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gb-gradient-vivid);
  opacity: 0;
  transition: opacity .3s;
  z-index: 0;
}

.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(230, 21, 124, .5);
}

.btn--primary:hover::after {
  opacity: 1;
}

.btn--primary:hover svg {
  transform: translateX(4px);
}

.btn--ghost {
  background: transparent;
  color: var(--gb-magenta);
  border: 1.5px solid var(--gb-line-2);
}

.btn--ghost:hover {
  border-color: var(--gb-magenta);
  background: var(--gb-bg-tint);
  transform: translateY(-3px);
}

.btn--glass {
  background: var(--glass-strong);
  color: #fff;
  border: 1.5px solid var(--glass-line);
  backdrop-filter: blur(10px);
}

.btn--glass:hover {
  background: rgba(255, 255, 255, .16);
  transform: translateY(-3px);
}

.btn--lg {
  padding: 17px 34px;
  font-size: 16px;
}

.btn--white {
  background: #fff;
  color: var(--gb-ink);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
}

.btn--white:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .26);
}

/* magnetic wrapper */
.mag {
  display: inline-block;
  will-change: transform;
}

@media (max-width:768px) {
  .mag{
    display: none;
  }
}

/* ---- Header / Nav --------------------------------------------------------- */
.hdr {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background .35s, backdrop-filter .35s, box-shadow .35s, border-color .35s;
  border-bottom: 1px solid transparent;
}

.hdr__in {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.hdr.is-dark {
  color: #fff;
}

.hdr.is-stuck {
  background: rgba(12, 7, 18, .72);
  backdrop-filter: blur(18px) saturate(1.4);
  border-bottom-color: rgba(255, 255, 255, .08);
  box-shadow: 0 8px 40px rgba(0, 0, 0, .3);
}

.hdr.is-light.is-stuck {
  background: rgba(255, 255, 255, .82);
  color: var(--gb-fg1);
  border-bottom-color: var(--gb-line);
  box-shadow: 0 8px 30px rgba(76, 43, 119, .08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: none;
  z-index: 2;
}

.brand img {
  height: 46px;
  transition: transform .3s var(--ease-spring);
}

.brand:hover img {
  transform: scale(1.05) rotate(-2deg);
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__item {
  position: relative;
}

.nav__link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 500;
  font-size: 15px;
  color: inherit;
  opacity: .92;
  transition: opacity .2s, background .2s, color .2s;
  cursor: pointer;
}

.nav__link:hover,
.nav__item.is-open .nav__link {
  opacity: 1;
  background: rgba(255, 255, 255, .08);
}

.hdr.is-light:not(.is-stuck) .nav__link:hover {
  background: rgba(76, 43, 119, .06);
}

.nav__link .chev {
  width: 15px;
  height: 15px;
  transition: transform .3s var(--ease-out);
}

.nav__item.is-open .nav__link .chev {
  transform: rotate(180deg);
  color: var(--gb-magenta-bright);
}

.hdr__right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: none;
}

.hdr__phone {
  font-weight: 600;
  font-size: 14.5px;
  opacity: .9;
  display: flex;
  align-items: center;
  gap: 7px;
}

.hdr__phone svg {
  width: 16px;
  height: 16px;
  color: var(--gb-magenta-bright);
}

/* ---- Mega menu ------------------------------------------------------------ */
.mega {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--nav-h);
  z-index: 99;
  pointer-events: none;
}

.mega__panel {
  max-width: var(--maxw);
  margin: 0 auto;
  background: rgba(16, 9, 26, .86);
  backdrop-filter: blur(26px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
  padding: 30px;
  display: none;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .32s var(--ease-out), transform .32s var(--ease-out);
  margin-top: 10px;
  color: #fff;
}

.nav__item.is-open .mega__panel {
  display: grid;
}

.nav__item.is-open .mega {
  pointer-events: auto;
}

.mega.show .mega__panel {
  opacity: 1;
  transform: translateY(0);
}

.mega__col h5 {
  font-family: var(--gb-font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gb-magenta-bright);
  margin: 0 0 14px;
}

.mega__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 3px;
}

.mega__col li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 14px;
  color: rgba(255, 255, 255, .78);
  transition: background .18s, color .18s, transform .18s;
}

.mega__col li a:hover {
  background: rgba(255, 255, 255, .07);
  color: #fff;
  transform: translateX(4px);
}

.mega__col li a svg {
  width: 16px;
  height: 16px;
  color: var(--gb-magenta-bright);
  flex: none;
  opacity: .85;
}

.mega__feature {
  background: linear-gradient(155deg, var(--gb-magenta), var(--gb-violet));
  border-radius: 16px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.mega__feature .ribbons {
  position: absolute;
  inset: 0;
}

.mega__feature h4 {
  font-family: var(--gb-font-display);
  font-weight: 700;
  font-size: 20px;
  margin: 0 0 8px;
  position: relative;
}

.mega__feature p {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .85);
  margin: 0 0 16px;
  position: relative;
}

.mega__feature .mf-link {
  font-weight: 600;
  font-size: 13.5px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  position: relative;
}

.mega__feature .mf-link svg {
  width: 15px;
  height: 15px;
}

/* ---- Mobile nav ----------------------------------------------------------- */
.burger {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: white;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.burger span {
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: .3s var(--ease-out);
}

.mnav {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: var(--ink-900);
  transform: translateX(100%);
  transition: transform .45s var(--ease-out);
  overflow-y: auto;
  padding: 90px 24px 40px;
  color: #fff;
  display: none;
}

.mnav.open {
  transform: translateX(0);
}

.mnav__close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mnav__close svg {
  width: 22px;
  height: 22px;
}

.macc {
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.macc__hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 4px;
  font-family: var(--gb-font-display);
  font-weight: 600;
  font-size: 19px;
}

.macc__hd svg {
  width: 20px;
  height: 20px;
  transition: transform .3s;
}

.macc.open .macc__hd svg {
  transform: rotate(180deg);
  color: var(--gb-magenta-bright);
}

.macc__body {
  display: none;
  padding: 0 4px 16px;
}

.macc.open .macc__body {
  display: block;
}

.macc__body a {
  display: block;
  padding: 9px 0;
  font-size: 15px;
  color: rgba(255, 255, 255, .72);
}

/* ---- Ribbon-wave signature texture --------------------------------------- */
.ribbons {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(150% 120% at 102% -4%, transparent 55%, rgba(255, 255, 255, .10) 56%, transparent 58%),
    radial-gradient(150% 120% at 102% -4%, transparent 62%, rgba(255, 255, 255, .08) 63%, transparent 65%),
    radial-gradient(150% 120% at 102% -4%, transparent 69%, rgba(255, 255, 255, .06) 70%, transparent 72%),
    radial-gradient(150% 120% at -4% 104%, transparent 58%, rgba(255, 255, 255, .09) 59%, transparent 61%),
    radial-gradient(150% 120% at -4% 104%, transparent 66%, rgba(255, 255, 255, .06) 67%, transparent 69%);
}

/* ---- Reveal primitives (safe: visible by default, JS sets hidden) -------- */
.js .reveal {
  opacity: 0;
  transform: translateY(34px);
}

.js .reveal-x {
  opacity: 0;
  transform: translateX(-40px);
}

.js .reveal-scale {
  opacity: 0;
  transform: scale(.92);
}

/* ---- Footer --------------------------------------------------------------- */
.footer {
  position: relative;
  background: var(--ink-900);
  color: #fff;
  padding: 88px 0 34px;
  overflow: hidden;
}

.footer__glow {
  position: absolute;
  top: -160px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 420px;
  background: radial-gradient(circle, rgba(230, 21, 124, .32), transparent 65%);
  filter: blur(40px);
  pointer-events: none;
}

.footer__top {
  position: relative;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1.1fr;
  gap: 36px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.footer__brand img {
  height: 48px;
  margin-bottom: 18px;
}

.footer__brand p {
  color: rgba(255, 255, 255, .6);
  font-size: 14px;
  line-height: 1.65;
  margin: 0 0 20px;
  max-width: 280px;
}

.footer__soc {
  display: flex;
  gap: 10px;
}

.footer__soc a {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: rgba(255, 255, 255, .08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: .25s var(--ease-out);
}

.footer__soc a svg {
  width: 18px;
  height: 18px;
}

.footer__soc a:hover {
  background: var(--gb-magenta);
  transform: translateY(-4px);
}

.footer__col h5 {
  font-family: var(--gb-font-display);
  font-weight: 600;
  font-size: 15px;
  margin: 0 0 16px;
}

.footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 11px;
}

.footer__col ul a {
  color: rgba(255, 255, 255, .6);
  font-size: 14px;
  transition: color .2s, transform .2s;
  display: inline-block;
}

.footer__col ul a:hover {
  color: #fff;
  transform: translateX(3px);
}

.footer__contact div {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: rgba(255, 255, 255, .6);
  font-size: 13.5px;
  line-height: 1.5;
  margin-bottom: 12px;
}

.footer__contact svg {
  width: 16px;
  height: 16px;
  color: var(--gb-magenta-bright);
  flex: none;
  margin-top: 2px;
}

.footer__bar {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 26px;
  color: rgba(255, 255, 255, .45);
  font-size: 13px;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---- Cursor glow ---------------------------------------------------------- */
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(230, 21, 124, .16), transparent 62%);
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity .4s;
  will-change: transform;
}

/* ---- Marquee -------------------------------------------------------------- */
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee__track {
  display: flex;
  gap: 60px;
  width: max-content;
  animation: marquee 32s linear infinite;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

@keyframes floaty {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-16px);
  }
}

@keyframes drift {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(40px, -30px) scale(1.12);
  }
}

@keyframes spin-slow {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse-ring {
  0% {
    transform: scale(.8);
    opacity: .7;
  }

  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

@media (max-width:1080px) {

  .nav,
  .hdr__phone {
    display: none;
  }

  .burger {
    display: flex;
  }

  .mnav {
    display: block;
  }

  .footer__top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width:600px) {
  .footer__top {
    grid-template-columns: 1fr;
  }

  .container {
    padding: 0 20px;
  }
}

@media (prefers-reduced-motion:reduce) {
  * {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
  }

  .js .reveal,
  .js .reveal-x,
  .js .reveal-scale {
    opacity: 1 !important;
    transform: none !important;
  }
}