/* =========================================================
   NOVA GLOBAL HEADER
========================================================= */

:root {
    --nova-bg: #050506;
    --nova-bg-soft: #09090d;
    --nova-white: #ffffff;
    --nova-text: #ededf2;
    --nova-muted: #858590;

    --nova-purple: #8b5cf6;
    --nova-purple-dark: #6d28d9;
    --nova-purple-light: #bd91ff;

    --nova-border: rgba(255,255,255,.10);
}

body{
    overflow-x:hidden;
}

/* 1. Global Cursor Override */
html, body, a, button, input, [role="button"] {
  cursor: none !important;
}

/* 2. Core Cyan Dot */
.custom-cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background-color: #38bdf8;
  border-radius: 50%;
  pointer-events: none;
  z-index: 999999;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 10px #38bdf8, 0 0 20px #38bdf8;
  transition: transform 0.15s ease-out, background-color 0.2s ease;
}

/* 3. Outer Neon Purple Ring */
.custom-cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(192, 132, 252, 0.7);
  background: rgba(147, 51, 234, 0.05);
  border-radius: 50%;
  pointer-events: none;
  z-index: 999998;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 15px rgba(147, 51, 234, 0.3);
  transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              height 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.25s ease,
              background-color 0.25s ease;
}

/* 4. Interactive Hover Expansion State */
body.cursor-hover .custom-cursor-ring {
  width: 54px;
  height: 54px;
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.4);
}

body.cursor-hover .custom-cursor-dot {
  background-color: #c084fc;
  box-shadow: 0 0 12px #c084fc;
  transform: translate(-50%, -50%) scale(1.4);
}

/* 5. Click Active Press State */
body.cursor-active .custom-cursor-ring {
  transform: translate(-50%, -50%) scale(0.8);
}

/* 6. Disable custom cursor on touch devices to avoid mobile issues */
@media (max-width: 1024px), (pointer: coarse) {
  html, body, a, button, input, [role="button"] {
    cursor: auto !important;
  }
  .custom-cursor-dot,
  .custom-cursor-ring {
    display: none !important;
  }
}


/* =========================================================
   RESET
========================================================= */

.nova-header *,
.nova-mobile-sidebar *,
.nova-mobile-overlay * {
    box-sizing: border-box;
}


.nova-primary-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nova-primary-menu li {
    margin: 0;
    padding: 0;
}

.nova-primary-menu a {
    display: block;
    text-decoration: none;
}

/* =========================================================
   PAGE BACKGROUND
========================================================= */

.nova-page-background {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -10;

    background:
        radial-gradient(
            circle at 72% 45%,
            rgba(111,45,210,.15),
            transparent 35%
        ),
        radial-gradient(
            circle at 15% 20%,
            rgba(95,35,180,.08),
            transparent 30%
        ),
        #050506;
}


.nova-page-background::after {
    content: "";

    position: absolute;
    inset: 0;

    opacity: .28;

    background-image:
        linear-gradient(
            rgba(255,255,255,.025) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,.025) 1px,
            transparent 1px
        );

    background-size: 90px 90px;

    mask-image:
        radial-gradient(
            ellipse at center,
            black 15%,
            transparent 75%
        );
}


.nova-noise {
    position: fixed;
    inset: 0;

    pointer-events: none;

    opacity: .025;

    z-index: 100;

    background-image:
        url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}


/* =========================================================
   HEADER
========================================================= */

.nova-header {
    position: relative;
    z-index: 500;

    width: min(1420px, calc(100% - 60px));

    height: 82px;

    margin: 0 auto;

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


.nova-header-inner {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* =========================================================
   LOGO
========================================================= */

.nova-logo {
    display: inline-flex;
    align-items: center;

    gap: 9px;

    color: #fff;

    text-decoration: none;

    font-size: 14px;

    font-weight: 650;

    letter-spacing: -.02em;
}


.nova-logo-icon {
    width: 26px;
    height: 26px;

    display: grid;
    place-items: center;

    border-radius: 8px;

    background:
        linear-gradient(
            135deg,
            #ae78ff,
            #6428dd
        );

    box-shadow:
        0 0 25px rgba(139,92,246,.40);

    font-size: 14px;
}


.nova-logo-text {
    white-space: nowrap;
}


/* =========================================================
   DESKTOP NAV
========================================================= */

.nova-navigation {
    display: flex;
    align-items: center;

    gap: 38px;
}


.nova-navigation a {
    position: relative;

    color: #8c8c95;

    text-decoration: none;

    font-size: 15px;

    transition:
        color .3s ease;
}


.nova-navigation a:hover {
    color: #fff;
}


.nova-navigation a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -8px;

    width: 0;
    height: 1px;

    background: var(--nova-purple-light);

    transition:
        width .3s ease;
}


.nova-navigation a:hover::after {
    width: 100%;
}


/* =========================================================
   HEADER CTA
========================================================= */

.nova-header-cta {
    display: inline-flex;
    align-items: center;

    gap: 9px;

    padding: 9px 14px;

    border: 1px solid rgba(255,255,255,.14);

    border-radius: 999px;

    color: #fff;

    background: rgba(255,255,255,.025);

    text-decoration: none;

    font-size: 11px;

    transition:
        all .3s ease;
}


.nova-header-cta:hover {
    border-color: rgba(170,120,255,.55);

    transform: translateY(-2px);

    box-shadow:
        0 0 25px rgba(139,92,246,.15);
}


.nova-header-dot {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: #a86cff;

    box-shadow:
        0 0 12px #9b5cff;
}


/* =========================================================
   MOBILE BUTTON
========================================================= */

.nova-mobile-menu-button {
    display: none;

    width: 42px;
    height: 42px;

    padding: 0;

    border: 1px solid rgba(255,255,255,.13);

    border-radius: 50%;

    background: rgba(255,255,255,.035);

    cursor: pointer;

    flex-direction: column;
    justify-content: center;
    align-items: center;

    gap: 4px;
}


.nova-mobile-menu-button span {
    display: block;

    width: 15px;
    height: 1px;

    background: #fff;

    transition:
        transform .3s ease,
        opacity .3s ease;
}


body.nova-menu-open .nova-mobile-menu-button span:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
}


body.nova-menu-open .nova-mobile-menu-button span:nth-child(2) {
    opacity: 0;
}


body.nova-menu-open .nova-mobile-menu-button span:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
}


/* =========================================================
   MOBILE OVERLAY
========================================================= */

.nova-mobile-overlay {
    position: fixed;

    inset: 0;

    z-index: 900;

    background: rgba(0,0,0,.65);

    backdrop-filter: blur(6px);

    opacity: 0;

    visibility: hidden;

    transition:
        opacity .35s ease,
        visibility .35s ease;
}


body.nova-menu-open .nova-mobile-overlay {
    opacity: 1;
    visibility: visible;
}


/* =========================================================
   MOBILE SIDEBAR
========================================================= */

.nova-mobile-sidebar {
    position: fixed;

    top: 0;
    right: 0;

    width: min(390px, 88vw);

    height: 100dvh;

    z-index: 1000;

    display: flex;
    flex-direction: column;

    padding: 25px;

    background:
        radial-gradient(
            circle at 80% 10%,
            rgba(139,92,246,.18),
            transparent 35%
        ),
        #08080c;

    border-left: 1px solid rgba(255,255,255,.10);

    box-shadow:
        -30px 0 80px rgba(0,0,0,.45);

    transform: translateX(105%);

    transition:
        transform .45s cubic-bezier(.77,0,.18,1);

    visibility: hidden;
}


body.nova-menu-open .nova-mobile-sidebar {
    transform: translateX(0);

    visibility: visible;
}


/* =========================================================
   SIDEBAR HEADER
========================================================= */

.nova-sidebar-header {
    display: flex;

    align-items: center;
    justify-content: space-between;

    padding-bottom: 25px;

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


.nova-sidebar-close {
    width: 40px;
    height: 40px;

    display: grid;
    place-items: center;

    border: 1px solid rgba(255,255,255,.12);

    border-radius: 50%;

    background: rgba(255,255,255,.03);

    color: #fff;

    font-size: 25px;
    font-weight: 200;

    cursor: pointer;

    transition:
        background .25s ease,
        transform .25s ease;
}


.nova-sidebar-close:hover {
    background: rgba(139,92,246,.18);

    transform: rotate(90deg);
}


/* =========================================================
   MOBILE NAVIGATION
========================================================= */

.nova-mobile-navigation {
    display: flex;
    flex-direction: column;

    /* padding-top: 35px; */
}


.nova-mobile-navigation a {
    display: flex;
    align-items: center;

    gap: 18px;

    padding: 10px 0;

    border-bottom: 1px solid rgba(255,255,255,.06);

    color: #c9c9d1;

    text-decoration: none;

    font-size: 20px;

    font-weight: 500;

    transition:
        color .25s ease,
        padding-left .25s ease;
}


.nova-mobile-navigation a span {
    width: 25px;

    color: #666670;

    font-size: 9px;

    letter-spacing: .1em;
}


.nova-mobile-navigation a:hover {
    color: #fff;

    padding-left: 8px;
}


/* =========================================================
   SIDEBAR BOTTOM
========================================================= */

.nova-sidebar-bottom {

    padding-top: 15px;
}


.nova-sidebar-bottom p {
    max-width: 260px;

    color: #6f6f78;

    font-size: 12px;

    line-height: 1.7;
}


.nova-sidebar-cta {
    margin-top: 20px;

    width: 40%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 10px 14px;

    border-radius: 9px;

    color: #fff;

    background:
        linear-gradient(
            135deg,
            #9254ff,
            #6426db
        );

    text-decoration: none;

    font-size: 12px;
    font-weight: 600;

    box-shadow:
        0 15px 40px rgba(113,47,220,.25);
}


.nova-sidebar-cta span {
    font-size: 18px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {

    .nova-header {
        width: calc(100% - 40px);
    }

    .nova-navigation {
        gap: 24px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 760px) {

    .nova-header {
        width: calc(100% - 28px);

        height: 72px;
    }

    .nova-navigation,
    .nova-header-cta {
        display: none;
    }

    .nova-mobile-menu-button {
        display: flex;
        color:white;
    }

    .nova-primary-menu {
        display: inline-block;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 400px) {

    .nova-header {
        width: calc(100% - 22px);
        height:50px;
    }

    .nova-mobile-sidebar {
        padding: 22px;
    }

    .nova-mobile-menu-button {
        width:30px;
        height:30px;
    }

    .nova-mobile-menu-button span{
        width:13px;
    }

}