/* ============================================
   RESET
   ============================================ */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
body { font-family:'Inter',sans-serif; background:#0F1923; color:#FFFFFF; -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale; }
a { color:inherit; text-decoration:none; }
img { max-width:100%; height:auto; }

/* ============================================
   HEADER
   ============================================ */
.cgs-header { position:sticky; top:0; z-index:1000; background:#0F1923; border-bottom:1px solid rgba(255,255,255,0.08); }
.cgs-header__inner { display:flex; align-items:center; justify-content:space-between; max-width:1280px; margin:0 auto; padding:0 1.5rem; height:88px; }
.cgs-header__accent { height:3px; background:linear-gradient(90deg,#D4952A,#E5A93D,#D4952A); }

/* ============================================
   LOGO
   ============================================ */
.cgs-logo { display:flex; align-items:center; gap:14px; text-decoration:none; flex-shrink:0; }

.cgs-logo-badge {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 11px;
    background: linear-gradient(135deg, #112240 0%, #0c1827 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    box-shadow:
        0 0 0 1.5px #c99222,
        0 0 12px rgba(201,146,34,0.45),
        0 0 28px rgba(201,146,34,0.18),
        inset 0 1px 0 rgba(255,255,255,0.06);
    transition: box-shadow 0.3s ease;
    flex-shrink: 0;
}

.cgs-logo:hover .cgs-logo-badge {
    box-shadow:
        0 0 0 1.5px #f0b93a,
        0 0 18px rgba(240,185,58,0.6),
        0 0 40px rgba(240,185,58,0.25),
        inset 0 1px 0 rgba(255,255,255,0.08);
}

.cgs-logo-badge span {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 900;
    font-size: 15px;
    letter-spacing: 1.5px;
    color: #f0b93a;
    line-height: 1;
}

.cgs-logo-badge__line {
    width: 24px;
    height: 2px;
    background: linear-gradient(90deg, #c99222, #f0b93a);
    border-radius: 1px;
}

.cgs-logo-text { display:flex; flex-direction:column; gap:1px; }

.cgs-logo-text__brand {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 900;
    font-size: 26px;
    letter-spacing: 1px;
    color: #ffffff;
    line-height: 1;
    text-transform: uppercase;
}

.cgs-logo-text__sub {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 2px;
    color: #c99222;
    text-transform: uppercase;
    line-height: 1;
    white-space: nowrap;
}

/* ============================================
   NAV
   ============================================ */
.cgs-nav { display:none; align-items:center; gap:0.25rem; }
.cgs-nav__link { font-family:'Inter',sans-serif; font-weight:500; font-size:13px; color:#8A9BB5; text-decoration:none; padding:0.5rem 1rem; border-radius:0.375rem; letter-spacing:0.2px; transition:color 150ms ease,background 150ms ease; white-space:nowrap; position:relative; }
.cgs-nav__link:hover { color:#FFFFFF; background:rgba(255,255,255,0.06); }
.cgs-nav__link--active { color:#FFFFFF; }
.cgs-nav__link--active::after { content:''; position:absolute; bottom:2px; left:1rem; right:1rem; height:2px; background:#D4952A; border-radius:2px; }

/* ============================================
   BUTTONS
   ============================================ */
.cgs-btn-primary { font-family:'Inter',sans-serif; font-weight:600; font-size:13px; color:#0F1923; background:#D4952A; border:2px solid #D4952A; padding:10px 24px; border-radius:0.375rem; cursor:pointer; letter-spacing:0.3px; text-decoration:none; text-transform:uppercase; transition:all 150ms ease; white-space:nowrap; display:inline-flex; align-items:center; justify-content:center; }
.cgs-btn-primary:hover { background:#E5A93D; border-color:#E5A93D; color:#0F1923; transform:translateY(-1px); box-shadow:0 4px 12px rgba(212,149,42,0.3); }
.cgs-btn-primary:active { transform:translateY(0); box-shadow:none; }

.cgs-header__cta { display:none; align-items:center; flex-shrink:0; }

/* ============================================
   HAMBURGER
   ============================================ */
.cgs-hamburger { display:flex; flex-direction:column; justify-content:center; align-items:center; width:44px; height:44px; background:none; border:none; cursor:pointer; padding:0; gap:5px; z-index:1001; }
.cgs-hamburger__line { display:block; width:24px; height:2px; background:#FFFFFF; border-radius:2px; transition:all 250ms ease; transform-origin:center; }
.cgs-hamburger--active .cgs-hamburger__line:nth-child(1) { transform:translateY(7px) rotate(45deg); }
.cgs-hamburger--active .cgs-hamburger__line:nth-child(2) { opacity:0; transform:scaleX(0); }
.cgs-hamburger--active .cgs-hamburger__line:nth-child(3) { transform:translateY(-7px) rotate(-45deg); }

/* ============================================
   MOBILE MENU
   ============================================ */
.cgs-mobile-menu { position:fixed; inset:0; z-index:999; background:#0F1923; display:flex; flex-direction:column; padding:88px 1.5rem 2rem; opacity:0; visibility:hidden; transition:opacity 250ms ease,visibility 250ms ease; }
.cgs-mobile-menu--active { opacity:1; visibility:visible; }
.cgs-mobile-menu__logo { margin-bottom:32px; }
.cgs-logo--mobile .cgs-logo-badge { width:40px; height:40px; }
.cgs-logo--mobile .cgs-logo-text__brand { font-size:22px; }
.cgs-logo--mobile .cgs-logo-text__sub { font-size:9px; }
.cgs-mobile-menu__nav { display:flex; flex-direction:column; gap:0.25rem; flex:1; }
.cgs-mobile-menu__link { font-family:'Barlow Condensed',sans-serif; font-weight:700; font-size:28px; color:#8A9BB5; text-decoration:none; text-transform:uppercase; letter-spacing:0.5px; padding:1rem 0; border-bottom:1px solid rgba(255,255,255,0.08); transition:color 150ms ease,padding-left 150ms ease; }
.cgs-mobile-menu__link:hover, .cgs-mobile-menu__link--active { color:#D4952A; padding-left:0.75rem; }
.cgs-mobile-menu__cta { margin-top:auto; padding-top:2rem; }
.cgs-mobile-menu__cta .cgs-btn-primary { display:block; width:100%; text-align:center; padding:16px 24px; font-size:15px; }

.cgs-main { min-height:50vh; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (min-width: 768px) {
    .cgs-header__inner { height: 92px; }
}

@media (min-width: 1024px) {
    .cgs-header__inner { height: 96px; }
    .cgs-nav { display: flex; }
    .cgs-header__cta { display: flex; }
    .cgs-hamburger { display: none; }

    .cgs-logo-badge { width: 54px; height: 54px; border-radius: 12px; }
    .cgs-logo-badge span { font-size: 16px; }
    .cgs-logo-badge__line { width: 26px; }
    .cgs-logo-text__brand { font-size: 28px; }
    .cgs-logo-text__sub { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition-duration: 0.01ms !important; }
}


/* ============================================
   FOOTER
   ============================================ */
.cgs-footer {
    background: #0A1219;
    position: relative;
}

.cgs-footer__accent {
    height: 3px;
    background: linear-gradient(90deg, #D4952A, #E5A93D, #D4952A);
}

.cgs-footer__main {
    padding: 64px 0 48px;
}

.cgs-footer__container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.cgs-footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
}

.cgs-footer__brand {
    max-width: 340px;
}

.cgs-footer__logo {
    display: inline-flex;
    text-decoration: none;
    margin-bottom: 20px;
}

.cgs-footer__tagline {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #5E7189;
    margin-bottom: 24px;
}

.cgs-footer__ctas {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cgs-footer__cta-brand {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 12px;
    color: #0F1923;
    background: #D4952A;
    border: 2px solid #D4952A;
    padding: 10px 20px;
    border-radius: 0.375rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: all 150ms ease;
    display: inline-flex;
    align-items: center;
}

.cgs-footer__cta-brand:hover {
    background: #E5A93D;
    border-color: #E5A93D;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212,149,42,0.3);
}

.cgs-footer__cta-dist {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 12px;
    color: #FFFFFF;
    background: transparent;
    border: 2px solid rgba(255,255,255,0.15);
    padding: 10px 20px;
    border-radius: 0.375rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: all 150ms ease;
    display: inline-flex;
    align-items: center;
}

.cgs-footer__cta-dist:hover {
    border-color: rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.04);
    transform: translateY(-1px);
}

.cgs-footer__links-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: #FFFFFF;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
}

.cgs-footer__links-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cgs-footer__links-list a {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #5E7189;
    text-decoration: none;
    transition: color 150ms ease;
}

.cgs-footer__links-list a:hover {
    color: #D4952A;
}

.cgs-footer__contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.cgs-footer__contact-item:last-child {
    margin-bottom: 0;
}

.cgs-footer__contact-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(212,149,42,0.08);
    border: 1px solid rgba(212,149,42,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.cgs-footer__contact-icon svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: #D4952A;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cgs-footer__contact-label {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #5E7189;
    margin-bottom: 2px;
}

.cgs-footer__contact-value {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #8A9BB5;
    text-decoration: none;
    transition: color 150ms ease;
}

a.cgs-footer__contact-value:hover {
    color: #D4952A;
}

.cgs-footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 24px 0;
}

.cgs-footer__bottom-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.cgs-footer__copyright {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: #3D5068;
}

@media (min-width: 640px) {
    .cgs-footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (min-width: 1024px) {
    .cgs-footer__grid {
        grid-template-columns: 1.4fr 0.8fr 1fr;
        gap: 60px;
    }
    .cgs-footer__main {
        padding: 72px 0 56px;
    }
    .cgs-footer__bottom-inner {
        flex-direction: row;
        justify-content: center;
    }
}


/* ============================================
   404 PAGE
   ============================================ */
.cgs-404 {
    padding: 120px 0;
    background: #0F1923;
    text-align: center;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.cgs-404__container {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

.cgs-404__badge {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #D4952A;
    background: rgba(212,149,42,0.12);
    border: 1px solid rgba(212,149,42,0.25);
    padding: 8px 18px;
    border-radius: 100px;
    margin-bottom: 24px;
}

.cgs-404__code {
    font-family: 'Anton SC', sans-serif;
    font-weight: 400;
    font-size: clamp(80px, 15vw, 160px);
    line-height: 1;
    color: rgba(212,149,42,0.08);
    margin-bottom: -20px;
}

.cgs-404__headline {
    font-family: 'Anton SC', sans-serif;
    font-weight: 400;
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.1;
    color: #FFFFFF;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.cgs-404__headline span {
    color: #D4952A;
}

.cgs-404__desc {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 17px;
    line-height: 1.7;
    color: #8A9BB5;
    margin-bottom: 40px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cgs-404__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.cgs-404__btn-primary {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: #0F1923;
    background: #D4952A;
    border: 2px solid #D4952A;
    padding: 16px 32px;
    border-radius: 0.375rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: all 150ms ease;
    display: inline-flex;
    align-items: center;
}

.cgs-404__btn-primary:hover {
    background: #E5A93D;
    border-color: #E5A93D;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212,149,42,0.35);
}

.cgs-404__btn-secondary {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: #FFFFFF;
    background: transparent;
    border: 2px solid rgba(255,255,255,0.15);
    padding: 16px 32px;
    border-radius: 0.375rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: all 150ms ease;
    display: inline-flex;
    align-items: center;
}

.cgs-404__btn-secondary:hover {
    border-color: rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.04);
    transform: translateY(-2px);
}


/* ============================================
   LOGO ANIMATION — add to global.css
   ============================================ */
 
/* Badge shine */
@keyframes cgs-badge-shine {
    0%   {
        box-shadow:
            0 0 0 1.5px #c99222,
            0 0 12px rgba(201,146,34,0.45),
            0 0 28px rgba(201,146,34,0.18),
            inset 0 1px 0 rgba(255,255,255,0.06);
    }
    40%  {
        box-shadow:
            0 0 0 2.5px #f0b93a,
            0 0 32px rgba(240,185,58,0.95),
            0 0 70px rgba(240,185,58,0.55),
            inset 0 1px 0 rgba(255,255,255,0.18);
    }
    70%  {
        box-shadow:
            0 0 0 1.5px #f0b93a,
            0 0 18px rgba(240,185,58,0.6),
            0 0 40px rgba(240,185,58,0.25),
            inset 0 1px 0 rgba(255,255,255,0.08);
    }
    100% {
        box-shadow:
            0 0 0 1.5px #c99222,
            0 0 12px rgba(201,146,34,0.45),
            0 0 28px rgba(201,146,34,0.18),
            inset 0 1px 0 rgba(255,255,255,0.06);
    }
}
 
/* CHASE letters — bounce */
@keyframes cgs-letter-bounce {
    0%   { transform: scale(1)    translateY(0);    }
    25%  { transform: scale(1.5)  translateY(-5px); }
    55%  { transform: scale(0.85) translateY(0);    }
    75%  { transform: scale(1.15) translateY(-2px); }
    90%  { transform: scale(0.97) translateY(0);    }
    100% { transform: scale(1)    translateY(0);    }
}
 
/*
   GLOBAL SUPPLY letters — forward-down flip.
   Top of letter tips FORWARD (toward viewer) then rolls
   up and snaps back to normal. rotateX(90deg) = top falls forward.
   transform-origin: top center makes the top edge the pivot.
*/
@keyframes cgs-char-flip {
    0%   { opacity: 1; transform: rotateX(0deg);    }
    30%  { opacity: 1; transform: rotateX(90deg);   }
    31%  { opacity: 0; transform: rotateX(90deg);   }
    32%  { opacity: 0; transform: rotateX(-90deg);  }
    80%  { opacity: 1; transform: rotateX(-8deg);   }
    100% { opacity: 1; transform: rotateX(0deg);    }
}
 
/* sub text needs perspective for 3D */
.cgs-logo-text__sub {
    display: block;
    perspective: 400px;
}
 
/* each character span in sub text */
.cgs-sub-char {
    display: inline-block;
    transform-origin: center top;
    backface-visibility: hidden;
}
 
/* space between words — never animated */
.cgs-sub-space {
    display: inline-block;
}
 
/* ---- triggered by JS ---- */
 
.cgs-logo--animating .cgs-logo-badge {
    animation: cgs-badge-shine 1.1s ease-in-out forwards;
}
 
.cgs-logo--animating .cgs-logo-text__brand .cgs-letter {
    display: inline-block;
    animation: cgs-letter-bounce 0.65s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}
 
.cgs-logo--animating .cgs-logo-text__sub .cgs-sub-char {
    animation: cgs-char-flip 0.7s cubic-bezier(0.4, 0, 0.2, 1) both;
}