/* ==========================================================
   CHINMUN ERP
   PREMIUM WEBSITE GLOBAL STYLE
   VERSION 2.0
========================================================== */

:root {

    /* ------------------------------------------------------
       BACKGROUND
    ------------------------------------------------------ */

    --bg: #070b18;
    --bg2: #0b1024;
    --bg3: #050816;

    /* ------------------------------------------------------
       SURFACES
    ------------------------------------------------------ */

    --surface: rgba(255,255,255,.055);
    --surface-strong: rgba(255,255,255,.09);
    --surface-soft: rgba(255,255,255,.025);

    /* ------------------------------------------------------
       BORDERS
    ------------------------------------------------------ */

    --line: rgba(255,255,255,.11);
    --line-soft: rgba(255,255,255,.07);
    --line-bright: rgba(120,150,255,.28);

    /* ------------------------------------------------------
       TEXT
    ------------------------------------------------------ */

    --text: #f7f8ff;
    --text-soft: #e8ebf7;
    --muted: #a9b2cc;
    --muted-dark: #737d98;

    /* ------------------------------------------------------
       BRAND COLORS
    ------------------------------------------------------ */

    --blue: #0d6efd;
    --cyan: #00e5c3;
    --purple: #7b2ef7;
    --purple-light: #a36bff;
    --orange: #ff9a00;

    /* ------------------------------------------------------
       GRADIENTS
    ------------------------------------------------------ */

    --brand-gradient:
        linear-gradient(
            100deg,
            #0d6efd,
            #7b2ef7 65%,
            #b43cff
        );

    --text-gradient:
        linear-gradient(
            100deg,
            #ffffff 0%,
            #63d8ff 30%,
            #8d6aff 65%,
            #d25aff 85%,
            #ffae3b 100%
        );

    /* ------------------------------------------------------
       RADIUS
    ------------------------------------------------------ */

    --radius-sm: 10px;
    --radius-md: 15px;
    --radius: 24px;
    --radius-lg: 30px;

    /* ------------------------------------------------------
       SHADOWS
    ------------------------------------------------------ */

    --shadow:
        0 24px 80px rgba(0,0,0,.35);

    --shadow-heavy:
        0 35px 100px rgba(0,0,0,.48);

    --shadow-brand:
        0 15px 45px rgba(88,55,246,.30);

    /* ------------------------------------------------------
       TRANSITIONS
    ------------------------------------------------------ */

    --transition:
        .25s ease;

    --transition-slow:
        .4s ease;
}


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

*,
*::before,
*::after {
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    margin: 0;

    background:
        var(--bg);

    color:
        var(--text);

    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    overflow-x: hidden;

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}


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


button,
input,
textarea,
select {
    font: inherit;
}


button {
    cursor: pointer;
}


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


ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}


/* ==========================================================
   CONTAINER
========================================================== */

.container {
    width:
        min(
            1180px,
            calc(100% - 40px)
        );

    margin:
        0 auto;
}


/* ==========================================================
   GLOBAL NOISE
========================================================== */

.site-noise {

    position: fixed;

    inset: 0;

    pointer-events: none;

    z-index: 20;

    opacity: .035;

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

}


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

.site-header {

    position: fixed;

    top: 0;
    left: 0;
    right: 0;

    z-index: 50;

    height: 78px;

    background:
        rgba(7,11,24,.65);

    backdrop-filter:
        blur(20px);

    -webkit-backdrop-filter:
        blur(20px);

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

}


.nav-shell {

    height: 78px;

    display: flex;

    align-items: center;

    gap: 30px;

}


/* ==========================================================
   BRAND
========================================================== */

.brand {

    display: flex;

    align-items: center;

    gap: 10px;

    margin-right: auto;

    min-width: 175px;

}


.brand-logo {

    width: 145px;

    height: 58px;

    object-fit: contain;

    object-position: center;

    display: block;

}


.brand-fallback {

    display: none;

}


/* ----------------------------------------------------------
   OLD / FALLBACK BRAND SUPPORT
---------------------------------------------------------- */

.brand-mark {

    width: 42px;
    height: 42px;

    border-radius: 13px;

    display: grid;

    place-items: center;

    font:
        700 22px
        "Space Grotesk",
        sans-serif;

    background:
        var(--brand-gradient);

    box-shadow:
        0 0 30px
        rgba(90,50,255,.35);

}


.brand-text {

    display: flex;

    align-items: baseline;

    gap: 5px;

    font:
        700 19px
        "Space Grotesk",
        sans-serif;

}


.brand-text small {

    font-size: 12px;

    color:
        var(--cyan);

}


/* ==========================================================
   MAIN NAVIGATION
========================================================== */

.main-nav {

    display: flex;

    align-items: center;

    gap: 26px;

    color:
        #c6cce0;

    font-size:
        14px;

}


.main-nav a {

    position: relative;

    padding:
        8px 0;

    transition:
        color .25s ease;

}


.main-nav a::after {

    content: "";

    position: absolute;

    left: 0;
    right: 0;

    bottom: 0;

    height: 1px;

    transform:
        scaleX(0);

    transform-origin:
        center;

    background:
        linear-gradient(
            90deg,
            var(--blue),
            var(--cyan)
        );

    transition:
        transform .25s ease;

}


.main-nav a:hover {

    color:
        #fff;

}


.main-nav a:hover::after {

    transform:
        scaleX(1);

}


/* ==========================================================
   NAV ACTIONS
========================================================== */

.nav-actions {

    display: flex;

    align-items: center;

    gap: 15px;

}


.nav-login {

    color:
        #d8dcf0;

    font-size:
        14px;

    transition:
        color .25s ease;

}


.nav-login:hover {

    color:
        #fff;

}

/* ==========================================================
   BUTTON SYSTEM
========================================================== */

.btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 9px;

    min-height: 50px;

    padding:
        0 22px;

    border-radius:
        14px;

    border:
        1px solid
        var(--line);

    font-weight:
        700;

    font-size:
        14px;

    line-height:
        1;

    white-space:
        nowrap;

    text-decoration:
        none;

    color:
        var(--text);

    box-sizing:
        border-box;

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease,
        background .25s ease;

}


/* ==========================================================
   BUTTON HOVER
========================================================== */

.btn:hover {

    transform:
        translateY(-2px);

}


.btn:active {

    transform:
        translateY(0);

}


/* ==========================================================
   BUTTON ICON / ARROW
========================================================== */

.btn span {

    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    flex-shrink:
        0;

    line-height:
        1;

    transition:
        transform .25s ease;

}


.btn:hover span {

    transform:
        translate(
            2px,
            -2px
        );

}


/* ==========================================================
   SMALL BUTTON
========================================================== */

.btn-small {

    min-height:
        48px;

    height:
        48px;

    padding:
        0 18px;

    border-radius:
        14px;

}


/* ==========================================================
   LARGE BUTTON
========================================================== */

.btn-large {

    min-height:
        54px;

    padding:
        0 22px;

    border-radius:
        15px;

}


/* ==========================================================
   PRIMARY BUTTON
========================================================== */

.btn-primary {

    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    color:
        #ffffff;

    border:
        0;

    background:
        var(--brand-gradient);

    box-shadow:
        var(--shadow-brand);

}


/* ==========================================================
   PRIMARY BUTTON HOVER
========================================================== */

.btn-primary:hover {

    color:
        #ffffff;

    box-shadow:
        0 18px 50px
        rgba(88, 55, 246, .45);

}


/* ==========================================================
   NAVBAR REGISTER BUTTON
========================================================== */

.nav-actions .btn-small {

    min-width:
        122px;

    padding:
        0 18px;

}


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

@media (max-width: 800px) {

    .nav-actions .btn-small {

        width:
            100%;

        min-width:
            0;

    }

}

/* ==========================================================
   GLASS BUTTON
========================================================== */

.btn-glass {

    color:
        #eef2ff;

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

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

    backdrop-filter:
        blur(15px);

    -webkit-backdrop-filter:
        blur(15px);

}


.btn-glass:hover {

    border-color:
        rgba(111,214,255,.35);

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

    box-shadow:
        0 12px 35px
        rgba(0,0,0,.2);

}


/* ==========================================================
   GHOST BUTTON
========================================================== */

.btn-ghost {

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

    backdrop-filter:
        blur(12px);

}


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

.mobile-menu-btn {

    display: none;

    width:
        44px;

    height:
        44px;

    padding:
        0;

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

    border-radius:
        12px;

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

    color:
        #fff;

}


.mobile-menu-btn span {

    display:
        block;

    width:
        20px;

    height:
        2px;

    margin:
        4px auto;

    border-radius:
        3px;

    background:
        #fff;

    transition:
        .25s ease;

}


/* ==========================================================
   SECTIONS
========================================================== */

.section {

    padding:
        45px 0;

}


.section-dark {

    background:
        linear-gradient(
            180deg,
            #080c1c,
            #0b1023
        );

}


/* ==========================================================
   SECTION HEADING
========================================================== */

.section-heading {

    max-width:
        720px;

    margin-bottom:
        42px;

}


.eyebrow,
.section-eyebrow {

    font-size:
        11px;

    letter-spacing:
        .18em;

    font-weight:
        800;

    color:
        #8fdcff;

    margin-bottom:
        15px;

}


.section-heading h2,
.cta-card h2 {

    margin:
        0;

    font:
        700
        clamp(36px,5vw,62px)
        /1.03
        "Space Grotesk",
        sans-serif;

    letter-spacing:
        -.04em;

}


.section-heading h2 span,
.cta-card h2 span {

    background:
        linear-gradient(
            90deg,
            #5bcfff,
            #9c63ff,
            #ffab36
        );

    -webkit-background-clip:
        text;

    background-clip:
        text;

    color:
        transparent;

}


.section-heading p,
.cta-card p {

    color:
        var(--muted);

    line-height:
        1.75;

    font-size:
        16px;

}


/* ==========================================================
   INNER PAGES
========================================================== */

.inner-page {

    min-height:
        80vh;

    padding:
        70px 0 50px;

}


.inner-page-shell {

    max-width:
        850px;

}


.inner-page h1 {

    font:
        700
        clamp(42px,6vw,76px)
        /1
        "Space Grotesk",
        sans-serif;

    margin:
        0 0 20px;

}


.inner-page p {

    color:
        var(--muted);

    font-size:
        18px;

    line-height:
        1.8;

    margin-bottom:
        30px;

}

/* ==========================================================
   SELECTION
========================================================== */

::selection {

    color:
        #fff;

    background:
        rgba(123,46,247,.55);

}


/* ==========================================================
   SCROLLBAR
========================================================== */

::-webkit-scrollbar {

    width:
        8px;

}


::-webkit-scrollbar-track {

    background:
        #050816;

}


::-webkit-scrollbar-thumb {

    border-radius:
        10px;

    background:
        linear-gradient(
            180deg,
            var(--blue),
            var(--purple)
        );

}


::-webkit-scrollbar-thumb:hover {

    background:
        linear-gradient(
            180deg,
            #3293ff,
            #a15cff
        );

}


/* ==========================================================
   FOCUS
========================================================== */

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {

    outline:
        2px solid
        rgba(93,214,255,.8);

    outline-offset:
        3px;

}


/* ==========================================================
   UTILITY
========================================================== */

.text-gradient {

    background:
        var(--text-gradient);

    -webkit-background-clip:
        text;

    background-clip:
        text;

    color:
        transparent;

}


.glass {

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

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

    backdrop-filter:
        blur(20px);

    -webkit-backdrop-filter:
        blur(20px);

}


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

@media (max-width: 800px) {

    .main-nav {

        position:
            fixed;

        top:
            78px;

        left:
            14px;

        right:
            14px;

        display:
            none;

        flex-direction:
            column;

        align-items:
            stretch;

        gap:
            4px;

        padding:
            20px;

        border-radius:
            20px;

        background:
            rgba(8,12,28,.96);

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

        backdrop-filter:
            blur(25px);

        -webkit-backdrop-filter:
            blur(25px);

        box-shadow:
            0 25px 70px
            rgba(0,0,0,.4);

    }


    .main-nav.mobile-open {

        display:
            flex;

    }


    .main-nav a {

        padding:
            12px;

        border-radius:
            10px;

    }


    .main-nav a:hover {

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

    }


    .main-nav a::after {

        display:
            none;

    }


    .nav-actions {

        display:
            none;

    }


    .mobile-menu-btn {

        display:
            block;

    }

}


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

@media (max-width: 900px) {

    .container {

        width:
            min(
                100% - 30px,
                760px
            );

    }

}


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

@media (max-width: 600px) {

    .container {

        width:
            calc(100% - 28px);

    }


    .site-header,
    .nav-shell {

        height:
            70px;

    }


    .main-nav {

        top:
            70px;

    }


    .brand {

        min-width:
            auto;

    }


    .brand-logo {

        width:
            125px;

        height:
            52px;

    }


    .section {

        padding:
            80px 0;

    }


    .section-heading {

        margin-bottom:
            30px;

    }


    .section-heading h2,
    .cta-card h2 {

        font-size:
            42px;

    }


    .section-heading p,
    .cta-card p {

        font-size:
            14px;

    }


    .inner-page {

        padding:
            45px 0 70px;

    }


    .inner-page h1 {

        font-size:
            46px;

    }


    .inner-page p {

        font-size:
            16px;

    }

}


/* ==========================================================
   VERY SMALL DEVICES
========================================================== */

@media (max-width: 380px) {

    .container {

        width:
            calc(100% - 22px);

    }


    .brand-logo {

        width:
            115px;

    }


    .section-heading h2,
    .cta-card h2 {

        font-size:
            37px;

    }


    .btn {

        font-size:
            13px;

    }

}


/* ==========================================================
   REDUCED MOTION
========================================================== */

@media (prefers-reduced-motion: reduce) {

    html {

        scroll-behavior:
            auto;

    }


    *,
    *::before,
    *::after {

        animation-duration:
            .01ms !important;

        animation-iteration-count:
            1 !important;

        transition-duration:
            .01ms !important;

        scroll-behavior:
            auto !important;

    }

}

/* ==========================================================
   CHINMUN ERP — HERO SPACING FINAL FIX
   Keep the premium header and bring hero content upward.
========================================================== */

.hero,
.hero-section,
section.hero,
section.hero-section {
    padding-top: 90px !important;
    margin-top: 0 !important;
}

.hero-content,
.hero-inner,
.hero-shell {
    margin-top: 0 !important;
}

.hero-dashboard,
.dashboard-perspective,
#dashboardPerspective {
    margin-top: 0 !important;
}

@media (min-width: 1200px) {
    .hero,
    .hero-section,
    section.hero,
    section.hero-section {
        padding-top: 10px !important;
    }
}

@media (min-width: 901px) and (max-width: 1199px) {
    .hero,
    .hero-section,
    section.hero,
    section.hero-section {
        padding-top: 10px !important;
    }
}

@media (max-width: 900px) {
    .hero,
    .hero-section,
    section.hero,
    section.hero-section {
        padding-top: 25px !important;
    }
}

@media (max-width: 600px) {
    .hero,
    .hero-section,
    section.hero,
    section.hero-section {
        padding-top: 12px !important;
    }
}
/* ==========================================================
   CHINMUN ERP - NAV LOGIN BUTTON
========================================================== */

.nav-login {

    position:
        relative;

    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    min-width:
        82px;

    height:
        46px;

    padding:
        0 22px;

    color:
        rgba(245, 248, 255, 0.95);

    font-family:
        inherit;

    font-size:
        14px;

    font-weight:
        700;

    letter-spacing:
        0.2px;

    background:
        linear-gradient(
            135deg,
            rgba(47, 105, 255, 0.16),
            rgba(151, 65, 255, 0.14)
        );

    border:
        1px solid
        rgba(118, 145, 255, 0.32);

    border-radius:
        12px;

    outline:
        none;

    cursor:
        pointer;

    overflow:
        hidden;

    backdrop-filter:
        blur(16px);

    -webkit-backdrop-filter:
        blur(16px);

    box-shadow:
        inset 0 1px 0
        rgba(255, 255, 255, 0.08),

        0 8px 25px
        rgba(0, 0, 0, 0.18);

    transition:
        transform 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        color 0.25s ease;

}


/* ==========================================================
   HOVER LIGHT EFFECT
========================================================== */

.nav-login::before {

    content:
        "";

    position:
        absolute;

    top:
        -100%;

    left:
        -45%;

    width:
        45%;

    height:
        300%;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, 0.18),
            transparent
        );

    transform:
        rotate(25deg);

    transition:
        left 0.55s ease;

    pointer-events:
        none;

}


.nav-login:hover::before {

    left:
        120%;

}


/* ==========================================================
   HOVER
========================================================== */

.nav-login:hover {

    color:
        #ffffff;

    background:
        linear-gradient(
            135deg,
            rgba(52, 105, 255, 0.28),
            rgba(164, 62, 255, 0.25)
        );

    border-color:
        rgba(142, 166, 255, 0.65);

    transform:
        translateY(-2px);

    box-shadow:
        inset 0 1px 0
        rgba(255, 255, 255, 0.12),

        0 12px 32px
        rgba(54, 94, 255, 0.20),

        0 8px 30px
        rgba(0, 0, 0, 0.25);

}


/* ==========================================================
   ACTIVE
========================================================== */

.nav-login:active {

    transform:
        translateY(0)
        scale(0.97);

    box-shadow:
        inset 0 2px 8px
        rgba(0, 0, 0, 0.18);

}


/* ==========================================================
   KEYBOARD FOCUS
========================================================== */

.nav-login:focus-visible {

    border-color:
        rgba(126, 166, 255, 0.9);

    box-shadow:
        0 0 0 4px
        rgba(75, 120, 255, 0.18),

        0 12px 30px
        rgba(0, 0, 0, 0.22);

}


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

@media (max-width: 800px) {

    .nav-login {

        width:
            100%;

        min-height:
            50px;

        font-size:
            15px;

        border-radius:
            14px;

    }

}
/* ==========================================================
   LOGIN OPTIONS
========================================================== */

.website-login-options {
    width: 100% !important;

    display: flex !important;

    flex-direction: row !important;

    align-items: center !important;

    justify-content: space-between !important;

    gap: 20px !important;

    margin-top: 18px !important;

    margin-bottom: 24px !important;
}


.website-login-remember {
    display: flex !important;

    align-items: center !important;

    justify-content: flex-start !important;

    gap: 8px !important;

    margin: 0 !important;

    white-space: nowrap !important;

    cursor: pointer !important;

    flex-shrink: 0 !important;
}


.website-login-remember input {
    width: 16px !important;

    height: 16px !important;

    margin: 0 !important;

    padding: 0 !important;

    flex-shrink: 0 !important;

    cursor: pointer !important;
}


.website-login-remember span {
    display: inline-block !important;

    white-space: nowrap !important;
}


.website-login-forgot {
    display: block !important;

    margin-left: auto !important;

    white-space: nowrap !important;

    text-decoration: none !important;

    cursor: pointer !important;

    flex-shrink: 0 !important;
}


.website-login-forgot:hover {
    text-decoration: underline !important;
}
