
/* Requested header/background refinements only */

/* Prevent accidental horizontal scroll */
html, body, #root {
  max-width: 100%;
  overflow-x: clip;
}

/* Modern background without breaking layout */
body {
  /*old-bg*/background:
    radial-gradient(circle at 12% 18%, rgba(71,230,255,0.10), transparent 28%),
    radial-gradient(circle at 88% 22%, rgba(217,155,255,0.10), transparent 24%),
    radial-gradient(circle at 50% 78%, rgba(59,159,217,0.08), transparent 34%),
    linear-gradient(180deg, #f8fbff 0%, #f3f8fd 42%, #eff5fb 100%);
  position: relative;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  background-image:
    linear-gradient(rgba(59,159,217,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,159,217,.08) 1px, transparent 1px),
    radial-gradient(circle at 22% 30%, rgba(59,159,217,.16) 0 2px, transparent 3px),
    radial-gradient(circle at 72% 24%, rgba(59,159,217,.16) 0 2px, transparent 3px),
    radial-gradient(circle at 60% 68%, rgba(46,204,113,.14) 0 2px, transparent 3px);
  background-size: 90px 90px, 90px 90px, 100% 100%, 100% 100%, 100% 100%;
  mask-image: radial-gradient(circle at center, black 45%, transparent 95%);
  -webkit-mask-image: radial-gradient(circle at center, black 45%, transparent 95%);
}

/* Desktop keeps normal page links */
@media (min-width: 1024px) {
  header nav.hidden.lg\:flex {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.2rem !important;
    margin-left: auto !important;
  }
  .hm-mobile-dots {
    
  }
}

/* Mobile/tablet uses three dots */
@media (max-width: 1023px) {
  header nav.hidden.lg\:flex {
    
  }
  .hm-mobile-dots {
    display: flex !important;
  }
}

/* Header refinements */
.hm-logo-anchor {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  margin-right: 18px !important;
  flex: 0 0 auto !important;
}
.hm-logo-text-only {
  letter-spacing: -0.03em !important;
  font-weight: 900 !important;
  font-size: 1.9rem !important;
  line-height: 1 !important;
  /*old-bg*/background: linear-gradient(90deg, #47E6FF 0%, #67D4FF 28%, #8BA5FF 60%, #D99BFF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  text-shadow: 0 8px 22px rgba(88,160,255,.16);
  white-space: nowrap;
}
@media (max-width: 640px) {
  .hm-logo-text-only { font-size: 1.38rem !important; }
}

/* Style existing top links, don't remove them */
header nav.hidden.lg\:flex a {
  position: relative;
  text-align: center !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em;
  color: #334155 !important;
  transition: color .2s ease, transform .2s ease;
}
header nav.hidden.lg\:flex a:hover {
  color: #2563eb !important;
  transform: translateY(-1px);
}
header nav.hidden.lg\:flex a > * {
  text-align: center !important;
}
header nav.hidden.lg\:flex a::after {
  content: "";
  position: absolute;
  left: 16%;
  right: 16%;
  bottom: 6px;
  height: 2px;
  border-radius: 999px;
  /*old-bg*/background: linear-gradient(90deg, rgba(71,230,255,.8), rgba(217,155,255,.8));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .22s ease;
}
header nav.hidden.lg\:flex a:hover::after {
  transform: scaleX(1);
}

/* Mobile 3 dots */
.hm-mobile-dots {
  display: none;
  position: relative;
  margin-left: auto;
  align-items: center;
  z-index: 120;
}
.hm-mobile-dots-btn {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 14px;
  /*old-bg*/background: linear-gradient(135deg, rgba(59,159,217,.14), rgba(168,85,247,.14));
  box-shadow: 0 10px 24px rgba(15,23,42,.10);
  cursor: pointer;
  color: #0f172a;
  font-size: 28px;
  line-height: 1;
}
.hm-mobile-dots-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 245px;
  /*old-bg*/background: rgba(255,255,255,.98);
  border: 1px solid rgba(226,232,240,.95);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(15,23,42,.16);
  padding: 10px;
  display: none;
  max-height: 72vh;
  overflow: auto;
}
.hm-mobile-dots.open .hm-mobile-dots-menu {
  display: block;
}
.hm-mobile-dots-link {
  display: block;
  padding: 11px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: #334155;
  font-weight: 700;
  text-align: center;
}
.hm-mobile-dots-link:hover {
  /*old-bg*/background: rgba(59,159,217,.10);
  color: #2563eb;
}

/* Keep CTA attention effect */
.hm-cta-glow {
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(59,159,217,.30), 0 0 0 0 rgba(46,204,113,.45);
  animation: hmPulse 2.3s infinite;
}
.hm-cta-glow::before {
  content: "";
  position: absolute;
  inset: 0;
  /*old-bg*/background: linear-gradient(120deg, transparent 10%, rgba(255,255,255,.35) 45%, transparent 80%);
  transform: translateX(-130%);
  animation: hmShine 3.2s infinite;
}
@keyframes hmPulse {
  0% { box-shadow: 0 12px 30px rgba(59,159,217,.28), 0 0 0 0 rgba(46,204,113,.35); }
  70% { box-shadow: 0 14px 34px rgba(59,159,217,.34), 0 0 0 14px rgba(46,204,113,0); }
  100% { box-shadow: 0 12px 30px rgba(59,159,217,.28), 0 0 0 0 rgba(46,204,113,0); }
}
@keyframes hmShine {
  0%, 20% { transform: translateX(-130%); }
  55%, 100% { transform: translateX(130%); }
}



/* Dark mode toggle improved */
.dark-mode-toggle,
.theme-toggle,
.toggle {
  transform: scale(1.5) !important;
  padding: 12px 16px !important;
  transition: all 0.3s ease !important;
  cursor: pointer;
}

.dark-mode-toggle:hover,
.theme-toggle:hover,
.toggle:hover {
  transform: scale(1.7) rotate(5deg) !important;
}

.dark-mode-toggle:active,
.theme-toggle:active,
.toggle:active {
  transform: scale(1.4) rotate(-5deg) !important;
}

/* final header multiline center fix */
.nav-links a,
nav a,
.navbar a {
  text-align: center !important;
  justify-content: center !important;
  align-items: center !important;
  line-height: 1.18 !important;
}

.nav-links a {
  font-size: 16px !important;
  font-weight: 700 !important;
  min-height: 52px !important;
  padding: 8px 10px !important;
  display: flex !important;
}

.nav-links li {
  display: flex !important;
  align-items: center !important;
}

.nav-links a br {
  display: block !important;
}

@media (max-width: 1200px) {
  .nav-links a {
    font-size: 15px !important;
    min-height: 48px !important;
  }
}

/* FINAL HEADER BIG + RIGHT */
.nav-links {
  margin-left: 40px !important;
}

.nav-links a {
  font-size: 18px !important;
  font-weight: 700 !important;
  letter-spacing: 0.4px;
}

@media (max-width: 1200px) {
  .nav-links a {
    font-size: 16px !important;
  }
}

/* MAX RIGHT + BIGGER HEADER */
.nav-links {
  margin-left: 80px !important;
}

.nav-links a {
  font-size: 20px !important;
  font-weight: 800 !important;
  letter-spacing: 0.5px;
}

@media (max-width: 1200px) {
  .nav-links {
    margin-left: 20px !important;
  }
  .nav-links a {
    font-size: 16px !important;
  }
}

/* PERFECT MATCH HEADER */
.nav-links {
  margin-left: 30px !important;
  gap: 18px !important;
}

.nav-links a {
  font-size: 14px !important;
  font-weight: 600 !important;
  letter-spacing: 0.2px;
  padding: 6px 8px !important;
}

@media (max-width: 1200px) {
  .nav-links {
    margin-left: 10px !important;
  }
  .nav-links a {
    font-size: 13px !important;
  }
}

/* final logo + far right nav */
.header-shell {
  gap: 16px !important;
}

.brand-icon {
  overflow: hidden !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.brand-logo {
  width: 74px !important;
  height: 74px !important;
  object-fit: contain !important;
  display: block !important;
}

.desktop-nav {
  justify-content: flex-end !important;
  margin-left: auto !important;
  gap: 10px !important;
  padding-right: 8px !important;
}

.desktop-nav a {
  font-size: 14px !important;
  font-weight: 700 !important;
  text-align: center !important;
  line-height: 1.12 !important;
}

.theme-button {
  margin-left: 0 !important;
  flex-shrink: 0 !important;
}

@media (max-width: 1200px) {
  .brand-logo {
    width: 62px !important;
    height: 62px !important;
  }

  .desktop-nav {
    gap: 8px !important;
    padding-right: 4px !important;
  }

  .desktop-nav a {
    font-size: 13px !important;
  }
}

/* LOGO FULL AREA FIX */
.brand-icon {
  width: 90px !important;
  height: 90px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: linear-gradient(135deg,#2dd4bf,#22c55e) !important;
  border-radius: 20px !important;
}

.brand-logo {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 20px !important;
}

/* HUGE LOGO FIX */
.brand-icon {
  width: 140px !important;
  height: 140px !important;
  border-radius: 24px !important;
}

.brand-logo {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

/* reduce blur / improve clarity */
.brand-logo {
  image-rendering: auto;
}

/* header alignment fix */
.header-shell {
  align-items: center !important;
}

/* CLEAN LOGO ONLY */
.brand-icon {
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.brand-logo {
  width: 180px !important;
  height: auto !important;
  object-fit: contain !important;
}

/* Generated logo integration */
.brand-icon{
  background: transparent !important;
  box-shadow:none !important;
  padding:0 !important;
}
.brand-logo{
  width:200px !important;
  height:auto !important;
  object-fit:contain !important;
}
