/* ==========================================================================
   NEUVO CORE — Stylesheet
   Design: Dark-mode editorial layout with CSS "hole punch" parallax cutouts.
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. FONTS (Self-Hosted)
   -------------------------------------------------------------------------- */
/* latin-ext */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('fonts/Inter-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('fonts/Inter-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
    /* Palette */
    --color-bg:            #060608;
    --color-text:          #ffffff;
    --color-text-muted:    #8a8a93;
    --color-accent:        #52B7FF;
    --color-accent-dark:   #037BCF;
    --color-border:        rgba(255, 255, 255, 0.05);

    /* Button */
    --btn-bg:              #111111;
    --btn-shadow:          rgba(34, 155, 241, 0.15);
    --btn-shine-l:         rgba(82, 183, 255, 0.5);
    --btn-shine-r:         rgba(3, 123, 207, 0.65);

    /* Layout */
    --container-max:       1300px;
    --nav-max:             1400px;
    --gutter:              2rem;
}


/* --------------------------------------------------------------------------
   2. RESET & BASE
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: transparent;
}

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

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


/* --------------------------------------------------------------------------
   3. FIXED PARALLAX BACKGROUND
   -------------------------------------------------------------------------- */
.parallax-bg {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: url('cybercrest_abstract_bg_1782990977233.jpg') center / cover no-repeat;
    z-index: -1;
}


/* --------------------------------------------------------------------------
   4. LAYOUT UTILITIES
   -------------------------------------------------------------------------- */
.main-wrapper          { overflow-x: clip; }
.section               { width: 100%; position: relative; z-index: 1; }
.section--solid        { background: var(--color-bg); }

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--gutter);
    position: relative;
}
.container--hero         { padding-top: 12rem; padding-bottom: 8rem; }
.container--section      { padding-top: 8rem;  padding-bottom: 8rem; }
.container--section-top  { padding-top: 8rem; }
.container--section-bottom { padding-bottom: 8rem; }

.border-y {
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.text-center       { text-align: center; }
.full-width-text   { max-width: 900px; margin: 0 auto; }

/* Spacers */
.spacer-md  { height: 2rem; }
.spacer-lg  { height: 2.5rem; }
.spacer-xxl { height: 8rem; }


/* --------------------------------------------------------------------------
   5. TYPOGRAPHY
   -------------------------------------------------------------------------- */
.eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

.heading-mega {
    font-size: clamp(4rem, 8vw, 7rem);
    line-height: 0.95;
    letter-spacing: -0.04em;
    font-weight: 800;
    margin-bottom: 3rem;
}

.heading-lg {
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: 1;
    letter-spacing: -0.03em;
    font-weight: 700;
    margin-bottom: 2rem;
}

.heading-accent {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-weight: 600;
    margin-bottom: 1.5rem;
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.heading-sm {
    font-size: 2rem;
    line-height: 1.2;
    letter-spacing: -0.01em;
    font-weight: 600;
    margin-bottom: 1rem;
}

.body-lg {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--color-text-muted);
    max-width: 600px;
}

.body {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--color-text-muted);
    max-width: 500px;
}

/* Hover → gradient text effect */
.hover-gradient {
    position: relative;
    display: inline-block;
    transition: color 0.3s ease-out;
}

.hover-gradient::before {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent-dark));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    z-index: 1;
    transition: opacity 0.3s ease-out;
}

.grid-2col--aligned:hover .hover-gradient::before,
.grid-2col--tight > div:hover .hover-gradient::before { opacity: 1; }

.grid-2col--aligned:hover .hover-gradient,
.grid-2col--tight > div:hover .hover-gradient { color: transparent; }


/* --------------------------------------------------------------------------
   6. GRID SYSTEMS
   -------------------------------------------------------------------------- */
.hero {
    display: flex;
    flex-direction: column;
}

.hero__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.grid-3col {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.grid-2col--wide  { gap: 6rem; }
.grid-2col--tight { gap: 3rem; }

.grid-2col--reversed {
    direction: rtl;
}
.grid-2col--reversed > * {
    direction: ltr;
}


/* --------------------------------------------------------------------------
   7. CSS "HOLE PUNCH" EFFECT
   -------------------------------------------------------------------------- */

/*
 * HOW IT WORKS:
 * 1. .section-with-hole has overflow: hidden and NO background of its own.
 * 2. .hole uses a massive box-shadow (9999px) in --color-bg to fill the
 *    entire section with a solid colour, but the element itself is transparent.
 * 3. This creates a "window" (the hole) that reveals the fixed parallax
 *    background behind it.
 * 4. All text outside the hole must use .text-on-top (z-index: 2) to sit
 *    above the shadow layer (z-index: 1).
 *
 * CONSTRAINT: Only one .hole per .section-with-hole. Multiple holes in the
 * same section will cause overlapping shadows that hide sibling content.
 */

.section-with-hole {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.text-on-top {
    position: relative;
    z-index: 2;
}

.hole {
    position: relative;
    z-index: 1;
    box-shadow: 0 0 0 9999px var(--color-bg);
    background: transparent;
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 450px;
    padding: 3rem;
}

.hole__text {
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--color-text);
    text-align: center;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    position: relative;
    z-index: 3;
}


/* --------------------------------------------------------------------------
   8. NAVIGATION
   -------------------------------------------------------------------------- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 0;
    background: rgba(10, 10, 15, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    z-index: 1000;
}

.nav-container {
    max-width: var(--nav-max);
    margin: 0 auto;
    padding: 0 var(--gutter);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    filter: brightness(0) invert(1);
}

.logo-img--lg {
    height: 48px;
    width: auto;
}

.nav-links a {
    margin: 0 2rem;
    font-size: 0.85rem;
    letter-spacing: 1px;
    font-weight: 600;
    text-transform: uppercase;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--color-accent);
}


/* --------------------------------------------------------------------------
   9. GLOWING PILL BUTTON
   -------------------------------------------------------------------------- */
.button-glow {
    position: relative;
    background: var(--btn-bg);
    border-radius: 100px;
    box-shadow: 0 0.5rem 1.25rem var(--btn-shadow);
    display: inline-flex;
    padding: 2px;
    cursor: pointer;
    z-index: 1;
}

.button-glow__gradient {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    overflow: hidden;
    -webkit-mask-image: -webkit-radial-gradient(white, black);
}

.button-glow__gradient::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 0;
    right: 0;
    padding-bottom: 100%;
    border-radius: 50%;
    background: linear-gradient(90deg, var(--btn-shine-l), var(--btn-shine-r));
    animation: glow-rotate 3s linear infinite;
}

.button-glow__label {
    position: relative;
    background: var(--btn-bg);
    border-radius: 100px;
    padding: 0.85rem 2rem;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 1px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.3s;
}

.button-glow__icon {
    display: flex;
    align-items: center;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.button-glow:hover .button-glow__icon {
    transform: translateX(4px);
}

.button-glow:hover .button-glow__label {
    background: #1a1a24;
}

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


/* --------------------------------------------------------------------------
   10. LOGO MARQUEE
   -------------------------------------------------------------------------- */
.marquee {
    overflow: hidden;
    padding: 4rem 0;
    display: flex;
    width: 200%;
    white-space: nowrap;
}

.marquee__track {
    display: flex;
    align-items: center;
    justify-content: space-around;
    width: 50%;
    animation: marquee-scroll 40s linear infinite;
}

.marquee__item {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--color-text-muted);
    opacity: 0.4;
    letter-spacing: 4px;
    padding: 0 4rem;
}

@keyframes marquee-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-100%); }
}


/* --------------------------------------------------------------------------
   11. FOOTER
   -------------------------------------------------------------------------- */
.footer {
    position: relative;
    z-index: 1;
    background: var(--color-bg);
    padding: 4rem 0;
}

.footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer__links {
    flex: 1;
    display: flex;
    gap: 2.5rem;
}

.footer__links a {
    font-size: 0.85rem;
    letter-spacing: 1px;
    font-weight: 600;
    text-transform: uppercase;
    transition: color 0.3s;
}

.footer__links a:hover {
    color: var(--color-accent);
}

.footer__logo {
    flex: 1;
    display: flex;
    justify-content: center;
}

.footer__copyright {
    flex: 1;
    text-align: right;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}


/* --------------------------------------------------------------------------
   12. SCROLL ANIMATIONS
   -------------------------------------------------------------------------- */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition:
        opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
        transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}


/* --------------------------------------------------------------------------
   13. RESPONSIVE BREAKPOINTS
   -------------------------------------------------------------------------- */

/* Tablet */
@media (max-width: 1024px) {
    .hero__grid,
    .grid-2col {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .grid-3col {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .grid-2col--reversed {
        direction: ltr;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .hide-mobile {
        display: none;
    }

    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .heading-mega  { font-size: 3rem; }
    .heading-lg    { font-size: 2.5rem; }

    .grid-2col--tight {
        grid-template-columns: 1fr;
    }

    .footer__inner {
        flex-direction: column;
        text-align: center;
    }

    .footer__links {
        justify-content: center;
    }

    .footer__copyright {
        text-align: center;
    }
}
