/* ═══════════════════════════════════════════════════════════
   Header — Premium Light Edition
   ═══════════════════════════════════════════════════════════ */

@keyframes logo-shimmer {
    0%   { background-position: -200% center; }
    100% { background-position: 200% center; }
}

@keyframes btn-sweep {
    0%   { transform: translateX(-100%) skewX(-15deg); }
    100% { transform: translateX(300%) skewX(-15deg); }
}

/* ── Mobile Nav Backdrop ── */
.nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 150;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s var(--ease-out), visibility 0.3s;
}

body.nav-open .nav-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* ── Header ── */
.top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 170;
    background: #ffffff; /* Exclusive Pure White */
    border-bottom: 1px solid rgba(15, 23, 42, 0.04);
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.02);
    padding-top: max(0px, var(--safe-top));
    transition: box-shadow 0.4s var(--ease-out), padding 0.4s var(--ease-out);
}

.top.is-scrolled {
    background: #ffffff;
    box-shadow: 0 8px 40px rgba(15, 23, 42, 0.08);
}

.top .wrap {
    position: relative;
    z-index: 1;
}

/* ── Inner Flex ── */
.top__flex {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0;
    height: 88px;
}

/* ── Logo ── */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    padding: 0 40px 0 0;
    transition: opacity 0.3s var(--ease-out);
}

.logo:hover {
    opacity: 0.9;
}

@keyframes icon-sweep {
    0% { left: -100%; }
    20% { left: 200%; }
    100% { left: 200%; }
}

.logo-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #020617 0%, #0b1329 100%); /* Deeper obsidian/sapphire base */
    border-radius: 12px;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.15), /* Thin top glass reflection */
        inset 0 -1px 0 rgba(0, 0, 0, 0.6),      /* Bevel bottom */
        0 8px 24px rgba(2, 6, 23, 0.3),         /* Rich drop shadow */
        0 0 0 1px rgba(14, 165, 233, 0.15),    /* Elegant cyan border ring */
        0 0 12px rgba(14, 165, 233, 0.15);      /* Ambient electric power glow */
    overflow: hidden;
}

.logo-icon::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(56, 189, 248, 0.08), transparent 60%);
    pointer-events: none;
}

/* Majestic, slow, sharp metallic shine crossing the box - INFINITE ALTERNATE LOOP */
.logo-icon::before {
    content: '';
    position: absolute;
    top: 0; 
    left: -150%; 
    width: 150%; 
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.03), transparent);
    transform: skewX(-30deg);
    animation: elite-shine 6s ease-in-out infinite alternate; /* Seamless bounce */
    pointer-events: none;
}

@keyframes elite-shine {
    0% { left: -150%; }
    100% { left: 150%; }
}

.logo-icon svg {
    position: relative;
    z-index: 1;
    width: 30px;
    height: 30px;
}

/* Base circuit path (Platinum subtle structure) */
.circuit-base {
    color: rgba(255, 255, 255, 0.15); 
}

/* Energy trace layer (Luminous Ice Blue / Electric Sapphire glow) */
.circuit-energy {
    color: #e0f2fe; /* Ice Blue */
    filter: drop-shadow(0 0 2px #38bdf8) drop-shadow(0 0 6px rgba(14, 165, 233, 0.8));
}

/* Outer square: Very slow, continuous, infinite tracing line */
.ce-rect-outer {
    stroke-dasharray: 40 60; 
    animation: elite-trace 8s linear infinite; /* LINEAR for seamless infinity */
}

/* Inner square: Slower reverse tracing */
.ce-rect-inner {
    stroke-dasharray: 15 25;
    animation: elite-trace 6s linear infinite reverse; /* LINEAR for seamless infinity */
}

@keyframes elite-trace {
    0% { stroke-dashoffset: 100; }
    100% { stroke-dashoffset: 0; }
}

/* Pins: Solid and steady. High-end equipment doesn't jitter. */
.ce-pin {
    stroke-dasharray: 20;
    opacity: 0.85;
}

/* Core: Very slow, majestic breathing (like a high-end luxury car standby button) */
.ce-core {
    transform-origin: center;
    animation: elite-core-breathe 4s ease-in-out infinite alternate;
}

@keyframes elite-core-breathe {
    0% { transform: scale(0.85); opacity: 0.7; filter: drop-shadow(0 0 2px rgba(56, 189, 248, 0.5)); }
    100% { transform: scale(1.15); opacity: 1; filter: drop-shadow(0 0 10px rgba(56, 189, 248, 1)); }
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
}

.logo-title {
    font-size: 24px;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--text);
    line-height: 1;
    white-space: nowrap;
}

@keyframes elegant-sheen {
    0% {
        background-position: 300% center;
        filter: drop-shadow(0 0 0px rgba(56, 189, 248, 0));
    }
    50% {
        filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.35)) brightness(1.08);
    }
    100% {
        background-position: 0% center;
        filter: drop-shadow(0 0 0px rgba(56, 189, 248, 0));
    }
}

.logo-title span {
    font-weight: 800;
    background: linear-gradient(
        90deg,
        #0284c7 0%,
        #0ea5e9 25%,
        #38bdf8 45%,
        #e0f2fe 50%, /* Soft, premium glowing core instead of harsh white */
        #38bdf8 55%,
        #0ea5e9 75%,
        #0284c7 100%
    );
    background-size: 300% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: elegant-sheen 8s linear infinite; /* Slower, linear, continuous metallic sheen */
}

.logo-subtitle {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.25em;
    color: var(--mut);
    text-transform: uppercase;
    line-height: 1;
    white-space: nowrap;
}

/* ── Navigation ── */
.menu {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 32px;
}

.menu__list {
    display: flex;
    list-style: none;
    gap: 2px;
    margin: 0;
    padding: 0;
}

.menu__item a {
    position: relative;
    display: block;
    color: var(--mut);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 8px 16px;
    border-radius: 8px;
    transition: color 0.25s var(--ease-out), background 0.25s var(--ease-out);
    white-space: nowrap;
}

.menu__item a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 16px;
    right: 16px;
    height: 2px;
    background: var(--prim);
    border-radius: 2px;
    transform: scaleX(0);
    transition: transform 0.3s var(--ease-out);
    transform-origin: center;
}

.menu__item a:hover {
    color: var(--text);
    background: var(--prim-soft);
}

.menu__item a:hover::after {
    transform: scaleX(0.5);
}

.menu__item a.is-active {
    color: var(--prim);
    font-weight: 700;
    background: var(--prim-soft);
}

.menu__item a.is-active::after {
    transform: scaleX(1);
}

.menu__cta {
    display: none !important;
}

/* ── Actions ── */
.top__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ── CTA Button ── */
.btn-top,
.top__actions .btn-top,
a.btn-top {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 28px;
    background: linear-gradient(135deg, #0284c7 0%, var(--prim) 50%, #38bdf8 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.04em;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    box-shadow:
        0 4px 16px rgba(14, 165, 233, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.btn-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 40%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-100%) skewX(-15deg);
    pointer-events: none;
}

.btn-top:hover,
.btn-top:focus,
.btn-top:visited,
.btn-top:active,
.top__actions .btn-top:hover,
.top__actions .btn-top:focus,
.top__actions .btn-top:visited,
.top__actions .btn-top:active {
    color: #fff;
}

.btn-top:hover {
    transform: translateY(-2px);
    box-shadow:
        0 8px 28px rgba(14, 165, 233, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-top:hover::before {
    animation: btn-sweep 0.55s var(--ease-out);
}

.btn-top:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.3);
}

/* ── Hamburger ── */
.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 1.5px solid rgba(14, 165, 233, 0.25);
    border-radius: 10px;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    transition: border-color 0.25s, background 0.25s;
}

.burger:hover {
    background: var(--prim-soft);
    border-color: rgba(14, 165, 233, 0.45);
}

.burger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.3s var(--ease-out), opacity 0.2s var(--ease-out);
}

.burger.is-open {
    background: var(--prim-soft);
    border-color: var(--prim);
}

.burger.is-open span { background: var(--prim); }
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (hover: none) and (pointer: coarse) {
    .btn-top:hover {
        transform: none;
        box-shadow: 0 4px 16px rgba(14, 165, 233, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
}

@media (prefers-reduced-motion: reduce) {
    .logo span { animation: none; }
    .btn-top::before { display: none; }
}
